JDK-8234654 : ZGC: Only disarm NMethods when marking/relocating code roots
Type:Enhancement
Component:hotspot
Sub-Component:gc
Affected Version:14
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2019-11-22
Updated:2019-12-17
Resolved:2019-12-10
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.
ZRootIterator will currently always try to disarm on-stack NMethods. Strictly speaking, we should only do this when marking/relocating code roots, not when e.g. iterating the heap.