< prev index next >
test/hotspot/jtreg/serviceability/sa/TestUniverse.java
Print this page
@@ -100,17 +100,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);
@@ -131,10 +137,11 @@
try {
test("-XX:+UseG1GC");
test("-XX:+UseParallelGC");
test("-XX:+UseSerialGC");
test("-XX:+UseConcMarkSweepGC");
+ test("-XX:+UseEpsilonGC");
} catch (Exception e) {
throw new Error("Test failed with " + e);
}
}
}
< prev index next >