When computing System.identityHashCode for value objects, the hashCode of embedded references should use System.identityHashCode.
This allows the identity hashcode to be constant (not recursive) and allow caching of the identity hashcode.
This allows the identity hashcode to be constant (not recursive) and allow caching of the identity hashcode.
- blocks
-
JDK-8376171 [lworld] Enable storing the hash code in the mark word of value objects
-
- Resolved
-
- links to
-
Commit(lworld)
openjdk/valhalla/1a4e9688
-
Review(lworld)
openjdk/valhalla/1987