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

Support JNI_OnLoad_L|JNI_OnUnload_L|Agent_OnLoad_L|Agent_OnUnLoad_L|Agent_OnAttach_L for dynamically linked JDK native libraries

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      Related context:

      https://mail.openjdk.org/pipermail/leyden-dev/2025-May/002139.html

      Specifically, this is to use JNI_OnLoad_L|JNI_OnUnload_L|Agent_OnLoad_L|Agent_OnUnLoad_L|Agent_OnAttach_L for both dynamically linked and statically linked (built-in) JDK native libraries. It avoids the needs for using #ifdef STATIC_BUILD to define the separate DEF_STATIC_JNI_OnLoad macro and etc. Removing the #ifdef STATIC_BUILD differences is needed by the JDK-8350450 work.

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: