JDK-8234544 : ObjectSynchronizer::FastHashCode() cleanups from Async Monitor Deflation project
Type:Sub-task
Component:hotspot
Sub-Component:runtime
Affected Version:14
Priority:P4
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2019-11-21
Updated:2019-12-03
Resolved:2019-11-22
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.
I made a cleanup pass thru ObjectSynchronizer::FastHashCode():
- consistently use 'a hash' or 'the hash' instead of a mix of
'a hash', 'a hash code', 'the hash' or 'the hash code'.
- clarified/fixed comments
- clarify an assert
test/hotspot/jtreg/vmTestbase/gc/hashcode/ExternalHashingTest/ExternalHashingTest.java
is a good test for FastHashCode. I removed my "simple" optimization from this patch
because the test had intermittent failures.