From b267930c939c8fc746a4e73a4209d2b82e244826 Mon Sep 17 00:00:00 2001 From: jdp1024 Date: Mon, 22 Aug 2022 15:11:16 +0800 Subject: [PATCH] Fixes the w/x bits of JIT blocks --- ext/opcache/jit/zend_jit.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c index ac4fba9877a8d..8bf7c69377788 100644 --- a/ext/opcache/jit/zend_jit.c +++ b/ext/opcache/jit/zend_jit.c @@ -4611,7 +4611,6 @@ ZEND_EXT_API void zend_jit_unprotect(void) #ifdef HAVE_PTHREAD_JIT_WRITE_PROTECT_NP if (zend_write_protect) { pthread_jit_write_protect_np(0); - return; } #endif opts |= PROT_EXEC; @@ -4645,7 +4644,6 @@ ZEND_EXT_API void zend_jit_protect(void) #ifdef HAVE_PTHREAD_JIT_WRITE_PROTECT_NP if (zend_write_protect) { pthread_jit_write_protect_np(1); - return; } #endif if (mprotect(dasm_buf, dasm_size, PROT_READ | PROT_EXEC) != 0) {