diff --git a/test/hotspot/jtreg/gc/TestFullGCCount.java b/test/hotspot/jtreg/gc/TestFullGCCount.java index 08f8125de83fe..1c178b755dbb0 100644 --- a/test/hotspot/jtreg/gc/TestFullGCCount.java +++ b/test/hotspot/jtreg/gc/TestFullGCCount.java @@ -30,7 +30,7 @@ * @comment Shenandoah has "ExplicitGCInvokesConcurrent" on by default * @requires !(vm.gc == "Shenandoah" & vm.opt.ExplicitGCInvokesConcurrent != false) * @comment G1 has separate counters for STW Full GC and concurrent GC. - * @requires !(vm.gc == "G1" & vm.opt.ExplicitGCInvokesConcurrent) + * @requires !(vm.gc.G1 & vm.opt.ExplicitGCInvokesConcurrent == true) * @requires vm.gc != "Z" * @modules java.management * @run main/othervm -Xlog:gc gc.TestFullGCCount