mirror of
https://github.com/php/php-src.git
synced 2026-04-26 01:18:19 +02:00
6db95512b4
Apple Silicon has stricter rules about rwx mmap regions. They need to be created using the MAP_JIT flag. However, the MAP_JIT seems to be incompatible with MAP_SHARED. ZTS requires MAP_SHARED so that some threads may execute code from a page while another writes/appends to it. We did not find another solution, other than completely disabling JIT for Apple Silicon + ZTS. See discussion in https://github.com/php/php-src/pull/13351. Co-authored-by: Peter Kokot <peterkokot@gmail.com> Fixes GH-13400 Closes GH-13396