< prev index next >
test/gc/g1/TestPrintRegionRememberedSetInfo.java
Print this page
@@ -55,11 +55,10 @@
String[] defaultArgs = new String[] {
"-XX:+UseG1GC",
"-Xmx10m",
"-XX:+ExplicitGCInvokesConcurrent",
"-XX:+UnlockDiagnosticVMOptions",
- "-XX:+G1PrintRegionLivenessInfo",
"-XX:G1HeapRegionSize=1M",
"-XX:InitiatingHeapOccupancyPercent=0",
};
finalargs.addAll(Arrays.asList(defaultArgs));
@@ -77,17 +76,17 @@
}
public static void main(String[] args) throws Exception {
String result;
- result = runTest("-XX:+G1PrintRegionLivenessInfo");
+ 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("-XX:-G1PrintRegionLivenessInfo");
+ result = runTest("-Xlog:gc+liveness");
if (result.indexOf("remset") != -1) {
throw new RuntimeException("Should find remembered set information in output.");
}
}
}
< prev index next >