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