26 // Defines all globals flags used by the garbage-first compiler. |
26 // Defines all globals flags used by the garbage-first compiler. |
27 // |
27 // |
28 |
28 |
29 #define G1_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw) \ |
29 #define G1_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw) \ |
30 \ |
30 \ |
31 product(intx, ParallelGCG1AllocBufferSize, 8*K, \ |
31 product(intx, G1ParallelGCAllocBufferSize, 8*K, \ |
32 "Size of parallel G1 allocation buffers in to-space.") \ |
32 "Size of parallel G1 allocation buffers in to-space.") \ |
33 \ |
33 \ |
34 product(intx, G1TimeSliceMS, 500, \ |
34 product(intx, G1ConfidencePercent, 50, \ |
35 "Time slice for MMU specification") \ |
|
36 \ |
|
37 product(intx, G1MaxPauseTimeMS, 200, \ |
|
38 "Max GC time per MMU time slice") \ |
|
39 \ |
|
40 product(intx, G1ConfidencePerc, 50, \ |
|
41 "Confidence level for MMU/pause predictions") \ |
35 "Confidence level for MMU/pause predictions") \ |
42 \ |
36 \ |
43 product(intx, G1MarkingOverheadPerc, 0, \ |
37 develop(intx, G1MarkingOverheadPercent, 0, \ |
44 "Overhead of concurrent marking") \ |
38 "Overhead of concurrent marking") \ |
45 \ |
39 \ |
46 product(bool, G1AccountConcurrentOverhead, false, \ |
40 develop(bool, G1AccountConcurrentOverhead, false, \ |
47 "Whether soft real-time compliance in G1 will take into account" \ |
41 "Whether soft real-time compliance in G1 will take into account" \ |
48 "concurrent overhead") \ |
42 "concurrent overhead") \ |
49 \ |
43 \ |
50 product(intx, G1YoungGenSize, 0, \ |
44 product(intx, G1YoungGenSize, 0, \ |
51 "Size of the G1 young generation, 0 is the adaptive policy") \ |
45 "Size of the G1 young generation, 0 is the adaptive policy") \ |
52 \ |
46 \ |
53 product(bool, G1Gen, true, \ |
47 develop(bool, G1Gen, true, \ |
54 "If true, it will enable the generational G1") \ |
48 "If true, it will enable the generational G1") \ |
55 \ |
49 \ |
56 develop(intx, G1GCPct, 10, \ |
50 develop(intx, G1GCPercent, 10, \ |
57 "The desired percent time spent on GC") \ |
51 "The desired percent time spent on GC") \ |
58 \ |
52 \ |
59 product(intx, G1PolicyVerbose, 0, \ |
53 develop(intx, G1PolicyVerbose, 0, \ |
60 "The verbosity level on G1 policy decisions") \ |
54 "The verbosity level on G1 policy decisions") \ |
61 \ |
55 \ |
62 develop(bool, G1UseHRIntoRS, true, \ |
56 develop(bool, G1UseHRIntoRS, true, \ |
63 "Determines whether the 'advanced' HR Into rem set is used.") \ |
57 "Determines whether the 'advanced' HR Into rem set is used.") \ |
64 \ |
58 \ |
65 product(bool, G1VerifyRemSet, false, \ |
|
66 "If true, verify the rem set functioning at each GC") \ |
|
67 \ |
|
68 product(bool, G1VerifyConcMark, false, \ |
|
69 "If true, verify the conc marking code at full GC time") \ |
|
70 \ |
|
71 develop(intx, G1MarkingVerboseLevel, 0, \ |
59 develop(intx, G1MarkingVerboseLevel, 0, \ |
72 "Level (0-4) of verboseness of the marking code") \ |
60 "Level (0-4) of verboseness of the marking code") \ |
73 \ |
61 \ |
74 develop(bool, G1VerifyConcMarkPrintReachable, false, \ |
62 develop(bool, G1VerifyConcMarkPrintReachable, false, \ |
75 "If conc mark verification fails, print reachable objects") \ |
63 "If conc mark verification fails, print reachable objects") \ |
76 \ |
64 \ |
77 develop(bool, G1TraceMarkStackOverflow, false, \ |
65 develop(bool, G1TraceMarkStackOverflow, false, \ |
78 "If true, extra debugging code for CM restart for ovflw.") \ |
66 "If true, extra debugging code for CM restart for ovflw.") \ |
79 \ |
67 \ |
80 product(bool, G1VerifyMarkingInEvac, false, \ |
|
81 "If true, verify marking info during evacuation") \ |
|
82 \ |
|
83 develop(intx, G1PausesBtwnConcMark, -1, \ |
68 develop(intx, G1PausesBtwnConcMark, -1, \ |
84 "If positive, fixed number of pauses between conc markings") \ |
69 "If positive, fixed number of pauses between conc markings") \ |
85 \ |
70 \ |
86 product(intx, G1EfficiencyPctCausesMark, 80, \ |
71 diagnostic(bool, G1SummarizeConcurrentMark, false, \ |
87 "The cum gc efficiency since mark fall-off that causes " \ |
|
88 "new marking") \ |
|
89 \ |
|
90 product(bool, TraceConcurrentMark, false, \ |
|
91 "Trace concurrent mark") \ |
|
92 \ |
|
93 product(bool, SummarizeG1ConcMark, false, \ |
|
94 "Summarize concurrent mark info") \ |
72 "Summarize concurrent mark info") \ |
95 \ |
73 \ |
96 product(bool, SummarizeG1RSStats, false, \ |
74 diagnostic(bool, G1SummarizeRSetStats, false, \ |
97 "Summarize remembered set processing info") \ |
75 "Summarize remembered set processing info") \ |
98 \ |
76 \ |
99 product(bool, SummarizeG1ZFStats, false, \ |
77 diagnostic(bool, G1SummarizeZFStats, false, \ |
100 "Summarize zero-filling info") \ |
78 "Summarize zero-filling info") \ |
101 \ |
79 \ |
102 product(bool, TraceG1Refine, false, \ |
80 develop(bool, G1TraceConcurrentRefinement, false, \ |
103 "Trace G1 concurrent refinement") \ |
81 "Trace G1 concurrent refinement") \ |
104 \ |
82 \ |
105 develop(bool, G1ConcMark, true, \ |
83 develop(bool, G1ConcMark, true, \ |
106 "If true, run concurrent marking for G1") \ |
84 "If true, run concurrent marking for G1") \ |
107 \ |
85 \ |
108 product(intx, G1CMStackSize, 2 * 1024 * 1024, \ |
86 product(intx, G1MarkStackSize, 2 * 1024 * 1024, \ |
109 "Size of the mark stack for concurrent marking.") \ |
87 "Size of the mark stack for concurrent marking.") \ |
110 \ |
88 \ |
111 product(intx, G1CMRegionStackSize, 1024 * 1024, \ |
89 product(intx, G1MarkRegionStackSize, 1024 * 1024, \ |
112 "Size of the region stack for concurrent marking.") \ |
90 "Size of the region stack for concurrent marking.") \ |
113 \ |
91 \ |
114 develop(bool, G1ConcRefine, true, \ |
92 develop(bool, G1ConcRefine, true, \ |
115 "If true, run concurrent rem set refinement for G1") \ |
93 "If true, run concurrent rem set refinement for G1") \ |
116 \ |
94 \ |
177 \ |
155 \ |
178 develop(bool, G1RSLogCheckCardTable, false, \ |
156 develop(bool, G1RSLogCheckCardTable, false, \ |
179 "If true, verify that no dirty cards remain after RS log " \ |
157 "If true, verify that no dirty cards remain after RS log " \ |
180 "processing.") \ |
158 "processing.") \ |
181 \ |
159 \ |
182 product(intx, G1MinPausesBetweenMarks, 2, \ |
|
183 "Number of inefficient pauses necessary to trigger marking.") \ |
|
184 \ |
|
185 product(intx, G1InefficientPausePct, 80, \ |
|
186 "Threshold of an 'inefficient' pauses (as % of cum efficiency.") \ |
|
187 \ |
|
188 develop(bool, G1RSCountHisto, false, \ |
160 develop(bool, G1RSCountHisto, false, \ |
189 "If true, print a histogram of RS occupancies after each pause") \ |
161 "If true, print a histogram of RS occupancies after each pause") \ |
190 \ |
|
191 product(bool, G1TraceFileOverwrite, false, \ |
|
192 "Allow the trace file to be overwritten") \ |
|
193 \ |
162 \ |
194 develop(intx, G1PrintRegionLivenessInfo, 0, \ |
163 develop(intx, G1PrintRegionLivenessInfo, 0, \ |
195 "When > 0, print the occupancies of the <n> best and worst" \ |
164 "When > 0, print the occupancies of the <n> best and worst" \ |
196 "regions.") \ |
165 "regions.") \ |
197 \ |
166 \ |
198 develop(bool, G1PrintParCleanupStats, false, \ |
167 develop(bool, G1PrintParCleanupStats, false, \ |
199 "When true, print extra stats about parallel cleanup.") \ |
168 "When true, print extra stats about parallel cleanup.") \ |
200 \ |
169 \ |
201 product(bool, G1DoAgeCohortChecks, false, \ |
|
202 "When true, check well-formedness of age cohort structures.") \ |
|
203 \ |
|
204 develop(bool, G1DisablePreBarrier, false, \ |
170 develop(bool, G1DisablePreBarrier, false, \ |
205 "Disable generation of pre-barrier (i.e., marking barrier) ") \ |
171 "Disable generation of pre-barrier (i.e., marking barrier) ") \ |
206 \ |
172 \ |
207 develop(bool, G1DisablePostBarrier, false, \ |
173 develop(bool, G1DisablePostBarrier, false, \ |
208 "Disable generation of post-barrier (i.e., RS barrier) ") \ |
174 "Disable generation of post-barrier (i.e., RS barrier) ") \ |
212 "start processing them.") \ |
178 "start processing them.") \ |
213 \ |
179 \ |
214 develop(intx, G1ConcRSLogCacheSize, 10, \ |
180 develop(intx, G1ConcRSLogCacheSize, 10, \ |
215 "Log base 2 of the length of conc RS hot-card cache.") \ |
181 "Log base 2 of the length of conc RS hot-card cache.") \ |
216 \ |
182 \ |
217 product(bool, G1ConcRSCountTraversals, false, \ |
183 develop(bool, G1ConcRSCountTraversals, false, \ |
218 "If true, gather data about the number of times CR traverses " \ |
184 "If true, gather data about the number of times CR traverses " \ |
219 "cards ") \ |
185 "cards ") \ |
220 \ |
186 \ |
221 product(intx, G1ConcRSHotCardLimit, 4, \ |
187 develop(intx, G1ConcRSHotCardLimit, 4, \ |
222 "The threshold that defines (>=) a hot card.") \ |
188 "The threshold that defines (>=) a hot card.") \ |
223 \ |
189 \ |
224 develop(bool, G1PrintOopAppls, false, \ |
190 develop(bool, G1PrintOopAppls, false, \ |
225 "When true, print applications of closures to external locs.") \ |
191 "When true, print applications of closures to external locs.") \ |
226 \ |
192 \ |
227 product(intx, G1LogRSRegionEntries, 7, \ |
193 develop(intx, G1LogRSRegionEntries, 7, \ |
228 "Log_2 of max number of regions for which we keep bitmaps.") \ |
194 "Log_2 of max number of regions for which we keep bitmaps.") \ |
229 \ |
195 \ |
230 develop(bool, G1RecordHRRSOops, false, \ |
196 develop(bool, G1RecordHRRSOops, false, \ |
231 "When true, record recent calls to rem set operations.") \ |
197 "When true, record recent calls to rem set operations.") \ |
232 \ |
198 \ |
252 \ |
218 \ |
253 product(bool, G1UseScanOnlyPrefix, false, \ |
219 product(bool, G1UseScanOnlyPrefix, false, \ |
254 "It determines whether the system will calculate an optimum " \ |
220 "It determines whether the system will calculate an optimum " \ |
255 "scan-only set.") \ |
221 "scan-only set.") \ |
256 \ |
222 \ |
257 product(intx, G1MinReservePerc, 10, \ |
223 product(intx, G1MinReservePercent, 10, \ |
258 "It determines the minimum reserve we should have in the heap " \ |
224 "It determines the minimum reserve we should have in the heap " \ |
259 "to minimize the probability of promotion failure.") \ |
225 "to minimize the probability of promotion failure.") \ |
260 \ |
226 \ |
261 product(bool, G1TraceRegions, false, \ |
227 diagnostic(bool, G1PrintRegions, false, \ |
262 "If set G1 will print information on which regions are being " \ |
228 "If set G1 will print information on which regions are being " \ |
263 "allocated and which are reclaimed.") \ |
229 "allocated and which are reclaimed.") \ |
264 \ |
230 \ |
265 develop(bool, G1HRRSUseSparseTable, true, \ |
231 develop(bool, G1HRRSUseSparseTable, true, \ |
266 "When true, use sparse table to save space.") \ |
232 "When true, use sparse table to save space.") \ |
267 \ |
233 \ |
268 develop(bool, G1HRRSFlushLogBuffersOnVerify, false, \ |
234 develop(bool, G1HRRSFlushLogBuffersOnVerify, false, \ |
269 "Forces flushing of log buffers before verification.") \ |
235 "Forces flushing of log buffers before verification.") \ |
270 \ |
236 \ |
271 product(bool, G1UseSurvivorSpace, true, \ |
237 product(bool, G1UseSurvivorSpaces, true, \ |
272 "When true, use survivor space.") \ |
238 "When true, use survivor space.") \ |
273 \ |
239 \ |
274 product(bool, G1FixedTenuringThreshold, false, \ |
240 develop(bool, G1FixedTenuringThreshold, false, \ |
275 "When set, G1 will not adjust the tenuring threshold") \ |
241 "When set, G1 will not adjust the tenuring threshold") \ |
276 \ |
242 \ |
277 product(bool, G1FixedEdenSize, false, \ |
243 develop(bool, G1FixedEdenSize, false, \ |
278 "When set, G1 will not allocate unused survivor space regions") \ |
244 "When set, G1 will not allocate unused survivor space regions") \ |
279 \ |
245 \ |
280 product(uintx, G1FixedSurvivorSpaceSize, 0, \ |
246 develop(uintx, G1FixedSurvivorSpaceSize, 0, \ |
281 "If non-0 is the size of the G1 survivor space, " \ |
247 "If non-0 is the size of the G1 survivor space, " \ |
282 "otherwise SurvivorRatio is used to determine the size") \ |
248 "otherwise SurvivorRatio is used to determine the size") \ |
283 \ |
249 \ |
284 experimental(bool, G1EnableParallelRSetUpdating, false, \ |
250 experimental(bool, G1ParallelRSetUpdatingEnabled, false, \ |
285 "Enables the parallelization of remembered set updating " \ |
251 "Enables the parallelization of remembered set updating " \ |
286 "during evacuation pauses") \ |
252 "during evacuation pauses") \ |
287 \ |
253 \ |
288 experimental(bool, G1EnableParallelRSetScanning, false, \ |
254 experimental(bool, G1ParallelRSetScanningEnabled, false, \ |
289 "Enables the parallelization of remembered set scanning " \ |
255 "Enables the parallelization of remembered set scanning " \ |
290 "during evacuation pauses") |
256 "during evacuation pauses") |
291 |
257 |
292 G1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG) |
258 G1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG) |