[lworld] RFR: 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: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.

Thanks a lot for your review!

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

PR Comment: https://git.openjdk.org/valhalla/pull/1744#issuecomment-3548877090


More information about the valhalla-dev mailing list