On Mon, 23 Feb 2026 08:44:58 GMT, Paul Hübner <[email protected]> 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