equal
deleted
inserted
replaced
44 "-XX:+UseG1GC", |
44 "-XX:+UseG1GC", |
45 "-Xms" + heapSize + "m", |
45 "-Xms" + heapSize + "m", |
46 "-Xmx" + heapSize + "m", |
46 "-Xmx" + heapSize + "m", |
47 "-XX:G1HeapRegionSize=" + heapRegionSize + "m", |
47 "-XX:G1HeapRegionSize=" + heapRegionSize + "m", |
48 "-XX:InitiatingHeapOccupancyPercent=" + initiatingHeapOccupancyPercent, |
48 "-XX:InitiatingHeapOccupancyPercent=" + initiatingHeapOccupancyPercent, |
49 "-XX:+PrintGC", |
49 "-Xlog:gc", |
50 HumongousObjectAllocator.class.getName()); |
50 HumongousObjectAllocator.class.getName()); |
51 |
51 |
52 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
52 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
53 output.shouldContain("GC pause (G1 Humongous Allocation) (young) (initial-mark)"); |
53 output.shouldContain("Pause Initial Mark (G1 Humongous Allocation)"); |
54 output.shouldNotContain("Full GC"); |
54 output.shouldNotContain("Full GC"); |
55 output.shouldHaveExitValue(0); |
55 output.shouldHaveExitValue(0); |
56 } |
56 } |
57 |
57 |
58 static class HumongousObjectAllocator { |
58 static class HumongousObjectAllocator { |