--- 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);
}