--- old/test/hotspot/jtreg/gc/TestGenerationPerfCounter.java 2019-03-19 17:31:54.668259742 +0800 +++ new/test/hotspot/jtreg/gc/TestGenerationPerfCounter.java 2019-03-19 17:31:54.564259742 +0800 @@ -29,7 +29,7 @@ /* @test TestGenerationPerfCounter * @bug 8080345 - * @requires vm.gc=="null" + * @requires vm.gc.Serial & vm.gc.Parallel & vm.gc.G1 * @library /test/lib / * @summary Tests that the sun.gc.policy.generations returns 2 for all GCs. * @modules java.base/jdk.internal.misc @@ -44,7 +44,7 @@ /* @test TestGenerationPerfCounterCMS * @bug 8080345 * @comment Graal does not support CMS - * @requires vm.gc=="null" & !vm.graal.enabled + * @requires vm.gc.ConcMarkSweep & !vm.graal.enabled * @library /test/lib / * @summary Tests that the sun.gc.policy.generations returns 2 for all GCs. * @modules java.base/jdk.internal.misc