< prev index next >

test/hotspot/jtreg/serviceability/sa/TestUniverse.java

Print this page

        

@@ -104,17 +104,23 @@
         if (gc.contains("UseParallelGC")) {
             output.shouldContain("ParallelScavengeHeap");
             output.shouldContain("PSYoungGen");
             output.shouldContain("eden");
         }
-
+        if (gc.contains("UseEpsilonGC")) {
+            output.shouldContain("Epsilon heap");
+            output.shouldContain("reserved");
+            output.shouldContain("committed");
+            output.shouldContain("used");
+        }
     }
 
     public static void test(String gc) throws Exception {
         LingeredApp app = null;
         try {
             List<String> vmArgs = new ArrayList<String>();
+            vmArgs.add("-XX:+UnlockExperimentalVMOptions"); // unlock experimental GCs
             vmArgs.add(gc);
             app = LingeredApp.startApp(vmArgs);
             System.out.println ("Started LingeredApp with the GC option " + gc +
                                 " and pid " + app.getPid());
             testClhsdbForUniverse(app.getPid(), gc);

@@ -137,10 +143,11 @@
             test("-XX:+UseParallelGC");
             test("-XX:+UseSerialGC");
             if (!Compiler.isGraalEnabled()) { // Graal does not support CMS
               test("-XX:+UseConcMarkSweepGC");
             }
+            test("-XX:+UseEpsilonGC");
         } catch (Exception e) {
             throw new Error("Test failed with " + e);
         }
     }
 }
< prev index next >