From 9190088eb2980504e2db67877e58b7e8396f8de5 Mon Sep 17 00:00:00 2001 From: Stefan Karlsson Date: Mon, 18 Aug 2014 13:55:29 +0200 Subject: [PATCH] 8055111: [TESTBUG] jdk.testlibrary.Utils.removeGcOpts doesn't remove -Xconcgc Reviewed-by: jmasa, brutisso, sla --- jdk/test/lib/testlibrary/jdk/testlibrary/Utils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jdk/test/lib/testlibrary/jdk/testlibrary/Utils.java b/jdk/test/lib/testlibrary/jdk/testlibrary/Utils.java index 954aefcc49d..2795b29f71d 100644 --- a/jdk/test/lib/testlibrary/jdk/testlibrary/Utils.java +++ b/jdk/test/lib/testlibrary/jdk/testlibrary/Utils.java @@ -126,7 +126,10 @@ public final class Utils { * GC specified by the framework must first be removed. * @return A copy of given opts with all GC options removed. */ - private static final Pattern useGcPattern = Pattern.compile("\\-XX\\:[\\+\\-]Use.+GC"); + private static final Pattern useGcPattern = Pattern.compile( + "(?:\\-XX\\:[\\+\\-]Use.+GC)" + + "|(?:\\-Xconcgc)" + + "|(?:\\-Xincgc)"); public static List removeGcOpts(List opts) { List optsWithoutGC = new ArrayList(); for (String opt : opts) {