Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8369652

Unable to run a Java app without the com.apple.security.cs.allow-jit entitlement

XMLWordPrintable

    • 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.


            eaymane EL Haimer Aymane
            webbuggrp Webbug Group
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: