< prev index next >

src/hotspot/share/gc/parallel/parallelArguments.cpp

Print this page
rev 57486 : imported patch 8235860-remove-serial-old-gc
rev 57487 : [mq]: 8235860-kbarrett-review

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2017, Red Hat, Inc. and/or its affiliates.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as

@@ -42,16 +42,11 @@
   return compute_heap_alignment();
 }
 
 void ParallelArguments::initialize() {
   GCArguments::initialize();
-  assert(UseParallelGC || UseParallelOldGC, "Error");
-  // Enable ParallelOld unless it was explicitly disabled (cmd line or rc file).
-  if (FLAG_IS_DEFAULT(UseParallelOldGC)) {
-    FLAG_SET_DEFAULT(UseParallelOldGC, true);
-  }
-  FLAG_SET_DEFAULT(UseParallelGC, true);
+  assert(UseParallelGC, "Error");
 
   // If no heap maximum was requested explicitly, use some reasonable fraction
   // of the physical memory, up to a maximum of 1GB.
   FLAG_SET_DEFAULT(ParallelGCThreads,
                    WorkerPolicy::parallel_worker_threads());

@@ -83,18 +78,16 @@
     if (FLAG_IS_DEFAULT(MinSurvivorRatio)) {
       FLAG_SET_DEFAULT(MinSurvivorRatio, SurvivorRatio + 2);
     }
   }
 
-  if (UseParallelOldGC) {
     // Par compact uses lower default values since they are treated as
     // minimums.  These are different defaults because of the different
     // interpretation and are not ergonomically set.
     if (FLAG_IS_DEFAULT(MarkSweepDeadRatio)) {
       FLAG_SET_DEFAULT(MarkSweepDeadRatio, 1);
     }
-  }
 }
 
 // The alignment used for boundary between young gen and old gen
 static size_t default_gen_alignment() {
   return 64 * K * HeapWordSize;
< prev index next >