test/hotspot/jtreg/runtime/CommandLine/OptionsValidation/common/optionsvalidation/JVMOption.java
changeset 59053 ba6c248cae19
parent 57593 f40a73b61b5e
equal deleted inserted replaced
59051:f0312c7d5b37 59053:ba6c248cae19
   398             // Avoid excessive execution time.
   398             // Avoid excessive execution time.
   399             runJava.add("-XX:-ZapUnusedHeapArea");
   399             runJava.add("-XX:-ZapUnusedHeapArea");
   400         }
   400         }
   401 
   401 
   402         if (GCType != null &&
   402         if (GCType != null &&
   403             !(prepend.contains("-XX:+UseConcMarkSweepGC") ||
   403             !(prepend.contains("-XX:+UseSerialGC") ||
   404               prepend.contains("-XX:+UseSerialGC") ||
       
   405               prepend.contains("-XX:+UseParallelGC") ||
   404               prepend.contains("-XX:+UseParallelGC") ||
   406               prepend.contains("-XX:+UseG1GC"))) {
   405               prepend.contains("-XX:+UseG1GC"))) {
   407             explicitGC = GCType;
   406             explicitGC = GCType;
   408         }
   407         }
   409 
   408