hotspot/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/JVMOption.java
changeset 46487 f8e5223d1501
parent 40631 ed82623d7831
child 46488 01c282163d38
equal deleted inserted replaced
46486:314aa24e62d6 46487:f8e5223d1501
   381 
   381 
   382         if (VMType != null) {
   382         if (VMType != null) {
   383             runJava.add(VMType);
   383             runJava.add(VMType);
   384         }
   384         }
   385 
   385 
   386         if (GCType != null) {
   386         if (GCType != null &&
       
   387             !(prepend.contains("-XX:+UseConcMarkSweepGC") ||
       
   388               prepend.contains("-XX:+UseSerialGC") ||
       
   389               prepend.contains("-XX:+UseParallelGC") ||
       
   390               prepend.contains("-XX:+UseG1GC"))) {
   387             runJava.add(GCType);
   391             runJava.add(GCType);
   388         }
   392         }
   389 
   393 
   390         runJava.addAll(prepend);
   394         runJava.addAll(prepend);
   391         runJava.add(optionValue);
   395         runJava.add(optionValue);