[lworld] RFR: 8354068: [lworld] Fold strict final fields more aggressively

Quan Anh Mai qamai at openjdk.org
Wed Apr 9 06:37:43 UTC 2025


On Tue, 8 Apr 2025 19:17:20 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

> Hi,
> 
> When we do incremental inlining, we need to be more aggressive to ensure that value objects are not unexpectedly materialized. This is done by trying to fold loads from strict final fields in an aggressive manner.
> 
> Please take a look and leave your reviews, thanks a lot.

Note that the objects are still not scalarized due to a bug. When we try to decide if the return will unnecessarily keep the oop of an `InlineTypeNode` alive, we fail to consider the case that some outputs of the oop are memory barriers.

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

PR Comment: https://git.openjdk.org/valhalla/pull/1424#issuecomment-2788456141


More information about the valhalla-dev mailing list