equal
deleted
inserted
replaced
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", |