Make TestUniverse test Epsilon too epsilon-gc-branch
authorshade
Tue, 05 Jun 2018 17:23:17 +0200
branchepsilon-gc-branch
changeset 56671 c559de946c7d
parent 56670 f26c4a196a15
child 56675 483d23cdc9e5
Make TestUniverse test Epsilon too
test/hotspot/jtreg/serviceability/sa/TestUniverse.java
--- a/test/hotspot/jtreg/serviceability/sa/TestUniverse.java	Tue Jun 05 17:22:42 2018 +0200
+++ b/test/hotspot/jtreg/serviceability/sa/TestUniverse.java	Tue Jun 05 17:23:17 2018 +0200
@@ -102,13 +102,19 @@
             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 +
@@ -133,6 +139,7 @@
             test("-XX:+UseParallelGC");
             test("-XX:+UseSerialGC");
             test("-XX:+UseConcMarkSweepGC");
+            test("-XX:+UseEpsilonGC");
         } catch (Exception e) {
             throw new Error("Test failed with " + e);
         }