On Sat, 10 Jan 2026 11:46:30 GMT, Quan Anh Mai <[email protected]> wrote:

>> Strict final instance fields are not subject to concurrent writes during a 
>> read access, so they can be flattened even if they are nullable and bigger 
>> than 64 bits. The NULLABLE_NON_ATOMIC_FLAT layout is added for this 
>> particular case.
>> This new layout can also be used in the special case of nullable empty value 
>> classes, because their payload contains a single entry, the null-marker, 
>> which is naturally atomic.
>
> I assume this PR is for flattening of nullable fields at immutable memory 
> (strict final fields) only. But I think the same flattening can be done for 
> null-free field, right?

Thanks @merykitty @coleenp for your comments and reviews.

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

PR Comment: https://git.openjdk.org/valhalla/pull/1407#issuecomment-3784346564

Reply via email to