[lworld] RFR: 8373202: [lworld] ObjectReference.equals should follow == semantics for value objects
Chris Plummer
cjplummer at openjdk.org
Thu Jan 15 20:32:05 UTC 2026
On Thu, 15 Jan 2026 20:25:14 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
>> 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.
The terminology is confusing. Are you saying that "inline type" != "value class"? If so, then please explain the difference between the two.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1834#discussion_r2695853914
More information about the valhalla-dev
mailing list