--- old/test/hotspot/jtreg/gc/TestAgeOutput.java 2019-03-19 17:31:54.356259742 +0800 +++ new/test/hotspot/jtreg/gc/TestAgeOutput.java 2019-03-19 17:31:54.232259742 +0800 @@ -28,7 +28,7 @@ * @bug 8164936 * @summary Check that collectors using age table based aging print an age table even for the first garbage collection * @key gc - * @requires vm.gc=="null" + * @requires vm.gc.Serial & vm.gc.G1 * @modules java.base/jdk.internal.misc * @library /test/lib * @build sun.hotspot.WhiteBox @@ -42,7 +42,7 @@ * @bug 8164936 * @key gc * @comment Graal does not support CMS - * @requires vm.gc=="null" & !vm.graal.enabled + * @requires vm.gc.ConcMarkSweep & !vm.graal.enabled * @modules java.base/jdk.internal.misc * @library /test/lib * @build sun.hotspot.WhiteBox