[lworld] Integrated: 8372075: [lworld] Information about the layout of a TypeAryPtr is only available if it is exact
Quan Anh Mai
qamai at openjdk.org
Tue Nov 18 17:57:40 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.
This pull request has now been integrated.
Changeset: 3e9e67f5
Author: Quan Anh Mai <qamai at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/3e9e67f59f3cd9c3f3bb5e870f7f64dd8453a75c
Stats: 12 lines in 1 file changed: 0 ins; 7 del; 5 mod
8372075: [lworld] Information about the layout of a TypeAryPtr is only available if it is exact
Reviewed-by: thartmann
-------------
PR: https://git.openjdk.org/valhalla/pull/1744
More information about the valhalla-dev
mailing list