GH-9370: Fix opcache jit protection bits.#9371
Conversation
Allow mprotect to occur, pthread_jit_write_np are just to allow mprotect flags to be used.
dstogov
left a comment
There was a problem hiding this comment.
I cannot test this, but according to https://keith.github.io/xcode-man-pages/pthread_jit_write_protect_np.3.html pthread_jit_write_protect_np() should work without mprotect().
May be mprotect() is necessary, because we used it before in zend_accel_shared_protect(). Also note that we seem don't use MAP_JIT flag and this may make difference.
|
@jdp1024 would the new changes work for you ? |
It doesn't work in M1. Call to |
|
Ok thx, I m going to put those back. Could you try again once you get a chance pls ? |
00d9d45 to
8fd9cdf
Compare
|
|
Ok waiting for @dstogov approval. |
Does PHP work without the patch (with |
It works after the removal of the two It does not work with So it seems that the |
Allow mprotect to occur, pthread_jit_write_np are just to allow mprotect
flags to be used.