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

Chris Plummer cjplummer at openjdk.org
Thu Jan 15 02:25:49 UTC 2026


On Wed, 14 Jan 2026 22:39:34 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

>> We didn't do similar for Loom related APIs. I looked through the current canXXX list, and they all seem related to JVMTI capabilities, which don't apply to these two APIs. I think the expectation should be that the user checks the JDWP version to determine if it is implemented.
>
> I see now how the "versioning" works.
> I added `boolean VirtualMachineImpl.canUseIsSameObject()` to check if IsSameObject/ObjectHashCode are available

Can you explain your "versioning" comment. My point was that by using versioning you should not need VirtualMachine.canUseIsSameObject

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

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


More information about the valhalla-dev mailing list