< prev index next >
test/hotspot/jtreg/gc/g1/TestGCLogMessages.java
Print this page
rev 60060 : [mq]: 8210462-lkorinth-review
*** 185,195 ****
public static void main(String[] args) throws Exception {
new TestGCLogMessages().testNormalLogs();
new TestGCLogMessages().testConcurrentRefinementLogs();
new TestGCLogMessages().testWithToSpaceExhaustionLogs();
! new TestGCLogMessages().testWithInitialMark();
new TestGCLogMessages().testExpandHeap();
}
private void testNormalLogs() throws Exception {
--- 185,195 ----
public static void main(String[] args) throws Exception {
new TestGCLogMessages().testNormalLogs();
new TestGCLogMessages().testConcurrentRefinementLogs();
new TestGCLogMessages().testWithToSpaceExhaustionLogs();
! new TestGCLogMessages().testWithConcurrentStart();
new TestGCLogMessages().testExpandHeap();
}
private void testNormalLogs() throws Exception {
*** 264,281 ****
output = new OutputAnalyzer(pb.start());
checkMessagesAtLevel(output, exhFailureMessages, Level.TRACE);
output.shouldHaveExitValue(0);
}
! private void testWithInitialMark() throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
"-Xmx10M",
"-Xbootclasspath/a:.",
"-Xlog:gc*=debug",
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+WhiteBoxAPI",
! GCTestWithInitialMark.class.getName());
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldContain("Clear Claimed Marks");
output.shouldHaveExitValue(0);
}
--- 264,281 ----
output = new OutputAnalyzer(pb.start());
checkMessagesAtLevel(output, exhFailureMessages, Level.TRACE);
output.shouldHaveExitValue(0);
}
! private void testWithConcurrentStart() throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
"-Xmx10M",
"-Xbootclasspath/a:.",
"-Xlog:gc*=debug",
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+WhiteBoxAPI",
! GCTestWithConcurrentStart.class.getName());
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldContain("Clear Claimed Marks");
output.shouldHaveExitValue(0);
}
*** 321,331 ****
}
System.out.println("Done");
}
}
! static class GCTestWithInitialMark {
public static void main(String [] args) {
sun.hotspot.WhiteBox WB = sun.hotspot.WhiteBox.getWhiteBox();
WB.g1StartConcMarkCycle();
}
}
--- 321,331 ----
}
System.out.println("Done");
}
}
! static class GCTestWithConcurrentStart {
public static void main(String [] args) {
sun.hotspot.WhiteBox WB = sun.hotspot.WhiteBox.getWhiteBox();
WB.g1StartConcMarkCycle();
}
}
< prev index next >