JDK-8317240 : Promptly free OopMapEntry after fail to insert the entry to OopMapCache
Type:Enhancement
Component:hotspot
Sub-Component:runtime
Affected Version:17,21,22
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2023-09-28
Updated:2024-06-04
Resolved:2023-10-05
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.
In OopMapCache::lookup(), after fail to insert newly created OopMapEntry to the cache, the new entry can be free immediately, because it is not published, not accessible by other thread.
Comments
A pull request was submitted for review.
URL: https://git.openjdk.org/jdk21u-dev/pull/655
Date: 2024-06-03 10:53:10 +0000
03-06-2024
[jdk21u-fix-request] Approval Request from Aleksey Shipilëv
Improves OopMapCache performance, important for JDK-8331572 backport. Applies cleanly. All tests pass. Risk is on lower side: the change is simple, and there is no bug tail since original integration 8 months ago.