RFR: 8267846: [lworld] JIT support for the L/Q model (step 1) [v2]

Frederic Parain fparain at openjdk.java.net
Mon May 31 14:13:31 UTC 2021


On Mon, 31 May 2021 06:29:25 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

>> src/hotspot/share/c1/c1_Instruction.cpp line 142:
>> 
>>> 140:     if (type != NULL) {
>>> 141:       if (type->is_obj_array_klass() && !type->as_obj_array_klass()->is_elem_null_free()) {
>>> 142:         // The runtime type of [LMyValue might be [QMyValue due to [QMyValue <: [LMyValue.
>> 
>> if type->is_obj_array_klass() is true and type->as_obj_array_klass()->is_elem_null_free() is also true, the method returns false, is it the expected behavior?
>
> Yes, because in that case we have a null-free but non-flattened array. Right?

Correct. Got it.

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

PR: https://git.openjdk.java.net/valhalla/pull/431


More information about the valhalla-dev mailing list