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

Alex Menkov amenkov at openjdk.org
Fri Jan 16 00:11:15 UTC 2026


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

>> Inline type is a _concrete_ value class (i.e. InstanceKlass). so for abstract classes `false` is expected.
>
> The terminology is confusing. Are you saying that "inline type" != "value class"? If so, then please explain the difference between the two.

inline type is always value class, but the opposite is not correct (abstract value class is not inlined type)
The idea is any object's type is concrete class.
It's not important here as we check type of the existing object (i.e. we cannot get abstract class)
I updated the fix moving the functionality to ClassTypeImpl (still working on the test update)

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

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


More information about the valhalla-dev mailing list