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

Alex Menkov amenkov at openjdk.org
Thu Jan 15 20:28:25 UTC 2026


On Thu, 15 Jan 2026 02:21:20 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> value class can be abstract.
>
> So if you have a value class, the IDENTITY bit will not be set, but if the ABSTRCT bit is also set, the above logic produces false, even though it is value class and you want it to produce true.

Inline type is a _concrete_ value class (i.e. InstanceKlass). so for abstract classes `false` is expected.

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

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


More information about the valhalla-dev mailing list