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

Replace use of JNI_COMMIT mode with mode 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 7, 8, 11, 17, 19, 20, 21
    • client-libs
    • b06
    • os_x

      In files:

      src/java.desktop/macosx/native/libawt_lwawt/awt/CClipboard.m
      src/java.desktop/macosx/native/libawt_lwawt/awt/CDropTarget.m

      the JNI_COMMIT mode is used with ReleaseLongArrayElements / ReleaseByteArrayElements. This mode does not release memory allocated by the corresponding GetXXXArrayElements functions and creates a memory leak. This code should be using mode 0 to ensure the underlying array is freed.

            djelinski Daniel Jelinski
            djelinski Daniel Jelinski
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: