RFR(XS): 8228367: [lworld] Constant, null-free inline type fields should be treated as flattenable

Tobias Hartmann tobias.hartmann at oracle.com
Mon Jul 22 10:38:59 UTC 2019

On 22.07.19 09:07, forax at univ-mlv.fr wrote:
> for the former, null-free && !flattenable, by definition you don't want to scalarize it,

As you've said "flattenability is a storage property so for value in fields or array
elements, not for value on the stack". The JIT might therefore decide to scalarize these as well.

> but for the later, null-default, i don't see why it should not be scalarized.
> IMO, a null-default inline class acts at runtime as a null-free inline class but with an additional special nullcheck when accessing a field, doing a method call, etc.

Yes, sure but we still need to prototype and thoroughly evaluate this.

Best regards,

More information about the valhalla-dev mailing list