[lworld] RFR: 8311219: [lworld] VM option "InlineFieldMaxFlatSize" cannot work well [v2]

Jatin Bhateja jbhateja at openjdk.org
Thu Aug 17 05:18:47 UTC 2023


On Thu, 17 Aug 2023 01:51:08 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:

> > Just going slightly off the topic, in context of Vector APIs (lworld+vector) all the payloads are final primitive class fields and will always be flattened in their respective boxes.
> 
> Sorry for my late reply! And yes, the payloads in Vector APIs are always be flattened for current vector size. What my concern is the larger vector size like in Arm SVE after we support the SPECIES_MAX vectors, and the expected behavior/difference if people set a smaller max flat size with `InlineFieldMaxFlatSize`.
> 
> Thanks, Xiaohong

That's correct!, my above comment was in context of existing handling where final fields of [null-restricted value types](https://openjdk.org/jeps/401) are always flattened irrespective of InlineFieldMaxFlatSize.  Are you inclined to re-instantiate the old behavior ?

Best Regards,
Jatin

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

PR Comment: https://git.openjdk.org/valhalla/pull/888#issuecomment-1681627002



More information about the valhalla-dev mailing list