test/gc/g1/TestGCLogMessages.java

changeset 6405
a07bea31ef35
parent 6404
96b1c2e06e25
child 6406
eff02b5bd56c
equal deleted inserted replaced
6404:96b1c2e06e25 6405:a07bea31ef35
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 /* 24 /*
25 * @test TestPrintGCDetails 25 * @test TestPrintGCDetails
26 * @bug 8035406 8027295 26 * @bug 8035406 8027295 8035398
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
31 */ 31 */
40 "-Xmx10M", 40 "-Xmx10M",
41 GCTest.class.getName()); 41 GCTest.class.getName());
42 42
43 OutputAnalyzer output = new OutputAnalyzer(pb.start()); 43 OutputAnalyzer output = new OutputAnalyzer(pb.start());
44 44
45 output.shouldNotContain("[Redirty Cards");
45 output.shouldNotContain("[Code Root Purge"); 46 output.shouldNotContain("[Code Root Purge");
46 output.shouldNotContain("[Young Free CSet"); 47 output.shouldNotContain("[Young Free CSet");
47 output.shouldNotContain("[Non-Young Free CSet"); 48 output.shouldNotContain("[Non-Young Free CSet");
48 output.shouldHaveExitValue(0); 49 output.shouldHaveExitValue(0);
49 50
52 "-XX:+PrintGCDetails", 53 "-XX:+PrintGCDetails",
53 GCTest.class.getName()); 54 GCTest.class.getName());
54 55
55 output = new OutputAnalyzer(pb.start()); 56 output = new OutputAnalyzer(pb.start());
56 57
58 output.shouldContain("[Redirty Cards");
57 output.shouldContain("[Code Root Purge"); 59 output.shouldContain("[Code Root Purge");
58 output.shouldNotContain("[Young Free CSet"); 60 output.shouldNotContain("[Young Free CSet");
59 output.shouldNotContain("[Non-Young Free CSet"); 61 output.shouldNotContain("[Non-Young Free CSet");
60 output.shouldHaveExitValue(0); 62 output.shouldHaveExitValue(0);
61 63
66 "-XX:G1LogLevel=finest", 68 "-XX:G1LogLevel=finest",
67 GCTest.class.getName()); 69 GCTest.class.getName());
68 70
69 output = new OutputAnalyzer(pb.start()); 71 output = new OutputAnalyzer(pb.start());
70 72
73 output.shouldContain("[Redirty Cards");
71 output.shouldContain("[Code Root Purge"); 74 output.shouldContain("[Code Root Purge");
72 output.shouldContain("[Young Free CSet"); 75 output.shouldContain("[Young Free CSet");
73 output.shouldContain("[Non-Young Free CSet"); 76 output.shouldContain("[Non-Young Free CSet");
74 output.shouldHaveExitValue(0); 77 output.shouldHaveExitValue(0);
75 78

mercurial