On Thu, 29 Jan 2026 13:29:38 GMT, Paul Hübner <[email protected]> wrote:

> Hi all,
> 
> Currently, the non-CDS test of 
> `valhalla/valuetypes/SubstitutabilityTest.java` is disabled. This is because 
> it uses `-Xshare:off` which is fundamentally incompatible with some AOT flags 
> that the test is run with.
> 
> In this fix, we introduce a new `@requires` property which denotes if the AOT 
> code cache has been given as a command-line argument. If that is the case, we 
> skip the test. For context, from the failure:
>> Option AOTCache cannot be used at the same time with -Xshare:on, 
>> -Xshare:auto, -Xshare:off, -Xshare:dump, DumpLoadedClassList, 
>> SharedClassListFile, or SharedArchiveFile
> 
> An alternative considered was to use `@requires vm.flagless`. However, there 
> are many configurations, such as different GCs, that we would lose out on. 
> Substitutability plays quite a central concept with value classes, therefore, 
> a new property is perhaps the more suitable approach.
> 
> Testing: the Oracle tiers in which we observed failures, and a smoke-test 
> tier 1 on Linux (x64, AArch64), macOS (x64, AArch64), Windows (x64).

This pull request has now been integrated.

Changeset: 0b03a8f2
Author:    Paul Hübner <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/0b03a8f233ef287e1d3f3303b840782533b873ba
Stats:     12 lines in 2 files changed: 0 ins; 10 del; 2 mod

8374025: [lworld] valhalla/valuetypes/SubstitutabilityTest.java fails due to 
argument clashes

Reviewed-by: rriggs

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

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

Reply via email to