Mercurial > hg > graal-compiler
annotate src/share/vm/gc_implementation/g1/g1_globals.hpp @ 647:bd441136a5ce
Merge
author | kvn |
---|---|
date | Thu, 19 Mar 2009 09:13:24 -0700 |
parents | ba50942c8138 |
children | 96b229c54d1e |
rev | line source |
---|---|
342 | 1 /* |
579 | 2 * Copyright 2001-2009 Sun Microsystems, Inc. All Rights Reserved. |
342 | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
20 * CA 95054 USA or visit www.sun.com if you need additional information or | |
21 * have any questions. | |
22 * | |
23 */ | |
24 | |
25 // | |
26 // Defines all globals flags used by the garbage-first compiler. | |
27 // | |
28 | |
350
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
342
diff
changeset
|
29 #define G1_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw) \ |
342 | 30 \ |
526 | 31 product(intx, ParallelGCG1AllocBufferSize, 8*K, \ |
342 | 32 "Size of parallel G1 allocation buffers in to-space.") \ |
33 \ | |
34 product(intx, G1TimeSliceMS, 500, \ | |
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") \ | |
42 \ | |
43 product(intx, G1MarkingOverheadPerc, 0, \ | |
44 "Overhead of concurrent marking") \ | |
45 \ | |
46 product(bool, G1AccountConcurrentOverhead, false, \ | |
47 "Whether soft real-time compliance in G1 will take into account" \ | |
48 "concurrent overhead") \ | |
49 \ | |
50 product(intx, G1YoungGenSize, 0, \ | |
51 "Size of the G1 young generation, 0 is the adaptive policy") \ | |
52 \ | |
53 product(bool, G1Gen, true, \ | |
54 "If true, it will enable the generational G1") \ | |
55 \ | |
56 develop(intx, G1GCPct, 10, \ | |
57 "The desired percent time spent on GC") \ | |
58 \ | |
59 product(intx, G1PolicyVerbose, 0, \ | |
60 "The verbosity level on G1 policy decisions") \ | |
61 \ | |
62 develop(bool, G1UseHRIntoRS, true, \ | |
63 "Determines whether the 'advanced' HR Into rem set is used.") \ | |
64 \ | |
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, \ | |
72 "Level (0-4) of verboseness of the marking code") \ | |
73 \ | |
74 develop(bool, G1VerifyConcMarkPrintReachable, true, \ | |
75 "If conc mark verification fails, print reachable objects") \ | |
76 \ | |
77 develop(bool, G1TraceMarkStackOverflow, false, \ | |
78 "If true, extra debugging code for CM restart for ovflw.") \ | |
79 \ | |
80 product(bool, G1VerifyMarkingInEvac, false, \ | |
81 "If true, verify marking info during evacuation") \ | |
82 \ | |
83 develop(intx, G1PausesBtwnConcMark, -1, \ | |
84 "If positive, fixed number of pauses between conc markings") \ | |
85 \ | |
86 product(intx, G1EfficiencyPctCausesMark, 80, \ | |
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") \ | |
95 \ | |
96 product(bool, SummarizeG1RSStats, false, \ | |
97 "Summarize remembered set processing info") \ | |
98 \ | |
99 product(bool, SummarizeG1ZFStats, false, \ | |
100 "Summarize zero-filling info") \ | |
101 \ | |
102 product(bool, TraceG1Refine, false, \ | |
103 "Trace G1 concurrent refinement") \ | |
104 \ | |
105 develop(bool, G1ConcMark, true, \ | |
106 "If true, run concurrent marking for G1") \ | |
107 \ | |
108 product(intx, G1CMStackSize, 2 * 1024 * 1024, \ | |
109 "Size of the mark stack for concurrent marking.") \ | |
110 \ | |
111 product(intx, G1CMRegionStackSize, 1024 * 1024, \ | |
112 "Size of the region stack for concurrent marking.") \ | |
113 \ | |
114 develop(bool, G1ConcRefine, true, \ | |
115 "If true, run concurrent rem set refinement for G1") \ | |
116 \ | |
117 develop(intx, G1ConcRefineTargTraversals, 4, \ | |
118 "Number of concurrent refinement we try to achieve") \ | |
119 \ | |
120 develop(intx, G1ConcRefineInitialDelta, 4, \ | |
121 "Number of heap regions of alloc ahead of starting collection " \ | |
122 "pause to start concurrent refinement (initially)") \ | |
123 \ | |
124 product(bool, G1SmoothConcRefine, true, \ | |
125 "Attempts to smooth out the overhead of concurrent refinement") \ | |
126 \ | |
127 develop(bool, G1ConcZeroFill, true, \ | |
128 "If true, run concurrent zero-filling thread") \ | |
129 \ | |
130 develop(intx, G1ConcZFMaxRegions, 1, \ | |
131 "Stop zero-filling when # of zf'd regions reaches") \ | |
132 \ | |
133 product(intx, G1SteadyStateUsed, 90, \ | |
134 "If non-0, try to maintain 'used' at this pct (of max)") \ | |
135 \ | |
136 product(intx, G1SteadyStateUsedDelta, 30, \ | |
137 "If G1SteadyStateUsed is non-0, then do pause this number of " \ | |
138 "of percentage points earlier if no marking is in progress.") \ | |
139 \ | |
140 develop(bool, G1SATBBarrierPrintNullPreVals, false, \ | |
141 "If true, count frac of ptr writes with null pre-vals.") \ | |
142 \ | |
143 product(intx, G1SATBLogBufferSize, 1*K, \ | |
144 "Number of entries in an SATB log buffer.") \ | |
145 \ | |
146 product(intx, G1SATBProcessCompletedThreshold, 20, \ | |
147 "Number of completed buffers that triggers log processing.") \ | |
148 \ | |
149 develop(intx, G1ExtraRegionSurvRate, 33, \ | |
150 "If the young survival rate is S, and there's room left in " \ | |
151 "to-space, we will allow regions whose survival rate is up to " \ | |
152 "S + (1 - S)*X, where X is this parameter (as a fraction.)") \ | |
153 \ | |
154 develop(intx, G1InitYoungSurvRatio, 50, \ | |
155 "Expected Survival Rate for newly allocated bytes") \ | |
156 \ | |
157 develop(bool, G1SATBPrintStubs, false, \ | |
158 "If true, print generated stubs for the SATB barrier") \ | |
159 \ | |
160 product(intx, G1ExpandByPctOfAvail, 20, \ | |
161 "When expanding, % of uncommitted space to claim.") \ | |
162 \ | |
163 develop(bool, G1RSBarrierRegionFilter, true, \ | |
164 "If true, generate region filtering code in RS barrier") \ | |
165 \ | |
166 develop(bool, G1RSBarrierNullFilter, true, \ | |
167 "If true, generate null-pointer filtering code in RS barrier") \ | |
168 \ | |
169 develop(bool, G1PrintCTFilterStats, false, \ | |
170 "If true, print stats on RS filtering effectiveness") \ | |
171 \ | |
172 develop(bool, G1RSBarrierUseQueue, true, \ | |
173 "If true, use queueing RS barrier") \ | |
174 \ | |
616
4f360ec815ba
6720309: G1: don't synchronously update RSet during evacuation pauses
iveresov
parents:
545
diff
changeset
|
175 develop(bool, G1DeferredRSUpdate, true, \ |
4f360ec815ba
6720309: G1: don't synchronously update RSet during evacuation pauses
iveresov
parents:
545
diff
changeset
|
176 "If true, use deferred RS updates") \ |
4f360ec815ba
6720309: G1: don't synchronously update RSet during evacuation pauses
iveresov
parents:
545
diff
changeset
|
177 \ |
342 | 178 develop(bool, G1RSLogCheckCardTable, false, \ |
179 "If true, verify that no dirty cards remain after RS log " \ | |
180 "processing.") \ | |
181 \ | |
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 product(intx, G1RSPopLimit, 32768, \ | |
189 "Limit that defines popularity. Should go away! XXX") \ | |
190 \ | |
191 develop(bool, G1RSCountHisto, false, \ | |
192 "If true, print a histogram of RS occupancies after each pause") \ | |
193 \ | |
194 product(intx, G1ObjPopLimit, 256, \ | |
195 "Limit that defines popularity for an object.") \ | |
196 \ | |
197 product(bool, G1TraceFileOverwrite, false, \ | |
198 "Allow the trace file to be overwritten") \ | |
199 \ | |
200 develop(intx, G1PrintRegionLivenessInfo, 0, \ | |
201 "When > 0, print the occupancies of the <n> best and worst" \ | |
202 "regions.") \ | |
203 \ | |
204 develop(bool, G1TracePopularity, false, \ | |
205 "When true, provide detailed tracing of popularity.") \ | |
206 \ | |
207 product(bool, G1SummarizePopularity, false, \ | |
208 "When true, provide end-of-run-summarization of popularity.") \ | |
209 \ | |
210 product(intx, G1NumPopularRegions, 1, \ | |
211 "Number of regions reserved to hold popular objects. " \ | |
212 "Should go away later.") \ | |
213 \ | |
214 develop(bool, G1PrintParCleanupStats, false, \ | |
215 "When true, print extra stats about parallel cleanup.") \ | |
216 \ | |
217 product(bool, G1DoAgeCohortChecks, false, \ | |
218 "When true, check well-formedness of age cohort structures.") \ | |
219 \ | |
220 develop(bool, G1DisablePreBarrier, false, \ | |
221 "Disable generation of pre-barrier (i.e., marking barrier) ") \ | |
222 \ | |
223 develop(bool, G1DisablePostBarrier, false, \ | |
224 "Disable generation of post-barrier (i.e., RS barrier) ") \ | |
225 \ | |
226 product(intx, G1DirtyCardQueueMax, 30, \ | |
227 "Maximum number of completed RS buffers before mutator threads " \ | |
228 "start processing them.") \ | |
229 \ | |
230 develop(intx, G1ConcRSLogCacheSize, 10, \ | |
231 "Log base 2 of the length of conc RS hot-card cache.") \ | |
232 \ | |
233 product(bool, G1ConcRSCountTraversals, false, \ | |
234 "If true, gather data about the number of times CR traverses " \ | |
235 "cards ") \ | |
236 \ | |
237 product(intx, G1ConcRSHotCardLimit, 4, \ | |
238 "The threshold that defines (>=) a hot card.") \ | |
239 \ | |
240 develop(bool, G1PrintOopAppls, false, \ | |
241 "When true, print applications of closures to external locs.") \ | |
242 \ | |
243 product(intx, G1LogRSRegionEntries, 7, \ | |
244 "Log_2 of max number of regions for which we keep bitmaps.") \ | |
245 \ | |
246 develop(bool, G1RecordHRRSOops, false, \ | |
247 "When true, record recent calls to rem set operations.") \ | |
248 \ | |
249 develop(bool, G1RecordHRRSEvents, false, \ | |
250 "When true, record recent calls to rem set operations.") \ | |
251 \ | |
252 develop(intx, G1MaxVerifyFailures, -1, \ | |
253 "The maximum number of verification failrues to print. " \ | |
254 "-1 means print all.") \ | |
255 \ | |
256 develop(bool, G1ScrubRemSets, true, \ | |
257 "When true, do RS scrubbing after cleanup.") \ | |
258 \ | |
259 develop(bool, G1RSScrubVerbose, false, \ | |
260 "When true, do RS scrubbing with verbose output.") \ | |
261 \ | |
262 develop(bool, G1YoungSurvRateVerbose, false, \ | |
263 "print out the survival rate of young regions according to age.") \ | |
264 \ | |
265 develop(intx, G1YoungSurvRateNumRegionsSummary, 0, \ | |
266 "the number of regions for which we'll print a surv rate " \ | |
267 "summary.") \ | |
268 \ | |
269 product(bool, G1UseScanOnlyPrefix, false, \ | |
270 "It determines whether the system will calculate an optimum " \ | |
271 "scan-only set.") \ | |
272 \ | |
273 product(intx, G1MinReservePerc, 10, \ | |
274 "It determines the minimum reserve we should have in the heap " \ | |
275 "to minimize the probability of promotion failure.") \ | |
276 \ | |
277 product(bool, G1TraceRegions, false, \ | |
278 "If set G1 will print information on which regions are being " \ | |
279 "allocated and which are reclaimed.") \ | |
280 \ | |
281 develop(bool, G1HRRSUseSparseTable, true, \ | |
282 "When true, use sparse table to save space.") \ | |
283 \ | |
284 develop(bool, G1HRRSFlushLogBuffersOnVerify, false, \ | |
285 "Forces flushing of log buffers before verification.") \ | |
286 \ | |
545 | 287 product(bool, G1UseSurvivorSpace, true, \ |
288 "When true, use survivor space.") \ | |
289 \ | |
290 product(bool, G1FixedTenuringThreshold, false, \ | |
291 "When set, G1 will not adjust the tenuring threshold") \ | |
292 \ | |
293 product(bool, G1FixedEdenSize, false, \ | |
294 "When set, G1 will not allocate unused survivor space regions") \ | |
295 \ | |
296 product(uintx, G1FixedSurvivorSpaceSize, 0, \ | |
297 "If non-0 is the size of the G1 survivor space, " \ | |
638
2a5da27ccae9
6816154: G1: introduce flags to enable/disable RSet updating and scanning
tonyp
parents:
616
diff
changeset
|
298 "otherwise SurvivorRatio is used to determine the size") \ |
2a5da27ccae9
6816154: G1: introduce flags to enable/disable RSet updating and scanning
tonyp
parents:
616
diff
changeset
|
299 \ |
2a5da27ccae9
6816154: G1: introduce flags to enable/disable RSet updating and scanning
tonyp
parents:
616
diff
changeset
|
300 experimental(bool, G1EnableParallelRSetUpdating, false, \ |
2a5da27ccae9
6816154: G1: introduce flags to enable/disable RSet updating and scanning
tonyp
parents:
616
diff
changeset
|
301 "Enables the parallelization of remembered set updating " \ |
2a5da27ccae9
6816154: G1: introduce flags to enable/disable RSet updating and scanning
tonyp
parents:
616
diff
changeset
|
302 "during evacuation pauses") \ |
2a5da27ccae9
6816154: G1: introduce flags to enable/disable RSet updating and scanning
tonyp
parents:
616
diff
changeset
|
303 \ |
2a5da27ccae9
6816154: G1: introduce flags to enable/disable RSet updating and scanning
tonyp
parents:
616
diff
changeset
|
304 experimental(bool, G1EnableParallelRSetScanning, false, \ |
2a5da27ccae9
6816154: G1: introduce flags to enable/disable RSet updating and scanning
tonyp
parents:
616
diff
changeset
|
305 "Enables the parallelization of remembered set scanning " \ |
2a5da27ccae9
6816154: G1: introduce flags to enable/disable RSet updating and scanning
tonyp
parents:
616
diff
changeset
|
306 "during evacuation pauses") |
342 | 307 |
350
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
342
diff
changeset
|
308 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) |