Skip to content

Commit 00f9c5e

Browse files
committed
Remove MAP_JIT flag
This flag is supposed to go on the flags parameter, rather than prot. Moreover, this flag is no longer needed because the JIT does not set RWX without ZTS, and JIT+ZTS has been disabled on macOS with Apple Silicon. Closes GH-13638
1 parent 2343791 commit 00f9c5e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/opcache/shared_alloc_mmap.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_
180180
#ifdef PROT_MAX
181181
flags |= PROT_MAX(PROT_READ | PROT_WRITE | PROT_EXEC);
182182
#endif
183-
#ifdef MAP_JIT
184-
flags |= MAP_JIT;
185-
#endif
186183
#if (defined(__linux__) || defined(__FreeBSD__)) && (defined(__x86_64__) || defined (__aarch64__)) && !defined(__SANITIZE_ADDRESS__)
187184
void *hint = find_prefered_mmap_base(requested_size);
188185
if (hint != MAP_FAILED) {

0 commit comments

Comments
 (0)