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

Replace use of JNI_COMMIT mode with mode 0

XMLWordPrintable

      In file:

      ./jdk.crypto.cryptoki/share/native/libj2pkcs11/p11_crypt.c

      the JNI_COMMIT mode is used with ReleasePrimitiveArrayCritical. For strict portability this should be using mode 0 to ensure the underlying array is freed in case it was a copy (hotspot doesn't create a copy so this is an enhancement request not a bug, but mode 0 is more generally correct to use.)

            valeriep Valerie Peng
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: