< prev index next >

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

Print this page

 30 #include "memory/universe.hpp"
 31 #include "oops/compressedOops.hpp"
 32 #include "runtime/globals.hpp"
 33 #include "runtime/globals_extension.hpp"
 34 #include "utilities/debug.hpp"
 35 
 36 GCName GCConfiguration::young_collector() const {
 37   if (UseG1GC) {
 38     return G1New;
 39   }
 40 
 41   if (UseParallelGC) {
 42     return ParallelScavenge;
 43   }
 44 
 45   if (UseZGC) {
 46     return ZMinor;
 47   }
 48 
 49   if (UseShenandoahGC) {





 50     return NA;
 51   }
 52 
 53   return DefNew;
 54 }
 55 
 56 GCName GCConfiguration::old_collector() const {
 57   if (UseG1GC) {
 58     return G1Old;
 59   }
 60 
 61   if (UseParallelGC) {
 62     return ParallelOld;
 63   }
 64 
 65 if (UseZGC) {
 66     return ZMajor;
 67   }
 68 
 69   if (UseShenandoahGC) {





 70     return Shenandoah;
 71   }
 72 
 73   return SerialOld;
 74 }
 75 
 76 uint GCConfiguration::num_parallel_gc_threads() const {
 77   return ParallelGCThreads;
 78 }
 79 
 80 uint GCConfiguration::num_concurrent_gc_threads() const {
 81   return ConcGCThreads;
 82 }
 83 
 84 bool GCConfiguration::uses_dynamic_gc_threads() const {
 85   return UseDynamicNumberOfGCThreads;
 86 }
 87 
 88 bool GCConfiguration::is_explicit_gc_concurrent() const {
 89   return ExplicitGCInvokesConcurrent;

 30 #include "memory/universe.hpp"
 31 #include "oops/compressedOops.hpp"
 32 #include "runtime/globals.hpp"
 33 #include "runtime/globals_extension.hpp"
 34 #include "utilities/debug.hpp"
 35 
 36 GCName GCConfiguration::young_collector() const {
 37   if (UseG1GC) {
 38     return G1New;
 39   }
 40 
 41   if (UseParallelGC) {
 42     return ParallelScavenge;
 43   }
 44 
 45   if (UseZGC) {
 46     return ZMinor;
 47   }
 48 
 49   if (UseShenandoahGC) {
 50 #if INCLUDE_SHENANDOAHGC
 51     if (ShenandoahCardBarrier) {
 52       return ShenandoahYoung;
 53     }
 54 #endif
 55     return NA;
 56   }
 57 
 58   return DefNew;
 59 }
 60 
 61 GCName GCConfiguration::old_collector() const {
 62   if (UseG1GC) {
 63     return G1Old;
 64   }
 65 
 66   if (UseParallelGC) {
 67     return ParallelOld;
 68   }
 69 
 70 if (UseZGC) {
 71     return ZMajor;
 72   }
 73 
 74   if (UseShenandoahGC) {
 75 #if INCLUDE_SHENANDOAHGC
 76     if (ShenandoahCardBarrier) {
 77       return ShenandoahOld;
 78     }
 79 #endif
 80     return Shenandoah;
 81   }
 82 
 83   return SerialOld;
 84 }
 85 
 86 uint GCConfiguration::num_parallel_gc_threads() const {
 87   return ParallelGCThreads;
 88 }
 89 
 90 uint GCConfiguration::num_concurrent_gc_threads() const {
 91   return ConcGCThreads;
 92 }
 93 
 94 bool GCConfiguration::uses_dynamic_gc_threads() const {
 95   return UseDynamicNumberOfGCThreads;
 96 }
 97 
 98 bool GCConfiguration::is_explicit_gc_concurrent() const {
 99   return ExplicitGCInvokesConcurrent;
< prev index next >