[lworld] RFR: 8378273: [lworld] Use acmp map to detect oops for VarHandle [v3]
Chen Liang
liach at openjdk.org
Sun Feb 22 05:41:40 UTC 2026
On Fri, 20 Feb 2026 21:42:30 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Refactors per comment
>
> src/java.base/share/classes/jdk/internal/value/ValueClass.java line 58:
>
>> 56:
>> 57: /// {@return whether the flat layout for fields of this type contains references}
>> 58: /// Returns true if there is no flat layout for fields of the given type.
>
> Confirming, will return true for an identityClass with only primitive fields?
> The `hasOops` name might need to be more descriptive of the cases for an arbitrary class.
No, if there's a field of an identityClass type in another class, that field is always laid out as a reference.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/2143#discussion_r2837165437
More information about the valhalla-dev
mailing list