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

Chris Plummer cjplummer at openjdk.org
Thu Jan 15 04:46:04 UTC 2026


On Thu, 15 Jan 2026 02:33:23 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

>> Can you explain your "versioning" comment. My point was that by using versioning you should not need VirtualMachine.canUseIsSameObject
>
>> Can you explain your "versioning" comment. My point was that by using versioning you should not need VirtualMachine.canUseIsSameObject
> 
> `VirtualMachineImpl.canUseIsSameObject()` checks that JDWP version >= 27 (similar to 
> `VirtualMachineImpl.mayCreateVirtualThreads()` which checks that version >= 19 and some other VirtualMachineImpl methods)

Ok, but those are private APIs. My point is that there is no need for a public canUseIsSameObject().

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

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


More information about the valhalla-dev mailing list