JDK-8189633 : Missing -Xcheck:jni checking for DeleteWeakGlobalRef
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 10,11,14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2017-10-18
  • Updated: 2020-06-01
  • Resolved: 2019-08-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14
11.0.7Fixed 13.0.4Fixed 14 b12Fixed
Description
checked_jni_DeleteWeakGlobalRef just calls the unchecked version, unlike the checked versions of DeleteGlobalRef and DeleteLocalRef, which do some verification of the argument handle.  The weak case should be handled similarly.

Comments
Fix request (13u): The original patch applies cleanly, tested with tier1 (with and without -Xcheck:jni)
26-05-2020

Fix Request (11u) I would like to backport this to 11u, to have more validation for JNI code. Patch applies cleanly to 11u, passes tier1, tier2, tier3 suites, all with and without -Xcheck:jni (there some unrelated failures addressed by other backports).
20-01-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/58891103f9cc User: kbarrett Date: 2019-08-21 23:48:33 +0000
21-08-2019