[lworld] RFR: 8361166: [lworld] TestG1BarrierGeneration still fails after JDK-8343420
Christian Hagedorn
chagedorn at openjdk.org
Mon Jul 7 07:46:57 UTC 2025
On Fri, 4 Jul 2025 14:40:37 GMT, Damon Fenacci <dfenacci at openjdk.org> wrote:
> The `TestG1BarrierGeneration::testArrayStore` and `TestG1BarrierGeneration::testArrayStoreTwice` tests are failing with `-XX:-TieredCompilation` because the compilation is inserting a `CastPP` node for the input of the `StoreP` node and this is restricting the type of the barrier to `notnull`. The test regex checks for exactly `pre post` (nothing after that) and thus fails.
> This change fixes the test IR rules by restricting the current ones to `-XX:+TieredCompilation` and checking for `pre post notnull` for the `-XX:-TieredCompilation` case.
>
> Tests: Tier 1-3+
Thanks for working on this! Have you found out why the `CastPP` is inserted without tiered compilation but not with tiered compilation? Are we missing some profiling? In the latter case, you could also try to increase the warm-up iterations and see if that works instead.
-------------
PR Comment: https://git.openjdk.org/valhalla/pull/1502#issuecomment-3043834007
More information about the valhalla-dev
mailing list