opcache JIT support improvements attempts on macOs.#8382
Closed
devnexen wants to merge 1 commit into
Closed
Conversation
036c348 to
17d924a
Compare
dstogov
reviewed
Jul 19, 2022
Comment on lines
4617
to
4618
Member
There was a problem hiding this comment.
I think you don't need to call mprotect() after pthread_jit_write_protect_np() here and in zend_jit_protect(). Also see code alignment.
This probably should be changed into:
if (zend_write_protect) {
pthread_jit_write_protect_np(0);
return;
}
opts |= PROT_EXEC
Comment on lines
4919
to
4918
17d924a to
6735ac4
Compare
dstogov
approved these changes
Jul 19, 2022
dstogov
left a comment
Member
There was a problem hiding this comment.
I don't see problems in source code, but I can't test this.
Please try to test running ''ab -t 300 -c 10 ...'' and simultaneously modifying/touching executed php scripts.
Comment on lines
4647
to
4648
Comment on lines
4915
to
4928
Member
There was a problem hiding this comment.
Now the both new identical chunks may be merged above.
for cases when shared segments switch b/w R/W/X and R/X bits.
6735ac4 to
5842ce5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
for cases when shared segments switch b/w R/W/X and R/X bits.