RFR: 8269129: Multiple tier1 tests in hotspot/jtreg/compiler are failing for client VMs

Vladimir Kozlov kvn at openjdk.java.net
Fri Jun 25 18:59:00 UTC 2021


On Fri, 25 Jun 2021 05:35:26 GMT, Igor Veresov <iveresov at openjdk.org> wrote:

>> Originally, the test case included 3 `@run`s, one without any arguments, the second with `-Xcomp` and the third with `-XX:-SuperWordLoopUnrollAnalysis`. Since the third one is C2 specific, I split up the test case into two separated `@test` segments.
>> The first one, without any `@requires` includes the first two `@run`s, which are always valid. The second `@test` includes the `@run` with the C2 specific flag and has an `@requires vm.compiler2.enabled`.
>
> Does jtreg really support that?

Yes, jtreg supports it. We have already such cases:
https://github.com/openjdk/jdk/blob/master/test/hotspot/jtreg/compiler/c1/CanonicalizeGetModifiers.java
Jtreg will execute them as separate tests with `#id0` and `#id1` suffixes to test name.

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

PR: https://git.openjdk.java.net/jdk/pull/4556


More information about the hotspot-compiler-dev mailing list