[lworld] Integrated: 8352737: [lworld] Fix TestIntrinsics after VarHandle support cleanup
Marc Chevalier
mchevalier at openjdk.org
Tue Sep 9 13:19:51 UTC 2025
On Tue, 9 Sep 2025 09:14:50 GMT, Marc Chevalier <mchevalier at openjdk.org> wrote:
> This remove bailout in 8 cases in `test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestIntrinsics.java`. This use a new small type that is tiny enough to be safely flattened in any case.
>
> This change also makes sure that both branches in `test_*` are taken by asserting the value of `UseArrayFlattening`/`UseFieldFlattening`. One can check that there is at least one scenario for each case. Just add `Asserts.assertTrue(false);` if you have a doubt. Since each case run in a separate VM, I couldn't find an easy way to count that across scenarii, each branch is taken at least once.
>
> There are still some bailout since `compareAndSetFlatValue` (and exchange one too) require array flattening. See https://github.com/openjdk/valhalla/pull/1549 & [JDK-8365978](https://bugs.openjdk.org/browse/JDK-8365978).
>
> Thanks,
> Marc
This pull request has now been integrated.
Changeset: 45a451a7
Author: Marc Chevalier <mchevalier at openjdk.org>
Committer: Tobias Hartmann <thartmann at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/45a451a73a22e2af2237cbd45bd8140033881737
Stats: 178 lines in 1 file changed: 84 ins; 0 del; 94 mod
8352737: [lworld] Fix TestIntrinsics after VarHandle support cleanup
Reviewed-by: thartmann
-------------
PR: https://git.openjdk.org/valhalla/pull/1555
More information about the valhalla-dev
mailing list