-
Enhancement
-
Resolution: Fixed
-
P4
-
17
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.)
./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.)
- is cloned by
-
JDK-8300024 Replace use of JNI_COMMIT mode with mode 0
-
- Resolved
-
- relates to
-
JDK-8258185 [JNI] Clarify the specification in relation to portable use of APIs that involve the Primitive Array Release Modes
-
- Resolved
-