-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
-
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.
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.
- blocks
-
JDK-8350450 Compile object files once for both static and dynamic builds
-
- Open
-
-
JDK-8303796 Optionally build fully statically linked JDK image
-
- Open
-