JDK-8365976 : G1: Full gc should mark nmethods on stack
Type:Bug
Component:hotspot
Sub-Component:gc
Affected Version:26
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2025-08-22
Updated:2025-08-28
Resolved:2025-08-25
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.
A pull request was submitted for review.
Branch: master
URL: https://git.openjdk.org/jdk/pull/26899
Date: 2025-08-22 10:59:38 +0000
22-08-2025
Due to ordering of these operations, the nmethods end up disarmed after all which is not what we want.
22-08-2025
Actually, G1 full gc already re-arms all nmethods at the end of full gc in G1FullCollector::collect(), calling G1CollectedHeap::finish_codecache_marking_cycle().
So nothing else to do.