< prev index next >

src/hotspot/share/gc/shared/gcConfiguration.cpp

Print this page

        

@@ -41,10 +41,14 @@
 
   if (UseConcMarkSweepGC) {
     return ParNew;
   }
 
+  if (UseZGC) {
+    return NA;
+  }
+
   return DefNew;
 }
 
 GCName GCConfiguration::old_collector() const {
   if (UseG1GC) {

@@ -57,10 +61,14 @@
 
   if (UseParallelOldGC) {
     return ParallelOld;
   }
 
+  if (UseZGC) {
+    return Z;
+  }
+
   return SerialOld;
 }
 
 uint GCConfiguration::num_parallel_gc_threads() const {
   return ParallelGCThreads;
< prev index next >