JDK-8317235 : Remove Access API use in nmethod class
Type:Enhancement
Component:hotspot
Sub-Component:compiler
Affected Version:17,21,22
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2023-09-28
Updated:2025-06-24
Resolved:2023-10-03
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.
The Access API is supposed to be only used for access to the Java heap, but some (two) nmethod methods use it to access C heap addresses. Remove with corresponding Atomic uses.
Comments
[jdk17u-fix-request] Approval Request from Daniel Hu
Cleans up incorrect Access API usage in two nmethod methods. Applies cleanly from JDK22 and no bugtail. Passes GHA. Risk is low-medium as minor change that shouldn't impact runtime but does touch hotspot code.
24-06-2025
A pull request was submitted for review.
Branch: master
URL: https://git.openjdk.org/jdk17u-dev/pull/3672
Date: 2025-06-24 17:56:20 +0000
24-06-2025
ix request [21u]
I backport this for parity with 21.0.4-oracle
Low risk. Simple cleanup, already productive in 22.
Clean backport.
SAP nightly testing passed.
03-04-2024
A pull request was submitted for review.
URL: https://git.openjdk.org/jdk21u-dev/pull/431
Date: 2024-04-02 07:22:44 +0000