Skip to content

Allocate JIT bufer close to PHP .text segment to allow using direct IP-relative calls and jumps #8890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2022

Conversation

dstogov
Copy link
Member

@dstogov dstogov commented Jun 29, 2022

This implementation is based on #8618

…P-relative calls and jumps

This implementation is based on php#8618
@stkeke
Copy link
Contributor

stkeke commented Jun 30, 2022

@dstogov We have looked at the patch. The code logic is much simpler and understandable, and code flow goes smoothly. Our test showed that JIT buffer now hit after [heap], and benchmark with this patch achieved performance gain 1) 4kb pages +2.7%, and 2) huge pages +2.8%.

It looks good to merge the patch... (and then drop and close PR #8618)

@dstogov dstogov merged commit 17aa81a into php:master Jun 30, 2022
@stkeke
Copy link
Contributor

stkeke commented Jun 30, 2022

Terrific!

devnexen added a commit to devnexen/php-src that referenced this pull request Jul 2, 2022
…BSD.

Follow up on php#8890 using similar workflow, we go through the php
binary mapping per address boundaries.
devnexen added a commit that referenced this pull request Jul 20, 2022
…BSD.

Follow up on #8890 using similar workflow, we go through the php binary mapping per address boundaries.

Closes #8908.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants