-
Bug
-
Resolution: Unresolved
-
P3
-
None
-
26
This is a re-do of JDK-8357601 . The original fix had a problem with the use of SafeFetch32
The checked version of Get/Release<type>ArrayElements uses GuardedMemory to perform error checking. When releasing the array the code needs to check for the known array tags from the other JNI APIs and report an error.
We also expand GuardedMemory to allow for a second tag word so that we can discriminate additional allocation sites i.e. identifying use of Get/SetPrimitiveArrayCritical.
The checked version of Get/Release<type>ArrayElements uses GuardedMemory to perform error checking. When releasing the array the code needs to check for the known array tags from the other JNI APIs and report an error.
We also expand GuardedMemory to allow for a second tag word so that we can discriminate additional allocation sites i.e. identifying use of Get/SetPrimitiveArrayCritical.
- relates to
-
JDK-8357601 Checked version of JNI Release<type>ArrayElements needs to filter out known wrapped arrays
-
- Closed
-