Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8259869

[macOS] Remove desktop module dependencies on JNF Reference APIs

    XMLWordPrintable

Details

    • b07

    Backports

      Description

        JNF has a number of APIs that deal with JNI References :

        These : which add no value to the direct JNI call and can be directly replaced
        JNFNewGlobalRef
        JNFDeleteGlobalRef
        JNFNewWeakGlobalRef
        JNFDeleteWeakGlobalRef

        And these which just require a bit of extra handling because they create Cocoa class instances that will ensure the Java Refs are cleared when the carrier object is freed.
        JNFJObjectWrapper
        JNFWeakJObjectWrapper

        There seem to be simpler ways to free all the cases we have.

        Attachments

          Issue Links

            Activity

              People

                prr Philip Race
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: