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 if (ZGenerational) {
47 return ZMinor;
48 } else {
49 return NA;
50 }
51 }
52
53 if (UseShenandoahGC) {
54 return NA;
55 }
56
57 return DefNew;
58 }
59
60 GCName GCConfiguration::old_collector() const {
61 if (UseG1GC) {
62 return G1Old;
63 }
64
65 if (UseParallelGC) {
66 return ParallelOld;
67 }
68
69 if (UseZGC) {
70 if (ZGenerational) {
71 return ZMajor;
72 } else {
73 return Z;
74 }
75 }
76
77 if (UseShenandoahGC) {
78 return Shenandoah;
79 }
80
81 return SerialOld;
82 }
83
84 uint GCConfiguration::num_parallel_gc_threads() const {
85 return ParallelGCThreads;
86 }
87
88 uint GCConfiguration::num_concurrent_gc_threads() const {
89 return ConcGCThreads;
90 }
91
92 bool GCConfiguration::uses_dynamic_gc_threads() const {
93 return UseDynamicNumberOfGCThreads;
94 }
95
96 bool GCConfiguration::is_explicit_gc_concurrent() const {
97 return ExplicitGCInvokesConcurrent;
|
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 if (ZGenerational) {
47 return ZMinor;
48 } else {
49 return NA;
50 }
51 }
52
53 if (UseShenandoahGC) {
54 #if INCLUDE_SHENANDOAHGC
55 if (ShenandoahCardBarrier) {
56 return ShenandoahYoung;
57 }
58 #endif
59 return NA;
60 }
61
62 return DefNew;
63 }
64
65 GCName GCConfiguration::old_collector() const {
66 if (UseG1GC) {
67 return G1Old;
68 }
69
70 if (UseParallelGC) {
71 return ParallelOld;
72 }
73
74 if (UseZGC) {
75 if (ZGenerational) {
76 return ZMajor;
77 } else {
78 return Z;
79 }
80 }
81
82 if (UseShenandoahGC) {
83 #if INCLUDE_SHENANDOAHGC
84 if (ShenandoahCardBarrier) {
85 return ShenandoahOld;
86 }
87 #endif
88 return Shenandoah;
89 }
90
91 return SerialOld;
92 }
93
94 uint GCConfiguration::num_parallel_gc_threads() const {
95 return ParallelGCThreads;
96 }
97
98 uint GCConfiguration::num_concurrent_gc_threads() const {
99 return ConcGCThreads;
100 }
101
102 bool GCConfiguration::uses_dynamic_gc_threads() const {
103 return UseDynamicNumberOfGCThreads;
104 }
105
106 bool GCConfiguration::is_explicit_gc_concurrent() const {
107 return ExplicitGCInvokesConcurrent;
|