-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
21
-
x86_64
-
os_x
ADDITIONAL SYSTEM INFORMATION :
MacOS AARCH64
A DESCRIPTION OF THE PROBLEM :
I tried compiling the JDK 21 with the variant `zero`. If I understand correctly, this variant should not use JIT. It should run in the interpreter mode only.
However, a Java app that embeds this JDK would still crash at `MACOS_AARCH64_ONLY(os::current_thread_enable_wx(WXWrite))` (threads.cpp, line 430) which invokes `pthread_jit_write_protect_np(0)` underneath.
I wonder if the zero variant is supposed to avoid calling that function. Or if I misunderstand something (it might be because I'm new to this area).
Would love know more whether this is unintended or a Java app will always require the com.apple.security.cs.allow-jit entitlement.
Thank you so much.
MacOS AARCH64
A DESCRIPTION OF THE PROBLEM :
I tried compiling the JDK 21 with the variant `zero`. If I understand correctly, this variant should not use JIT. It should run in the interpreter mode only.
However, a Java app that embeds this JDK would still crash at `MACOS_AARCH64_ONLY(os::current_thread_enable_wx(WXWrite))` (threads.cpp, line 430) which invokes `pthread_jit_write_protect_np(0)` underneath.
I wonder if the zero variant is supposed to avoid calling that function. Or if I misunderstand something (it might be because I'm new to this area).
Would love know more whether this is unintended or a Java app will always require the com.apple.security.cs.allow-jit entitlement.
Thank you so much.