RFR: 8257988: Remove JNF dependency from libsaproc/MacosxDebuggerLocal.m
Chris Plummer
cjplummer at openjdk.java.net
Fri Jan 29 00:35:41 UTC 2021
On Fri, 29 Jan 2021 00:15:56 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:
>> This removes the JNF dependency from the jdk.hotspot.agent module.
>> The macro expansions are the same as already used in the Java desktop module - which actually uses a macro
>> still but there there are hundreds of uses.
>> The function of this macro code is to prevent NSExceptions escaping to Java and also to drain the auto-release pool.
>> What test group would be good for verifying this change ?
>
> For testing you want `test/jdk/sun/tools/jhsdb/` and `test/hotspot/jtreg/serviceability/sa`
I'm doubtful you'll find anyone on serviceability-dev that understands JNF and the implications it has on MacosxDebuggerLocal.m. Although I've done a lot of work in this file myself recently, it's all bee sans any knowledge of JNF, Cocoa, or Objective C. You might be better off asking reviewers that looked at other recent PRs to remove JNF usage.
However, having looked through [JDK-8257852](https://bugs.openjdk.java.net/browse/JDK-8257852) and from there finding [JDK-8259651](https://bugs.openjdk.java.net/browse/JDK-8259651), I'm wondering why you didn't just replace JNF_COCOA_ENTER/EXIT with the new JNI_COCOA_ENTER/EXIT in this PR also? Is it because they are not in a place that can be accessed from this file?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2304
More information about the build-dev
mailing list