< prev index next >
test/gc/g1/TestPrintRegionRememberedSetInfo.java
Print this page
*** 55,65 ****
String[] defaultArgs = new String[] {
"-XX:+UseG1GC",
"-Xmx10m",
"-XX:+ExplicitGCInvokesConcurrent",
"-XX:+UnlockDiagnosticVMOptions",
- "-XX:+G1PrintRegionLivenessInfo",
"-XX:G1HeapRegionSize=1M",
"-XX:InitiatingHeapOccupancyPercent=0",
};
finalargs.addAll(Arrays.asList(defaultArgs));
--- 55,64 ----
*** 77,93 ****
}
public static void main(String[] args) throws Exception {
String result;
! result = runTest("-XX:+G1PrintRegionLivenessInfo");
// check that we got region statistics output
if (result.indexOf("PHASE") == -1) {
throw new RuntimeException("Unexpected output from -XX:+PrintRegionLivenessInfo found.");
}
! result = runTest("-XX:-G1PrintRegionLivenessInfo");
if (result.indexOf("remset") != -1) {
throw new RuntimeException("Should find remembered set information in output.");
}
}
}
--- 76,92 ----
}
public static void main(String[] args) throws Exception {
String result;
! result = runTest("-Xlog:gc+liveness=trace");
// check that we got region statistics output
if (result.indexOf("PHASE") == -1) {
throw new RuntimeException("Unexpected output from -XX:+PrintRegionLivenessInfo found.");
}
! result = runTest("-Xlog:gc+liveness");
if (result.indexOf("remset") != -1) {
throw new RuntimeException("Should find remembered set information in output.");
}
}
}
< prev index next >