[lworld] RFR: 8372075: [lworld] Information about the layout of a TypeAryPtr is only available if it is exact
Tobias Hartmann
thartmann at openjdk.org
Tue Nov 18 14:08:38 UTC 2025
On Tue, 18 Nov 2025 11:19:51 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:
> Hi,
>
> The layout of a flat `TypeAryPtr` can only be obtained if it is exact. This small patch refactors `TypeAryPtr::flat_layout_helper` and similar methods to use `exact_klass()` instead of `klass()`, and add an additional condition for when we can compute `_field_offset` during `TypeAryPtr::add_field_offset_and_offset`. We can then remove the extra condition in `TypeAryPtr::compute_klass`.
>
> Please leave your reviews, thanks a lot.
Nice cleanup. Looks good to me!
-------------
Marked as reviewed by thartmann (Committer).
PR Review: https://git.openjdk.org/valhalla/pull/1744#pullrequestreview-3478023783
More information about the valhalla-dev
mailing list