[lworld] RFR: 8373202: [lworld] ObjectReference.equals should follow == semantics for value objects
Chris Plummer
cjplummer at openjdk.org
Wed Jan 14 04:47:23 UTC 2026
On Thu, 18 Dec 2025 20:41:02 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
>> src/jdk.jdwp.agent/share/native/libjdwp/ObjectReferenceImpl.c line 410:
>>
>>> 408:
>>> 409: ref = commonRef_idToRef(env, id);
>>> 410: (void)outStream_writeInt(out, objectHashCode(ref));
>>
>> Interesting that the debug agent already has an objectHashCode() but there were no users of it.
>
> `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()`.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1834#discussion_r2688908775
More information about the valhalla-dev
mailing list