[lworld] RFR: 8375306: [lworld] Investigate alternatives to flatArrayOopDesc::obj_at implementation [v2]
Frederic Parain
fparain at openjdk.org
Mon Feb 9 22:03:31 UTC 2026
On Fri, 6 Feb 2026 19:51:51 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> src/hotspot/share/memory/oopFactory.cpp line 123:
>>
>>> 121: refArrayOop oopFactory::new_refArray(Klass* klass, int length, ArrayKlass::ArrayProperties properties, TRAPS) {
>>> 122: ArrayKlass* array_type = klass->array_klass(CHECK_NULL);
>>> 123: ObjArrayKlass* oak = ObjArrayKlass::cast(array_type)->klass_with_properties(properties, true, CHECK_NULL);
>>
>> I'm having trouble understanding this "force_refarray" parameter.
>
> Stefan's suggestion is nice, and a lot clearer to me.
Factory methods have been updated without the "force_refarray" parameter.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/2033#discussion_r2784207171
More information about the valhalla-dev
mailing list