--- a/hotspot/test/gc/g1/TestPLABOutput.java Thu Dec 10 23:02:31 2015 +0000
+++ b/hotspot/test/gc/g1/TestPLABOutput.java Thu Dec 10 14:57:55 2015 +0100
@@ -54,8 +54,7 @@
"-XX:+WhiteBoxAPI",
"-XX:+UseG1GC",
"-Xmx10M",
- "-XX:+PrintGC",
- "-XX:+PrintPLAB",
+ "-Xlog:gc+plab=debug",
GCTest.class.getName()
};
@@ -66,7 +65,7 @@
System.out.println(output.getStdout());
- String pattern = "#0:.*allocated = (\\d+).*";
+ String pattern = ".*GC\\(0\\) .*allocated = (\\d+).*";
Pattern r = Pattern.compile(pattern);
Matcher m = r.matcher(output.getStdout());