< prev index next >

test/gc/g1/TestHumongousAllocNearlyFullRegion.java

Print this page

        

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