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

Serguei Spitsyn sspitsyn at openjdk.org
Wed Jan 14 00:50:05 UTC 2026


On Thu, 18 Dec 2025 20:00:45 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> Updated implementation of ObjectReference.equals and ObjectReference.hashCode to comply the spec for value objects.
> Added the test for value object ctor debugging, the test verifies the behaviour is expected.
> There is an issue with instance filter, it till be fixed separately (it's not yet clear how it would be better to fix it)
> 
> testing: tier1..4, hs-tier5-svc

test/jdk/com/sun/jdi/valhalla/CtorDebuggingTest.java line 218:

> 216: 
> 217:     // TestScaffold is not very good in handling multiple breakpoints.
> 218:     // This halper class is a listener which resumes debuggee after breakpoints.

Nit: Typo: s/halper/helper/

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

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


More information about the valhalla-dev mailing list