< prev index next >
test/gc/g1/TestHumongousAllocInitialMark.java
Print this page
*** 44,58 ****
"-XX:+UseG1GC",
"-Xms" + heapSize + "m",
"-Xmx" + heapSize + "m",
"-XX:G1HeapRegionSize=" + heapRegionSize + "m",
"-XX:InitiatingHeapOccupancyPercent=" + initiatingHeapOccupancyPercent,
! "-XX:+PrintGC",
HumongousObjectAllocator.class.getName());
OutputAnalyzer output = new OutputAnalyzer(pb.start());
! output.shouldContain("GC pause (G1 Humongous Allocation) (young) (initial-mark)");
output.shouldNotContain("Full GC");
output.shouldHaveExitValue(0);
}
static class HumongousObjectAllocator {
--- 44,58 ----
"-XX:+UseG1GC",
"-Xms" + heapSize + "m",
"-Xmx" + heapSize + "m",
"-XX:G1HeapRegionSize=" + heapRegionSize + "m",
"-XX:InitiatingHeapOccupancyPercent=" + initiatingHeapOccupancyPercent,
! "-Xlog:gc",
HumongousObjectAllocator.class.getName());
OutputAnalyzer output = new OutputAnalyzer(pb.start());
! output.shouldContain("Pause Initial Mark (G1 Humongous Allocation)");
output.shouldNotContain("Full GC");
output.shouldHaveExitValue(0);
}
static class HumongousObjectAllocator {
< prev index next >