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.

To download the current JDK release, click here.
JDK 14
14 b25Fixed
Description
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
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/80e1201f6c9a User: dcubed Date: 2019-11-22 14:07:56 +0000
22-11-2019

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.
21-11-2019