< prev index next >

test/hotspot/jtreg/gc/logging/TestGCId.java

Print this page
rev 53507 : Fix shared tests to run without Shenandoah

*** 28,50 **** --- 28,56 ---- * @requires vm.gc=="null" * @key gc * @library /test/lib * @modules java.base/jdk.internal.misc * java.management + * @build sun.hotspot.WhiteBox + * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission + * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI TestGCId */ import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.ProcessTools; + import sun.hotspot.gc.GC; public class TestGCId { public static void main(String[] args) throws Exception { testGCId("UseParallelGC"); testGCId("UseG1GC"); testGCId("UseConcMarkSweepGC"); testGCId("UseSerialGC"); + if (GC.Shenandoah.isSupported()) { testGCId("UseShenandoahGC"); } + } private static void verifyContainsGCIDs(OutputAnalyzer output) { output.shouldMatch("\\[.*\\]\\[.*\\]\\[.*\\] GC\\(0\\) "); output.shouldMatch("\\[.*\\]\\[.*\\]\\[.*\\] GC\\(1\\) "); output.shouldHaveExitValue(0);
< prev index next >