comparison test/gc/g1/TestGCLogMessages.java @ 20236:6e1f418b39c3

8038928: gc/g1/TestGCLogMessages.java fail with "[Evacuation Failure' Reviewed-by: ysr, brutisso, tschatzl
author jmasa
date Sun, 11 May 2014 16:35:43 -0700
parents 570cb6369f17
children a3953c777565
comparison
equal deleted inserted replaced
20235:80dd07540dde 20236:6e1f418b39c3
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 /* 24 /*
25 * @test TestPrintGCDetails 25 * @test TestGCLogMessages
26 * @bug 8035406 8027295 8035398 8019342 26 * @bug 8035406 8027295 8035398 8019342
27 * @summary Ensure that the PrintGCDetails output for a minor GC with G1 27 * @summary Ensure that the PrintGCDetails output for a minor GC with G1
28 * includes the expected necessary messages. 28 * includes the expected necessary messages.
29 * @key gc 29 * @key gc
30 * @library /testlibrary 30 * @library /testlibrary
88 output.shouldContain("[Redirtied Cards"); 88 output.shouldContain("[Redirtied Cards");
89 output.shouldContain("[Code Root Purge"); 89 output.shouldContain("[Code Root Purge");
90 output.shouldContain("[String Dedup Fixup"); 90 output.shouldContain("[String Dedup Fixup");
91 output.shouldContain("[Young Free CSet"); 91 output.shouldContain("[Young Free CSet");
92 output.shouldContain("[Non-Young Free CSet"); 92 output.shouldContain("[Non-Young Free CSet");
93
94 // also check evacuation failure messages once
95 output.shouldNotContain("[Evacuation Failure");
96 output.shouldNotContain("[Recalculate Used");
97 output.shouldNotContain("[Remove Self Forwards");
98 output.shouldNotContain("[Restore RemSet");
99 output.shouldHaveExitValue(0); 93 output.shouldHaveExitValue(0);
100 } 94 }
101 95
102 private static void testWithToSpaceExhaustionLogs() throws Exception { 96 private static void testWithToSpaceExhaustionLogs() throws Exception {
103 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC", 97 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",