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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated: