[lworld] RFR: 8378273: [lworld] Use acmp map to detect oops for VarHandle [v3]
Chen Liang
liach at openjdk.org
Mon Feb 23 13:52:18 UTC 2026
On Mon, 23 Feb 2026 08:44:58 GMT, Paul Hübner <phubner at openjdk.org> wrote:
>> No, if there's a field of an identityClass type in another class, that field is always laid out as a reference.
>
> There might be an opportunity to strengthen the language even more:
>
> {@return whether the flat layout for fields of this type contains references}
> /// Returns true if there is no flat layout for fields of the given type.
>
> -->
>
> {@return whether fields of the given class, when using a flat layout, contain oops}
> /// Returns true if the given class there is no flat layout.
>
> A possible more descriptive name of the method could be `flatFieldHasOops`.
This code is outdated. I revised the APIs to return true to indicate all-primitive buffer. Please review the latest code, thanks.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/2143#discussion_r2840968519
More information about the valhalla-dev
mailing list