[lworld] Integrated: 8357461: [lworld] TestFlatInArraysFolding.java fails with UseNullableValueFlattening enabled by default

Tobias Hartmann thartmann at openjdk.org
Wed May 21 12:45:10 UTC 2025


On Wed, 21 May 2025 12:34:21 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> The test expects folding of `arrayElement == oArr` in the flat array array loop version which does not happen anymore when the flat array element can be null with `-XX:+UseNullableValueFlattening` (because `oArr` can be null as well). I adjusted the test so that C2 can deduce that `oArr` is never null and can therefore fold the check.
> 
> Thanks,
> Tobias

This pull request has now been integrated.

Changeset: 8580a4ee
Author:    Tobias Hartmann <thartmann at openjdk.org>
URL:       https://git.openjdk.org/valhalla/commit/8580a4eea6d533512b1e5d6e115c03fc0fcc773a
Stats:     7 lines in 1 file changed: 6 ins; 0 del; 1 mod

8357461: [lworld] TestFlatInArraysFolding.java fails with UseNullableValueFlattening enabled by default

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

PR: https://git.openjdk.org/valhalla/pull/1469


More information about the valhalla-dev mailing list