diff --git a/runtime/compiler/control/CompilationThread.cpp b/runtime/compiler/control/CompilationThread.cpp index 96a2bd84470..83d3eff62c5 100644 --- a/runtime/compiler/control/CompilationThread.cpp +++ b/runtime/compiler/control/CompilationThread.cpp @@ -8201,6 +8201,11 @@ TR::CompilationInfoPerThreadBase::compile(J9VMThread * vmThread, reloRuntime); } +#if defined(OSX) && defined(AARCH64) + // Re-acquire execution permission of JIT code cache for this thread + // regardless of the previous protection status + pthread_jit_write_protect_np(1); +#endif vmThread->omrVMThread->vmState = oldState; vmThread->jitMethodToBeCompiled = NULL;