< prev index next >
test/gc/g1/mixedgc/TestLogging.java
Print this page
@@ -24,11 +24,10 @@
/*
* @test TestLogging
* @summary Check that a mixed GC is reflected in the gc logs
* @requires vm.gc=="G1" | vm.gc=="null"
* @library /testlibrary /test/lib
- * @ignore 8138607
* @modules java.management
* @build sun.hotspot.WhiteBox gc.g1.mixedgc.TestLogging
* @run main ClassFileInstaller sun.hotspot.WhiteBox
* @run driver gc.g1.mixedgc.TestLogging
*/
@@ -66,22 +65,22 @@
public static final int ALLOCATION_SIZE = 20000;
public static final int ALLOCATION_COUNT = 15;
public static void main(String args[]) throws Exception {
- // Test turns logging on by giving -XX:+PrintGC flag
- test("-XX:+PrintGC");
- // Test turns logging on by giving -XX:+PrintGCDetails
- test("-XX:+PrintGCDetails");
+ // Test turns logging on by giving -Xlog:gc flag
+ test("-Xlog:gc");
+ // Test turns logging on by giving -Xlog:gc=debug flag
+ test("-Xlog:gc=debug");
}
private static void test(String vmFlag) throws Exception {
System.out.println(String.format("%s: running with %s flag", TestLogging.class.getSimpleName(), vmFlag));
OutputAnalyzer output = spawnMixedGCProvoker(vmFlag);
System.out.println(output.getStdout());
output.shouldHaveExitValue(0);
- output.shouldContain("GC pause (G1 Evacuation Pause) (mixed)");
+ output.shouldContain("Pause Mixed (G1 Evacuation Pause)");
}
/**
* Method spawns MixedGCProvoker with addition flags set
*
< prev index next >