JDK-8257988 : Remove JNF dependency from libsaproc/MacosxDebuggerLocal.m
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-09
  • Updated: 2025-01-16
  • Resolved: 2021-02-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 15 JDK 17
11.0.12-oracleFixed 13.0.8Fixed 15.0.4Fixed 17 b09Fixed
Related Reports
Relates :  
Description
https://bugs.openjdk.java.net/browse/JDK-8257852 discusses removing 
JNF dependencies from the desktop module. 

It would be good to also remiove the dependency from other areas 

jdk.hotspot.agent/macosx/native/libsaproc/MacosxDebuggerLocal.m uses these :

 NSString *symbolNameString = JNFJavaToNSString(env, symbolName);
JNF_COCOA_EXIT(env);
JNF_COCOA_ENTER(env);

Once we've established the right patten to replace these in reviews of desktop module changers we should update this serviceablity code in the same way
Comments
Fix request (11u) This is the last part of series for removing JNF dependency from jdk11u. Applies cleanly. Also needed for parity with oracle.
18-05-2021

Fix Request (13u) : this is the last (8/8) part of JNF removal patches. Applies cleanly. Tests for whole series : tier1/tier2.
08-04-2021

Fix Request (15u) : this is the last (8/8) part of JNF removal patches. Applies cleanly. Tests for whole series : tier1/tier2.
02-04-2021

Changeset: 2be60e37 Author: Phil Race <prr@openjdk.org> Date: 2021-02-03 21:58:02 +0000 URL: https://git.openjdk.java.net/jdk/commit/2be60e37
03-02-2021