[lworld] RFR: 8366668: [lworld] Follow-up work from the array metadata re-work
Tobias Hartmann
thartmann at openjdk.org
Tue Oct 21 15:05:35 UTC 2025
On Mon, 13 Oct 2025 13:40:02 GMT, Frederic Parain <fparain at openjdk.org> wrote:
>> This is a follow-up from [JDK-8366705](https://bugs.openjdk.org/browse/JDK-8366705) resolving a large number of ToDos in the implementation and tests.
>>
>> There are a few remaining ToDos that I'll address with [JDK-8370341](https://bugs.openjdk.org/browse/JDK-8370341) because this change is getting too large and is blocking other work.
>>
>> Best regards,
>> Tobias
>
> src/hotspot/share/oops/objArrayKlass.cpp line 391:
>
>> 389: // C2 relies on this for a fast lookup (see LibraryCallKit::load_default_refined_array_klass).
>> 390: if (ak == nullptr) {
>> 391: klass_with_properties(ArrayKlass::ArrayProperties::DEFAULT, THREAD);
>
> This call modifies the next_refined_array_klass pointer, which makes test on line 395 operating on an obsolete value. Not a semantic issue considering the case being handled, but not a good coding practice.
> Could you move this code inside the block where the MultiArray_lock is already owned?
Thanks for the review Fred! I pushed an updated version, please let me know what you think.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1672#discussion_r2428253662
More information about the valhalla-dev
mailing list