Integrated: 8372685: C2 SuperWord: wrong requires in test after JDK-8371146
Emanuel Peter
epeter at openjdk.org
Mon Dec 1 06:45:07 UTC 2025
On Thu, 27 Nov 2025 13:53:12 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
> @MBaesken Reported this issue on windows:
>
> TestAliasingCheckPreLimitNotAvailable_all-flags-fixed-stress-seed.jtr and TestAliasingCheckPreLimitNotAvailable_all-flags-no-stress-seed.jtr show failures on WIndows :
>
> [0.095s][error][gc] Failed to lookup symbol: VirtualAlloc2
> Error occurred during initialization of VM
> ZGC requires Windows version 1803 or later
>
> AIX fails too :
> Error occurred during initialization of VM
> Option -XX:+UseZGC not supported
>
>
> I learned a small lesson here: `@requires vm.gc.Z` is much smarter than checking that no other GC is set, or ZGC is set. It also checks if ZGC is available, which is not always the case, e.g. on the reported Windows machne.
>
> @MBaesken Can you please confirm that this fixes the test for you?
This pull request has now been integrated.
Changeset: 81b26ba8
Author: Emanuel Peter <epeter at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/81b26ba8131b74a7bb4309bd3608dda2ba99a6ca
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
8372685: C2 SuperWord: wrong requires in test after JDK-8371146
Reviewed-by: chagedorn, mbaesken
-------------
PR: https://git.openjdk.org/jdk/pull/28537
More information about the hotspot-compiler-dev
mailing list