git: openjdk/jdk16u: 8258077: Using -Xcheck:jni can lead to a double-free after JDK-8193234

Harold Seigel hseigel at openjdk.java.net
Thu Feb 25 18:06:03 UTC 2021


Changeset: b7b2f61b
Author:    Harold Seigel <hseigel at openjdk.org>
Date:      2021-02-25 18:04:52 +0000
URL:       https://git.openjdk.java.net/jdk16u/commit/b7b2f61b

8258077: Using -Xcheck:jni can lead to a double-free after JDK-8193234
8259446: runtime/jni/checked/TestCheckedReleaseArrayElements.java fails with stderr not empty

Reviewed-by: coleenp
Backport-of: 712014c5956cf74982531d212b03460843e4e5b6

! src/hotspot/share/prims/jniCheck.cpp
+ test/hotspot/jtreg/runtime/jni/checked/TestCheckedReleaseArrayElements.java
+ test/hotspot/jtreg/runtime/jni/checked/TestCheckedReleaseCriticalArray.java
+ test/hotspot/jtreg/runtime/jni/checked/libTestCheckedReleaseArrayElements.c
+ test/hotspot/jtreg/runtime/jni/checked/libTestCheckedReleaseCriticalArray.c



More information about the jdk-updates-changes mailing list