[lworld] RFR: 8373202: [lworld] ObjectReference.equals should follow == semantics for value objects

Alex Menkov amenkov at openjdk.org
Thu Jan 15 00:32:10 UTC 2026


On Wed, 14 Jan 2026 04:36:54 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> `ObjectReferenceImpl.hashCode()` calculates it by itself from objectID (it should call objectHashCode)
>
> I'm not sure what you are referring to here. I don't see `ObjectReferenceImpl.hashCode()`.

`hashCode()` is right after `ObjectReferenceImpl.equals()` (ObjectReferenceImpl.java line 168)

-------------

PR Review Comment: https://git.openjdk.org/valhalla/pull/1834#discussion_r2692520380


More information about the valhalla-dev mailing list