JDK-8372751 : [TESTBUG] @requires vm.gc == "ZGC" doesn't work
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2025-11-28
  • Updated: 2025-12-01
  • Resolved: 2025-12-01
Related Reports
Causes :  
Duplicate :  
Description
JDK-8371146 added requires statements which don't work.
The respective subtests fail with the following error when ZGC is excluded in the build:
Error occurred during initialization of VM
Option -XX:+UseZGC not supported

Reproduction:
configure option --disable-jvm-feature-zgc
make run-test TEST=test/hotspot/jtreg/compiler/loopopts/superword/TestAliasingCheckPreLimitNotAvailable.java

Comments
This is duplicate of JDK-8372685.
01-12-2025