< prev index next >

test/gc/g1/TestGCLogMessages.java

Print this page
rev 7563 : 8067941: [TESTBUG] Fix tests for OS with 64K page size.

*** 102,113 **** output.shouldHaveExitValue(0); } private static void testWithToSpaceExhaustionLogs() throws Exception { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC", ! "-Xmx10M", ! "-Xmn5M", "-XX:+PrintGCDetails", GCTestWithToSpaceExhaustion.class.getName()); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldContain("[Evacuation Failure"); --- 102,113 ---- output.shouldHaveExitValue(0); } private static void testWithToSpaceExhaustionLogs() throws Exception { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC", ! "-Xmx32M", ! "-Xmn16M", "-XX:+PrintGCDetails", GCTestWithToSpaceExhaustion.class.getName()); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldContain("[Evacuation Failure");
*** 115,126 **** output.shouldNotContain("[Remove Self Forwards"); output.shouldNotContain("[Restore RemSet"); output.shouldHaveExitValue(0); pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC", ! "-Xmx10M", ! "-Xmn5M", "-XX:+PrintGCDetails", "-XX:+UnlockExperimentalVMOptions", "-XX:G1LogLevel=finest", GCTestWithToSpaceExhaustion.class.getName()); --- 115,126 ---- output.shouldNotContain("[Remove Self Forwards"); output.shouldNotContain("[Restore RemSet"); output.shouldHaveExitValue(0); pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC", ! "-Xmx32M", ! "-Xmn16M", "-XX:+PrintGCDetails", "-XX:+UnlockExperimentalVMOptions", "-XX:G1LogLevel=finest", GCTestWithToSpaceExhaustion.class.getName());
*** 146,156 **** static class GCTestWithToSpaceExhaustion { private static byte[] garbage; private static byte[] largeObject; public static void main(String [] args) { ! largeObject = new byte[5*1024*1024]; System.out.println("Creating garbage"); // create 128MB of garbage. This should result in at least one GC, // some of them with to-space exhaustion. for (int i = 0; i < 1024; i++) { garbage = new byte[128 * 1024]; --- 146,156 ---- static class GCTestWithToSpaceExhaustion { private static byte[] garbage; private static byte[] largeObject; public static void main(String [] args) { ! largeObject = new byte[16*1024*1024]; System.out.println("Creating garbage"); // create 128MB of garbage. This should result in at least one GC, // some of them with to-space exhaustion. for (int i = 0; i < 1024; i++) { garbage = new byte[128 * 1024];
< prev index next >