RFR: 8355512: Test compiler/vectorization/TestVectorZeroCount.java times out with -XX:TieredStopAtLevel=3

Emanuel Peter epeter at openjdk.org
Mon May 19 06:50:59 UTC 2025


On Mon, 19 May 2025 04:57:53 GMT, Jasmine Karthikeyan <jkarthikeyan at openjdk.org> wrote:

>> @jaskarth @chhagedorn Hmm, this means that this test could not be run with GraalVM, for example. That's a shame.
>> Do we not have some way to assert that there should be "some fast compiler"? Ah, what does `vm.flavor == "server"` do? Because I have seen lines like `vm.flavor == "server" & !vm.graal.enabled` before.
>
> @eme64 I think `vm.flavor == "server"` ensures that the test runs on server-class VMs, but I wasn't sure if manually setting the `TieredStopAtLevel` changes that designation. I looked at some more tests and I saw that they were using `@requires vm.flavor == "server" & (vm.opt.TieredStopAtLevel == null | vm.opt.TieredStopAtLevel == 4)`, which looks like a good way to check for any tier4 compiler. I've updated the patch to use that method instead, which should let it run on graal as well.

@jaskarth Thanks for doing the research on this, nice to see that there is a solution :)

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

PR Comment: https://git.openjdk.org/jdk/pull/25243#issuecomment-2889815708


More information about the hotspot-compiler-dev mailing list