JDK-8299089 : Instrument global jni handles with tag to make them distinguishable
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-12-20
  • Updated: 2024-09-19
  • Resolved: 2023-01-18
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 21
21 b06Fixed
Related Reports
Relates :  
Relates :  
Description
Weak global jni handles are tagged so the GC can distinguish them when resolving the object. Today there is no cheap way of distinguishing global jni handles from local jni handles. For generational ZGC the OopStorage handles and the thread local handles semantical difference requires the handles to be distinguishable. 

This enhancements instruments the jni handles with a global tag similarly to the jweak tag. 
Comments
Changeset: c7056737 Author: Axel Boldt-Christmas <aboldtch@openjdk.org> Date: 2023-01-18 09:21:08 +0000 URL: https://git.openjdk.org/jdk/commit/c7056737e33d3d5a6ec24639d46b9e3e7a8da01a
18-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11740 Date: 2022-12-20 11:44:33 +0000
20-12-2022