On Fri, 22 May 2026 17:17:23 GMT, Frederic Parain <[email protected]> wrote:

>> I was hoping the klasses were cached somewhere but I forgot about that 
>> array. Thanks for pointing it out!
>
> null-restricted fields are not in the _inline_layout_info_array, but they 
> should be rarer (@NullRestricted is not an officially supported annotation). 
> We don't know yet what the future of null-restricted field will look like, so 
> I would not add them to the _inline_layout_info-array for now.

Update: fields marked as null-restricted at CDS dump time are in fact in the 
`_inline_layout_info_array` because the class file parser fills the array with 
all known inline classes, and the @NullRestricted annotation is kept only for 
known value classes.

-------------

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2464#discussion_r3290447808

Reply via email to