hotspot/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/JVMOption.java
changeset 46487 f8e5223d1501
parent 40631 ed82623d7831
child 46488 01c282163d38
--- a/hotspot/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/JVMOption.java	Fri Apr 28 14:34:24 2017 +0200
+++ b/hotspot/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/JVMOption.java	Tue May 09 16:48:31 2017 +0200
@@ -383,7 +383,11 @@
             runJava.add(VMType);
         }
 
-        if (GCType != null) {
+        if (GCType != null &&
+            !(prepend.contains("-XX:+UseConcMarkSweepGC") ||
+              prepend.contains("-XX:+UseSerialGC") ||
+              prepend.contains("-XX:+UseParallelGC") ||
+              prepend.contains("-XX:+UseG1GC"))) {
             runJava.add(GCType);
         }