< prev index next >
test/gc/g1/TestHumongousAllocNearlyFullRegion.java
Print this page
@@ -42,15 +42,15 @@
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
"-XX:+UseG1GC",
"-Xms" + heapSize + "m",
"-Xmx" + heapSize + "m",
"-XX:G1HeapRegionSize=" + heapRegionSize + "m",
- "-XX:+PrintGC",
+ "-Xlog:gc",
HumongousObjectAllocator.class.getName());
OutputAnalyzer output = new OutputAnalyzer(pb.start());
- output.shouldContain("GC pause (G1 Humongous Allocation) (young) (initial-mark)");
+ output.shouldContain("Pause Initial Mark (G1 Humongous Allocation)");
output.shouldHaveExitValue(0);
}
static class HumongousObjectAllocator {
public static void main(String [] args) {
< prev index next >