[lworld] RFR: 8373202: [lworld] ObjectReference.equals should follow == semantics for value objects
Serguei Spitsyn
sspitsyn at openjdk.org
Wed Jan 14 08:56:54 UTC 2026
On Wed, 14 Jan 2026 04:34:02 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:
> Why is this called isInlined()? Shouldn't it be isValueClass()?
I had the same question. The `isInlined()` matches the obsolete approach. The `isValueClass()` looks better.
> Do we want to expose it to users through ReferenceType?
This is not clear yet. If the JDI implementation needed it then there are some chances debuggers may need it as well. We have some time to decide. Preview allows to change the API spec in the future.
> Should we also consider exposing a new isIdentity() API?
Not clear as well.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1834#discussion_r2689538582
More information about the valhalla-dev
mailing list