JDK-8224115 : Shenandoah: Eliminate RWLock that protects recorded nmethod data array
Type:Enhancement
Component:hotspot
Sub-Component:gc
Affected Version:11-shenandoah,13
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2019-05-17
Updated:2020-03-17
Resolved:2019-05-24
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.
add_nmethod() and remove_nmethod() are the methods that modify the array, but already have CodeCache_lock held. Therefore, additional RWLock is unnecessary.
Comments
It does not apply to Shenandoah 8u, cause it can not hold CodeCache_lock (rank special) while entering a safepoint.