<AWT Dev> RFR: 8259869: [macOS] Remove desktop module dependencies on JNF Reference APIs
Phil Race
prr at openjdk.java.net
Mon Jan 18 16:13:54 UTC 2021
This removes desktop module usage of the JNF JNI reference convenience APIs
These are simply a direct conversion
JNFNewGlobalRef
JNFDeleteGlobalRef
JNFNewWeakGlobalRef
JNFDeleteWeakGlobalRef
These two
JNFJObjectWrapper
JNFWeakJObjectWrapper
exist to allow clean up of the refs when a Cocoa wrapper object is released.
However in all cases there are more direct ways to clean it up and in at least one usage
the existing code directly releases it with the comment that this is more efficient.
All our automated regression and JCK tests pass with this change.
-------------
Commit messages:
- 8259869: [macOS] Remove desktop module dependencies on JNF Reference APIs
Changes: https://git.openjdk.java.net/jdk/pull/2133/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2133&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8259869
Stats: 153 lines in 21 files changed: 19 ins; 7 del; 127 mod
Patch: https://git.openjdk.java.net/jdk/pull/2133.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/2133/head:pull/2133
PR: https://git.openjdk.java.net/jdk/pull/2133
More information about the awt-dev
mailing list