[lworld] RFR: 8376135: [lworld] Add JIT support for NULLABLE_NON_ATOMIC_FLAT layout [v4]

Tobias Hartmann thartmann at openjdk.org
Fri Jan 30 07:54:04 UTC 2026


On Thu, 29 Jan 2026 18:54:55 GMT, Frederic Parain <fparain at openjdk.org> wrote:

>> Quan Anh Mai has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   remove unused variable
>
> src/hotspot/share/ci/ciInlineKlass.cpp line 161:
> 
>> 159:   VM_ENTRY_MARK
>> 160:   InlineKlass* vk = get_InlineKlass();
>> 161:   oop null_reset_value = vk->null_reset_value();
> 
> The null_reset_value instance is allocated at class initialization time. This means that  there's a time window, between the moment the class is loaded and the moment where it is initialized, where the null_reset_value is not available yet. During this time interval, null_reset_value() returns null.
> Do we have the guarantee that ciInlineKlass::get_null_reset_value() is always called on an initialized class, or should the case of the missing null_reset_value be handled here?

I think it's checked in c1_GraphBuilder.cpp line 2119. This limitation is tracked by [JDK-8376254](https://bugs.openjdk.org/browse/JDK-8376254) but an assert/guarantee wouldn't hurt.

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

PR Review Comment: https://git.openjdk.org/valhalla/pull/1970#discussion_r2745068864


More information about the valhalla-dev mailing list