[lworld] RFR: 8370195: [lworld] Constant-fold _layout_kind loads from constant FlatArrayKlass
Chen Liang
liach at openjdk.org
Mon Oct 20 04:03:45 UTC 2025
On Sun, 19 Oct 2025 17:13:18 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:
> Hi,
>
> The load to FlatArrayKlass::_layout_kind can be constant-folded if the receiver is a constant. This eliminates all checks when the array type is known statically or speculated correctly.
>
> Please leave your reviews, thanks a lot.
I wonder if the work to constant fold Unsafe.arrayLayout is similar to this - this is currently a bottleneck in core libraries.
-------------
PR Comment: https://git.openjdk.org/valhalla/pull/1687#issuecomment-3420458613
More information about the valhalla-dev
mailing list