Mercurial > hg > truffle
annotate src/share/vm/runtime/globals.hpp @ 1837:c99c53f07c14
6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
Summary: Inserted missing yield(check)s in closures used during the work-stealing phase of parallel concurrent marking, a missing synchronous yield-request in the cms perm gen allocation path, and a terminator-terminator for the offer_termination invocation that monitors the yield status of the concurrent marking task. Elaborated some documentation comments and made some task queue termination loop flags configurable at start-up to aid debugging in the field.
Reviewed-by: jmasa, johnc, poonam
author | ysr |
---|---|
date | Wed, 29 Sep 2010 16:17:02 -0700 |
parents | 894b1d7c7e01 |
children | 0715f0cf171d |
rev | line source |
---|---|
0 | 1 /* |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1544
diff
changeset
|
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 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 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1544
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1544
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1544
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
1692 | 25 #if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK) |
0 | 26 define_pd_global(bool, BackgroundCompilation, false); |
27 define_pd_global(bool, UseTLAB, false); | |
28 define_pd_global(bool, CICompileOSR, false); | |
29 define_pd_global(bool, UseTypeProfile, false); | |
30 define_pd_global(bool, UseOnStackReplacement, false); | |
31 define_pd_global(bool, InlineIntrinsics, false); | |
32 define_pd_global(bool, PreferInterpreterNativeStubs, true); | |
33 define_pd_global(bool, ProfileInterpreter, false); | |
34 define_pd_global(bool, ProfileTraps, false); | |
35 define_pd_global(bool, TieredCompilation, false); | |
36 | |
37 define_pd_global(intx, CompileThreshold, 0); | |
38 define_pd_global(intx, Tier2CompileThreshold, 0); | |
39 define_pd_global(intx, Tier3CompileThreshold, 0); | |
40 define_pd_global(intx, Tier4CompileThreshold, 0); | |
41 | |
42 define_pd_global(intx, BackEdgeThreshold, 0); | |
43 define_pd_global(intx, Tier2BackEdgeThreshold, 0); | |
44 define_pd_global(intx, Tier3BackEdgeThreshold, 0); | |
45 define_pd_global(intx, Tier4BackEdgeThreshold, 0); | |
46 | |
47 define_pd_global(intx, OnStackReplacePercentage, 0); | |
48 define_pd_global(bool, ResizeTLAB, false); | |
49 define_pd_global(intx, FreqInlineSize, 0); | |
1064 | 50 define_pd_global(intx, InlineSmallCode, 0); |
0 | 51 define_pd_global(intx, NewSizeThreadIncrease, 4*K); |
52 define_pd_global(intx, InlineClassNatives, true); | |
53 define_pd_global(intx, InlineUnsafeOps, true); | |
54 define_pd_global(intx, InitialCodeCacheSize, 160*K); | |
55 define_pd_global(intx, ReservedCodeCacheSize, 32*M); | |
56 define_pd_global(intx, CodeCacheExpansionSize, 32*K); | |
57 define_pd_global(intx, CodeCacheMinBlockLength, 1); | |
58 define_pd_global(uintx,PermSize, ScaleForWordSize(4*M)); | |
59 define_pd_global(uintx,MaxPermSize, ScaleForWordSize(64*M)); | |
60 define_pd_global(bool, NeverActAsServerClassMachine, true); | |
1064 | 61 define_pd_global(uint64_t,MaxRAM, 1ULL*G); |
0 | 62 #define CI_COMPILER_COUNT 0 |
63 #else | |
64 | |
65 #ifdef COMPILER2 | |
66 #define CI_COMPILER_COUNT 2 | |
67 #else | |
68 #define CI_COMPILER_COUNT 1 | |
69 #endif // COMPILER2 | |
70 | |
71 #endif // no compilers | |
72 | |
73 | |
74 // string type aliases used only in this file | |
75 typedef const char* ccstr; | |
76 typedef const char* ccstrlist; // represents string arguments which accumulate | |
77 | |
78 enum FlagValueOrigin { | |
79 DEFAULT = 0, | |
80 COMMAND_LINE = 1, | |
81 ENVIRON_VAR = 2, | |
82 CONFIG_FILE = 3, | |
83 MANAGEMENT = 4, | |
84 ERGONOMIC = 5, | |
85 ATTACH_ON_DEMAND = 6, | |
86 INTERNAL = 99 | |
87 }; | |
88 | |
89 struct Flag { | |
90 const char *type; | |
91 const char *name; | |
92 void* addr; | |
1768
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1749
diff
changeset
|
93 |
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1749
diff
changeset
|
94 NOT_PRODUCT(const char *doc;) |
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1749
diff
changeset
|
95 |
0 | 96 const char *kind; |
97 FlagValueOrigin origin; | |
98 | |
99 // points to all Flags static array | |
100 static Flag *flags; | |
101 | |
102 // number of flags | |
103 static size_t numFlags; | |
104 | |
105 static Flag* find_flag(char* name, size_t length); | |
106 | |
107 bool is_bool() const { return strcmp(type, "bool") == 0; } | |
108 bool get_bool() const { return *((bool*) addr); } | |
109 void set_bool(bool value) { *((bool*) addr) = value; } | |
110 | |
111 bool is_intx() const { return strcmp(type, "intx") == 0; } | |
112 intx get_intx() const { return *((intx*) addr); } | |
113 void set_intx(intx value) { *((intx*) addr) = value; } | |
114 | |
115 bool is_uintx() const { return strcmp(type, "uintx") == 0; } | |
116 uintx get_uintx() const { return *((uintx*) addr); } | |
117 void set_uintx(uintx value) { *((uintx*) addr) = value; } | |
118 | |
1064 | 119 bool is_uint64_t() const { return strcmp(type, "uint64_t") == 0; } |
120 uint64_t get_uint64_t() const { return *((uint64_t*) addr); } | |
121 void set_uint64_t(uint64_t value) { *((uint64_t*) addr) = value; } | |
122 | |
0 | 123 bool is_double() const { return strcmp(type, "double") == 0; } |
124 double get_double() const { return *((double*) addr); } | |
125 void set_double(double value) { *((double*) addr) = value; } | |
126 | |
127 bool is_ccstr() const { return strcmp(type, "ccstr") == 0 || strcmp(type, "ccstrlist") == 0; } | |
128 bool ccstr_accumulates() const { return strcmp(type, "ccstrlist") == 0; } | |
129 ccstr get_ccstr() const { return *((ccstr*) addr); } | |
130 void set_ccstr(ccstr value) { *((ccstr*) addr) = value; } | |
131 | |
132 bool is_unlocker() const; | |
133 bool is_unlocked() const; | |
134 bool is_writeable() const; | |
135 bool is_external() const; | |
136 | |
1768
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1749
diff
changeset
|
137 void print_on(outputStream* st, bool withComments = false ); |
0 | 138 void print_as_flag(outputStream* st); |
139 }; | |
140 | |
141 // debug flags control various aspects of the VM and are global accessible | |
142 | |
143 // use FlagSetting to temporarily change some debug flag | |
144 // e.g. FlagSetting fs(DebugThisAndThat, true); | |
145 // restored to previous value upon leaving scope | |
146 class FlagSetting { | |
147 bool val; | |
148 bool* flag; | |
149 public: | |
150 FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; } | |
151 ~FlagSetting() { *flag = val; } | |
152 }; | |
153 | |
154 | |
155 class CounterSetting { | |
156 intx* counter; | |
157 public: | |
158 CounterSetting(intx* cnt) { counter = cnt; (*counter)++; } | |
159 ~CounterSetting() { (*counter)--; } | |
160 }; | |
161 | |
162 | |
163 class IntFlagSetting { | |
164 intx val; | |
165 intx* flag; | |
166 public: | |
167 IntFlagSetting(intx& fl, intx newValue) { flag = &fl; val = fl; fl = newValue; } | |
168 ~IntFlagSetting() { *flag = val; } | |
169 }; | |
170 | |
171 | |
172 class DoubleFlagSetting { | |
173 double val; | |
174 double* flag; | |
175 public: | |
176 DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; } | |
177 ~DoubleFlagSetting() { *flag = val; } | |
178 }; | |
179 | |
180 | |
181 class CommandLineFlags { | |
182 public: | |
183 static bool boolAt(char* name, size_t len, bool* value); | |
184 static bool boolAt(char* name, bool* value) { return boolAt(name, strlen(name), value); } | |
185 static bool boolAtPut(char* name, size_t len, bool* value, FlagValueOrigin origin); | |
186 static bool boolAtPut(char* name, bool* value, FlagValueOrigin origin) { return boolAtPut(name, strlen(name), value, origin); } | |
187 | |
188 static bool intxAt(char* name, size_t len, intx* value); | |
189 static bool intxAt(char* name, intx* value) { return intxAt(name, strlen(name), value); } | |
190 static bool intxAtPut(char* name, size_t len, intx* value, FlagValueOrigin origin); | |
191 static bool intxAtPut(char* name, intx* value, FlagValueOrigin origin) { return intxAtPut(name, strlen(name), value, origin); } | |
192 | |
193 static bool uintxAt(char* name, size_t len, uintx* value); | |
194 static bool uintxAt(char* name, uintx* value) { return uintxAt(name, strlen(name), value); } | |
195 static bool uintxAtPut(char* name, size_t len, uintx* value, FlagValueOrigin origin); | |
196 static bool uintxAtPut(char* name, uintx* value, FlagValueOrigin origin) { return uintxAtPut(name, strlen(name), value, origin); } | |
197 | |
1064 | 198 static bool uint64_tAt(char* name, size_t len, uint64_t* value); |
199 static bool uint64_tAt(char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); } | |
200 static bool uint64_tAtPut(char* name, size_t len, uint64_t* value, FlagValueOrigin origin); | |
201 static bool uint64_tAtPut(char* name, uint64_t* value, FlagValueOrigin origin) { return uint64_tAtPut(name, strlen(name), value, origin); } | |
202 | |
0 | 203 static bool doubleAt(char* name, size_t len, double* value); |
204 static bool doubleAt(char* name, double* value) { return doubleAt(name, strlen(name), value); } | |
205 static bool doubleAtPut(char* name, size_t len, double* value, FlagValueOrigin origin); | |
206 static bool doubleAtPut(char* name, double* value, FlagValueOrigin origin) { return doubleAtPut(name, strlen(name), value, origin); } | |
207 | |
208 static bool ccstrAt(char* name, size_t len, ccstr* value); | |
209 static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); } | |
210 static bool ccstrAtPut(char* name, size_t len, ccstr* value, FlagValueOrigin origin); | |
211 static bool ccstrAtPut(char* name, ccstr* value, FlagValueOrigin origin) { return ccstrAtPut(name, strlen(name), value, origin); } | |
212 | |
213 // Returns false if name is not a command line flag. | |
214 static bool wasSetOnCmdline(const char* name, bool* value); | |
215 static void printSetFlags(); | |
216 | |
1768
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1749
diff
changeset
|
217 static void printFlags(bool withComments = false ); |
0 | 218 |
219 static void verify() PRODUCT_RETURN; | |
220 }; | |
221 | |
222 // use this for flags that are true by default in the debug version but | |
223 // false in the optimized version, and vice versa | |
224 #ifdef ASSERT | |
225 #define trueInDebug true | |
226 #define falseInDebug false | |
227 #else | |
228 #define trueInDebug false | |
229 #define falseInDebug true | |
230 #endif | |
231 | |
232 // use this for flags that are true per default in the product build | |
233 // but false in development builds, and vice versa | |
234 #ifdef PRODUCT | |
235 #define trueInProduct true | |
236 #define falseInProduct false | |
237 #else | |
238 #define trueInProduct false | |
239 #define falseInProduct true | |
240 #endif | |
241 | |
242 // use this for flags that are true per default in the tiered build | |
243 // but false in non-tiered builds, and vice versa | |
244 #ifdef TIERED | |
245 #define trueInTiered true | |
246 #define falseInTiered false | |
247 #else | |
248 #define trueInTiered false | |
249 #define falseInTiered true | |
250 #endif | |
251 | |
252 // develop flags are settable / visible only during development and are constant in the PRODUCT version | |
253 // product flags are always settable / visible | |
254 // notproduct flags are settable / visible only during development and are not declared in the PRODUCT version | |
255 | |
256 // A flag must be declared with one of the following types: | |
257 // bool, intx, uintx, ccstr. | |
258 // The type "ccstr" is an alias for "const char*" and is used | |
259 // only in this file, because the macrology requires single-token type names. | |
260 | |
261 // Note: Diagnostic options not meant for VM tuning or for product modes. | |
262 // They are to be used for VM quality assurance or field diagnosis | |
263 // of VM bugs. They are hidden so that users will not be encouraged to | |
264 // try them as if they were VM ordinary execution options. However, they | |
265 // are available in the product version of the VM. Under instruction | |
266 // from support engineers, VM customers can turn them on to collect | |
267 // diagnostic information about VM problems. To use a VM diagnostic | |
268 // option, you must first specify +UnlockDiagnosticVMOptions. | |
269 // (This master switch also affects the behavior of -Xprintflags.) | |
350
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
270 // |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
271 // experimental flags are in support of features that are not |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
272 // part of the officially supported product, but are available |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
273 // for experimenting with. They could, for example, be performance |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
274 // features that may not have undergone full or rigorous QA, but which may |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
275 // help performance in some cases and released for experimentation |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
276 // by the community of users and developers. This flag also allows one to |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
277 // be able to build a fully supported product that nonetheless also |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
278 // ships with some unsupported, lightly tested, experimental features. |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
279 // Like the UnlockDiagnosticVMOptions flag above, there is a corresponding |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
280 // UnlockExperimentalVMOptions flag, which allows the control and |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
281 // modification of the experimental flags. |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
282 // |
1837
c99c53f07c14
6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents:
1836
diff
changeset
|
283 // Nota bene: neither diagnostic nor experimental options should be used casually, |
c99c53f07c14
6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents:
1836
diff
changeset
|
284 // and they are not supported on production loads, except under explicit |
c99c53f07c14
6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents:
1836
diff
changeset
|
285 // direction from support engineers. |
c99c53f07c14
6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents:
1836
diff
changeset
|
286 // |
0 | 287 // manageable flags are writeable external product flags. |
288 // They are dynamically writeable through the JDK management interface | |
289 // (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole. | |
290 // These flags are external exported interface (see CCC). The list of | |
291 // manageable flags can be queried programmatically through the management | |
292 // interface. | |
293 // | |
294 // A flag can be made as "manageable" only if | |
295 // - the flag is defined in a CCC as an external exported interface. | |
296 // - the VM implementation supports dynamic setting of the flag. | |
297 // This implies that the VM must *always* query the flag variable | |
298 // and not reuse state related to the flag state at any given time. | |
299 // - you want the flag to be queried programmatically by the customers. | |
300 // | |
301 // product_rw flags are writeable internal product flags. | |
302 // They are like "manageable" flags but for internal/private use. | |
303 // The list of product_rw flags are internal/private flags which | |
304 // may be changed/removed in a future release. It can be set | |
305 // through the management interface to get/set value | |
306 // when the name of flag is supplied. | |
307 // | |
308 // A flag can be made as "product_rw" only if | |
309 // - the VM implementation supports dynamic setting of the flag. | |
310 // This implies that the VM must *always* query the flag variable | |
311 // and not reuse state related to the flag state at any given time. | |
312 // | |
313 // Note that when there is a need to support develop flags to be writeable, | |
314 // it can be done in the same way as product_rw. | |
315 | |
350
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
316 #define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \ |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
317 \ |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
318 lp64_product(bool, UseCompressedOops, false, \ |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
319 "Use 32-bit object references in 64-bit VM. " \ |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
320 "lp64_product means flag is always constant in 32 bit VM") \ |
0 | 321 \ |
642
660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents:
615
diff
changeset
|
322 notproduct(bool, CheckCompressedOops, true, \ |
660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents:
615
diff
changeset
|
323 "generate checks in encoding/decoding code in debug VM") \ |
660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents:
615
diff
changeset
|
324 \ |
660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents:
615
diff
changeset
|
325 product_pd(uintx, HeapBaseMinAddress, \ |
660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents:
615
diff
changeset
|
326 "OS specific low limit for heap base address") \ |
660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents:
615
diff
changeset
|
327 \ |
660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents:
615
diff
changeset
|
328 diagnostic(bool, PrintCompressedOopsMode, false, \ |
660978a2a31a
6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents:
615
diff
changeset
|
329 "Print compressed oops base address and encoding mode") \ |
325
93befa083681
6741004: UseLargePages + UseCompressedOops breaks implicit null checking guard page
coleenp
parents:
300
diff
changeset
|
330 \ |
1571
2d127394260e
6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
kvn
parents:
1544
diff
changeset
|
331 lp64_product(intx, ObjectAlignmentInBytes, 8, \ |
2d127394260e
6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
kvn
parents:
1544
diff
changeset
|
332 "Default object alignment in bytes, 8 is minimum") \ |
2d127394260e
6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
kvn
parents:
1544
diff
changeset
|
333 \ |
0 | 334 /* UseMembar is theoretically a temp flag used for memory barrier \ |
335 * removal testing. It was supposed to be removed before FCS but has \ | |
336 * been re-added (see 6401008) */ \ | |
337 product(bool, UseMembar, false, \ | |
338 "(Unstable) Issues membars on thread state transitions") \ | |
339 \ | |
1518
3bfae429e2cf
6948537: CMS: BOT walkers observe out-of-thin-air zeros on sun4v sparc/CMT
ysr
parents:
1490
diff
changeset
|
340 /* Temporary: See 6948537 */ \ |
3bfae429e2cf
6948537: CMS: BOT walkers observe out-of-thin-air zeros on sun4v sparc/CMT
ysr
parents:
1490
diff
changeset
|
341 experimental(bool, UseMemSetInBOT, true, \ |
3bfae429e2cf
6948537: CMS: BOT walkers observe out-of-thin-air zeros on sun4v sparc/CMT
ysr
parents:
1490
diff
changeset
|
342 "(Unstable) uses memset in BOT updates in GC code") \ |
3bfae429e2cf
6948537: CMS: BOT walkers observe out-of-thin-air zeros on sun4v sparc/CMT
ysr
parents:
1490
diff
changeset
|
343 \ |
0 | 344 diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ |
350
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
345 "Enable normal processing of flags relating to field diagnostics")\ |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
346 \ |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
347 experimental(bool, UnlockExperimentalVMOptions, false, \ |
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
348 "Enable normal processing of flags relating to experimental features")\ |
0 | 349 \ |
350 product(bool, JavaMonitorsInStackTrace, true, \ | |
351 "Print info. about Java monitor locks when the stacks are dumped")\ | |
352 \ | |
353 product_pd(bool, UseLargePages, \ | |
354 "Use large page memory") \ | |
355 \ | |
389
ee21eaa8ffe1
6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents:
377
diff
changeset
|
356 product_pd(bool, UseLargePagesIndividualAllocation, \ |
ee21eaa8ffe1
6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents:
377
diff
changeset
|
357 "Allocate large pages individually for better affinity") \ |
ee21eaa8ffe1
6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents:
377
diff
changeset
|
358 \ |
ee21eaa8ffe1
6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents:
377
diff
changeset
|
359 develop(bool, LargePagesIndividualAllocationInjectError, false, \ |
ee21eaa8ffe1
6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents:
377
diff
changeset
|
360 "Fail large pages individual allocation") \ |
ee21eaa8ffe1
6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents:
377
diff
changeset
|
361 \ |
0 | 362 develop(bool, TracePageSizes, false, \ |
363 "Trace page size selection and usage.") \ | |
364 \ | |
365 product(bool, UseNUMA, false, \ | |
366 "Use NUMA if available") \ | |
367 \ | |
462
85f1b9537f70
6779436: NUMA allocator: libnuma expects certain size of the buffer in numa_node_to_cpus()
iveresov
parents:
455
diff
changeset
|
368 product(bool, ForceNUMA, false, \ |
85f1b9537f70
6779436: NUMA allocator: libnuma expects certain size of the buffer in numa_node_to_cpus()
iveresov
parents:
455
diff
changeset
|
369 "Force NUMA optimizations on single-node/UMA systems") \ |
85f1b9537f70
6779436: NUMA allocator: libnuma expects certain size of the buffer in numa_node_to_cpus()
iveresov
parents:
455
diff
changeset
|
370 \ |
0 | 371 product(intx, NUMAChunkResizeWeight, 20, \ |
372 "Percentage (0-100) used to weight the current sample when " \ | |
373 "computing exponentially decaying average for " \ | |
374 "AdaptiveNUMAChunkSizing") \ | |
375 \ | |
376 product(intx, NUMASpaceResizeRate, 1*G, \ | |
377 "Do not reallocate more that this amount per collection") \ | |
378 \ | |
379 product(bool, UseAdaptiveNUMAChunkSizing, true, \ | |
380 "Enable adaptive chunk sizing for NUMA") \ | |
381 \ | |
382 product(bool, NUMAStats, false, \ | |
383 "Print NUMA stats in detailed heap information") \ | |
384 \ | |
385 product(intx, NUMAPageScanRate, 256, \ | |
386 "Maximum number of pages to include in the page scan procedure") \ | |
387 \ | |
388 product_pd(bool, NeedsDeoptSuspend, \ | |
389 "True for register window machines (sparc/ia64)") \ | |
390 \ | |
391 product(intx, UseSSE, 99, \ | |
392 "Highest supported SSE instructions set on x86/x64") \ | |
393 \ | |
394 product(uintx, LargePageSizeInBytes, 0, \ | |
395 "Large page size (0 to let VM choose the page size") \ | |
396 \ | |
397 product(uintx, LargePageHeapSizeThreshold, 128*M, \ | |
398 "Use large pages if max heap is at least this big") \ | |
399 \ | |
400 product(bool, ForceTimeHighResolution, false, \ | |
401 "Using high time resolution(For Win32 only)") \ | |
402 \ | |
403 develop(bool, TraceItables, false, \ | |
404 "Trace initialization and use of itables") \ | |
405 \ | |
406 develop(bool, TracePcPatching, false, \ | |
407 "Trace usage of frame::patch_pc") \ | |
408 \ | |
409 develop(bool, TraceJumps, false, \ | |
410 "Trace assembly jumps in thread ring buffer") \ | |
411 \ | |
412 develop(bool, TraceRelocator, false, \ | |
413 "Trace the bytecode relocator") \ | |
414 \ | |
415 develop(bool, TraceLongCompiles, false, \ | |
416 "Print out every time compilation is longer than " \ | |
417 "a given threashold") \ | |
418 \ | |
419 develop(bool, SafepointALot, false, \ | |
420 "Generates a lot of safepoints. Works with " \ | |
421 "GuaranteedSafepointInterval") \ | |
422 \ | |
423 product_pd(bool, BackgroundCompilation, \ | |
424 "A thread requesting compilation is not blocked during " \ | |
425 "compilation") \ | |
426 \ | |
427 product(bool, PrintVMQWaitTime, false, \ | |
428 "Prints out the waiting time in VM operation queue") \ | |
429 \ | |
430 develop(bool, BailoutToInterpreterForThrows, false, \ | |
431 "Compiled methods which throws/catches exceptions will be " \ | |
432 "deopt and intp.") \ | |
433 \ | |
434 develop(bool, NoYieldsInMicrolock, false, \ | |
435 "Disable yields in microlock") \ | |
436 \ | |
437 develop(bool, TraceOopMapGeneration, false, \ | |
438 "Shows oopmap generation") \ | |
439 \ | |
440 product(bool, MethodFlushing, true, \ | |
441 "Reclamation of zombie and not-entrant methods") \ | |
442 \ | |
443 develop(bool, VerifyStack, false, \ | |
444 "Verify stack of each thread when it is entering a runtime call") \ | |
445 \ | |
446 develop(bool, ForceUnreachable, false, \ | |
447 "(amd64) Make all non code cache addresses to be unreachable with rip-rel forcing use of 64bit literal fixups") \ | |
448 \ | |
449 notproduct(bool, StressDerivedPointers, false, \ | |
450 "Force scavenge when a derived pointers is detected on stack " \ | |
451 "after rtm call") \ | |
452 \ | |
453 develop(bool, TraceDerivedPointers, false, \ | |
454 "Trace traversal of derived pointers on stack") \ | |
455 \ | |
456 notproduct(bool, TraceCodeBlobStacks, false, \ | |
457 "Trace stack-walk of codeblobs") \ | |
458 \ | |
459 product(bool, PrintJNIResolving, false, \ | |
460 "Used to implement -v:jni") \ | |
461 \ | |
462 notproduct(bool, PrintRewrites, false, \ | |
463 "Print methods that are being rewritten") \ | |
464 \ | |
465 product(bool, UseInlineCaches, true, \ | |
466 "Use Inline Caches for virtual calls ") \ | |
467 \ | |
468 develop(bool, InlineArrayCopy, true, \ | |
469 "inline arraycopy native that is known to be part of " \ | |
470 "base library DLL") \ | |
471 \ | |
472 develop(bool, InlineObjectHash, true, \ | |
473 "inline Object::hashCode() native that is known to be part " \ | |
474 "of base library DLL") \ | |
475 \ | |
476 develop(bool, InlineObjectCopy, true, \ | |
477 "inline Object.clone and Arrays.copyOf[Range] intrinsics") \ | |
478 \ | |
479 develop(bool, InlineNatives, true, \ | |
480 "inline natives that are known to be part of base library DLL") \ | |
481 \ | |
482 develop(bool, InlineMathNatives, true, \ | |
483 "inline SinD, CosD, etc.") \ | |
484 \ | |
485 develop(bool, InlineClassNatives, true, \ | |
486 "inline Class.isInstance, etc") \ | |
487 \ | |
488 develop(bool, InlineAtomicLong, true, \ | |
489 "inline sun.misc.AtomicLong") \ | |
490 \ | |
491 develop(bool, InlineThreadNatives, true, \ | |
492 "inline Thread.currentThread, etc") \ | |
493 \ | |
494 develop(bool, InlineReflectionGetCallerClass, true, \ | |
495 "inline sun.reflect.Reflection.getCallerClass(), known to be part "\ | |
496 "of base library DLL") \ | |
497 \ | |
498 develop(bool, InlineUnsafeOps, true, \ | |
499 "inline memory ops (native methods) from sun.misc.Unsafe") \ | |
500 \ | |
501 develop(bool, ConvertCmpD2CmpF, true, \ | |
502 "Convert cmpD to cmpF when one input is constant in float range") \ | |
503 \ | |
504 develop(bool, ConvertFloat2IntClipping, true, \ | |
505 "Convert float2int clipping idiom to integer clipping") \ | |
506 \ | |
507 develop(bool, SpecialStringCompareTo, true, \ | |
508 "special version of string compareTo") \ | |
509 \ | |
510 develop(bool, SpecialStringIndexOf, true, \ | |
511 "special version of string indexOf") \ | |
512 \ | |
681 | 513 develop(bool, SpecialStringEquals, true, \ |
514 "special version of string equals") \ | |
515 \ | |
516 develop(bool, SpecialArraysEquals, true, \ | |
169
9148c65abefc
6695049: (coll) Create an x86 intrinsic for Arrays.equals
rasbold
parents:
164
diff
changeset
|
517 "special version of Arrays.equals(char[],char[])") \ |
9148c65abefc
6695049: (coll) Create an x86 intrinsic for Arrays.equals
rasbold
parents:
164
diff
changeset
|
518 \ |
681 | 519 product(bool, UseSSE42Intrinsics, false, \ |
520 "SSE4.2 versions of intrinsics") \ | |
521 \ | |
0 | 522 develop(bool, TraceCallFixup, false, \ |
523 "traces all call fixups") \ | |
524 \ | |
525 develop(bool, DeoptimizeALot, false, \ | |
526 "deoptimize at every exit from the runtime system") \ | |
527 \ | |
434 | 528 notproduct(ccstrlist, DeoptimizeOnlyAt, "", \ |
0 | 529 "a comma separated list of bcis to deoptimize at") \ |
530 \ | |
531 product(bool, DeoptimizeRandom, false, \ | |
532 "deoptimize random frames on random exit from the runtime system")\ | |
533 \ | |
534 notproduct(bool, ZombieALot, false, \ | |
535 "creates zombies (non-entrant) at exit from the runt. system") \ | |
536 \ | |
537 notproduct(bool, WalkStackALot, false, \ | |
538 "trace stack (no print) at every exit from the runtime system") \ | |
539 \ | |
540 develop(bool, Debugging, false, \ | |
541 "set when executing debug methods in debug.ccp " \ | |
542 "(to prevent triggering assertions)") \ | |
543 \ | |
544 notproduct(bool, StrictSafepointChecks, trueInDebug, \ | |
545 "Enable strict checks that safepoints cannot happen for threads " \ | |
546 "that used No_Safepoint_Verifier") \ | |
547 \ | |
548 notproduct(bool, VerifyLastFrame, false, \ | |
549 "Verify oops on last frame on entry to VM") \ | |
550 \ | |
551 develop(bool, TraceHandleAllocation, false, \ | |
552 "Prints out warnings when suspicious many handles are allocated") \ | |
553 \ | |
554 product(bool, UseCompilerSafepoints, true, \ | |
555 "Stop at safepoints in compiled code") \ | |
556 \ | |
557 product(bool, UseSplitVerifier, true, \ | |
558 "use split verifier with StackMapTable attributes") \ | |
559 \ | |
560 product(bool, FailOverToOldVerifier, true, \ | |
561 "fail over to old verifier when split verifier fails") \ | |
562 \ | |
563 develop(bool, ShowSafepointMsgs, false, \ | |
564 "Show msg. about safepoint synch.") \ | |
565 \ | |
566 product(bool, SafepointTimeout, false, \ | |
567 "Time out and warn or fail after SafepointTimeoutDelay " \ | |
568 "milliseconds if failed to reach safepoint") \ | |
569 \ | |
570 develop(bool, DieOnSafepointTimeout, false, \ | |
571 "Die upon failure to reach safepoint (see SafepointTimeout)") \ | |
572 \ | |
573 /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \ | |
574 /* typically, at most a few retries are needed */ \ | |
575 product(intx, SuspendRetryCount, 50, \ | |
576 "Maximum retry count for an external suspend request") \ | |
577 \ | |
578 product(intx, SuspendRetryDelay, 5, \ | |
579 "Milliseconds to delay per retry (* current_retry_count)") \ | |
580 \ | |
581 product(bool, AssertOnSuspendWaitFailure, false, \ | |
582 "Assert/Guarantee on external suspend wait failure") \ | |
583 \ | |
584 product(bool, TraceSuspendWaitFailures, false, \ | |
585 "Trace external suspend wait failures") \ | |
586 \ | |
587 product(bool, MaxFDLimit, true, \ | |
588 "Bump the number of file descriptors to max in solaris.") \ | |
589 \ | |
590 notproduct(bool, LogEvents, trueInDebug, \ | |
591 "Enable Event log") \ | |
592 \ | |
593 product(bool, BytecodeVerificationRemote, true, \ | |
594 "Enables the Java bytecode verifier for remote classes") \ | |
595 \ | |
596 product(bool, BytecodeVerificationLocal, false, \ | |
597 "Enables the Java bytecode verifier for local classes") \ | |
598 \ | |
599 develop(bool, ForceFloatExceptions, trueInDebug, \ | |
600 "Force exceptions on FP stack under/overflow") \ | |
601 \ | |
602 develop(bool, SoftMatchFailure, trueInProduct, \ | |
603 "If the DFA fails to match a node, print a message and bail out") \ | |
604 \ | |
605 develop(bool, VerifyStackAtCalls, false, \ | |
606 "Verify that the stack pointer is unchanged after calls") \ | |
607 \ | |
608 develop(bool, TraceJavaAssertions, false, \ | |
609 "Trace java language assertions") \ | |
610 \ | |
611 notproduct(bool, CheckAssertionStatusDirectives, false, \ | |
612 "temporary - see javaClasses.cpp") \ | |
613 \ | |
614 notproduct(bool, PrintMallocFree, false, \ | |
615 "Trace calls to C heap malloc/free allocation") \ | |
616 \ | |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1660
diff
changeset
|
617 product(bool, PrintOopAddress, false, \ |
0 | 618 "Always print the location of the oop") \ |
619 \ | |
620 notproduct(bool, VerifyCodeCacheOften, false, \ | |
621 "Verify compiled-code cache often") \ | |
622 \ | |
623 develop(bool, ZapDeadCompiledLocals, false, \ | |
624 "Zap dead locals in compiler frames") \ | |
625 \ | |
626 notproduct(bool, ZapDeadLocalsOld, false, \ | |
627 "Zap dead locals (old version, zaps all frames when " \ | |
628 "entering the VM") \ | |
629 \ | |
630 notproduct(bool, CheckOopishValues, false, \ | |
631 "Warn if value contains oop ( requires ZapDeadLocals)") \ | |
632 \ | |
633 develop(bool, UseMallocOnly, false, \ | |
634 "use only malloc/free for allocation (no resource area/arena)") \ | |
635 \ | |
636 develop(bool, PrintMalloc, false, \ | |
637 "print all malloc/free calls") \ | |
638 \ | |
639 develop(bool, ZapResourceArea, trueInDebug, \ | |
640 "Zap freed resource/arena space with 0xABABABAB") \ | |
641 \ | |
642 notproduct(bool, ZapVMHandleArea, trueInDebug, \ | |
643 "Zap freed VM handle space with 0xBCBCBCBC") \ | |
644 \ | |
645 develop(bool, ZapJNIHandleArea, trueInDebug, \ | |
646 "Zap freed JNI handle space with 0xFEFEFEFE") \ | |
647 \ | |
1836
894b1d7c7e01
6423256: GC stacks should use a better data structure
jcoomes
parents:
1778
diff
changeset
|
648 notproduct(bool, ZapStackSegments, trueInDebug, \ |
894b1d7c7e01
6423256: GC stacks should use a better data structure
jcoomes
parents:
1778
diff
changeset
|
649 "Zap allocated/freed Stack segments with 0xFADFADED") \ |
894b1d7c7e01
6423256: GC stacks should use a better data structure
jcoomes
parents:
1778
diff
changeset
|
650 \ |
263
12eea04c8b06
6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents:
219
diff
changeset
|
651 develop(bool, ZapUnusedHeapArea, trueInDebug, \ |
0 | 652 "Zap unused heap space with 0xBAADBABE") \ |
653 \ | |
263
12eea04c8b06
6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents:
219
diff
changeset
|
654 develop(bool, TraceZapUnusedHeapArea, false, \ |
12eea04c8b06
6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents:
219
diff
changeset
|
655 "Trace zapping of unused heap space") \ |
12eea04c8b06
6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents:
219
diff
changeset
|
656 \ |
12eea04c8b06
6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents:
219
diff
changeset
|
657 develop(bool, CheckZapUnusedHeapArea, false, \ |
12eea04c8b06
6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents:
219
diff
changeset
|
658 "Check zapping of unused heap space") \ |
12eea04c8b06
6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents:
219
diff
changeset
|
659 \ |
481
7d7a7c599c17
6578152: fill_region_with_object has usability and safety issues
jcoomes
parents:
462
diff
changeset
|
660 develop(bool, ZapFillerObjects, trueInDebug, \ |
7d7a7c599c17
6578152: fill_region_with_object has usability and safety issues
jcoomes
parents:
462
diff
changeset
|
661 "Zap filler objects with 0xDEAFBABE") \ |
7d7a7c599c17
6578152: fill_region_with_object has usability and safety issues
jcoomes
parents:
462
diff
changeset
|
662 \ |
0 | 663 develop(bool, PrintVMMessages, true, \ |
664 "Print vm messages on console") \ | |
665 \ | |
666 product(bool, PrintGCApplicationConcurrentTime, false, \ | |
667 "Print the time the application has been running") \ | |
668 \ | |
669 product(bool, PrintGCApplicationStoppedTime, false, \ | |
670 "Print the time the application has been stopped") \ | |
671 \ | |
1490
f03d0a26bf83
6888954: argument formatting for assert() and friends
jcoomes
parents:
1367
diff
changeset
|
672 notproduct(uintx, ErrorHandlerTest, 0, \ |
f03d0a26bf83
6888954: argument formatting for assert() and friends
jcoomes
parents:
1367
diff
changeset
|
673 "If > 0, provokes an error after VM initialization; the value" \ |
f03d0a26bf83
6888954: argument formatting for assert() and friends
jcoomes
parents:
1367
diff
changeset
|
674 "determines which error to provoke. See test_error_handler()" \ |
f03d0a26bf83
6888954: argument formatting for assert() and friends
jcoomes
parents:
1367
diff
changeset
|
675 "in debug.cpp.") \ |
f03d0a26bf83
6888954: argument formatting for assert() and friends
jcoomes
parents:
1367
diff
changeset
|
676 \ |
0 | 677 develop(bool, Verbose, false, \ |
678 "Prints additional debugging information from other modes") \ | |
679 \ | |
680 develop(bool, PrintMiscellaneous, false, \ | |
681 "Prints uncategorized debugging information (requires +Verbose)") \ | |
682 \ | |
683 develop(bool, WizardMode, false, \ | |
684 "Prints much more debugging information") \ | |
685 \ | |
686 product(bool, ShowMessageBoxOnError, false, \ | |
687 "Keep process alive on VM fatal error") \ | |
688 \ | |
689 product_pd(bool, UseOSErrorReporting, \ | |
690 "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ | |
691 \ | |
692 product(bool, SuppressFatalErrorMessage, false, \ | |
693 "Do NO Fatal Error report [Avoid deadlock]") \ | |
694 \ | |
695 product(ccstrlist, OnError, "", \ | |
696 "Run user-defined commands on fatal error; see VMError.cpp " \ | |
697 "for examples") \ | |
698 \ | |
699 product(ccstrlist, OnOutOfMemoryError, "", \ | |
700 "Run user-defined commands on first java.lang.OutOfMemoryError") \ | |
701 \ | |
615
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
702 manageable(bool, HeapDumpBeforeFullGC, false, \ |
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
703 "Dump heap to file before any major stop-world GC") \ |
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
704 \ |
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
705 manageable(bool, HeapDumpAfterFullGC, false, \ |
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
706 "Dump heap to file after any major stop-world GC") \ |
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
707 \ |
0 | 708 manageable(bool, HeapDumpOnOutOfMemoryError, false, \ |
709 "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ | |
710 \ | |
711 manageable(ccstr, HeapDumpPath, NULL, \ | |
712 "When HeapDumpOnOutOfMemoryError is on, the path (filename or" \ | |
713 "directory) of the dump file (defaults to java_pid<pid>.hprof" \ | |
714 "in the working directory)") \ | |
715 \ | |
716 develop(uintx, SegmentedHeapDumpThreshold, 2*G, \ | |
717 "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \ | |
718 "when the heap usage is larger than this") \ | |
719 \ | |
720 develop(uintx, HeapDumpSegmentSize, 1*G, \ | |
721 "Approximate segment size when generating a segmented heap dump") \ | |
722 \ | |
723 develop(bool, BreakAtWarning, false, \ | |
724 "Execute breakpoint upon encountering VM warning") \ | |
725 \ | |
726 product_pd(bool, UseVectoredExceptions, \ | |
727 "Temp Flag - Use Vectored Exceptions rather than SEH (Windows Only)") \ | |
728 \ | |
729 develop(bool, TraceVMOperation, false, \ | |
730 "Trace vm operations") \ | |
731 \ | |
732 develop(bool, UseFakeTimers, false, \ | |
733 "Tells whether the VM should use system time or a fake timer") \ | |
734 \ | |
735 diagnostic(bool, LogCompilation, false, \ | |
736 "Log compilation activity in detail to hotspot.log or LogFile") \ | |
737 \ | |
738 product(bool, PrintCompilation, false, \ | |
739 "Print compilations") \ | |
740 \ | |
741 diagnostic(bool, TraceNMethodInstalls, false, \ | |
742 "Trace nmethod intallation") \ | |
743 \ | |
989
148e5441d916
6863023: need non-perm oops in code cache for JSR 292
jrose
parents:
910
diff
changeset
|
744 diagnostic(intx, ScavengeRootsInCode, 0, \ |
148e5441d916
6863023: need non-perm oops in code cache for JSR 292
jrose
parents:
910
diff
changeset
|
745 "0: do not allow scavengable oops in the code cache; " \ |
148e5441d916
6863023: need non-perm oops in code cache for JSR 292
jrose
parents:
910
diff
changeset
|
746 "1: allow scavenging from the code cache; " \ |
148e5441d916
6863023: need non-perm oops in code cache for JSR 292
jrose
parents:
910
diff
changeset
|
747 "2: emit as many constants as the compiler can see") \ |
148e5441d916
6863023: need non-perm oops in code cache for JSR 292
jrose
parents:
910
diff
changeset
|
748 \ |
0 | 749 diagnostic(bool, TraceOSRBreakpoint, false, \ |
750 "Trace OSR Breakpoint ") \ | |
751 \ | |
752 diagnostic(bool, TraceCompileTriggered, false, \ | |
753 "Trace compile triggered") \ | |
754 \ | |
755 diagnostic(bool, TraceTriggers, false, \ | |
756 "Trace triggers") \ | |
757 \ | |
758 product(bool, AlwaysRestoreFPU, false, \ | |
759 "Restore the FPU control word after every JNI call (expensive)") \ | |
760 \ | |
761 notproduct(bool, PrintCompilation2, false, \ | |
762 "Print additional statistics per compilation") \ | |
763 \ | |
100
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
764 diagnostic(bool, PrintAdapterHandlers, false, \ |
0 | 765 "Print code generated for i2c/c2i adapters") \ |
766 \ | |
1207
74c848d437ab
6921922: fix for 6911204 breaks tagged stack interpreter
never
parents:
1206
diff
changeset
|
767 develop(bool, VerifyAdapterSharing, false, \ |
74c848d437ab
6921922: fix for 6911204 breaks tagged stack interpreter
never
parents:
1206
diff
changeset
|
768 "Verify that the code for shared adapters is the equivalent") \ |
74c848d437ab
6921922: fix for 6911204 breaks tagged stack interpreter
never
parents:
1206
diff
changeset
|
769 \ |
100
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
770 diagnostic(bool, PrintAssembly, false, \ |
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
771 "Print assembly code (using external disassembler.so)") \ |
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
772 \ |
370
885fe0f95828
6744783: HotSpot segfaults if given -XX options with an empty string argument
never
parents:
325
diff
changeset
|
773 diagnostic(ccstr, PrintAssemblyOptions, NULL, \ |
100
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
774 "Options string passed to disassembler.so") \ |
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
775 \ |
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
776 diagnostic(bool, PrintNMethods, false, \ |
0 | 777 "Print assembly code for nmethods when generated") \ |
778 \ | |
100
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
779 diagnostic(bool, PrintNativeNMethods, false, \ |
0 | 780 "Print assembly code for native nmethods when generated") \ |
781 \ | |
782 develop(bool, PrintDebugInfo, false, \ | |
783 "Print debug information for all nmethods when generated") \ | |
784 \ | |
785 develop(bool, PrintRelocations, false, \ | |
786 "Print relocation information for all nmethods when generated") \ | |
787 \ | |
788 develop(bool, PrintDependencies, false, \ | |
789 "Print dependency information for all nmethods when generated") \ | |
790 \ | |
791 develop(bool, PrintExceptionHandlers, false, \ | |
792 "Print exception handler tables for all nmethods when generated") \ | |
793 \ | |
794 develop(bool, InterceptOSException, false, \ | |
795 "Starts debugger when an implicit OS (e.g., NULL) " \ | |
796 "exception happens") \ | |
797 \ | |
798 notproduct(bool, PrintCodeCache, false, \ | |
799 "Print the compiled_code cache when exiting") \ | |
800 \ | |
801 develop(bool, PrintCodeCache2, false, \ | |
802 "Print detailed info on the compiled_code cache when exiting") \ | |
803 \ | |
100
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
804 diagnostic(bool, PrintStubCode, false, \ |
0 | 805 "Print generated stub code") \ |
806 \ | |
807 product(bool, StackTraceInThrowable, true, \ | |
808 "Collect backtrace in throwable when exception happens") \ | |
809 \ | |
810 product(bool, OmitStackTraceInFastThrow, true, \ | |
811 "Omit backtraces for some 'hot' exceptions in optimized code") \ | |
812 \ | |
813 product(bool, ProfilerPrintByteCodeStatistics, false, \ | |
814 "Prints byte code statictics when dumping profiler output") \ | |
815 \ | |
816 product(bool, ProfilerRecordPC, false, \ | |
817 "Collects tick for each 16 byte interval of compiled code") \ | |
818 \ | |
1064 | 819 product(bool, ProfileVM, false, \ |
0 | 820 "Profiles ticks that fall within VM (either in the VM Thread " \ |
821 "or VM code called through stubs)") \ | |
822 \ | |
823 product(bool, ProfileIntervals, false, \ | |
824 "Prints profiles for each interval (see ProfileIntervalsTicks)") \ | |
825 \ | |
826 notproduct(bool, ProfilerCheckIntervals, false, \ | |
827 "Collect and print info on spacing of profiler ticks") \ | |
828 \ | |
829 develop(bool, PrintJVMWarnings, false, \ | |
830 "Prints warnings for unimplemented JVM functions") \ | |
831 \ | |
832 notproduct(uintx, WarnOnStalledSpinLock, 0, \ | |
833 "Prints warnings for stalled SpinLocks") \ | |
834 \ | |
835 develop(bool, InitializeJavaLangSystem, true, \ | |
836 "Initialize java.lang.System - turn off for individual " \ | |
837 "method debugging") \ | |
838 \ | |
839 develop(bool, InitializeJavaLangString, true, \ | |
840 "Initialize java.lang.String - turn off for individual " \ | |
841 "method debugging") \ | |
842 \ | |
843 develop(bool, InitializeJavaLangExceptionsErrors, true, \ | |
844 "Initialize various error and exception classes - turn off for " \ | |
845 "individual method debugging") \ | |
846 \ | |
847 product(bool, RegisterFinalizersAtInit, true, \ | |
848 "Register finalizable objects at end of Object.<init> or " \ | |
1064 | 849 "after allocation") \ |
0 | 850 \ |
851 develop(bool, RegisterReferences, true, \ | |
852 "Tells whether the VM should register soft/weak/final/phantom " \ | |
853 "references") \ | |
854 \ | |
855 develop(bool, IgnoreRewrites, false, \ | |
856 "Supress rewrites of bytecodes in the oopmap generator. " \ | |
857 "This is unsafe!") \ | |
858 \ | |
859 develop(bool, PrintCodeCacheExtension, false, \ | |
860 "Print extension of code cache") \ | |
861 \ | |
862 develop(bool, UsePrivilegedStack, true, \ | |
863 "Enable the security JVM functions") \ | |
864 \ | |
865 develop(bool, IEEEPrecision, true, \ | |
866 "Enables IEEE precision (for INTEL only)") \ | |
867 \ | |
868 develop(bool, ProtectionDomainVerification, true, \ | |
869 "Verifies protection domain before resolution in system " \ | |
870 "dictionary") \ | |
871 \ | |
872 product(bool, ClassUnloading, true, \ | |
873 "Do unloading of classes") \ | |
874 \ | |
474
7a018855d2f0
6779339: turn off LinkWellKnownClasses by default pending further testing
jrose
parents:
455
diff
changeset
|
875 diagnostic(bool, LinkWellKnownClasses, false, \ |
132
60b728ec77c1
6652736: well known classes in system dictionary are inefficiently processed
jrose
parents:
116
diff
changeset
|
876 "Resolve a well known class as soon as its name is seen") \ |
60b728ec77c1
6652736: well known classes in system dictionary are inefficiently processed
jrose
parents:
116
diff
changeset
|
877 \ |
0 | 878 develop(bool, DisableStartThread, false, \ |
879 "Disable starting of additional Java threads " \ | |
880 "(for debugging only)") \ | |
881 \ | |
882 develop(bool, MemProfiling, false, \ | |
883 "Write memory usage profiling to log file") \ | |
884 \ | |
885 notproduct(bool, PrintSystemDictionaryAtExit, false, \ | |
886 "Prints the system dictionary at exit") \ | |
887 \ | |
888 diagnostic(bool, UnsyncloadClass, false, \ | |
514 | 889 "Unstable: VM calls loadClass unsynchronized. Custom " \ |
890 "class loader must call VM synchronized for findClass " \ | |
891 "and defineClass.") \ | |
892 \ | |
893 product(bool, AlwaysLockClassLoader, false, \ | |
894 "Require the VM to acquire the class loader lock before calling " \ | |
895 "loadClass() even for class loaders registering " \ | |
1064 | 896 "as parallel capable") \ |
514 | 897 \ |
898 product(bool, AllowParallelDefineClass, false, \ | |
899 "Allow parallel defineClass requests for class loaders " \ | |
1064 | 900 "registering as parallel capable") \ |
514 | 901 \ |
902 product(bool, MustCallLoadClassInternal, false, \ | |
1064 | 903 "Call loadClassInternal() rather than loadClass()") \ |
0 | 904 \ |
905 product_pd(bool, DontYieldALot, \ | |
906 "Throw away obvious excess yield calls (for SOLARIS only)") \ | |
907 \ | |
908 product_pd(bool, ConvertSleepToYield, \ | |
909 "Converts sleep(0) to thread yield " \ | |
910 "(may be off for SOLARIS to improve GUI)") \ | |
911 \ | |
912 product(bool, ConvertYieldToSleep, false, \ | |
913 "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\ | |
914 "behavior (SOLARIS only)") \ | |
915 \ | |
916 product(bool, UseBoundThreads, true, \ | |
917 "Bind user level threads to kernel threads (for SOLARIS only)") \ | |
918 \ | |
919 develop(bool, UseDetachedThreads, true, \ | |
920 "Use detached threads that are recycled upon termination " \ | |
921 "(for SOLARIS only)") \ | |
922 \ | |
923 product(bool, UseLWPSynchronization, true, \ | |
924 "Use LWP-based instead of libthread-based synchronization " \ | |
925 "(SPARC only)") \ | |
926 \ | |
370
885fe0f95828
6744783: HotSpot segfaults if given -XX options with an empty string argument
never
parents:
325
diff
changeset
|
927 product(ccstr, SyncKnobs, NULL, \ |
0 | 928 "(Unstable) Various monitor synchronization tunables") \ |
929 \ | |
930 product(intx, EmitSync, 0, \ | |
931 "(Unsafe,Unstable) " \ | |
932 " Controls emission of inline sync fast-path code") \ | |
933 \ | |
934 product(intx, AlwaysInflate, 0, "(Unstable) Force inflation") \ | |
935 \ | |
1587 | 936 product(intx, MonitorBound, 0, "Bound Monitor population") \ |
937 \ | |
938 product(bool, MonitorInUseLists, false, "Track Monitors for Deflation") \ | |
939 \ | |
0 | 940 product(intx, Atomics, 0, \ |
941 "(Unsafe,Unstable) Diagnostic - Controls emission of atomics") \ | |
942 \ | |
943 product(intx, FenceInstruction, 0, \ | |
944 "(Unsafe,Unstable) Experimental") \ | |
945 \ | |
946 product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \ | |
947 \ | |
948 product(intx, SyncVerbose, 0, "(Unstable)" ) \ | |
949 \ | |
950 product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" ) \ | |
951 \ | |
952 product(intx, hashCode, 0, \ | |
953 "(Unstable) select hashCode generation algorithm" ) \ | |
954 \ | |
955 product(intx, WorkAroundNPTLTimedWaitHang, 1, \ | |
956 "(Unstable, Linux-specific)" \ | |
957 " avoid NPTL-FUTEX hang pthread_cond_timedwait" ) \ | |
958 \ | |
1064 | 959 product(bool, FilterSpuriousWakeups, true, \ |
960 "Prevent spurious or premature wakeups from object.wait " \ | |
961 "(Solaris only)") \ | |
0 | 962 \ |
963 product(intx, NativeMonitorTimeout, -1, "(Unstable)" ) \ | |
964 product(intx, NativeMonitorFlags, 0, "(Unstable)" ) \ | |
965 product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" ) \ | |
966 \ | |
967 develop(bool, UsePthreads, false, \ | |
968 "Use pthread-based instead of libthread-based synchronization " \ | |
969 "(SPARC only)") \ | |
970 \ | |
971 product(bool, AdjustConcurrency, false, \ | |
972 "call thr_setconcurrency at thread create time to avoid " \ | |
973 "LWP starvation on MP systems (For Solaris Only)") \ | |
974 \ | |
975 develop(bool, UpdateHotSpotCompilerFileOnError, true, \ | |
976 "Should the system attempt to update the compiler file when " \ | |
977 "an error occurs?") \ | |
978 \ | |
979 product(bool, ReduceSignalUsage, false, \ | |
980 "Reduce the use of OS signals in Java and/or the VM") \ | |
981 \ | |
982 notproduct(bool, ValidateMarkSweep, false, \ | |
983 "Do extra validation during MarkSweep collection") \ | |
984 \ | |
985 notproduct(bool, RecordMarkSweepCompaction, false, \ | |
986 "Enable GC-to-GC recording and querying of compaction during " \ | |
987 "MarkSweep") \ | |
988 \ | |
989 develop_pd(bool, ShareVtableStubs, \ | |
990 "Share vtable stubs (smaller code but worse branch prediction") \ | |
991 \ | |
992 develop(bool, LoadLineNumberTables, true, \ | |
993 "Tells whether the class file parser loads line number tables") \ | |
994 \ | |
995 develop(bool, LoadLocalVariableTables, true, \ | |
996 "Tells whether the class file parser loads local variable tables")\ | |
997 \ | |
998 develop(bool, LoadLocalVariableTypeTables, true, \ | |
999 "Tells whether the class file parser loads local variable type tables")\ | |
1000 \ | |
1001 product(bool, AllowUserSignalHandlers, false, \ | |
1002 "Do not complain if the application installs signal handlers " \ | |
1003 "(Solaris & Linux only)") \ | |
1004 \ | |
1005 product(bool, UseSignalChaining, true, \ | |
1006 "Use signal-chaining to invoke signal handlers installed " \ | |
1007 "by the application (Solaris & Linux only)") \ | |
1008 \ | |
1009 product(bool, UseAltSigs, false, \ | |
1010 "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM " \ | |
1064 | 1011 "internal signals (Solaris only)") \ |
0 | 1012 \ |
1013 product(bool, UseSpinning, false, \ | |
1014 "Use spinning in monitor inflation and before entry") \ | |
1015 \ | |
1016 product(bool, PreSpinYield, false, \ | |
1017 "Yield before inner spinning loop") \ | |
1018 \ | |
1019 product(bool, PostSpinYield, true, \ | |
1020 "Yield after inner spinning loop") \ | |
1021 \ | |
1022 product(bool, AllowJNIEnvProxy, false, \ | |
1023 "Allow JNIEnv proxies for jdbx") \ | |
1024 \ | |
1025 product(bool, JNIDetachReleasesMonitors, true, \ | |
1026 "JNI DetachCurrentThread releases monitors owned by thread") \ | |
1027 \ | |
1028 product(bool, RestoreMXCSROnJNICalls, false, \ | |
1029 "Restore MXCSR when returning from JNI calls") \ | |
1030 \ | |
1031 product(bool, CheckJNICalls, false, \ | |
1032 "Verify all arguments to JNI calls") \ | |
1033 \ | |
1034 product(bool, UseFastJNIAccessors, true, \ | |
1035 "Use optimized versions of Get<Primitive>Field") \ | |
1036 \ | |
1037 product(bool, EagerXrunInit, false, \ | |
1038 "Eagerly initialize -Xrun libraries; allows startup profiling, " \ | |
1039 " but not all -Xrun libraries may support the state of the VM at this time") \ | |
1040 \ | |
1041 product(bool, PreserveAllAnnotations, false, \ | |
1042 "Preserve RuntimeInvisibleAnnotations as well as RuntimeVisibleAnnotations") \ | |
1043 \ | |
1044 develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \ | |
1045 "Number of OutOfMemoryErrors preallocated with backtrace") \ | |
1046 \ | |
1047 product(bool, LazyBootClassLoader, true, \ | |
1048 "Enable/disable lazy opening of boot class path entries") \ | |
1049 \ | |
1050 diagnostic(bool, UseIncDec, true, \ | |
1051 "Use INC, DEC instructions on x86") \ | |
1052 \ | |
219 | 1053 product(bool, UseNewLongLShift, false, \ |
1054 "Use optimized bitwise shift left") \ | |
1055 \ | |
0 | 1056 product(bool, UseStoreImmI16, true, \ |
1057 "Use store immediate 16-bits value instruction on x86") \ | |
1058 \ | |
1059 product(bool, UseAddressNop, false, \ | |
1060 "Use '0F 1F [addr]' NOP instructions on x86 cpus") \ | |
1061 \ | |
1062 product(bool, UseXmmLoadAndClearUpper, true, \ | |
1063 "Load low part of XMM register and clear upper part") \ | |
1064 \ | |
1065 product(bool, UseXmmRegToRegMoveAll, false, \ | |
1066 "Copy all XMM register bits when moving value between registers") \ | |
1067 \ | |
71 | 1068 product(bool, UseXmmI2D, false, \ |
1069 "Use SSE2 CVTDQ2PD instruction to convert Integer to Double") \ | |
1070 \ | |
1071 product(bool, UseXmmI2F, false, \ | |
1072 "Use SSE2 CVTDQ2PS instruction to convert Integer to Float") \ | |
1073 \ | |
405 | 1074 product(bool, UseXMMForArrayCopy, false, \ |
1075 "Use SSE2 MOVQ instruction for Arraycopy") \ | |
1076 \ | |
1077 product(bool, UseUnalignedLoadStores, false, \ | |
1078 "Use SSE2 MOVDQU instruction for Arraycopy") \ | |
1079 \ | |
0 | 1080 product(intx, FieldsAllocationStyle, 1, \ |
1366
b9d85fcdf743
6940733: allocate non static oop fields in super and sub classes together
kvn
parents:
1365
diff
changeset
|
1081 "0 - type based with oops first, 1 - with oops last, " \ |
b9d85fcdf743
6940733: allocate non static oop fields in super and sub classes together
kvn
parents:
1365
diff
changeset
|
1082 "2 - oops in super and sub classes are together") \ |
0 | 1083 \ |
1084 product(bool, CompactFields, true, \ | |
1085 "Allocate nonstatic fields in gaps between previous fields") \ | |
1086 \ | |
1087 notproduct(bool, PrintCompactFieldsSavings, false, \ | |
1088 "Print how many words were saved with CompactFields") \ | |
1089 \ | |
1090 product(bool, UseBiasedLocking, true, \ | |
1091 "Enable biased locking in JVM") \ | |
1092 \ | |
1093 product(intx, BiasedLockingStartupDelay, 4000, \ | |
1094 "Number of milliseconds to wait before enabling biased locking") \ | |
1095 \ | |
1096 diagnostic(bool, PrintBiasedLockingStatistics, false, \ | |
1097 "Print statistics of biased locking in JVM") \ | |
1098 \ | |
1099 product(intx, BiasedLockingBulkRebiasThreshold, 20, \ | |
1100 "Threshold of number of revocations per type to try to " \ | |
1101 "rebias all objects in the heap of that type") \ | |
1102 \ | |
1103 product(intx, BiasedLockingBulkRevokeThreshold, 40, \ | |
1104 "Threshold of number of revocations per type to permanently " \ | |
1105 "revoke biases of all objects in the heap of that type") \ | |
1106 \ | |
1107 product(intx, BiasedLockingDecayTime, 25000, \ | |
1108 "Decay time (in milliseconds) to re-enable bulk rebiasing of a " \ | |
1109 "type after previous bulk rebias") \ | |
1110 \ | |
1111 /* tracing */ \ | |
1112 \ | |
1113 notproduct(bool, TraceRuntimeCalls, false, \ | |
1114 "Trace run-time calls") \ | |
1115 \ | |
1116 develop(bool, TraceJNICalls, false, \ | |
1117 "Trace JNI calls") \ | |
1118 \ | |
1119 notproduct(bool, TraceJVMCalls, false, \ | |
1120 "Trace JVM calls") \ | |
1121 \ | |
370
885fe0f95828
6744783: HotSpot segfaults if given -XX options with an empty string argument
never
parents:
325
diff
changeset
|
1122 product(ccstr, TraceJVMTI, NULL, \ |
0 | 1123 "Trace flags for JVMTI functions and events") \ |
1124 \ | |
880
2b4230d1e589
6862295: JDWP threadid changes during debugging session (leading to ingored breakpoints)
dcubed
parents:
484
diff
changeset
|
1125 product(bool, ForceFullGCJVMTIEpilogues, false, \ |
2b4230d1e589
6862295: JDWP threadid changes during debugging session (leading to ingored breakpoints)
dcubed
parents:
484
diff
changeset
|
1126 "Force 'Full GC' was done semantics for JVMTI GC epilogues") \ |
2b4230d1e589
6862295: JDWP threadid changes during debugging session (leading to ingored breakpoints)
dcubed
parents:
484
diff
changeset
|
1127 \ |
0 | 1128 /* This option can change an EMCP method into an obsolete method. */ \ |
1129 /* This can affect tests that except specific methods to be EMCP. */ \ | |
1130 /* This option should be used with caution. */ \ | |
1131 product(bool, StressLdcRewrite, false, \ | |
1132 "Force ldc -> ldc_w rewrite during RedefineClasses") \ | |
1133 \ | |
1134 product(intx, TraceRedefineClasses, 0, \ | |
1135 "Trace level for JVMTI RedefineClasses") \ | |
1136 \ | |
1574 | 1137 develop(bool, StressMethodComparator, false, \ |
1138 "run the MethodComparator on all loaded methods") \ | |
1139 \ | |
0 | 1140 /* change to false by default sometime after Mustang */ \ |
1141 product(bool, VerifyMergedCPBytecodes, true, \ | |
1142 "Verify bytecodes after RedefineClasses constant pool merging") \ | |
1143 \ | |
1144 develop(bool, TraceJNIHandleAllocation, false, \ | |
1145 "Trace allocation/deallocation of JNI handle blocks") \ | |
1146 \ | |
1147 develop(bool, TraceThreadEvents, false, \ | |
1148 "Trace all thread events") \ | |
1149 \ | |
1150 develop(bool, TraceBytecodes, false, \ | |
1151 "Trace bytecode execution") \ | |
1152 \ | |
1153 develop(bool, TraceClassInitialization, false, \ | |
1154 "Trace class initialization") \ | |
1155 \ | |
1156 develop(bool, TraceExceptions, false, \ | |
1157 "Trace exceptions") \ | |
1158 \ | |
1159 develop(bool, TraceICs, false, \ | |
1160 "Trace inline cache changes") \ | |
1161 \ | |
1162 notproduct(bool, TraceInvocationCounterOverflow, false, \ | |
1163 "Trace method invocation counter overflow") \ | |
1164 \ | |
1165 develop(bool, TraceInlineCacheClearing, false, \ | |
1166 "Trace clearing of inline caches in nmethods") \ | |
1167 \ | |
1168 develop(bool, TraceDependencies, false, \ | |
1169 "Trace dependencies") \ | |
1170 \ | |
1171 develop(bool, VerifyDependencies, trueInDebug, \ | |
1172 "Exercise and verify the compilation dependency mechanism") \ | |
1173 \ | |
1174 develop(bool, TraceNewOopMapGeneration, false, \ | |
1175 "Trace OopMapGeneration") \ | |
1176 \ | |
1177 develop(bool, TraceNewOopMapGenerationDetailed, false, \ | |
1178 "Trace OopMapGeneration: print detailed cell states") \ | |
1179 \ | |
1180 develop(bool, TimeOopMap, false, \ | |
1181 "Time calls to GenerateOopMap::compute_map() in sum") \ | |
1182 \ | |
1183 develop(bool, TimeOopMap2, false, \ | |
1184 "Time calls to GenerateOopMap::compute_map() individually") \ | |
1185 \ | |
1186 develop(bool, TraceMonitorMismatch, false, \ | |
1187 "Trace monitor matching failures during OopMapGeneration") \ | |
1188 \ | |
1189 develop(bool, TraceOopMapRewrites, false, \ | |
1190 "Trace rewritting of method oops during oop map generation") \ | |
1191 \ | |
1192 develop(bool, TraceSafepoint, false, \ | |
1193 "Trace safepoint operations") \ | |
1194 \ | |
1195 develop(bool, TraceICBuffer, false, \ | |
1196 "Trace usage of IC buffer") \ | |
1197 \ | |
1198 develop(bool, TraceCompiledIC, false, \ | |
1199 "Trace changes of compiled IC") \ | |
1200 \ | |
1201 notproduct(bool, TraceZapDeadLocals, false, \ | |
1202 "Trace zapping dead locals") \ | |
1203 \ | |
1204 develop(bool, TraceStartupTime, false, \ | |
1205 "Trace setup time") \ | |
1206 \ | |
1207 develop(bool, TraceHPI, false, \ | |
1208 "Trace Host Porting Interface (HPI)") \ | |
1209 \ | |
1210 product(ccstr, HPILibPath, NULL, \ | |
1211 "Specify alternate path to HPI library") \ | |
1212 \ | |
1213 develop(bool, TraceProtectionDomainVerification, false, \ | |
1214 "Trace protection domain verifcation") \ | |
1215 \ | |
1216 develop(bool, TraceClearedExceptions, false, \ | |
1217 "Prints when an exception is forcibly cleared") \ | |
1218 \ | |
1219 product(bool, TraceClassResolution, false, \ | |
1220 "Trace all constant pool resolutions (for debugging)") \ | |
1221 \ | |
1222 product(bool, TraceBiasedLocking, false, \ | |
1223 "Trace biased locking in JVM") \ | |
1224 \ | |
1225 product(bool, TraceMonitorInflation, false, \ | |
1226 "Trace monitor inflation in JVM") \ | |
1227 \ | |
1228 /* assembler */ \ | |
1229 product(bool, Use486InstrsOnly, false, \ | |
1230 "Use 80486 Compliant instruction subset") \ | |
1231 \ | |
1232 /* gc */ \ | |
1233 \ | |
1234 product(bool, UseSerialGC, false, \ | |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1235 "Use the serial garbage collector") \ |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1236 \ |
1193
c81fa70144aa
6919980: G1: remove +UseG1GC from under experimental options (second attempt)
tonyp
parents:
1179
diff
changeset
|
1237 product(bool, UseG1GC, false, \ |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1238 "Use the Garbage-First garbage collector") \ |
0 | 1239 \ |
1240 product(bool, UseParallelGC, false, \ | |
1241 "Use the Parallel Scavenge garbage collector") \ | |
1242 \ | |
1243 product(bool, UseParallelOldGC, false, \ | |
1244 "Use the Parallel Old garbage collector") \ | |
1245 \ | |
1246 product(bool, UseParallelOldGCCompacting, true, \ | |
1247 "In the Parallel Old garbage collector use parallel compaction") \ | |
1248 \ | |
1249 product(bool, UseParallelDensePrefixUpdate, true, \ | |
1250 "In the Parallel Old garbage collector use parallel dense" \ | |
1251 " prefix update") \ | |
1252 \ | |
1253 product(uintx, HeapMaximumCompactionInterval, 20, \ | |
1254 "How often should we maximally compact the heap (not allowing " \ | |
1255 "any dead space)") \ | |
1256 \ | |
1257 product(uintx, HeapFirstMaximumCompactionCount, 3, \ | |
1258 "The collection count for the first maximum compaction") \ | |
1259 \ | |
1260 product(bool, UseMaximumCompactionOnSystemGC, true, \ | |
1261 "In the Parallel Old garbage collector maximum compaction for " \ | |
1262 "a system GC") \ | |
1263 \ | |
1264 product(uintx, ParallelOldDeadWoodLimiterMean, 50, \ | |
1265 "The mean used by the par compact dead wood" \ | |
1266 "limiter (a number between 0-100).") \ | |
1267 \ | |
1268 product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \ | |
1269 "The standard deviation used by the par compact dead wood" \ | |
1270 "limiter (a number between 0-100).") \ | |
1271 \ | |
1272 product(bool, UseParallelOldGCDensePrefix, true, \ | |
1273 "Use a dense prefix with the Parallel Old garbage collector") \ | |
1274 \ | |
1275 product(uintx, ParallelGCThreads, 0, \ | |
1276 "Number of parallel threads parallel gc will use") \ | |
1277 \ | |
483
0f773163217d
6765954: par compact - stress mode for splitting young gen spaces
jcoomes
parents:
481
diff
changeset
|
1278 develop(bool, ParallelOldGCSplitALot, false, \ |
0f773163217d
6765954: par compact - stress mode for splitting young gen spaces
jcoomes
parents:
481
diff
changeset
|
1279 "Provoke splitting (copying data from a young gen space to" \ |
0f773163217d
6765954: par compact - stress mode for splitting young gen spaces
jcoomes
parents:
481
diff
changeset
|
1280 "multiple destination spaces)") \ |
0f773163217d
6765954: par compact - stress mode for splitting young gen spaces
jcoomes
parents:
481
diff
changeset
|
1281 \ |
0f773163217d
6765954: par compact - stress mode for splitting young gen spaces
jcoomes
parents:
481
diff
changeset
|
1282 develop(uintx, ParallelOldGCSplitInterval, 3, \ |
0f773163217d
6765954: par compact - stress mode for splitting young gen spaces
jcoomes
parents:
481
diff
changeset
|
1283 "How often to provoke splitting a young gen space") \ |
0 | 1284 \ |
375
81cd571500b0
6725697: par compact - rename class ChunkData to RegionData
jcoomes
parents:
374
diff
changeset
|
1285 develop(bool, TraceRegionTasksQueuing, false, \ |
81cd571500b0
6725697: par compact - rename class ChunkData to RegionData
jcoomes
parents:
374
diff
changeset
|
1286 "Trace the queuing of the region tasks") \ |
0 | 1287 \ |
1284 | 1288 product(uintx, ConcGCThreads, 0, \ |
1289 "Number of threads concurrent gc will use") \ | |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1290 \ |
0 | 1291 product(uintx, YoungPLABSize, 4096, \ |
1292 "Size of young gen promotion labs (in HeapWords)") \ | |
1293 \ | |
1294 product(uintx, OldPLABSize, 1024, \ | |
1295 "Size of old gen promotion labs (in HeapWords)") \ | |
1296 \ | |
1297 product(uintx, GCTaskTimeStampEntries, 200, \ | |
1298 "Number of time stamp entries per gc worker thread") \ | |
1299 \ | |
1300 product(bool, AlwaysTenure, false, \ | |
1301 "Always tenure objects in eden. (ParallelGC only)") \ | |
1302 \ | |
1303 product(bool, NeverTenure, false, \ | |
1064 | 1304 "Never tenure objects in eden, May tenure on overflow " \ |
1305 "(ParallelGC only)") \ | |
0 | 1306 \ |
1307 product(bool, ScavengeBeforeFullGC, true, \ | |
1064 | 1308 "Scavenge youngest generation before each full GC, " \ |
1309 "used with UseParallelGC") \ | |
0 | 1310 \ |
1311 develop(bool, ScavengeWithObjectsInToSpace, false, \ | |
1312 "Allow scavenges to occur when to_space contains objects.") \ | |
1313 \ | |
1314 product(bool, UseConcMarkSweepGC, false, \ | |
1315 "Use Concurrent Mark-Sweep GC in the old generation") \ | |
1316 \ | |
1317 product(bool, ExplicitGCInvokesConcurrent, false, \ | |
1318 "A System.gc() request invokes a concurrent collection;" \ | |
1319 " (effective only when UseConcMarkSweepGC)") \ | |
1320 \ | |
1321 product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \ | |
1064 | 1322 "A System.gc() request invokes a concurrent collection and " \ |
1323 "also unloads classes during such a concurrent gc cycle " \ | |
1324 "(effective only when UseConcMarkSweepGC)") \ | |
0 | 1325 \ |
1520
bb843ebc7c55
6919638: CMS: ExplicitGCInvokesConcurrent misinteracts with gc locker
ysr
parents:
1518
diff
changeset
|
1326 product(bool, GCLockerInvokesConcurrent, false, \ |
bb843ebc7c55
6919638: CMS: ExplicitGCInvokesConcurrent misinteracts with gc locker
ysr
parents:
1518
diff
changeset
|
1327 "The exit of a JNI CS necessitating a scavenge also" \ |
bb843ebc7c55
6919638: CMS: ExplicitGCInvokesConcurrent misinteracts with gc locker
ysr
parents:
1518
diff
changeset
|
1328 " kicks off a bkgrd concurrent collection") \ |
bb843ebc7c55
6919638: CMS: ExplicitGCInvokesConcurrent misinteracts with gc locker
ysr
parents:
1518
diff
changeset
|
1329 \ |
0 | 1330 develop(bool, UseCMSAdaptiveFreeLists, true, \ |
1331 "Use Adaptive Free Lists in the CMS generation") \ | |
1332 \ | |
1333 develop(bool, UseAsyncConcMarkSweepGC, true, \ | |
1334 "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\ | |
1335 \ | |
1336 develop(bool, RotateCMSCollectionTypes, false, \ | |
1337 "Rotate the CMS collections among concurrent and STW") \ | |
1338 \ | |
1339 product(bool, UseCMSBestFit, true, \ | |
1340 "Use CMS best fit allocation strategy") \ | |
1341 \ | |
1342 product(bool, UseCMSCollectionPassing, true, \ | |
1343 "Use passing of collection from background to foreground") \ | |
1344 \ | |
1345 product(bool, UseParNewGC, false, \ | |
1346 "Use parallel threads in the new generation.") \ | |
1347 \ | |
1348 product(bool, ParallelGCVerbose, false, \ | |
1349 "Verbose output for parallel GC.") \ | |
1350 \ | |
1351 product(intx, ParallelGCBufferWastePct, 10, \ | |
1352 "wasted fraction of parallel allocation buffer.") \ | |
1353 \ | |
1354 product(bool, ParallelGCRetainPLAB, true, \ | |
1355 "Retain parallel allocation buffers across scavenges.") \ | |
1356 \ | |
1357 product(intx, TargetPLABWastePct, 10, \ | |
1358 "target wasted space in last buffer as pct of overall allocation")\ | |
1359 \ | |
1360 product(uintx, PLABWeight, 75, \ | |
1361 "Percentage (0-100) used to weight the current sample when" \ | |
1362 "computing exponentially decaying average for ResizePLAB.") \ | |
1363 \ | |
1364 product(bool, ResizePLAB, true, \ | |
1365 "Dynamically resize (survivor space) promotion labs") \ | |
1366 \ | |
1367 product(bool, PrintPLAB, false, \ | |
1368 "Print (survivor space) promotion labs sizing decisions") \ | |
1369 \ | |
1370 product(intx, ParGCArrayScanChunk, 50, \ | |
1371 "Scan a subset and push remainder, if array is bigger than this") \ | |
1372 \ | |
695 | 1373 product(bool, ParGCUseLocalOverflow, false, \ |
1374 "Instead of a global overflow list, use local overflow stacks") \ | |
1375 \ | |
679
cea947c8a988
6819891: ParNew: Fix work queue overflow code to deal correctly with +UseCompressedOops
ysr
parents:
647
diff
changeset
|
1376 product(bool, ParGCTrimOverflow, true, \ |
695 | 1377 "Eagerly trim the local overflow lists (when ParGCUseLocalOverflow") \ |
679
cea947c8a988
6819891: ParNew: Fix work queue overflow code to deal correctly with +UseCompressedOops
ysr
parents:
647
diff
changeset
|
1378 \ |
534 | 1379 notproduct(bool, ParGCWorkQueueOverflowALot, false, \ |
1380 "Whether we should simulate work queue overflow in ParNew") \ | |
1381 \ | |
1382 notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000, \ | |
1064 | 1383 "An `interval' counter that determines how frequently " \ |
1384 "we simulate overflow; a smaller number increases frequency") \ | |
534 | 1385 \ |
1386 product(uintx, ParGCDesiredObjsFromOverflowList, 20, \ | |
0 | 1387 "The desired number of objects to claim from the overflow list") \ |
1388 \ | |
1145
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1389 product(uintx, CMSParPromoteBlocksToClaim, 16, \ |
0 | 1390 "Number of blocks to attempt to claim when refilling CMS LAB for "\ |
1391 "parallel GC.") \ | |
1392 \ | |
1145
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1393 product(uintx, OldPLABWeight, 50, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1394 "Percentage (0-100) used to weight the current sample when" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1395 "computing exponentially decaying average for resizing CMSParPromoteBlocksToClaim.") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1396 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1397 product(bool, ResizeOldPLAB, true, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1398 "Dynamically resize (old gen) promotion labs") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1399 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1400 product(bool, PrintOldPLAB, false, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1401 "Print (old gen) promotion labs sizing decisions") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1402 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1403 product(uintx, CMSOldPLABMin, 16, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1404 "Min size of CMS gen promotion lab caches per worker per blksize")\ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1405 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1406 product(uintx, CMSOldPLABMax, 1024, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1407 "Max size of CMS gen promotion lab caches per worker per blksize")\ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1408 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1409 product(uintx, CMSOldPLABNumRefills, 4, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1410 "Nominal number of refills of CMS gen promotion lab cache" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1411 " per worker per block size") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1412 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1413 product(bool, CMSOldPLABResizeQuicker, false, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1414 "Whether to react on-the-fly during a scavenge to a sudden" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1415 " change in block demand rate") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1416 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1417 product(uintx, CMSOldPLABToleranceFactor, 4, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1418 "The tolerance of the phase-change detector for on-the-fly" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1419 " PLAB resizing during a scavenge") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1420 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1421 product(uintx, CMSOldPLABReactivityFactor, 2, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1422 "The gain in the feedback loop for on-the-fly PLAB resizing" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1423 " during a scavenge") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1424 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1425 product(uintx, CMSOldPLABReactivityCeiling, 10, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1426 "The clamping of the gain in the feedback loop for on-the-fly" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1427 " PLAB resizing during a scavenge") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1428 \ |
0 | 1429 product(bool, AlwaysPreTouch, false, \ |
1430 "It forces all freshly committed pages to be pre-touched.") \ | |
1431 \ | |
1432 product(bool, CMSUseOldDefaults, false, \ | |
1064 | 1433 "A flag temporarily introduced to allow reverting to some " \ |
1434 "older default settings; older as of 6.0") \ | |
0 | 1435 \ |
1436 product(intx, CMSYoungGenPerWorker, 16*M, \ | |
1437 "The amount of young gen chosen by default per GC worker " \ | |
1064 | 1438 "thread available") \ |
0 | 1439 \ |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1440 product(bool, GCOverheadReporting, false, \ |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1441 "Enables the GC overhead reporting facility") \ |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1442 \ |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1443 product(intx, GCOverheadReportingPeriodMS, 100, \ |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1444 "Reporting period for conc GC overhead reporting, in ms ") \ |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1445 \ |
0 | 1446 product(bool, CMSIncrementalMode, false, \ |
1447 "Whether CMS GC should operate in \"incremental\" mode") \ | |
1448 \ | |
1449 product(uintx, CMSIncrementalDutyCycle, 10, \ | |
1450 "CMS incremental mode duty cycle (a percentage, 0-100). If" \ | |
1451 "CMSIncrementalPacing is enabled, then this is just the initial" \ | |
1452 "value") \ | |
1453 \ | |
1454 product(bool, CMSIncrementalPacing, true, \ | |
1455 "Whether the CMS incremental mode duty cycle should be " \ | |
1456 "automatically adjusted") \ | |
1457 \ | |
1458 product(uintx, CMSIncrementalDutyCycleMin, 0, \ | |
1064 | 1459 "Lower bound on the duty cycle when CMSIncrementalPacing is " \ |
1460 "enabled (a percentage, 0-100)") \ | |
0 | 1461 \ |
1462 product(uintx, CMSIncrementalSafetyFactor, 10, \ | |
1064 | 1463 "Percentage (0-100) used to add conservatism when computing the " \ |
1464 "duty cycle") \ | |
0 | 1465 \ |
1466 product(uintx, CMSIncrementalOffset, 0, \ | |
1467 "Percentage (0-100) by which the CMS incremental mode duty cycle" \ | |
1064 | 1468 " is shifted to the right within the period between young GCs") \ |
0 | 1469 \ |
1145
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1470 product(uintx, CMSExpAvgFactor, 50, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1471 "Percentage (0-100) used to weight the current sample when" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1472 "computing exponential averages for CMS statistics.") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1473 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1474 product(uintx, CMS_FLSWeight, 75, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1475 "Percentage (0-100) used to weight the current sample when" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1476 "computing exponentially decating averages for CMS FLS statistics.") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1477 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1478 product(uintx, CMS_FLSPadding, 1, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1479 "The multiple of deviation from mean to use for buffering" \ |
0 | 1480 "against volatility in free list demand.") \ |
1481 \ | |
1482 product(uintx, FLSCoalescePolicy, 2, \ | |
1483 "CMS: Aggression level for coalescing, increasing from 0 to 4") \ | |
1484 \ | |
1145
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1485 product(bool, FLSAlwaysCoalesceLarge, false, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1486 "CMS: Larger free blocks are always available for coalescing") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1487 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1488 product(double, FLSLargestBlockCoalesceProximity, 0.99, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1489 "CMS: the smaller the percentage the greater the coalition force")\ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1490 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1491 product(double, CMSSmallCoalSurplusPercent, 1.05, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1492 "CMS: the factor by which to inflate estimated demand of small" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1493 " block sizes to prevent coalescing with an adjoining block") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1494 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1495 product(double, CMSLargeCoalSurplusPercent, 0.95, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1496 "CMS: the factor by which to inflate estimated demand of large" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1497 " block sizes to prevent coalescing with an adjoining block") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1498 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1499 product(double, CMSSmallSplitSurplusPercent, 1.10, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1500 "CMS: the factor by which to inflate estimated demand of small" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1501 " block sizes to prevent splitting to supply demand for smaller" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1502 " blocks") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1503 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1504 product(double, CMSLargeSplitSurplusPercent, 1.00, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1505 "CMS: the factor by which to inflate estimated demand of large" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1506 " block sizes to prevent splitting to supply demand for smaller" \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1507 " blocks") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1508 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1509 product(bool, CMSExtrapolateSweep, false, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1510 "CMS: cushion for block demand during sweep") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1511 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1512 product(uintx, CMS_SweepWeight, 75, \ |
1064 | 1513 "Percentage (0-100) used to weight the current sample when " \ |
1514 "computing exponentially decaying average for inter-sweep " \ | |
1515 "duration") \ | |
0 | 1516 \ |
1145
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1517 product(uintx, CMS_SweepPadding, 1, \ |
1064 | 1518 "The multiple of deviation from mean to use for buffering " \ |
0 | 1519 "against volatility in inter-sweep duration.") \ |
1520 \ | |
1521 product(uintx, CMS_SweepTimerThresholdMillis, 10, \ | |
1522 "Skip block flux-rate sampling for an epoch unless inter-sweep " \ | |
1064 | 1523 "duration exceeds this threhold in milliseconds") \ |
0 | 1524 \ |
1525 develop(bool, CMSTraceIncrementalMode, false, \ | |
1526 "Trace CMS incremental mode") \ | |
1527 \ | |
1528 develop(bool, CMSTraceIncrementalPacing, false, \ | |
1529 "Trace CMS incremental mode pacing computation") \ | |
1530 \ | |
1531 develop(bool, CMSTraceThreadState, false, \ | |
1532 "Trace the CMS thread state (enable the trace_state() method)") \ | |
1533 \ | |
1534 product(bool, CMSClassUnloadingEnabled, false, \ | |
1535 "Whether class unloading enabled when using CMS GC") \ | |
1536 \ | |
94
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1537 product(uintx, CMSClassUnloadingMaxInterval, 0, \ |
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1538 "When CMS class unloading is enabled, the maximum CMS cycle count"\ |
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1539 " for which classes may not be unloaded") \ |
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1540 \ |
0 | 1541 product(bool, CMSCompactWhenClearAllSoftRefs, true, \ |
1542 "Compact when asked to collect CMS gen with clear_all_soft_refs") \ | |
1543 \ | |
1544 product(bool, UseCMSCompactAtFullCollection, true, \ | |
1545 "Use mark sweep compact at full collections") \ | |
1546 \ | |
1547 product(uintx, CMSFullGCsBeforeCompaction, 0, \ | |
1548 "Number of CMS full collection done before compaction if > 0") \ | |
1549 \ | |
1550 develop(intx, CMSDictionaryChoice, 0, \ | |
1551 "Use BinaryTreeDictionary as default in the CMS generation") \ | |
1552 \ | |
1553 product(uintx, CMSIndexedFreeListReplenish, 4, \ | |
1777
179464550c7d
6983930: CMS: Various small cleanups ca September 2010
ysr
parents:
1749
diff
changeset
|
1554 "Replenish an indexed free list with this number of chunks") \ |
0 | 1555 \ |
1145
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1556 product(bool, CMSReplenishIntermediate, true, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1557 "Replenish all intermediate free-list caches") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1558 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1559 product(bool, CMSSplitIndexedFreeListBlocks, true, \ |
1777
179464550c7d
6983930: CMS: Various small cleanups ca September 2010
ysr
parents:
1749
diff
changeset
|
1560 "When satisfying batched demand, split blocks from the " \ |
1145
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1561 "IndexedFreeList whose size is a multiple of requested size") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1562 \ |
0 | 1563 product(bool, CMSLoopWarn, false, \ |
1564 "Warn in case of excessive CMS looping") \ | |
1565 \ | |
1566 develop(bool, CMSOverflowEarlyRestoration, false, \ | |
1567 "Whether preserved marks should be restored early") \ | |
1568 \ | |
1284 | 1569 product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M), \ |
1570 "Size of marking stack") \ | |
1571 \ | |
1572 product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M), \ | |
1573 "Max size of marking stack") \ | |
0 | 1574 \ |
1575 notproduct(bool, CMSMarkStackOverflowALot, false, \ | |
1576 "Whether we should simulate frequent marking stack / work queue" \ | |
1577 " overflow") \ | |
1578 \ | |
534 | 1579 notproduct(uintx, CMSMarkStackOverflowInterval, 1000, \ |
1580 "An `interval' counter that determines how frequently" \ | |
0 | 1581 " we simulate overflow; a smaller number increases frequency") \ |
1582 \ | |
1583 product(uintx, CMSMaxAbortablePrecleanLoops, 0, \ | |
1584 "(Temporary, subject to experimentation)" \ | |
1585 "Maximum number of abortable preclean iterations, if > 0") \ | |
1586 \ | |
1587 product(intx, CMSMaxAbortablePrecleanTime, 5000, \ | |
1588 "(Temporary, subject to experimentation)" \ | |
1589 "Maximum time in abortable preclean in ms") \ | |
1590 \ | |
1591 product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \ | |
1592 "(Temporary, subject to experimentation)" \ | |
1593 "Nominal minimum work per abortable preclean iteration") \ | |
1594 \ | |
1595 product(intx, CMSAbortablePrecleanWaitMillis, 100, \ | |
1596 "(Temporary, subject to experimentation)" \ | |
1597 " Time that we sleep between iterations when not given" \ | |
1598 " enough work per iteration") \ | |
1599 \ | |
1600 product(uintx, CMSRescanMultiple, 32, \ | |
1601 "Size (in cards) of CMS parallel rescan task") \ | |
1602 \ | |
1603 product(uintx, CMSConcMarkMultiple, 32, \ | |
1604 "Size (in cards) of CMS concurrent MT marking task") \ | |
1605 \ | |
1606 product(uintx, CMSRevisitStackSize, 1*M, \ | |
1607 "Size of CMS KlassKlass revisit stack") \ | |
1608 \ | |
1609 product(bool, CMSAbortSemantics, false, \ | |
1610 "Whether abort-on-overflow semantics is implemented") \ | |
1611 \ | |
1612 product(bool, CMSParallelRemarkEnabled, true, \ | |
1613 "Whether parallel remark enabled (only if ParNewGC)") \ | |
1614 \ | |
1615 product(bool, CMSParallelSurvivorRemarkEnabled, true, \ | |
1616 "Whether parallel remark of survivor space" \ | |
1617 " enabled (effective only if CMSParallelRemarkEnabled)") \ | |
1618 \ | |
1619 product(bool, CMSPLABRecordAlways, true, \ | |
1620 "Whether to always record survivor space PLAB bdries" \ | |
1621 " (effective only if CMSParallelSurvivorRemarkEnabled)") \ | |
1622 \ | |
1623 product(bool, CMSConcurrentMTEnabled, true, \ | |
1624 "Whether multi-threaded concurrent work enabled (if ParNewGC)") \ | |
1625 \ | |
1626 product(bool, CMSPermGenPrecleaningEnabled, true, \ | |
1627 "Whether concurrent precleaning enabled in perm gen" \ | |
1628 " (effective only when CMSPrecleaningEnabled is true)") \ | |
1629 \ | |
1630 product(bool, CMSPrecleaningEnabled, true, \ | |
1631 "Whether concurrent precleaning enabled") \ | |
1632 \ | |
1633 product(uintx, CMSPrecleanIter, 3, \ | |
1634 "Maximum number of precleaning iteration passes") \ | |
1635 \ | |
1636 product(uintx, CMSPrecleanNumerator, 2, \ | |
1637 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ | |
1638 " ratio") \ | |
1639 \ | |
1640 product(uintx, CMSPrecleanDenominator, 3, \ | |
1641 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ | |
1642 " ratio") \ | |
1643 \ | |
452
00b023ae2d78
6722113: CMS: Incorrect overflow handling during precleaning of Reference lists
ysr
parents:
443
diff
changeset
|
1644 product(bool, CMSPrecleanRefLists1, true, \ |
0 | 1645 "Preclean ref lists during (initial) preclean phase") \ |
1646 \ | |
1647 product(bool, CMSPrecleanRefLists2, false, \ | |
1648 "Preclean ref lists during abortable preclean phase") \ | |
1649 \ | |
1650 product(bool, CMSPrecleanSurvivors1, false, \ | |
1651 "Preclean survivors during (initial) preclean phase") \ | |
1652 \ | |
1653 product(bool, CMSPrecleanSurvivors2, true, \ | |
1654 "Preclean survivors during abortable preclean phase") \ | |
1655 \ | |
1656 product(uintx, CMSPrecleanThreshold, 1000, \ | |
1657 "Don't re-iterate if #dirty cards less than this") \ | |
1658 \ | |
1659 product(bool, CMSCleanOnEnter, true, \ | |
1660 "Clean-on-enter optimization for reducing number of dirty cards") \ | |
1661 \ | |
1662 product(uintx, CMSRemarkVerifyVariant, 1, \ | |
1663 "Choose variant (1,2) of verification following remark") \ | |
1664 \ | |
1665 product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M, \ | |
1666 "If Eden used is below this value, don't try to schedule remark") \ | |
1667 \ | |
1668 product(uintx, CMSScheduleRemarkEdenPenetration, 50, \ | |
1669 "The Eden occupancy % at which to try and schedule remark pause") \ | |
1670 \ | |
1671 product(uintx, CMSScheduleRemarkSamplingRatio, 5, \ | |
1672 "Start sampling Eden top at least before yg occupancy reaches" \ | |
1673 " 1/<ratio> of the size at which we plan to schedule remark") \ | |
1674 \ | |
1675 product(uintx, CMSSamplingGrain, 16*K, \ | |
1676 "The minimum distance between eden samples for CMS (see above)") \ | |
1677 \ | |
1678 product(bool, CMSScavengeBeforeRemark, false, \ | |
1679 "Attempt scavenge before the CMS remark step") \ | |
1680 \ | |
1681 develop(bool, CMSTraceSweeper, false, \ | |
1682 "Trace some actions of the CMS sweeper") \ | |
1683 \ | |
1684 product(uintx, CMSWorkQueueDrainThreshold, 10, \ | |
1685 "Don't drain below this size per parallel worker/thief") \ | |
1686 \ | |
1687 product(intx, CMSWaitDuration, 2000, \ | |
1688 "Time in milliseconds that CMS thread waits for young GC") \ | |
1689 \ | |
1690 product(bool, CMSYield, true, \ | |
1691 "Yield between steps of concurrent mark & sweep") \ | |
1692 \ | |
1693 product(uintx, CMSBitMapYieldQuantum, 10*M, \ | |
1694 "Bitmap operations should process at most this many bits" \ | |
1695 "between yields") \ | |
1696 \ | |
1145
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1697 product(bool, CMSDumpAtPromotionFailure, false, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1698 "Dump useful information about the state of the CMS old " \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1699 " generation upon a promotion failure.") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1700 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1701 product(bool, CMSPrintChunksInDump, false, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1702 "In a dump enabled by CMSDumpAtPromotionFailure, include " \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1703 " more detailed information about the free chunks.") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1704 \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1705 product(bool, CMSPrintObjectsInDump, false, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1706 "In a dump enabled by CMSDumpAtPromotionFailure, include " \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1707 " more detailed information about the allocated objects.") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1708 \ |
0 | 1709 diagnostic(bool, FLSVerifyAllHeapReferences, false, \ |
1710 "Verify that all refs across the FLS boundary " \ | |
1711 " are to valid objects") \ | |
1712 \ | |
1713 diagnostic(bool, FLSVerifyLists, false, \ | |
1714 "Do lots of (expensive) FreeListSpace verification") \ | |
1715 \ | |
1716 diagnostic(bool, FLSVerifyIndexTable, false, \ | |
1717 "Do lots of (expensive) FLS index table verification") \ | |
1718 \ | |
1719 develop(bool, FLSVerifyDictionary, false, \ | |
1720 "Do lots of (expensive) FLS dictionary verification") \ | |
1721 \ | |
1722 develop(bool, VerifyBlockOffsetArray, false, \ | |
1723 "Do (expensive!) block offset array verification") \ | |
1724 \ | |
1716
be3f9c242c9d
6948538: CMS: BOT walkers can fall into object allocation and initialization cracks
ysr
parents:
1713
diff
changeset
|
1725 product(bool, BlockOffsetArrayUseUnallocatedBlock, false, \ |
0 | 1726 "Maintain _unallocated_block in BlockOffsetArray" \ |
1727 " (currently applicable only to CMS collector)") \ | |
1728 \ | |
1729 develop(bool, TraceCMSState, false, \ | |
1730 "Trace the state of the CMS collection") \ | |
1731 \ | |
1732 product(intx, RefDiscoveryPolicy, 0, \ | |
1733 "Whether reference-based(0) or referent-based(1)") \ | |
1734 \ | |
1735 product(bool, ParallelRefProcEnabled, false, \ | |
1736 "Enable parallel reference processing whenever possible") \ | |
1737 \ | |
1738 product(bool, ParallelRefProcBalancingEnabled, true, \ | |
1739 "Enable balancing of reference processing queues") \ | |
1740 \ | |
1741 product(intx, CMSTriggerRatio, 80, \ | |
1742 "Percentage of MinHeapFreeRatio in CMS generation that is " \ | |
1064 | 1743 "allocated before a CMS collection cycle commences") \ |
0 | 1744 \ |
94
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1745 product(intx, CMSTriggerPermRatio, 80, \ |
1064 | 1746 "Percentage of MinHeapFreeRatio in the CMS perm generation that " \ |
1747 "is allocated before a CMS collection cycle commences, that " \ | |
1748 "also collects the perm generation") \ | |
94
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1749 \ |
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1750 product(uintx, CMSBootstrapOccupancy, 50, \ |
0 | 1751 "Percentage CMS generation occupancy at which to " \ |
1064 | 1752 "initiate CMS collection for bootstrapping collection stats") \ |
0 | 1753 \ |
1754 product(intx, CMSInitiatingOccupancyFraction, -1, \ | |
1755 "Percentage CMS generation occupancy to start a CMS collection " \ | |
1064 | 1756 "cycle. A negative value means that CMSTriggerRatio is used") \ |
94
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1757 \ |
1283
1c72304f1885
6928073: G1: use existing command line parameters for marking cycle initiation
tonyp
parents:
1211
diff
changeset
|
1758 product(uintx, InitiatingHeapOccupancyPercent, 45, \ |
1c72304f1885
6928073: G1: use existing command line parameters for marking cycle initiation
tonyp
parents:
1211
diff
changeset
|
1759 "Percentage of the (entire) heap occupancy to start a " \ |
1c72304f1885
6928073: G1: use existing command line parameters for marking cycle initiation
tonyp
parents:
1211
diff
changeset
|
1760 "concurrent GC cycle. It us used by GCs that trigger a " \ |
1c72304f1885
6928073: G1: use existing command line parameters for marking cycle initiation
tonyp
parents:
1211
diff
changeset
|
1761 "concurrent GC cycle based on the occupancy of the entire heap, " \ |
1c72304f1885
6928073: G1: use existing command line parameters for marking cycle initiation
tonyp
parents:
1211
diff
changeset
|
1762 "not just one of the generations (e.g., G1). A value of 0 " \ |
1c72304f1885
6928073: G1: use existing command line parameters for marking cycle initiation
tonyp
parents:
1211
diff
changeset
|
1763 "denotes 'do constant GC cycles'.") \ |
1c72304f1885
6928073: G1: use existing command line parameters for marking cycle initiation
tonyp
parents:
1211
diff
changeset
|
1764 \ |
94
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1765 product(intx, CMSInitiatingPermOccupancyFraction, -1, \ |
1064 | 1766 "Percentage CMS perm generation occupancy to start a " \ |
1767 "CMScollection cycle. A negative value means that " \ | |
1768 "CMSTriggerPermRatio is used") \ | |
0 | 1769 \ |
1770 product(bool, UseCMSInitiatingOccupancyOnly, false, \ | |
1771 "Only use occupancy as a crierion for starting a CMS collection") \ | |
1772 \ | |
94
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1773 product(intx, CMSIsTooFullPercentage, 98, \ |
1064 | 1774 "An absolute ceiling above which CMS will always consider the " \ |
1775 "perm gen ripe for collection") \ | |
94
0834225a7916
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
ysr
parents:
15
diff
changeset
|
1776 \ |
0 | 1777 develop(bool, CMSTestInFreeList, false, \ |
1778 "Check if the coalesced range is already in the " \ | |
1064 | 1779 "free lists as claimed") \ |
0 | 1780 \ |
1781 notproduct(bool, CMSVerifyReturnedBytes, false, \ | |
1782 "Check that all the garbage collected was returned to the " \ | |
1783 "free lists.") \ | |
1784 \ | |
1785 notproduct(bool, ScavengeALot, false, \ | |
1786 "Force scavenge at every Nth exit from the runtime system " \ | |
1787 "(N=ScavengeALotInterval)") \ | |
1788 \ | |
1789 develop(bool, FullGCALot, false, \ | |
1790 "Force full gc at every Nth exit from the runtime system " \ | |
1791 "(N=FullGCALotInterval)") \ | |
1792 \ | |
1793 notproduct(bool, GCALotAtAllSafepoints, false, \ | |
1794 "Enforce ScavengeALot/GCALot at all potential safepoints") \ | |
1795 \ | |
1796 product(bool, HandlePromotionFailure, true, \ | |
1064 | 1797 "The youngest generation collection does not require " \ |
1798 "a guarantee of full promotion of all live objects.") \ | |
0 | 1799 \ |
1145
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1800 product(bool, PrintPromotionFailure, false, \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1801 "Print additional diagnostic information following " \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1802 " promotion failure") \ |
e018e6884bd8
6631166: CMS: better heuristics when combatting fragmentation
ysr
parents:
1064
diff
changeset
|
1803 \ |
0 | 1804 notproduct(bool, PromotionFailureALot, false, \ |
1805 "Use promotion failure handling on every youngest generation " \ | |
1806 "collection") \ | |
1807 \ | |
1808 develop(uintx, PromotionFailureALotCount, 1000, \ | |
1809 "Number of promotion failures occurring at ParGCAllocBuffer" \ | |
1810 "refill attempts (ParNew) or promotion attempts " \ | |
1811 "(other young collectors) ") \ | |
1812 \ | |
1813 develop(uintx, PromotionFailureALotInterval, 5, \ | |
1814 "Total collections between promotion failures alot") \ | |
1815 \ | |
1837
c99c53f07c14
6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents:
1836
diff
changeset
|
1816 experimental(intx, WorkStealingSleepMillis, 1, \ |
0 | 1817 "Sleep time when sleep is used for yields") \ |
1818 \ | |
1837
c99c53f07c14
6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents:
1836
diff
changeset
|
1819 experimental(uintx, WorkStealingYieldsBeforeSleep, 1000, \ |
0 | 1820 "Number of yields before a sleep is done during workstealing") \ |
1821 \ | |
1837
c99c53f07c14
6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents:
1836
diff
changeset
|
1822 experimental(uintx, WorkStealingHardSpins, 4096, \ |
546
05c6d52fa7a9
6690928: Use spinning in combination with yields for workstealing termination.
jmasa
parents:
541
diff
changeset
|
1823 "Number of iterations in a spin loop between checks on " \ |
05c6d52fa7a9
6690928: Use spinning in combination with yields for workstealing termination.
jmasa
parents:
541
diff
changeset
|
1824 "time out of hard spin") \ |
05c6d52fa7a9
6690928: Use spinning in combination with yields for workstealing termination.
jmasa
parents:
541
diff
changeset
|
1825 \ |
1837
c99c53f07c14
6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents:
1836
diff
changeset
|
1826 experimental(uintx, WorkStealingSpinToYieldRatio, 10, \ |
546
05c6d52fa7a9
6690928: Use spinning in combination with yields for workstealing termination.
jmasa
parents:
541
diff
changeset
|
1827 "Ratio of hard spins to calls to yield") \ |
05c6d52fa7a9
6690928: Use spinning in combination with yields for workstealing termination.
jmasa
parents:
541
diff
changeset
|
1828 \ |
534 | 1829 product(uintx, PreserveMarkStackSize, 1024, \ |
1064 | 1830 "Size for stack used in promotion failure handling") \ |
0 | 1831 \ |
1311
2a1472c30599
4396719: Mark Sweep stack overflow on deeply nested Object arrays
jcoomes
parents:
1288
diff
changeset
|
1832 develop(uintx, ObjArrayMarkingStride, 512, \ |
2a1472c30599
4396719: Mark Sweep stack overflow on deeply nested Object arrays
jcoomes
parents:
1288
diff
changeset
|
1833 "Number of ObjArray elements to push onto the marking stack" \ |
2a1472c30599
4396719: Mark Sweep stack overflow on deeply nested Object arrays
jcoomes
parents:
1288
diff
changeset
|
1834 "before pushing a continuation entry") \ |
2a1472c30599
4396719: Mark Sweep stack overflow on deeply nested Object arrays
jcoomes
parents:
1288
diff
changeset
|
1835 \ |
0 | 1836 product_pd(bool, UseTLAB, "Use thread-local object allocation") \ |
1837 \ | |
1838 product_pd(bool, ResizeTLAB, \ | |
1839 "Dynamically resize tlab size for threads") \ | |
1840 \ | |
1841 product(bool, ZeroTLAB, false, \ | |
1842 "Zero out the newly created TLAB") \ | |
1843 \ | |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1844 product(bool, FastTLABRefill, true, \ |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1845 "Use fast TLAB refill code") \ |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
142
diff
changeset
|
1846 \ |
0 | 1847 product(bool, PrintTLAB, false, \ |
1848 "Print various TLAB related information") \ | |
1849 \ | |
1850 product(bool, TLABStats, true, \ | |
1851 "Print various TLAB related information") \ | |
1852 \ | |
941 | 1853 product(bool, PrintRevisitStats, false, \ |
1854 "Print revisit (klass and MDO) stack related information") \ | |
1855 \ | |
0 | 1856 product_pd(bool, NeverActAsServerClassMachine, \ |
1857 "Never act like a server-class machine") \ | |
1858 \ | |
1859 product(bool, AlwaysActAsServerClassMachine, false, \ | |
1860 "Always act like a server-class machine") \ | |
1861 \ | |
1064 | 1862 product_pd(uint64_t, MaxRAM, \ |
1863 "Real memory size (in bytes) used to set maximum heap size") \ | |
1864 \ | |
1865 product(uintx, ErgoHeapSizeLimit, 0, \ | |
1866 "Maximum ergonomically set heap size (in bytes); zero means use " \ | |
1867 "MaxRAM / MaxRAMFraction") \ | |
1868 \ | |
1869 product(uintx, MaxRAMFraction, 4, \ | |
1870 "Maximum fraction (1/n) of real memory used for maximum heap " \ | |
1871 "size") \ | |
0 | 1872 \ |
1873 product(uintx, DefaultMaxRAMFraction, 4, \ | |
1064 | 1874 "Maximum fraction (1/n) of real memory used for maximum heap " \ |
1875 "size; deprecated: to be renamed to MaxRAMFraction") \ | |
1876 \ | |
1877 product(uintx, MinRAMFraction, 2, \ | |
1878 "Minimum fraction (1/n) of real memory used for maxmimum heap " \ | |
1879 "size on systems with small physical memory size") \ | |
1880 \ | |
1881 product(uintx, InitialRAMFraction, 64, \ | |
1882 "Fraction (1/n) of real memory used for initial heap size") \ | |
0 | 1883 \ |
1884 product(bool, UseAutoGCSelectPolicy, false, \ | |
1885 "Use automatic collection selection policy") \ | |
1886 \ | |
1887 product(uintx, AutoGCSelectPauseMillis, 5000, \ | |
1888 "Automatic GC selection pause threshhold in ms") \ | |
1889 \ | |
1890 product(bool, UseAdaptiveSizePolicy, true, \ | |
1891 "Use adaptive generation sizing policies") \ | |
1892 \ | |
1893 product(bool, UsePSAdaptiveSurvivorSizePolicy, true, \ | |
1894 "Use adaptive survivor sizing policies") \ | |
1895 \ | |
1896 product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true, \ | |
1897 "Use adaptive young-old sizing policies at minor collections") \ | |
1898 \ | |
1899 product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true, \ | |
1900 "Use adaptive young-old sizing policies at major collections") \ | |
1901 \ | |
1902 product(bool, UseAdaptiveSizePolicyWithSystemGC, false, \ | |
1903 "Use statistics from System.GC for adaptive size policy") \ | |
1904 \ | |
1905 product(bool, UseAdaptiveGCBoundary, false, \ | |
1906 "Allow young-old boundary to move") \ | |
1907 \ | |
1908 develop(bool, TraceAdaptiveGCBoundary, false, \ | |
1909 "Trace young-old boundary moves") \ | |
1910 \ | |
1911 develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1, \ | |
1912 "Resize the virtual spaces of the young or old generations") \ | |
1913 \ | |
1914 product(uintx, AdaptiveSizeThroughPutPolicy, 0, \ | |
1915 "Policy for changeing generation size for throughput goals") \ | |
1916 \ | |
1917 product(uintx, AdaptiveSizePausePolicy, 0, \ | |
1918 "Policy for changing generation size for pause goals") \ | |
1919 \ | |
1920 develop(bool, PSAdjustTenuredGenForMinorPause, false, \ | |
1921 "Adjust tenured generation to achive a minor pause goal") \ | |
1922 \ | |
1923 develop(bool, PSAdjustYoungGenForMajorPause, false, \ | |
1924 "Adjust young generation to achive a major pause goal") \ | |
1925 \ | |
1926 product(uintx, AdaptiveSizePolicyInitializingSteps, 20, \ | |
1927 "Number of steps where heuristics is used before data is used") \ | |
1928 \ | |
1929 develop(uintx, AdaptiveSizePolicyReadyThreshold, 5, \ | |
1930 "Number of collections before the adaptive sizing is started") \ | |
1931 \ | |
1932 product(uintx, AdaptiveSizePolicyOutputInterval, 0, \ | |
1064 | 1933 "Collecton interval for printing information; zero => never") \ |
0 | 1934 \ |
1935 product(bool, UseAdaptiveSizePolicyFootprintGoal, true, \ | |
1936 "Use adaptive minimum footprint as a goal") \ | |
1937 \ | |
1938 product(uintx, AdaptiveSizePolicyWeight, 10, \ | |
1939 "Weight given to exponential resizing, between 0 and 100") \ | |
1940 \ | |
1941 product(uintx, AdaptiveTimeWeight, 25, \ | |
1942 "Weight given to time in adaptive policy, between 0 and 100") \ | |
1943 \ | |
1944 product(uintx, PausePadding, 1, \ | |
1945 "How much buffer to keep for pause time") \ | |
1946 \ | |
1947 product(uintx, PromotedPadding, 3, \ | |
1948 "How much buffer to keep for promotion failure") \ | |
1949 \ | |
1950 product(uintx, SurvivorPadding, 3, \ | |
1951 "How much buffer to keep for survivor overflow") \ | |
1952 \ | |
1953 product(uintx, AdaptivePermSizeWeight, 20, \ | |
1954 "Weight for perm gen exponential resizing, between 0 and 100") \ | |
1955 \ | |
1956 product(uintx, PermGenPadding, 3, \ | |
1957 "How much buffer to keep for perm gen sizing") \ | |
1958 \ | |
1959 product(uintx, ThresholdTolerance, 10, \ | |
1960 "Allowed collection cost difference between generations") \ | |
1961 \ | |
1962 product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50, \ | |
1064 | 1963 "If collection costs are within margin, reduce both by full " \ |
1964 "delta") \ | |
0 | 1965 \ |
1966 product(uintx, YoungGenerationSizeIncrement, 20, \ | |
1967 "Adaptive size percentage change in young generation") \ | |
1968 \ | |
1969 product(uintx, YoungGenerationSizeSupplement, 80, \ | |
1970 "Supplement to YoungedGenerationSizeIncrement used at startup") \ | |
1971 \ | |
1972 product(uintx, YoungGenerationSizeSupplementDecay, 8, \ | |
1973 "Decay factor to YoungedGenerationSizeSupplement") \ | |
1974 \ | |
1975 product(uintx, TenuredGenerationSizeIncrement, 20, \ | |
1976 "Adaptive size percentage change in tenured generation") \ | |
1977 \ | |
1978 product(uintx, TenuredGenerationSizeSupplement, 80, \ | |
1979 "Supplement to TenuredGenerationSizeIncrement used at startup") \ | |
1980 \ | |
1981 product(uintx, TenuredGenerationSizeSupplementDecay, 2, \ | |
1982 "Decay factor to TenuredGenerationSizeIncrement") \ | |
1983 \ | |
1984 product(uintx, MaxGCPauseMillis, max_uintx, \ | |
751 | 1985 "Adaptive size policy maximum GC pause time goal in msec, " \ |
1986 "or (G1 Only) the max. GC time per MMU time slice") \ | |
1987 \ | |
1610
79107c3a6bd5
6949307: G1: raise a vm error, do not core dump, if target pause time and target interval are inconsistent
tonyp
parents:
1589
diff
changeset
|
1988 product(uintx, GCPauseIntervalMillis, 0, \ |
751 | 1989 "Time slice for MMU specification") \ |
0 | 1990 \ |
1991 product(uintx, MaxGCMinorPauseMillis, max_uintx, \ | |
1992 "Adaptive size policy maximum GC minor pause time goal in msec") \ | |
1993 \ | |
1994 product(uintx, GCTimeRatio, 99, \ | |
1995 "Adaptive size policy application time to GC time ratio") \ | |
1996 \ | |
1997 product(uintx, AdaptiveSizeDecrementScaleFactor, 4, \ | |
1998 "Adaptive size scale down factor for shrinking") \ | |
1999 \ | |
2000 product(bool, UseAdaptiveSizeDecayMajorGCCost, true, \ | |
2001 "Adaptive size decays the major cost for long major intervals") \ | |
2002 \ | |
2003 product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10, \ | |
2004 "Time scale over which major costs decay") \ | |
2005 \ | |
2006 product(uintx, MinSurvivorRatio, 3, \ | |
2007 "Minimum ratio of young generation/survivor space size") \ | |
2008 \ | |
2009 product(uintx, InitialSurvivorRatio, 8, \ | |
2010 "Initial ratio of eden/survivor space size") \ | |
2011 \ | |
2012 product(uintx, BaseFootPrintEstimate, 256*M, \ | |
2013 "Estimate of footprint other than Java Heap") \ | |
2014 \ | |
2015 product(bool, UseGCOverheadLimit, true, \ | |
2016 "Use policy to limit of proportion of time spent in GC " \ | |
2017 "before an OutOfMemory error is thrown") \ | |
2018 \ | |
2019 product(uintx, GCTimeLimit, 98, \ | |
2020 "Limit of proportion of time spent in GC before an OutOfMemory" \ | |
2021 "error is thrown (used with GCHeapFreeLimit)") \ | |
2022 \ | |
2023 product(uintx, GCHeapFreeLimit, 2, \ | |
2024 "Minimum percentage of free space after a full GC before an " \ | |
2025 "OutOfMemoryError is thrown (used with GCTimeLimit)") \ | |
2026 \ | |
2027 develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5, \ | |
2028 "Number of consecutive collections before gc time limit fires") \ | |
2029 \ | |
2030 product(bool, PrintAdaptiveSizePolicy, false, \ | |
2031 "Print information about AdaptiveSizePolicy") \ | |
2032 \ | |
2033 product(intx, PrefetchCopyIntervalInBytes, -1, \ | |
2034 "How far ahead to prefetch destination area (<= 0 means off)") \ | |
2035 \ | |
2036 product(intx, PrefetchScanIntervalInBytes, -1, \ | |
2037 "How far ahead to prefetch scan area (<= 0 means off)") \ | |
2038 \ | |
2039 product(intx, PrefetchFieldsAhead, -1, \ | |
2040 "How many fields ahead to prefetch in oop scan (<= 0 means off)") \ | |
2041 \ | |
2042 develop(bool, UsePrefetchQueue, true, \ | |
2043 "Use the prefetch queue during PS promotion") \ | |
2044 \ | |
2045 diagnostic(bool, VerifyBeforeExit, trueInDebug, \ | |
2046 "Verify system before exiting") \ | |
2047 \ | |
2048 diagnostic(bool, VerifyBeforeGC, false, \ | |
2049 "Verify memory system before GC") \ | |
2050 \ | |
2051 diagnostic(bool, VerifyAfterGC, false, \ | |
2052 "Verify memory system after GC") \ | |
2053 \ | |
2054 diagnostic(bool, VerifyDuringGC, false, \ | |
2055 "Verify memory system during GC (between phases)") \ | |
2056 \ | |
390 | 2057 diagnostic(bool, GCParallelVerificationEnabled, true, \ |
2058 "Enable parallel memory system verification") \ | |
2059 \ | |
1166 | 2060 diagnostic(bool, DeferInitialCardMark, false, \ |
2061 "When +ReduceInitialCardMarks, explicitly defer any that " \ | |
2062 "may arise from new_pre_store_barrier") \ | |
2063 \ | |
0 | 2064 diagnostic(bool, VerifyRememberedSets, false, \ |
2065 "Verify GC remembered sets") \ | |
2066 \ | |
2067 diagnostic(bool, VerifyObjectStartArray, true, \ | |
2068 "Verify GC object start array if verify before/after") \ | |
2069 \ | |
2070 product(bool, DisableExplicitGC, false, \ | |
2071 "Tells whether calling System.gc() does a full GC") \ | |
2072 \ | |
2073 notproduct(bool, CheckMemoryInitialization, false, \ | |
2074 "Checks memory initialization") \ | |
2075 \ | |
2076 product(bool, CollectGen0First, false, \ | |
2077 "Collect youngest generation before each full GC") \ | |
2078 \ | |
2079 diagnostic(bool, BindCMSThreadToCPU, false, \ | |
2080 "Bind CMS Thread to CPU if possible") \ | |
2081 \ | |
2082 diagnostic(uintx, CPUForCMSThread, 0, \ | |
2083 "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \ | |
2084 \ | |
2085 product(bool, BindGCTaskThreadsToCPUs, false, \ | |
2086 "Bind GCTaskThreads to CPUs if possible") \ | |
2087 \ | |
2088 product(bool, UseGCTaskAffinity, false, \ | |
2089 "Use worker affinity when asking for GCTasks") \ | |
2090 \ | |
2091 product(uintx, ProcessDistributionStride, 4, \ | |
2092 "Stride through processors when distributing processes") \ | |
2093 \ | |
2094 product(uintx, CMSCoordinatorYieldSleepCount, 10, \ | |
2095 "number of times the coordinator GC thread will sleep while " \ | |
2096 "yielding before giving up and resuming GC") \ | |
2097 \ | |
2098 product(uintx, CMSYieldSleepCount, 0, \ | |
2099 "number of times a GC thread (minus the coordinator) " \ | |
2100 "will sleep while yielding before giving up and resuming GC") \ | |
2101 \ | |
2102 /* gc tracing */ \ | |
2103 manageable(bool, PrintGC, false, \ | |
2104 "Print message at garbage collect") \ | |
2105 \ | |
2106 manageable(bool, PrintGCDetails, false, \ | |
2107 "Print more details at garbage collect") \ | |
2108 \ | |
2109 manageable(bool, PrintGCDateStamps, false, \ | |
2110 "Print date stamps at garbage collect") \ | |
2111 \ | |
2112 manageable(bool, PrintGCTimeStamps, false, \ | |
2113 "Print timestamps at garbage collect") \ | |
2114 \ | |
2115 product(bool, PrintGCTaskTimeStamps, false, \ | |
2116 "Print timestamps for individual gc worker thread tasks") \ | |
2117 \ | |
2118 develop(intx, ConcGCYieldTimeout, 0, \ | |
2119 "If non-zero, assert that GC threads yield within this # of ms.") \ | |
2120 \ | |
2121 notproduct(bool, TraceMarkSweep, false, \ | |
2122 "Trace mark sweep") \ | |
2123 \ | |
2124 product(bool, PrintReferenceGC, false, \ | |
2125 "Print times spent handling reference objects during GC " \ | |
2126 " (enabled only when PrintGCDetails)") \ | |
2127 \ | |
2128 develop(bool, TraceReferenceGC, false, \ | |
2129 "Trace handling of soft/weak/final/phantom references") \ | |
2130 \ | |
2131 develop(bool, TraceFinalizerRegistration, false, \ | |
2132 "Trace registration of final references") \ | |
2133 \ | |
2134 notproduct(bool, TraceScavenge, false, \ | |
2135 "Trace scavenge") \ | |
2136 \ | |
2137 product_rw(bool, TraceClassLoading, false, \ | |
2138 "Trace all classes loaded") \ | |
2139 \ | |
2140 product(bool, TraceClassLoadingPreorder, false, \ | |
2141 "Trace all classes loaded in order referenced (not loaded)") \ | |
2142 \ | |
2143 product_rw(bool, TraceClassUnloading, false, \ | |
2144 "Trace unloading of classes") \ | |
2145 \ | |
2146 product_rw(bool, TraceLoaderConstraints, false, \ | |
2147 "Trace loader constraints") \ | |
2148 \ | |
2149 product(bool, TraceGen0Time, false, \ | |
2150 "Trace accumulated time for Gen 0 collection") \ | |
2151 \ | |
2152 product(bool, TraceGen1Time, false, \ | |
2153 "Trace accumulated time for Gen 1 collection") \ | |
2154 \ | |
2155 product(bool, PrintTenuringDistribution, false, \ | |
2156 "Print tenuring age information") \ | |
2157 \ | |
2158 product_rw(bool, PrintHeapAtGC, false, \ | |
2159 "Print heap layout before and after each GC") \ | |
2160 \ | |
838
0316eac49d5a
6855834: G1: minimize the output when -XX:+PrintHeapAtGC is set
tonyp
parents:
779
diff
changeset
|
2161 product_rw(bool, PrintHeapAtGCExtended, false, \ |
0316eac49d5a
6855834: G1: minimize the output when -XX:+PrintHeapAtGC is set
tonyp
parents:
779
diff
changeset
|
2162 "Prints extended information about the layout of the heap " \ |
0316eac49d5a
6855834: G1: minimize the output when -XX:+PrintHeapAtGC is set
tonyp
parents:
779
diff
changeset
|
2163 "when -XX:+PrintHeapAtGC is set") \ |
0316eac49d5a
6855834: G1: minimize the output when -XX:+PrintHeapAtGC is set
tonyp
parents:
779
diff
changeset
|
2164 \ |
0 | 2165 product(bool, PrintHeapAtSIGBREAK, true, \ |
2166 "Print heap layout in response to SIGBREAK") \ | |
2167 \ | |
615
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
2168 manageable(bool, PrintClassHistogramBeforeFullGC, false, \ |
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
2169 "Print a class histogram before any major stop-world GC") \ |
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
2170 \ |
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
2171 manageable(bool, PrintClassHistogramAfterFullGC, false, \ |
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
2172 "Print a class histogram after any major stop-world GC") \ |
c6c601a0f2d6
6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents:
570
diff
changeset
|
2173 \ |
0 | 2174 manageable(bool, PrintClassHistogram, false, \ |
2175 "Print a histogram of class instances") \ | |
2176 \ | |
2177 develop(bool, TraceWorkGang, false, \ | |
2178 "Trace activities of work gangs") \ | |
2179 \ | |
2180 product(bool, TraceParallelOldGCTasks, false, \ | |
2181 "Trace multithreaded GC activity") \ | |
2182 \ | |
2183 develop(bool, TraceBlockOffsetTable, false, \ | |
2184 "Print BlockOffsetTable maps") \ | |
2185 \ | |
2186 develop(bool, TraceCardTableModRefBS, false, \ | |
2187 "Print CardTableModRefBS maps") \ | |
2188 \ | |
2189 develop(bool, TraceGCTaskManager, false, \ | |
2190 "Trace actions of the GC task manager") \ | |
2191 \ | |
2192 develop(bool, TraceGCTaskQueue, false, \ | |
2193 "Trace actions of the GC task queues") \ | |
2194 \ | |
2195 develop(bool, TraceGCTaskThread, false, \ | |
2196 "Trace actions of the GC task threads") \ | |
2197 \ | |
2198 product(bool, PrintParallelOldGCPhaseTimes, false, \ | |
2199 "Print the time taken by each parallel old gc phase." \ | |
2200 "PrintGCDetails must also be enabled.") \ | |
2201 \ | |
2202 develop(bool, TraceParallelOldGCMarkingPhase, false, \ | |
2203 "Trace parallel old gc marking phase") \ | |
2204 \ | |
2205 develop(bool, TraceParallelOldGCSummaryPhase, false, \ | |
2206 "Trace parallel old gc summary phase") \ | |
2207 \ | |
2208 develop(bool, TraceParallelOldGCCompactionPhase, false, \ | |
2209 "Trace parallel old gc compaction phase") \ | |
2210 \ | |
2211 develop(bool, TraceParallelOldGCDensePrefix, false, \ | |
2212 "Trace parallel old gc dense prefix computation") \ | |
2213 \ | |
2214 develop(bool, IgnoreLibthreadGPFault, false, \ | |
2215 "Suppress workaround for libthread GP fault") \ | |
2216 \ | |
139
c0492d52d55b
6539517: CR 6186200 should be extended to perm gen allocation to prevent spurious OOM's from perm gen
apetrusenko
parents:
95
diff
changeset
|
2217 product(bool, PrintJNIGCStalls, false, \ |
c0492d52d55b
6539517: CR 6186200 should be extended to perm gen allocation to prevent spurious OOM's from perm gen
apetrusenko
parents:
95
diff
changeset
|
2218 "Print diagnostic message when GC is stalled" \ |
c0492d52d55b
6539517: CR 6186200 should be extended to perm gen allocation to prevent spurious OOM's from perm gen
apetrusenko
parents:
95
diff
changeset
|
2219 "by JNI critical section") \ |
c0492d52d55b
6539517: CR 6186200 should be extended to perm gen allocation to prevent spurious OOM's from perm gen
apetrusenko
parents:
95
diff
changeset
|
2220 \ |
0 | 2221 /* JVMTI heap profiling */ \ |
2222 \ | |
2223 diagnostic(bool, TraceJVMTIObjectTagging, false, \ | |
2224 "Trace JVMTI object tagging calls") \ | |
2225 \ | |
2226 diagnostic(bool, VerifyBeforeIteration, false, \ | |
2227 "Verify memory system before JVMTI iteration") \ | |
2228 \ | |
2229 /* compiler interface */ \ | |
2230 \ | |
2231 develop(bool, CIPrintCompilerName, false, \ | |
2232 "when CIPrint is active, print the name of the active compiler") \ | |
2233 \ | |
2234 develop(bool, CIPrintCompileQueue, false, \ | |
2235 "display the contents of the compile queue whenever a " \ | |
2236 "compilation is enqueued") \ | |
2237 \ | |
2238 develop(bool, CIPrintRequests, false, \ | |
2239 "display every request for compilation") \ | |
2240 \ | |
2241 product(bool, CITime, false, \ | |
2242 "collect timing information for compilation") \ | |
2243 \ | |
2244 develop(bool, CITimeEach, false, \ | |
2245 "display timing information after each successful compilation") \ | |
2246 \ | |
2247 develop(bool, CICountOSR, true, \ | |
2248 "use a separate counter when assigning ids to osr compilations") \ | |
2249 \ | |
2250 develop(bool, CICompileNatives, true, \ | |
2251 "compile native methods if supported by the compiler") \ | |
2252 \ | |
2253 develop_pd(bool, CICompileOSR, \ | |
2254 "compile on stack replacement methods if supported by the " \ | |
2255 "compiler") \ | |
2256 \ | |
2257 develop(bool, CIPrintMethodCodes, false, \ | |
2258 "print method bytecodes of the compiled code") \ | |
2259 \ | |
2260 develop(bool, CIPrintTypeFlow, false, \ | |
2261 "print the results of ciTypeFlow analysis") \ | |
2262 \ | |
2263 develop(bool, CITraceTypeFlow, false, \ | |
2264 "detailed per-bytecode tracing of ciTypeFlow analysis") \ | |
2265 \ | |
2266 develop(intx, CICloneLoopTestLimit, 100, \ | |
2267 "size limit for blocks heuristically cloned in ciTypeFlow") \ | |
2268 \ | |
2269 /* temp diagnostics */ \ | |
2270 \ | |
2271 diagnostic(bool, TraceRedundantCompiles, false, \ | |
2272 "Have compile broker print when a request already in the queue is"\ | |
2273 " requested again") \ | |
2274 \ | |
2275 diagnostic(bool, InitialCompileFast, false, \ | |
2276 "Initial compile at CompLevel_fast_compile") \ | |
2277 \ | |
2278 diagnostic(bool, InitialCompileReallyFast, false, \ | |
2279 "Initial compile at CompLevel_really_fast_compile (no profile)") \ | |
2280 \ | |
2281 diagnostic(bool, FullProfileOnReInterpret, true, \ | |
2282 "On re-interpret unc-trap compile next at CompLevel_fast_compile")\ | |
2283 \ | |
2284 /* compiler */ \ | |
2285 \ | |
2286 product(intx, CICompilerCount, CI_COMPILER_COUNT, \ | |
2287 "Number of compiler threads to run") \ | |
2288 \ | |
2289 product(intx, CompilationPolicyChoice, 0, \ | |
2290 "which compilation policy (0/1)") \ | |
2291 \ | |
2292 develop(bool, UseStackBanging, true, \ | |
2293 "use stack banging for stack overflow checks (required for " \ | |
2294 "proper StackOverflow handling; disable only to measure cost " \ | |
2295 "of stackbanging)") \ | |
2296 \ | |
2297 develop(bool, Use24BitFPMode, true, \ | |
2298 "Set 24-bit FPU mode on a per-compile basis ") \ | |
2299 \ | |
2300 develop(bool, Use24BitFP, true, \ | |
2301 "use FP instructions that produce 24-bit precise results") \ | |
2302 \ | |
2303 develop(bool, UseStrictFP, true, \ | |
2304 "use strict fp if modifier strictfp is set") \ | |
2305 \ | |
2306 develop(bool, GenerateSynchronizationCode, true, \ | |
2307 "generate locking/unlocking code for synchronized methods and " \ | |
2308 "monitors") \ | |
2309 \ | |
2310 develop(bool, GenerateCompilerNullChecks, true, \ | |
2311 "Generate explicit null checks for loads/stores/calls") \ | |
2312 \ | |
2313 develop(bool, GenerateRangeChecks, true, \ | |
2314 "Generate range checks for array accesses") \ | |
2315 \ | |
2316 develop_pd(bool, ImplicitNullChecks, \ | |
2317 "generate code for implicit null checks") \ | |
2318 \ | |
2319 product(bool, PrintSafepointStatistics, false, \ | |
2320 "print statistics about safepoint synchronization") \ | |
2321 \ | |
2322 product(intx, PrintSafepointStatisticsCount, 300, \ | |
2323 "total number of safepoint statistics collected " \ | |
2324 "before printing them out") \ | |
2325 \ | |
2326 product(intx, PrintSafepointStatisticsTimeout, -1, \ | |
2327 "print safepoint statistics only when safepoint takes" \ | |
2328 " more than PrintSafepointSatisticsTimeout in millis") \ | |
2329 \ | |
1321
0f6600cee529
6934758: Expose the break down of clean up task time during safepoint.
xlu
parents:
1288
diff
changeset
|
2330 product(bool, TraceSafepointCleanupTime, false, \ |
0f6600cee529
6934758: Expose the break down of clean up task time during safepoint.
xlu
parents:
1288
diff
changeset
|
2331 "print the break down of clean up tasks performed during" \ |
0f6600cee529
6934758: Expose the break down of clean up task time during safepoint.
xlu
parents:
1288
diff
changeset
|
2332 " safepoint") \ |
0f6600cee529
6934758: Expose the break down of clean up task time during safepoint.
xlu
parents:
1288
diff
changeset
|
2333 \ |
0 | 2334 develop(bool, InlineAccessors, true, \ |
2335 "inline accessor methods (get/set)") \ | |
2336 \ | |
2337 product(bool, Inline, true, \ | |
2338 "enable inlining") \ | |
2339 \ | |
2340 product(bool, ClipInlining, true, \ | |
2341 "clip inlining if aggregate method exceeds DesiredMethodLimit") \ | |
2342 \ | |
2343 develop(bool, UseCHA, true, \ | |
2344 "enable CHA") \ | |
2345 \ | |
2346 product(bool, UseTypeProfile, true, \ | |
2347 "Check interpreter profile for historically monomorphic calls") \ | |
2348 \ | |
2349 product(intx, TypeProfileMajorReceiverPercent, 90, \ | |
2350 "% of major receiver type to all profiled receivers") \ | |
2351 \ | |
2352 notproduct(bool, TimeCompiler, false, \ | |
2353 "time the compiler") \ | |
2354 \ | |
2355 notproduct(bool, TimeCompiler2, false, \ | |
2356 "detailed time the compiler (requires +TimeCompiler)") \ | |
2357 \ | |
2358 diagnostic(bool, PrintInlining, false, \ | |
2359 "prints inlining optimizations") \ | |
2360 \ | |
2361 diagnostic(bool, PrintIntrinsics, false, \ | |
2362 "prints attempted and successful inlining of intrinsics") \ | |
2363 \ | |
775
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
2364 product(bool, UseCountLeadingZerosInstruction, false, \ |
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
2365 "Use count leading zeros instruction") \ |
93c14e5562c4
6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents:
726
diff
changeset
|
2366 \ |
643
c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
642
diff
changeset
|
2367 product(bool, UsePopCountInstruction, false, \ |
c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
642
diff
changeset
|
2368 "Use population count instruction") \ |
c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents:
642
diff
changeset
|
2369 \ |
0 | 2370 diagnostic(ccstrlist, DisableIntrinsic, "", \ |
2371 "do not expand intrinsics whose (internal) names appear here") \ | |
2372 \ | |
2373 develop(bool, StressReflectiveCode, false, \ | |
2374 "Use inexact types at allocations, etc., to test reflection") \ | |
2375 \ | |
2376 develop(bool, EagerInitialization, false, \ | |
2377 "Eagerly initialize classes if possible") \ | |
2378 \ | |
2379 product(bool, Tier1UpdateMethodData, trueInTiered, \ | |
2380 "Update methodDataOops in Tier1-generated code") \ | |
2381 \ | |
2382 develop(bool, TraceMethodReplacement, false, \ | |
2383 "Print when methods are replaced do to recompilation") \ | |
2384 \ | |
2385 develop(bool, PrintMethodFlushing, false, \ | |
2386 "print the nmethods being flushed") \ | |
2387 \ | |
2388 notproduct(bool, LogMultipleMutexLocking, false, \ | |
2389 "log locking and unlocking of mutexes (only if multiple locks " \ | |
2390 "are held)") \ | |
2391 \ | |
2392 develop(bool, UseRelocIndex, false, \ | |
2393 "use an index to speed random access to relocations") \ | |
2394 \ | |
2395 develop(bool, StressCodeBuffers, false, \ | |
2396 "Exercise code buffer expansion and other rare state changes") \ | |
2397 \ | |
2398 diagnostic(bool, DebugNonSafepoints, trueInDebug, \ | |
2399 "Generate extra debugging info for non-safepoints in nmethods") \ | |
2400 \ | |
2401 diagnostic(bool, DebugInlinedCalls, true, \ | |
2402 "If false, restricts profiled locations to the root method only") \ | |
2403 \ | |
2404 product(bool, PrintVMOptions, trueInDebug, \ | |
1150 | 2405 "Print flags that appeared on the command line") \ |
0 | 2406 \ |
564 | 2407 product(bool, IgnoreUnrecognizedVMOptions, false, \ |
2408 "Ignore unrecognized VM options") \ | |
2409 \ | |
1150 | 2410 product(bool, PrintCommandLineFlags, false, \ |
2411 "Print flags specified on command line or set by ergonomics") \ | |
2412 \ | |
2413 product(bool, PrintFlagsInitial, false, \ | |
2414 "Print all VM flags before argument processing and exit VM") \ | |
2415 \ | |
2416 product(bool, PrintFlagsFinal, false, \ | |
2417 "Print all VM flags after argument and ergonomic processing") \ | |
2418 \ | |
1768
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1749
diff
changeset
|
2419 notproduct(bool, PrintFlagsWithComments, false, \ |
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1749
diff
changeset
|
2420 "Print all VM flags with default values and descriptions and exit")\ |
6ee479178066
6979444: add command line option to print command line flags descriptions
ikrylov
parents:
1749
diff
changeset
|
2421 \ |
0 | 2422 diagnostic(bool, SerializeVMOutput, true, \ |
2423 "Use a mutex to serialize output to tty and hotspot.log") \ | |
2424 \ | |
2425 diagnostic(bool, DisplayVMOutput, true, \ | |
2426 "Display all VM output on the tty, independently of LogVMOutput") \ | |
2427 \ | |
2428 diagnostic(bool, LogVMOutput, trueInDebug, \ | |
2429 "Save VM output to hotspot.log, or to LogFile") \ | |
2430 \ | |
2431 diagnostic(ccstr, LogFile, NULL, \ | |
2432 "If LogVMOutput is on, save VM output to this file [hotspot.log]") \ | |
2433 \ | |
2434 product(ccstr, ErrorFile, NULL, \ | |
2435 "If an error occurs, save the error data to this file " \ | |
2436 "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \ | |
2437 \ | |
2438 product(bool, DisplayVMOutputToStderr, false, \ | |
2439 "If DisplayVMOutput is true, display all VM output to stderr") \ | |
2440 \ | |
2441 product(bool, DisplayVMOutputToStdout, false, \ | |
2442 "If DisplayVMOutput is true, display all VM output to stdout") \ | |
2443 \ | |
2444 product(bool, UseHeavyMonitors, false, \ | |
2445 "use heavyweight instead of lightweight Java monitors") \ | |
2446 \ | |
2447 notproduct(bool, PrintSymbolTableSizeHistogram, false, \ | |
2448 "print histogram of the symbol table") \ | |
2449 \ | |
2450 notproduct(bool, ExitVMOnVerifyError, false, \ | |
2451 "standard exit from VM if bytecode verify error " \ | |
2452 "(only in debug mode)") \ | |
2453 \ | |
2454 notproduct(ccstr, AbortVMOnException, NULL, \ | |
2455 "Call fatal if this exception is thrown. Example: " \ | |
2456 "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \ | |
2457 \ | |
1684
66c5dadb4d61
6973308: Missing zero length check before repne scas in check_klass_subtype_slow_path()
kvn
parents:
1660
diff
changeset
|
2458 notproduct(ccstr, AbortVMOnExceptionMessage, NULL, \ |
66c5dadb4d61
6973308: Missing zero length check before repne scas in check_klass_subtype_slow_path()
kvn
parents:
1660
diff
changeset
|
2459 "Call fatal if the exception pointed by AbortVMOnException " \ |
66c5dadb4d61
6973308: Missing zero length check before repne scas in check_klass_subtype_slow_path()
kvn
parents:
1660
diff
changeset
|
2460 "has this message.") \ |
66c5dadb4d61
6973308: Missing zero length check before repne scas in check_klass_subtype_slow_path()
kvn
parents:
1660
diff
changeset
|
2461 \ |
0 | 2462 develop(bool, DebugVtables, false, \ |
2463 "add debugging code to vtable dispatch") \ | |
2464 \ | |
2465 develop(bool, PrintVtables, false, \ | |
2466 "print vtables when printing klass") \ | |
2467 \ | |
2468 notproduct(bool, PrintVtableStats, false, \ | |
2469 "print vtables stats at end of run") \ | |
2470 \ | |
2471 develop(bool, TraceCreateZombies, false, \ | |
2472 "trace creation of zombie nmethods") \ | |
2473 \ | |
2474 notproduct(bool, IgnoreLockingAssertions, false, \ | |
2475 "disable locking assertions (for speed)") \ | |
2476 \ | |
2477 notproduct(bool, VerifyLoopOptimizations, false, \ | |
2478 "verify major loop optimizations") \ | |
2479 \ | |
2480 product(bool, RangeCheckElimination, true, \ | |
2481 "Split loop iterations to eliminate range checks") \ | |
2482 \ | |
2483 develop_pd(bool, UncommonNullCast, \ | |
2484 "track occurrences of null in casts; adjust compiler tactics") \ | |
2485 \ | |
2486 develop(bool, TypeProfileCasts, true, \ | |
2487 "treat casts like calls for purposes of type profiling") \ | |
2488 \ | |
2489 develop(bool, MonomorphicArrayCheck, true, \ | |
2490 "Uncommon-trap array store checks that require full type check") \ | |
2491 \ | |
1746
4b29a725c43c
6912064: type profiles need to be exploited more for dynamic language support
jrose
parents:
1692
diff
changeset
|
2492 diagnostic(bool, ProfileDynamicTypes, true, \ |
4b29a725c43c
6912064: type profiles need to be exploited more for dynamic language support
jrose
parents:
1692
diff
changeset
|
2493 "do extra type profiling and use it more aggressively") \ |
4b29a725c43c
6912064: type profiles need to be exploited more for dynamic language support
jrose
parents:
1692
diff
changeset
|
2494 \ |
0 | 2495 develop(bool, DelayCompilationDuringStartup, true, \ |
2496 "Delay invoking the compiler until main application class is " \ | |
2497 "loaded") \ | |
2498 \ | |
2499 develop(bool, CompileTheWorld, false, \ | |
2500 "Compile all methods in all classes in bootstrap class path " \ | |
2501 "(stress test)") \ | |
2502 \ | |
2503 develop(bool, CompileTheWorldPreloadClasses, true, \ | |
2504 "Preload all classes used by a class before start loading") \ | |
2505 \ | |
2506 notproduct(bool, CompileTheWorldIgnoreInitErrors, false, \ | |
2507 "Compile all methods although class initializer failed") \ | |
2508 \ | |
1188
99af867dfa05
6919886: Sweep CodeCache more aggressively to reduce its usage for CompileTheWorld
kvn
parents:
1179
diff
changeset
|
2509 notproduct(intx, CompileTheWorldSafepointInterval, 100, \ |
99af867dfa05
6919886: Sweep CodeCache more aggressively to reduce its usage for CompileTheWorld
kvn
parents:
1179
diff
changeset
|
2510 "Force a safepoint every n compiles so sweeper can keep up") \ |
99af867dfa05
6919886: Sweep CodeCache more aggressively to reduce its usage for CompileTheWorld
kvn
parents:
1179
diff
changeset
|
2511 \ |
0 | 2512 develop(bool, TraceIterativeGVN, false, \ |
2513 "Print progress during Iterative Global Value Numbering") \ | |
2514 \ | |
2515 develop(bool, FillDelaySlots, true, \ | |
2516 "Fill delay slots (on SPARC only)") \ | |
2517 \ | |
2518 develop(bool, VerifyIterativeGVN, false, \ | |
2519 "Verify Def-Use modifications during sparse Iterative Global " \ | |
2520 "Value Numbering") \ | |
2521 \ | |
2522 notproduct(bool, TracePhaseCCP, false, \ | |
2523 "Print progress during Conditional Constant Propagation") \ | |
2524 \ | |
2525 develop(bool, TimeLivenessAnalysis, false, \ | |
2526 "Time computation of bytecode liveness analysis") \ | |
2527 \ | |
2528 develop(bool, TraceLivenessGen, false, \ | |
2529 "Trace the generation of liveness analysis information") \ | |
2530 \ | |
2531 notproduct(bool, TraceLivenessQuery, false, \ | |
2532 "Trace queries of liveness analysis information") \ | |
2533 \ | |
2534 notproduct(bool, CollectIndexSetStatistics, false, \ | |
2535 "Collect information about IndexSets") \ | |
2536 \ | |
2537 develop(bool, PrintDominators, false, \ | |
2538 "Print out dominator trees for GVN") \ | |
2539 \ | |
2540 develop(bool, UseLoopSafepoints, true, \ | |
2541 "Generate Safepoint nodes in every loop") \ | |
2542 \ | |
2543 notproduct(bool, TraceCISCSpill, false, \ | |
2544 "Trace allocators use of cisc spillable instructions") \ | |
2545 \ | |
2546 notproduct(bool, TraceSpilling, false, \ | |
2547 "Trace spilling") \ | |
2548 \ | |
2549 product(bool, SplitIfBlocks, true, \ | |
2550 "Clone compares and control flow through merge points to fold " \ | |
2551 "some branches") \ | |
2552 \ | |
2553 develop(intx, FastAllocateSizeLimit, 128*K, \ | |
2554 /* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \ | |
2555 "Inline allocations larger than this in doublewords must go slow")\ | |
2556 \ | |
2557 product(bool, AggressiveOpts, false, \ | |
2558 "Enable aggressive optimizations - see arguments.cpp") \ | |
2559 \ | |
192
6d13fcb3663f
6714404: Add UseStringCache switch to enable String caching under AggressiveOpts
kvn
parents:
174
diff
changeset
|
2560 product(bool, UseStringCache, false, \ |
6d13fcb3663f
6714404: Add UseStringCache switch to enable String caching under AggressiveOpts
kvn
parents:
174
diff
changeset
|
2561 "Enable String cache capabilities on String.java") \ |
6d13fcb3663f
6714404: Add UseStringCache switch to enable String caching under AggressiveOpts
kvn
parents:
174
diff
changeset
|
2562 \ |
0 | 2563 /* statistics */ \ |
2564 develop(bool, CountCompiledCalls, false, \ | |
2565 "counts method invocations") \ | |
2566 \ | |
2567 notproduct(bool, CountRuntimeCalls, false, \ | |
2568 "counts VM runtime calls") \ | |
2569 \ | |
2570 develop(bool, CountJNICalls, false, \ | |
2571 "counts jni method invocations") \ | |
2572 \ | |
2573 notproduct(bool, CountJVMCalls, false, \ | |
2574 "counts jvm method invocations") \ | |
2575 \ | |
2576 notproduct(bool, CountRemovableExceptions, false, \ | |
2577 "count exceptions that could be replaced by branches due to " \ | |
2578 "inlining") \ | |
2579 \ | |
2580 notproduct(bool, ICMissHistogram, false, \ | |
2581 "produce histogram of IC misses") \ | |
2582 \ | |
2583 notproduct(bool, PrintClassStatistics, false, \ | |
2584 "prints class statistics at end of run") \ | |
2585 \ | |
2586 notproduct(bool, PrintMethodStatistics, false, \ | |
2587 "prints method statistics at end of run") \ | |
2588 \ | |
2589 /* interpreter */ \ | |
2590 develop(bool, ClearInterpreterLocals, false, \ | |
2591 "Always clear local variables of interpreter activations upon " \ | |
2592 "entry") \ | |
2593 \ | |
2594 product_pd(bool, RewriteBytecodes, \ | |
2595 "Allow rewriting of bytecodes (bytecodes are not immutable)") \ | |
2596 \ | |
2597 product_pd(bool, RewriteFrequentPairs, \ | |
2598 "Rewrite frequently used bytecode pairs into a single bytecode") \ | |
2599 \ | |
100
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
2600 diagnostic(bool, PrintInterpreter, false, \ |
0 | 2601 "Prints the generated interpreter code") \ |
2602 \ | |
2603 product(bool, UseInterpreter, true, \ | |
2604 "Use interpreter for non-compiled methods") \ | |
2605 \ | |
2606 develop(bool, UseFastSignatureHandlers, true, \ | |
2607 "Use fast signature handlers for native calls") \ | |
2608 \ | |
2609 develop(bool, UseV8InstrsOnly, false, \ | |
2610 "Use SPARC-V8 Compliant instruction subset") \ | |
2611 \ | |
2612 product(bool, UseNiagaraInstrs, false, \ | |
2613 "Use Niagara-efficient instruction subset") \ | |
2614 \ | |
2615 develop(bool, UseCASForSwap, false, \ | |
2616 "Do not use swap instructions, but only CAS (in a loop) on SPARC")\ | |
2617 \ | |
2618 product(bool, UseLoopCounter, true, \ | |
2619 "Increment invocation counter on backward branch") \ | |
2620 \ | |
2621 product(bool, UseFastEmptyMethods, true, \ | |
2622 "Use fast method entry code for empty methods") \ | |
2623 \ | |
2624 product(bool, UseFastAccessorMethods, true, \ | |
2625 "Use fast method entry code for accessor methods") \ | |
2626 \ | |
2627 product_pd(bool, UseOnStackReplacement, \ | |
2628 "Use on stack replacement, calls runtime if invoc. counter " \ | |
2629 "overflows in loop") \ | |
2630 \ | |
2631 notproduct(bool, TraceOnStackReplacement, false, \ | |
2632 "Trace on stack replacement") \ | |
2633 \ | |
2634 develop(bool, PoisonOSREntry, true, \ | |
2635 "Detect abnormal calls to OSR code") \ | |
2636 \ | |
2637 product_pd(bool, PreferInterpreterNativeStubs, \ | |
2638 "Use always interpreter stubs for native methods invoked via " \ | |
2639 "interpreter") \ | |
2640 \ | |
2641 develop(bool, CountBytecodes, false, \ | |
2642 "Count number of bytecodes executed") \ | |
2643 \ | |
2644 develop(bool, PrintBytecodeHistogram, false, \ | |
2645 "Print histogram of the executed bytecodes") \ | |
2646 \ | |
2647 develop(bool, PrintBytecodePairHistogram, false, \ | |
2648 "Print histogram of the executed bytecode pairs") \ | |
2649 \ | |
100
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
76
diff
changeset
|
2650 diagnostic(bool, PrintSignatureHandlers, false, \ |
0 | 2651 "Print code generated for native method signature handlers") \ |
2652 \ | |
2653 develop(bool, VerifyOops, false, \ | |
2654 "Do plausibility checks for oops") \ | |
2655 \ | |
2656 develop(bool, CheckUnhandledOops, false, \ | |
2657 "Check for unhandled oops in VM code") \ | |
2658 \ | |
2659 develop(bool, VerifyJNIFields, trueInDebug, \ | |
2660 "Verify jfieldIDs for instance fields") \ | |
2661 \ | |
2662 notproduct(bool, VerifyJNIEnvThread, false, \ | |
2663 "Verify JNIEnv.thread == Thread::current() when entering VM " \ | |
2664 "from JNI") \ | |
2665 \ | |
2666 develop(bool, VerifyFPU, false, \ | |
2667 "Verify FPU state (check for NaN's, etc.)") \ | |
2668 \ | |
2669 develop(bool, VerifyThread, false, \ | |
2670 "Watch the thread register for corruption (SPARC only)") \ | |
2671 \ | |
2672 develop(bool, VerifyActivationFrameSize, false, \ | |
2673 "Verify that activation frame didn't become smaller than its " \ | |
2674 "minimal size") \ | |
2675 \ | |
2676 develop(bool, TraceFrequencyInlining, false, \ | |
2677 "Trace frequency based inlining") \ | |
2678 \ | |
2679 notproduct(bool, TraceTypeProfile, false, \ | |
2680 "Trace type profile") \ | |
2681 \ | |
2682 develop_pd(bool, InlineIntrinsics, \ | |
2683 "Inline intrinsics that can be statically resolved") \ | |
2684 \ | |
2685 product_pd(bool, ProfileInterpreter, \ | |
2686 "Profile at the bytecode level during interpretation") \ | |
2687 \ | |
2688 develop_pd(bool, ProfileTraps, \ | |
2689 "Profile deoptimization traps at the bytecode level") \ | |
2690 \ | |
2691 product(intx, ProfileMaturityPercentage, 20, \ | |
2692 "number of method invocations/branches (expressed as % of " \ | |
2693 "CompileThreshold) before using the method's profile") \ | |
2694 \ | |
2695 develop(bool, PrintMethodData, false, \ | |
2696 "Print the results of +ProfileInterpreter at end of run") \ | |
2697 \ | |
2698 develop(bool, VerifyDataPointer, trueInDebug, \ | |
2699 "Verify the method data pointer during interpreter profiling") \ | |
2700 \ | |
2701 develop(bool, VerifyCompiledCode, false, \ | |
2702 "Include miscellaneous runtime verifications in nmethod code; " \ | |
1064 | 2703 "default off because it disturbs nmethod size heuristics") \ |
0 | 2704 \ |
1119
547f81740344
6361589: Print out stack trace for target thread of GC crash
minqi
parents:
1064
diff
changeset
|
2705 notproduct(bool, CrashGCForDumpingJavaThread, false, \ |
547f81740344
6361589: Print out stack trace for target thread of GC crash
minqi
parents:
1064
diff
changeset
|
2706 "Manually make GC thread crash then dump java stack trace; " \ |
547f81740344
6361589: Print out stack trace for target thread of GC crash
minqi
parents:
1064
diff
changeset
|
2707 "Test only") \ |
0 | 2708 \ |
2709 /* compilation */ \ | |
2710 product(bool, UseCompiler, true, \ | |
2711 "use compilation") \ | |
2712 \ | |
2713 develop(bool, TraceCompilationPolicy, false, \ | |
2714 "Trace compilation policy") \ | |
2715 \ | |
2716 develop(bool, TimeCompilationPolicy, false, \ | |
2717 "Time the compilation policy") \ | |
2718 \ | |
2719 product(bool, UseCounterDecay, true, \ | |
2720 "adjust recompilation counters") \ | |
2721 \ | |
2722 develop(intx, CounterHalfLifeTime, 30, \ | |
2723 "half-life time of invocation counters (in secs)") \ | |
2724 \ | |
2725 develop(intx, CounterDecayMinIntervalLength, 500, \ | |
2726 "Min. ms. between invocation of CounterDecay") \ | |
2727 \ | |
2728 product(bool, AlwaysCompileLoopMethods, false, \ | |
2729 "when using recompilation, never interpret methods " \ | |
2730 "containing loops") \ | |
2731 \ | |
2732 product(bool, DontCompileHugeMethods, true, \ | |
2733 "don't compile methods > HugeMethodLimit") \ | |
2734 \ | |
2735 /* Bytecode escape analysis estimation. */ \ | |
2736 product(bool, EstimateArgEscape, true, \ | |
2737 "Analyze bytecodes to estimate escape state of arguments") \ | |
2738 \ | |
2739 product(intx, BCEATraceLevel, 0, \ | |
2740 "How much tracing to do of bytecode escape analysis estimates") \ | |
2741 \ | |
2742 product(intx, MaxBCEAEstimateLevel, 5, \ | |
2743 "Maximum number of nested calls that are analyzed by BC EA.") \ | |
2744 \ | |
2745 product(intx, MaxBCEAEstimateSize, 150, \ | |
2746 "Maximum bytecode size of a method to be analyzed by BC EA.") \ | |
2747 \ | |
2748 product(intx, AllocatePrefetchStyle, 1, \ | |
2749 "0 = no prefetch, " \ | |
2750 "1 = prefetch instructions for each allocation, " \ | |
1367
9e321dcfa5b7
6940726: Use BIS instruction for allocation prefetch on Sparc
kvn
parents:
1366
diff
changeset
|
2751 "2 = use TLAB watermark to gate allocation prefetch, " \ |
9e321dcfa5b7
6940726: Use BIS instruction for allocation prefetch on Sparc
kvn
parents:
1366
diff
changeset
|
2752 "3 = use BIS instruction on Sparc for allocation prefetch") \ |
0 | 2753 \ |
2754 product(intx, AllocatePrefetchDistance, -1, \ | |
2755 "Distance to prefetch ahead of allocation pointer") \ | |
2756 \ | |
2757 product(intx, AllocatePrefetchLines, 1, \ | |
2758 "Number of lines to prefetch ahead of allocation pointer") \ | |
2759 \ | |
2760 product(intx, AllocatePrefetchStepSize, 16, \ | |
2761 "Step size in bytes of sequential prefetch instructions") \ | |
2762 \ | |
2763 product(intx, AllocatePrefetchInstr, 0, \ | |
2764 "Prefetch instruction to prefetch ahead of allocation pointer") \ | |
2765 \ | |
2766 product(intx, ReadPrefetchInstr, 0, \ | |
2767 "Prefetch instruction to prefetch ahead") \ | |
2768 \ | |
2769 /* deoptimization */ \ | |
2770 develop(bool, TraceDeoptimization, false, \ | |
2771 "Trace deoptimization") \ | |
2772 \ | |
2773 develop(bool, DebugDeoptimization, false, \ | |
2774 "Tracing various information while debugging deoptimization") \ | |
2775 \ | |
2776 product(intx, SelfDestructTimer, 0, \ | |
2777 "Will cause VM to terminate after a given time (in minutes) " \ | |
2778 "(0 means off)") \ | |
2779 \ | |
2780 product(intx, MaxJavaStackTraceDepth, 1024, \ | |
2781 "Max. no. of lines in the stack trace for Java exceptions " \ | |
2782 "(0 means all)") \ | |
2783 \ | |
2784 develop(intx, GuaranteedSafepointInterval, 1000, \ | |
2785 "Guarantee a safepoint (at least) every so many milliseconds " \ | |
2786 "(0 means none)") \ | |
2787 \ | |
2788 product(intx, SafepointTimeoutDelay, 10000, \ | |
2789 "Delay in milliseconds for option SafepointTimeout") \ | |
2790 \ | |
2791 product(intx, NmethodSweepFraction, 4, \ | |
2792 "Number of invocations of sweeper to cover all nmethods") \ | |
2793 \ | |
1538
bfe29ec02863
6950075: nmethod sweeper should operate concurrently
never
parents:
1513
diff
changeset
|
2794 product(intx, NmethodSweepCheckInterval, 5, \ |
bfe29ec02863
6950075: nmethod sweeper should operate concurrently
never
parents:
1513
diff
changeset
|
2795 "Compilers wake up every n seconds to possibly sweep nmethods") \ |
bfe29ec02863
6950075: nmethod sweeper should operate concurrently
never
parents:
1513
diff
changeset
|
2796 \ |
0 | 2797 notproduct(intx, MemProfilingInterval, 500, \ |
2798 "Time between each invocation of the MemProfiler") \ | |
2799 \ | |
2800 develop(intx, MallocCatchPtr, -1, \ | |
2801 "Hit breakpoint when mallocing/freeing this pointer") \ | |
2802 \ | |
2803 notproduct(intx, AssertRepeat, 1, \ | |
2804 "number of times to evaluate expression in assert " \ | |
2805 "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \ | |
2806 \ | |
2807 notproduct(ccstrlist, SuppressErrorAt, "", \ | |
2808 "List of assertions (file:line) to muzzle") \ | |
2809 \ | |
2810 notproduct(uintx, HandleAllocationLimit, 1024, \ | |
2811 "Threshold for HandleMark allocation when +TraceHandleAllocation "\ | |
2812 "is used") \ | |
2813 \ | |
2814 develop(uintx, TotalHandleAllocationLimit, 1024, \ | |
2815 "Threshold for total handle allocation when " \ | |
2816 "+TraceHandleAllocation is used") \ | |
2817 \ | |
2818 develop(intx, StackPrintLimit, 100, \ | |
2819 "number of stack frames to print in VM-level stack dump") \ | |
2820 \ | |
2821 notproduct(intx, MaxElementPrintSize, 256, \ | |
2822 "maximum number of elements to print") \ | |
2823 \ | |
2824 notproduct(intx, MaxSubklassPrintSize, 4, \ | |
2825 "maximum number of subklasses to print when printing klass") \ | |
2826 \ | |
1157
c3b315a0d58a
6912063: inlining parameters need to be adjusted for some uses of the JVM
jrose
parents:
1150
diff
changeset
|
2827 product(intx, MaxInlineLevel, 9, \ |
0 | 2828 "maximum number of nested calls that are inlined") \ |
2829 \ | |
1157
c3b315a0d58a
6912063: inlining parameters need to be adjusted for some uses of the JVM
jrose
parents:
1150
diff
changeset
|
2830 product(intx, MaxRecursiveInlineLevel, 1, \ |
0 | 2831 "maximum number of nested recursive calls that are inlined") \ |
2832 \ | |
675 | 2833 product_pd(intx, InlineSmallCode, \ |
0 | 2834 "Only inline already compiled methods if their code size is " \ |
2835 "less than this") \ | |
2836 \ | |
2837 product(intx, MaxInlineSize, 35, \ | |
2838 "maximum bytecode size of a method to be inlined") \ | |
2839 \ | |
2840 product_pd(intx, FreqInlineSize, \ | |
2841 "maximum bytecode size of a frequent method to be inlined") \ | |
2842 \ | |
1157
c3b315a0d58a
6912063: inlining parameters need to be adjusted for some uses of the JVM
jrose
parents:
1150
diff
changeset
|
2843 product(intx, MaxTrivialSize, 6, \ |
0 | 2844 "maximum bytecode size of a trivial method to be inlined") \ |
2845 \ | |
1157
c3b315a0d58a
6912063: inlining parameters need to be adjusted for some uses of the JVM
jrose
parents:
1150
diff
changeset
|
2846 product(intx, MinInliningThreshold, 250, \ |
0 | 2847 "min. invocation count a method needs to have to be inlined") \ |
2848 \ | |
2849 develop(intx, AlignEntryCode, 4, \ | |
2850 "aligns entry code to specified value (in bytes)") \ | |
2851 \ | |
2852 develop(intx, MethodHistogramCutoff, 100, \ | |
2853 "cutoff value for method invoc. histogram (+CountCalls)") \ | |
2854 \ | |
2855 develop(intx, ProfilerNumberOfInterpretedMethods, 25, \ | |
2856 "# of interpreted methods to show in profile") \ | |
2857 \ | |
2858 develop(intx, ProfilerNumberOfCompiledMethods, 25, \ | |
2859 "# of compiled methods to show in profile") \ | |
2860 \ | |
2861 develop(intx, ProfilerNumberOfStubMethods, 25, \ | |
2862 "# of stub methods to show in profile") \ | |
2863 \ | |
2864 develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \ | |
2865 "# of runtime stub nodes to show in profile") \ | |
2866 \ | |
2867 product(intx, ProfileIntervalsTicks, 100, \ | |
2868 "# of ticks between printing of interval profile " \ | |
2869 "(+ProfileIntervals)") \ | |
2870 \ | |
2871 notproduct(intx, ScavengeALotInterval, 1, \ | |
2872 "Interval between which scavenge will occur with +ScavengeALot") \ | |
2873 \ | |
2874 notproduct(intx, FullGCALotInterval, 1, \ | |
2875 "Interval between which full gc will occur with +FullGCALot") \ | |
2876 \ | |
2877 notproduct(intx, FullGCALotStart, 0, \ | |
2878 "For which invocation to start FullGCAlot") \ | |
2879 \ | |
2880 notproduct(intx, FullGCALotDummies, 32*K, \ | |
2881 "Dummy object allocated with +FullGCALot, forcing all objects " \ | |
2882 "to move") \ | |
2883 \ | |
2884 develop(intx, DontYieldALotInterval, 10, \ | |
2885 "Interval between which yields will be dropped (milliseconds)") \ | |
2886 \ | |
2887 develop(intx, MinSleepInterval, 1, \ | |
2888 "Minimum sleep() interval (milliseconds) when " \ | |
2889 "ConvertSleepToYield is off (used for SOLARIS)") \ | |
2890 \ | |
2891 product(intx, EventLogLength, 2000, \ | |
2892 "maximum nof events in event log") \ | |
2893 \ | |
2894 develop(intx, ProfilerPCTickThreshold, 15, \ | |
2895 "Number of ticks in a PC buckets to be a hotspot") \ | |
2896 \ | |
2897 notproduct(intx, DeoptimizeALotInterval, 5, \ | |
2898 "Number of exits until DeoptimizeALot kicks in") \ | |
2899 \ | |
2900 notproduct(intx, ZombieALotInterval, 5, \ | |
2901 "Number of exits until ZombieALot kicks in") \ | |
2902 \ | |
2903 develop(bool, StressNonEntrant, false, \ | |
2904 "Mark nmethods non-entrant at registration") \ | |
2905 \ | |
2906 diagnostic(intx, MallocVerifyInterval, 0, \ | |
2907 "if non-zero, verify C heap after every N calls to " \ | |
2908 "malloc/realloc/free") \ | |
2909 \ | |
2910 diagnostic(intx, MallocVerifyStart, 0, \ | |
2911 "if non-zero, start verifying C heap after Nth call to " \ | |
2912 "malloc/realloc/free") \ | |
2913 \ | |
2914 product(intx, TypeProfileWidth, 2, \ | |
2915 "number of receiver types to record in call/cast profile") \ | |
2916 \ | |
2917 develop(intx, BciProfileWidth, 2, \ | |
2918 "number of return bci's to record in ret profile") \ | |
2919 \ | |
2920 product(intx, PerMethodRecompilationCutoff, 400, \ | |
2921 "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ | |
2922 \ | |
1206
87684f1a88b5
6614597: Performance variability in jvm2008 xml.validation
kvn
parents:
1202
diff
changeset
|
2923 product(intx, PerBytecodeRecompilationCutoff, 200, \ |
0 | 2924 "Per-BCI limit on repeated recompilation (-1=>'Inf')") \ |
2925 \ | |
2926 product(intx, PerMethodTrapLimit, 100, \ | |
2927 "Limit on traps (of one kind) in a method (includes inlines)") \ | |
2928 \ | |
2929 product(intx, PerBytecodeTrapLimit, 4, \ | |
2930 "Limit on traps (of one kind) at a particular BCI") \ | |
2931 \ | |
2932 develop(intx, FreqCountInvocations, 1, \ | |
2933 "Scaling factor for branch frequencies (deprecated)") \ | |
2934 \ | |
2935 develop(intx, InlineFrequencyRatio, 20, \ | |
2936 "Ratio of call site execution to caller method invocation") \ | |
2937 \ | |
2938 develop_pd(intx, InlineFrequencyCount, \ | |
2939 "Count of call site execution necessary to trigger frequent " \ | |
2940 "inlining") \ | |
2941 \ | |
2942 develop(intx, InlineThrowCount, 50, \ | |
2943 "Force inlining of interpreted methods that throw this often") \ | |
2944 \ | |
2945 develop(intx, InlineThrowMaxSize, 200, \ | |
2946 "Force inlining of throwing methods smaller than this") \ | |
2947 \ | |
2948 product(intx, AliasLevel, 3, \ | |
2949 "0 for no aliasing, 1 for oop/field/static/array split, " \ | |
2950 "2 for class split, 3 for unique instances") \ | |
2951 \ | |
2952 develop(bool, VerifyAliases, false, \ | |
2953 "perform extra checks on the results of alias analysis") \ | |
2954 \ | |
2955 develop(intx, ProfilerNodeSize, 1024, \ | |
2956 "Size in K to allocate for the Profile Nodes of each thread") \ | |
2957 \ | |
2958 develop(intx, V8AtomicOperationUnderLockSpinCount, 50, \ | |
2959 "Number of times to spin wait on a v8 atomic operation lock") \ | |
2960 \ | |
2961 product(intx, ReadSpinIterations, 100, \ | |
2962 "Number of read attempts before a yield (spin inner loop)") \ | |
2963 \ | |
2964 product_pd(intx, PreInflateSpin, \ | |
2965 "Number of times to spin wait before inflation") \ | |
2966 \ | |
2967 product(intx, PreBlockSpin, 10, \ | |
2968 "Number of times to spin in an inflated lock before going to " \ | |
2969 "an OS lock") \ | |
2970 \ | |
2971 /* gc parameters */ \ | |
1064 | 2972 product(uintx, InitialHeapSize, 0, \ |
2973 "Initial heap size (in bytes); zero means OldSize + NewSize") \ | |
2974 \ | |
2975 product(uintx, MaxHeapSize, ScaleForWordSize(96*M), \ | |
2976 "Maximum heap size (in bytes)") \ | |
2977 \ | |
2978 product(uintx, OldSize, ScaleForWordSize(4*M), \ | |
2979 "Initial tenured generation size (in bytes)") \ | |
2980 \ | |
1287
8911d8c0596f
6923123: Hotspot refuses to start when -Xmx4m or -Xms4m is specified
phh
parents:
1211
diff
changeset
|
2981 product(uintx, NewSize, ScaleForWordSize(1*M), \ |
1064 | 2982 "Initial new generation size (in bytes)") \ |
0 | 2983 \ |
2984 product(uintx, MaxNewSize, max_uintx, \ | |
1064 | 2985 "Maximum new generation size (in bytes), max_uintx means set " \ |
2986 "ergonomically") \ | |
0 | 2987 \ |
2988 product(uintx, PretenureSizeThreshold, 0, \ | |
1064 | 2989 "Maximum size in bytes of objects allocated in DefNew " \ |
2990 "generation; zero means no maximum") \ | |
2991 \ | |
2992 product(uintx, TLABSize, 0, \ | |
2993 "Starting TLAB size (in bytes); zero means set ergonomically") \ | |
0 | 2994 \ |
2995 product(uintx, MinTLABSize, 2*K, \ | |
2996 "Minimum allowed TLAB size (in bytes)") \ | |
2997 \ | |
2998 product(uintx, TLABAllocationWeight, 35, \ | |
2999 "Allocation averaging weight") \ | |
3000 \ | |
3001 product(uintx, TLABWasteTargetPercent, 1, \ | |
3002 "Percentage of Eden that can be wasted") \ | |
3003 \ | |
3004 product(uintx, TLABRefillWasteFraction, 64, \ | |
3005 "Max TLAB waste at a refill (internal fragmentation)") \ | |
3006 \ | |
3007 product(uintx, TLABWasteIncrement, 4, \ | |
3008 "Increment allowed waste at slow allocation") \ | |
3009 \ | |
1064 | 3010 product(intx, SurvivorRatio, 8, \ |
0 | 3011 "Ratio of eden/survivor space size") \ |
3012 \ | |
1064 | 3013 product(intx, NewRatio, 2, \ |
0 | 3014 "Ratio of new/old generation sizes") \ |
3015 \ | |
3016 product(uintx, MaxLiveObjectEvacuationRatio, 100, \ | |
3017 "Max percent of eden objects that will be live at scavenge") \ | |
3018 \ | |
3019 product_pd(uintx, NewSizeThreadIncrease, \ | |
3020 "Additional size added to desired new generation size per " \ | |
3021 "non-daemon thread (in bytes)") \ | |
3022 \ | |
3023 product_pd(uintx, PermSize, \ | |
1064 | 3024 "Initial size of permanent generation (in bytes)") \ |
0 | 3025 \ |
3026 product_pd(uintx, MaxPermSize, \ | |
3027 "Maximum size of permanent generation (in bytes)") \ | |
3028 \ | |
3029 product(uintx, MinHeapFreeRatio, 40, \ | |
3030 "Min percentage of heap free after GC to avoid expansion") \ | |
3031 \ | |
3032 product(uintx, MaxHeapFreeRatio, 70, \ | |
3033 "Max percentage of heap free after GC to avoid shrinking") \ | |
3034 \ | |
3035 product(intx, SoftRefLRUPolicyMSPerMB, 1000, \ | |
3036 "Number of milliseconds per MB of free space in the heap") \ | |
3037 \ | |
3038 product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K), \ | |
3039 "Min change in heap space due to GC (in bytes)") \ | |
3040 \ | |
3041 product(uintx, MinPermHeapExpansion, ScaleForWordSize(256*K), \ | |
3042 "Min expansion of permanent heap (in bytes)") \ | |
3043 \ | |
3044 product(uintx, MaxPermHeapExpansion, ScaleForWordSize(4*M), \ | |
3045 "Max expansion of permanent heap without full GC (in bytes)") \ | |
3046 \ | |
3047 product(intx, QueuedAllocationWarningCount, 0, \ | |
3048 "Number of times an allocation that queues behind a GC " \ | |
3049 "will retry before printing a warning") \ | |
3050 \ | |
3051 diagnostic(uintx, VerifyGCStartAt, 0, \ | |
3052 "GC invoke count where +VerifyBefore/AfterGC kicks in") \ | |
3053 \ | |
3054 diagnostic(intx, VerifyGCLevel, 0, \ | |
3055 "Generation level at which to start +VerifyBefore/AfterGC") \ | |
3056 \ | |
3057 develop(uintx, ExitAfterGCNum, 0, \ | |
3058 "If non-zero, exit after this GC.") \ | |
3059 \ | |
3060 product(intx, MaxTenuringThreshold, 15, \ | |
3061 "Maximum value for tenuring threshold") \ | |
3062 \ | |
3063 product(intx, InitialTenuringThreshold, 7, \ | |
3064 "Initial value for tenuring threshold") \ | |
3065 \ | |
3066 product(intx, TargetSurvivorRatio, 50, \ | |
3067 "Desired percentage of survivor space used after scavenge") \ | |
3068 \ | |
438 | 3069 product(uintx, MarkSweepDeadRatio, 5, \ |
0 | 3070 "Percentage (0-100) of the old gen allowed as dead wood." \ |
3071 "Serial mark sweep treats this as both the min and max value." \ | |
3072 "CMS uses this value only if it falls back to mark sweep." \ | |
3073 "Par compact uses a variable scale based on the density of the" \ | |
3074 "generation and treats this as the max value when the heap is" \ | |
3075 "either completely full or completely empty. Par compact also" \ | |
3076 "has a smaller default value; see arguments.cpp.") \ | |
3077 \ | |
438 | 3078 product(uintx, PermMarkSweepDeadRatio, 20, \ |
0 | 3079 "Percentage (0-100) of the perm gen allowed as dead wood." \ |
3080 "See MarkSweepDeadRatio for collector-specific comments.") \ | |
3081 \ | |
3082 product(intx, MarkSweepAlwaysCompactCount, 4, \ | |
3083 "How often should we fully compact the heap (ignoring the dead " \ | |
3084 "space parameters)") \ | |
3085 \ | |
3086 product(intx, PrintCMSStatistics, 0, \ | |
3087 "Statistics for CMS") \ | |
3088 \ | |
3089 product(bool, PrintCMSInitiationStatistics, false, \ | |
3090 "Statistics for initiating a CMS collection") \ | |
3091 \ | |
3092 product(intx, PrintFLSStatistics, 0, \ | |
3093 "Statistics for CMS' FreeListSpace") \ | |
3094 \ | |
3095 product(intx, PrintFLSCensus, 0, \ | |
3096 "Census for CMS' FreeListSpace") \ | |
3097 \ | |
3098 develop(uintx, GCExpandToAllocateDelayMillis, 0, \ | |
3099 "Delay in ms between expansion and allocation") \ | |
3100 \ | |
3101 product(intx, DeferThrSuspendLoopCount, 4000, \ | |
3102 "(Unstable) Number of times to iterate in safepoint loop " \ | |
3103 " before blocking VM threads ") \ | |
3104 \ | |
3105 product(intx, DeferPollingPageLoopCount, -1, \ | |
3106 "(Unsafe,Unstable) Number of iterations in safepoint loop " \ | |
3107 "before changing safepoint polling page to RO ") \ | |
3108 \ | |
3109 product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \ | |
3110 \ | |
3111 product(bool, PSChunkLargeArrays, true, \ | |
3112 "true: process large arrays in chunks") \ | |
3113 \ | |
3114 product(uintx, GCDrainStackTargetSize, 64, \ | |
3115 "how many entries we'll try to leave on the stack during " \ | |
3116 "parallel GC") \ | |
3117 \ | |
3118 /* stack parameters */ \ | |
3119 product_pd(intx, StackYellowPages, \ | |
3120 "Number of yellow zone (recoverable overflows) pages") \ | |
3121 \ | |
3122 product_pd(intx, StackRedPages, \ | |
3123 "Number of red zone (unrecoverable overflows) pages") \ | |
3124 \ | |
3125 product_pd(intx, StackShadowPages, \ | |
3126 "Number of shadow zone (for overflow checking) pages" \ | |
3127 " this should exceed the depth of the VM and native call stack") \ | |
3128 \ | |
3129 product_pd(intx, ThreadStackSize, \ | |
3130 "Thread Stack Size (in Kbytes)") \ | |
3131 \ | |
3132 product_pd(intx, VMThreadStackSize, \ | |
3133 "Non-Java Thread Stack Size (in Kbytes)") \ | |
3134 \ | |
3135 product_pd(intx, CompilerThreadStackSize, \ | |
3136 "Compiler Thread Stack Size (in Kbytes)") \ | |
3137 \ | |
3138 develop_pd(uintx, JVMInvokeMethodSlack, \ | |
3139 "Stack space (bytes) required for JVM_InvokeMethod to complete") \ | |
3140 \ | |
3141 product(uintx, ThreadSafetyMargin, 50*M, \ | |
3142 "Thread safety margin is used on fixed-stack LinuxThreads (on " \ | |
3143 "Linux/x86 only) to prevent heap-stack collision. Set to 0 to " \ | |
3144 "disable this feature") \ | |
3145 \ | |
3146 /* code cache parameters */ \ | |
3147 develop(uintx, CodeCacheSegmentSize, 64, \ | |
3148 "Code cache segment size (in bytes) - smallest unit of " \ | |
3149 "allocation") \ | |
3150 \ | |
3151 develop_pd(intx, CodeEntryAlignment, \ | |
3152 "Code entry alignment for generated code (in bytes)") \ | |
3153 \ | |
1365 | 3154 product_pd(intx, OptoLoopAlignment, \ |
3155 "Align inner loops to zero relative to this modulus") \ | |
3156 \ | |
0 | 3157 product_pd(uintx, InitialCodeCacheSize, \ |
3158 "Initial code cache size (in bytes)") \ | |
3159 \ | |
3160 product_pd(uintx, ReservedCodeCacheSize, \ | |
3161 "Reserved code cache size (in bytes) - maximum code cache size") \ | |
3162 \ | |
3163 product(uintx, CodeCacheMinimumFreeSpace, 500*K, \ | |
3164 "When less than X space left, we stop compiling.") \ | |
3165 \ | |
3166 product_pd(uintx, CodeCacheExpansionSize, \ | |
3167 "Code cache expansion size (in bytes)") \ | |
3168 \ | |
3169 develop_pd(uintx, CodeCacheMinBlockLength, \ | |
3170 "Minimum number of segments in a code cache block.") \ | |
3171 \ | |
3172 notproduct(bool, ExitOnFullCodeCache, false, \ | |
3173 "Exit the VM if we fill the code cache.") \ | |
3174 \ | |
1202 | 3175 product(bool, UseCodeCacheFlushing, false, \ |
3176 "Attempt to clean the code cache before shutting off compiler") \ | |
3177 \ | |
3178 product(intx, MinCodeCacheFlushingInterval, 30, \ | |
3179 "Min number of seconds between code cache cleaning sessions") \ | |
3180 \ | |
3181 product(uintx, CodeCacheFlushingMinimumFreeSpace, 1500*K, \ | |
3182 "When less than X space left, start code cache cleaning") \ | |
3183 \ | |
0 | 3184 /* interpreter debugging */ \ |
3185 develop(intx, BinarySwitchThreshold, 5, \ | |
3186 "Minimal number of lookupswitch entries for rewriting to binary " \ | |
3187 "switch") \ | |
3188 \ | |
3189 develop(intx, StopInterpreterAt, 0, \ | |
3190 "Stops interpreter execution at specified bytecode number") \ | |
3191 \ | |
3192 develop(intx, TraceBytecodesAt, 0, \ | |
3193 "Traces bytecodes starting with specified bytecode number") \ | |
3194 \ | |
3195 /* compiler interface */ \ | |
3196 develop(intx, CIStart, 0, \ | |
3197 "the id of the first compilation to permit") \ | |
3198 \ | |
3199 develop(intx, CIStop, -1, \ | |
3200 "the id of the last compilation to permit") \ | |
3201 \ | |
3202 develop(intx, CIStartOSR, 0, \ | |
3203 "the id of the first osr compilation to permit " \ | |
3204 "(CICountOSR must be on)") \ | |
3205 \ | |
3206 develop(intx, CIStopOSR, -1, \ | |
3207 "the id of the last osr compilation to permit " \ | |
3208 "(CICountOSR must be on)") \ | |
3209 \ | |
3210 develop(intx, CIBreakAtOSR, -1, \ | |
3211 "id of osr compilation to break at") \ | |
3212 \ | |
3213 develop(intx, CIBreakAt, -1, \ | |
3214 "id of compilation to break at") \ | |
3215 \ | |
3216 product(ccstrlist, CompileOnly, "", \ | |
3217 "List of methods (pkg/class.name) to restrict compilation to") \ | |
3218 \ | |
3219 product(ccstr, CompileCommandFile, NULL, \ | |
3220 "Read compiler commands from this file [.hotspot_compiler]") \ | |
3221 \ | |
3222 product(ccstrlist, CompileCommand, "", \ | |
3223 "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \ | |
3224 \ | |
3225 product(bool, CICompilerCountPerCPU, false, \ | |
3226 "1 compiler thread for log(N CPUs)") \ | |
3227 \ | |
3228 develop(intx, CIFireOOMAt, -1, \ | |
3229 "Fire OutOfMemoryErrors throughout CI for testing the compiler " \ | |
3230 "(non-negative value throws OOM after this many CI accesses " \ | |
3231 "in each compile)") \ | |
3232 \ | |
3233 develop(intx, CIFireOOMAtDelay, -1, \ | |
3234 "Wait for this many CI accesses to occur in all compiles before " \ | |
3235 "beginning to throw OutOfMemoryErrors in each compile") \ | |
3236 \ | |
909
b32a809aab08
6866585: debug code in ciObjectFactory too slow for large objects
jcoomes
parents:
905
diff
changeset
|
3237 notproduct(bool, CIObjectFactoryVerify, false, \ |
b32a809aab08
6866585: debug code in ciObjectFactory too slow for large objects
jcoomes
parents:
905
diff
changeset
|
3238 "enable potentially expensive verification in ciObjectFactory") \ |
b32a809aab08
6866585: debug code in ciObjectFactory too slow for large objects
jcoomes
parents:
905
diff
changeset
|
3239 \ |
0 | 3240 /* Priorities */ \ |
3241 product_pd(bool, UseThreadPriorities, "Use native thread priorities") \ | |
3242 \ | |
3243 product(intx, ThreadPriorityPolicy, 0, \ | |
3244 "0 : Normal. "\ | |
3245 " VM chooses priorities that are appropriate for normal "\ | |
3246 " applications. On Solaris NORM_PRIORITY and above are mapped "\ | |
3247 " to normal native priority. Java priorities below NORM_PRIORITY"\ | |
3248 " map to lower native priority values. On Windows applications"\ | |
3249 " are allowed to use higher native priorities. However, with "\ | |
3250 " ThreadPriorityPolicy=0, VM will not use the highest possible"\ | |
3251 " native priority, THREAD_PRIORITY_TIME_CRITICAL, as it may "\ | |
3252 " interfere with system threads. On Linux thread priorities "\ | |
3253 " are ignored because the OS does not support static priority "\ | |
3254 " in SCHED_OTHER scheduling class which is the only choice for"\ | |
3255 " non-root, non-realtime applications. "\ | |
3256 "1 : Aggressive. "\ | |
3257 " Java thread priorities map over to the entire range of "\ | |
3258 " native thread priorities. Higher Java thread priorities map "\ | |
3259 " to higher native thread priorities. This policy should be "\ | |
3260 " used with care, as sometimes it can cause performance "\ | |
3261 " degradation in the application and/or the entire system. On "\ | |
3262 " Linux this policy requires root privilege.") \ | |
3263 \ | |
3264 product(bool, ThreadPriorityVerbose, false, \ | |
3265 "print priority changes") \ | |
3266 \ | |
3267 product(intx, DefaultThreadPriority, -1, \ | |
3268 "what native priority threads run at if not specified elsewhere (-1 means no change)") \ | |
3269 \ | |
3270 product(intx, CompilerThreadPriority, -1, \ | |
3271 "what priority should compiler threads run at (-1 means no change)") \ | |
3272 \ | |
3273 product(intx, VMThreadPriority, -1, \ | |
3274 "what priority should VM threads run at (-1 means no change)") \ | |
3275 \ | |
3276 product(bool, CompilerThreadHintNoPreempt, true, \ | |
3277 "(Solaris only) Give compiler threads an extra quanta") \ | |
3278 \ | |
3279 product(bool, VMThreadHintNoPreempt, false, \ | |
3280 "(Solaris only) Give VM thread an extra quanta") \ | |
3281 \ | |
3282 product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \ | |
3283 product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \ | |
3284 product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \ | |
3285 product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \ | |
3286 product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \ | |
3287 product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \ | |
3288 product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \ | |
3289 product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \ | |
3290 product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \ | |
3291 product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \ | |
3292 \ | |
3293 /* compiler debugging */ \ | |
3294 notproduct(intx, CompileTheWorldStartAt, 1, \ | |
3295 "First class to consider when using +CompileTheWorld") \ | |
3296 \ | |
3297 notproduct(intx, CompileTheWorldStopAt, max_jint, \ | |
3298 "Last class to consider when using +CompileTheWorld") \ | |
3299 \ | |
3300 develop(intx, NewCodeParameter, 0, \ | |
3301 "Testing Only: Create a dedicated integer parameter before " \ | |
3302 "putback") \ | |
3303 \ | |
3304 /* new oopmap storage allocation */ \ | |
3305 develop(intx, MinOopMapAllocation, 8, \ | |
3306 "Minimum number of OopMap entries in an OopMapSet") \ | |
3307 \ | |
3308 /* Background Compilation */ \ | |
3309 develop(intx, LongCompileThreshold, 50, \ | |
3310 "Used with +TraceLongCompiles") \ | |
3311 \ | |
3312 product(intx, StarvationMonitorInterval, 200, \ | |
3313 "Pause between each check in ms") \ | |
3314 \ | |
3315 /* recompilation */ \ | |
3316 product_pd(intx, CompileThreshold, \ | |
3317 "number of interpreted method invocations before (re-)compiling") \ | |
3318 \ | |
3319 product_pd(intx, BackEdgeThreshold, \ | |
3320 "Interpreter Back edge threshold at which an OSR compilation is invoked")\ | |
3321 \ | |
3322 product(intx, Tier1BytecodeLimit, 10, \ | |
3323 "Must have at least this many bytecodes before tier1" \ | |
3324 "invocation counters are used") \ | |
3325 \ | |
3326 product_pd(intx, Tier2CompileThreshold, \ | |
3327 "threshold at which a tier 2 compilation is invoked") \ | |
3328 \ | |
3329 product_pd(intx, Tier2BackEdgeThreshold, \ | |
3330 "Back edge threshold at which a tier 2 compilation is invoked") \ | |
3331 \ | |
3332 product_pd(intx, Tier3CompileThreshold, \ | |
3333 "threshold at which a tier 3 compilation is invoked") \ | |
3334 \ | |
3335 product_pd(intx, Tier3BackEdgeThreshold, \ | |
3336 "Back edge threshold at which a tier 3 compilation is invoked") \ | |
3337 \ | |
3338 product_pd(intx, Tier4CompileThreshold, \ | |
3339 "threshold at which a tier 4 compilation is invoked") \ | |
3340 \ | |
3341 product_pd(intx, Tier4BackEdgeThreshold, \ | |
3342 "Back edge threshold at which a tier 4 compilation is invoked") \ | |
3343 \ | |
3344 product_pd(bool, TieredCompilation, \ | |
3345 "Enable two-tier compilation") \ | |
3346 \ | |
3347 product(bool, StressTieredRuntime, false, \ | |
3348 "Alternate client and server compiler on compile requests") \ | |
3349 \ | |
3350 product_pd(intx, OnStackReplacePercentage, \ | |
3351 "NON_TIERED number of method invocations/branches (expressed as %"\ | |
3352 "of CompileThreshold) before (re-)compiling OSR code") \ | |
3353 \ | |
3354 product(intx, InterpreterProfilePercentage, 33, \ | |
3355 "NON_TIERED number of method invocations/branches (expressed as %"\ | |
3356 "of CompileThreshold) before profiling in the interpreter") \ | |
3357 \ | |
3358 develop(intx, MaxRecompilationSearchLength, 10, \ | |
3359 "max. # frames to inspect searching for recompilee") \ | |
3360 \ | |
3361 develop(intx, MaxInterpretedSearchLength, 3, \ | |
3362 "max. # interp. frames to skip when searching for recompilee") \ | |
3363 \ | |
3364 develop(intx, DesiredMethodLimit, 8000, \ | |
3365 "desired max. method size (in bytecodes) after inlining") \ | |
3366 \ | |
3367 develop(intx, HugeMethodLimit, 8000, \ | |
3368 "don't compile methods larger than this if " \ | |
3369 "+DontCompileHugeMethods") \ | |
3370 \ | |
3371 /* New JDK 1.4 reflection implementation */ \ | |
3372 \ | |
3373 develop(bool, UseNewReflection, true, \ | |
3374 "Temporary flag for transition to reflection based on dynamic " \ | |
3375 "bytecode generation in 1.4; can no longer be turned off in 1.4 " \ | |
3376 "JDK, and is unneeded in 1.3 JDK, but marks most places VM " \ | |
3377 "changes were needed") \ | |
3378 \ | |
3379 develop(bool, VerifyReflectionBytecodes, false, \ | |
3380 "Force verification of 1.4 reflection bytecodes. Does not work " \ | |
3381 "in situations like that described in 4486457 or for " \ | |
3382 "constructors generated for serialization, so can not be enabled "\ | |
3383 "in product.") \ | |
3384 \ | |
3385 product(bool, ReflectionWrapResolutionErrors, true, \ | |
3386 "Temporary flag for transition to AbstractMethodError wrapped " \ | |
3387 "in InvocationTargetException. See 6531596") \ | |
3388 \ | |
3389 \ | |
3390 develop(intx, FastSuperclassLimit, 8, \ | |
3391 "Depth of hardwired instanceof accelerator array") \ | |
3392 \ | |
3393 /* Properties for Java libraries */ \ | |
3394 \ | |
3395 product(intx, MaxDirectMemorySize, -1, \ | |
3396 "Maximum total size of NIO direct-buffer allocations") \ | |
3397 \ | |
3398 /* temporary developer defined flags */ \ | |
3399 \ | |
3400 diagnostic(bool, UseNewCode, false, \ | |
3401 "Testing Only: Use the new version while testing") \ | |
3402 \ | |
3403 diagnostic(bool, UseNewCode2, false, \ | |
3404 "Testing Only: Use the new version while testing") \ | |
3405 \ | |
3406 diagnostic(bool, UseNewCode3, false, \ | |
3407 "Testing Only: Use the new version while testing") \ | |
3408 \ | |
3409 /* flags for performance data collection */ \ | |
3410 \ | |
3411 product(bool, UsePerfData, true, \ | |
3412 "Flag to disable jvmstat instrumentation for performance testing" \ | |
3413 "and problem isolation purposes.") \ | |
3414 \ | |
3415 product(bool, PerfDataSaveToFile, false, \ | |
3416 "Save PerfData memory to hsperfdata_<pid> file on exit") \ | |
3417 \ | |
3418 product(ccstr, PerfDataSaveFile, NULL, \ | |
3419 "Save PerfData memory to the specified absolute pathname," \ | |
3420 "%p in the file name if present will be replaced by pid") \ | |
3421 \ | |
3422 product(intx, PerfDataSamplingInterval, 50 /*ms*/, \ | |
3423 "Data sampling interval in milliseconds") \ | |
3424 \ | |
3425 develop(bool, PerfTraceDataCreation, false, \ | |
3426 "Trace creation of Performance Data Entries") \ | |
3427 \ | |
3428 develop(bool, PerfTraceMemOps, false, \ | |
3429 "Trace PerfMemory create/attach/detach calls") \ | |
3430 \ | |
3431 product(bool, PerfDisableSharedMem, false, \ | |
3432 "Store performance data in standard memory") \ | |
3433 \ | |
3434 product(intx, PerfDataMemorySize, 32*K, \ | |
3435 "Size of performance data memory region. Will be rounded " \ | |
3436 "up to a multiple of the native os page size.") \ | |
3437 \ | |
3438 product(intx, PerfMaxStringConstLength, 1024, \ | |
3439 "Maximum PerfStringConstant string length before truncation") \ | |
3440 \ | |
3441 product(bool, PerfAllowAtExitRegistration, false, \ | |
3442 "Allow registration of atexit() methods") \ | |
3443 \ | |
3444 product(bool, PerfBypassFileSystemCheck, false, \ | |
3445 "Bypass Win32 file system criteria checks (Windows Only)") \ | |
3446 \ | |
3447 product(intx, UnguardOnExecutionViolation, 0, \ | |
3448 "Unguard page and retry on no-execute fault (Win32 only)" \ | |
3449 "0=off, 1=conservative, 2=aggressive") \ | |
3450 \ | |
3451 /* Serviceability Support */ \ | |
3452 \ | |
3453 product(bool, ManagementServer, false, \ | |
3454 "Create JMX Management Server") \ | |
3455 \ | |
3456 product(bool, DisableAttachMechanism, false, \ | |
3457 "Disable mechanism that allows tools to attach to this VM") \ | |
3458 \ | |
3459 product(bool, StartAttachListener, false, \ | |
3460 "Always start Attach Listener at VM startup") \ | |
3461 \ | |
3462 manageable(bool, PrintConcurrentLocks, false, \ | |
3463 "Print java.util.concurrent locks in thread dump") \ | |
3464 \ | |
3465 /* Shared spaces */ \ | |
3466 \ | |
3467 product(bool, UseSharedSpaces, true, \ | |
3468 "Use shared spaces in the permanent generation") \ | |
3469 \ | |
3470 product(bool, RequireSharedSpaces, false, \ | |
3471 "Require shared spaces in the permanent generation") \ | |
3472 \ | |
3473 product(bool, ForceSharedSpaces, false, \ | |
3474 "Require shared spaces in the permanent generation") \ | |
3475 \ | |
3476 product(bool, DumpSharedSpaces, false, \ | |
3477 "Special mode: JVM reads a class list, loads classes, builds " \ | |
3478 "shared spaces, and dumps the shared spaces to a file to be " \ | |
3479 "used in future JVM runs.") \ | |
3480 \ | |
3481 product(bool, PrintSharedSpaces, false, \ | |
3482 "Print usage of shared spaces") \ | |
3483 \ | |
3484 product(uintx, SharedDummyBlockSize, 512*M, \ | |
3485 "Size of dummy block used to shift heap addresses (in bytes)") \ | |
3486 \ | |
3487 product(uintx, SharedReadWriteSize, 12*M, \ | |
3488 "Size of read-write space in permanent generation (in bytes)") \ | |
3489 \ | |
910
10d8c0d0d60e
6867645: java -Xshare:dump failed - read only space too small
jcoomes
parents:
909
diff
changeset
|
3490 product(uintx, SharedReadOnlySize, 10*M, \ |
0 | 3491 "Size of read-only space in permanent generation (in bytes)") \ |
3492 \ | |
3493 product(uintx, SharedMiscDataSize, 4*M, \ | |
3494 "Size of the shared data area adjacent to the heap (in bytes)") \ | |
3495 \ | |
3496 product(uintx, SharedMiscCodeSize, 4*M, \ | |
3497 "Size of the shared code area adjacent to the heap (in bytes)") \ | |
3498 \ | |
3499 diagnostic(bool, SharedOptimizeColdStart, true, \ | |
3500 "At dump time, order shared objects to achieve better " \ | |
3501 "cold startup time.") \ | |
3502 \ | |
3503 develop(intx, SharedOptimizeColdStartPolicy, 2, \ | |
3504 "Reordering policy for SharedOptimizeColdStart " \ | |
3505 "0=favor classload-time locality, 1=balanced, " \ | |
3506 "2=favor runtime locality") \ | |
3507 \ | |
3508 diagnostic(bool, SharedSkipVerify, false, \ | |
3509 "Skip assert() and verify() which page-in unwanted shared " \ | |
3510 "objects. ") \ | |
3511 \ | |
431
a45484ea312d
6653858: dynamic languages need to be able to load anonymous classes
jrose
parents:
406
diff
changeset
|
3512 product(bool, AnonymousClasses, false, \ |
a45484ea312d
6653858: dynamic languages need to be able to load anonymous classes
jrose
parents:
406
diff
changeset
|
3513 "support sun.misc.Unsafe.defineAnonymousClass") \ |
a45484ea312d
6653858: dynamic languages need to be able to load anonymous classes
jrose
parents:
406
diff
changeset
|
3514 \ |
905
bd2b1f617a4e
6868487: EnableInvokeDynamic and EnableMethodHandles should not be visible flags in JDK6 or JDK7
jrose
parents:
885
diff
changeset
|
3515 experimental(bool, EnableMethodHandles, false, \ |
710 | 3516 "support method handles (true by default under JSR 292)") \ |
3517 \ | |
3518 diagnostic(intx, MethodHandlePushLimit, 3, \ | |
3519 "number of additional stack slots a method handle may push") \ | |
3520 \ | |
3521 develop(bool, TraceMethodHandles, false, \ | |
3522 "trace internal method handle operations") \ | |
3523 \ | |
3524 diagnostic(bool, VerifyMethodHandles, trueInDebug, \ | |
3525 "perform extra checks when constructing method handles") \ | |
3526 \ | |
3527 diagnostic(bool, OptimizeMethodHandles, true, \ | |
3528 "when constructing method handles, try to improve them") \ | |
3529 \ | |
1173
73b22f919c34
6912065: final fields in objects need to support inlining optimizations for JSR 292
jrose
parents:
1157
diff
changeset
|
3530 experimental(bool, TrustFinalNonStaticFields, false, \ |
73b22f919c34
6912065: final fields in objects need to support inlining optimizations for JSR 292
jrose
parents:
1157
diff
changeset
|
3531 "trust final non-static declarations for constant folding") \ |
73b22f919c34
6912065: final fields in objects need to support inlining optimizations for JSR 292
jrose
parents:
1157
diff
changeset
|
3532 \ |
905
bd2b1f617a4e
6868487: EnableInvokeDynamic and EnableMethodHandles should not be visible flags in JDK6 or JDK7
jrose
parents:
885
diff
changeset
|
3533 experimental(bool, EnableInvokeDynamic, false, \ |
726
be93aad57795
6655646: dynamic languages need dynamically linked call sites
jrose
parents:
712
diff
changeset
|
3534 "recognize the invokedynamic instruction") \ |
be93aad57795
6655646: dynamic languages need dynamically linked call sites
jrose
parents:
712
diff
changeset
|
3535 \ |
1660
083fde3b838e
6964498: JSR 292 invokedynamic sites need local bootstrap methods
jrose
parents:
1644
diff
changeset
|
3536 experimental(bool, AllowTransitionalJSR292, true, \ |
083fde3b838e
6964498: JSR 292 invokedynamic sites need local bootstrap methods
jrose
parents:
1644
diff
changeset
|
3537 "recognize pre-PFD formats of invokedynamic") \ |
083fde3b838e
6964498: JSR 292 invokedynamic sites need local bootstrap methods
jrose
parents:
1644
diff
changeset
|
3538 \ |
726
be93aad57795
6655646: dynamic languages need dynamically linked call sites
jrose
parents:
712
diff
changeset
|
3539 develop(bool, TraceInvokeDynamic, false, \ |
be93aad57795
6655646: dynamic languages need dynamically linked call sites
jrose
parents:
712
diff
changeset
|
3540 "trace internal invoke dynamic operations") \ |
be93aad57795
6655646: dynamic languages need dynamically linked call sites
jrose
parents:
712
diff
changeset
|
3541 \ |
0 | 3542 diagnostic(bool, PauseAtStartup, false, \ |
3543 "Causes the VM to pause at startup time and wait for the pause " \ | |
3544 "file to be removed (default: ./vm.paused.<pid>)") \ | |
3545 \ | |
3546 diagnostic(ccstr, PauseAtStartupFile, NULL, \ | |
3547 "The file to create and for whose removal to await when pausing " \ | |
3548 "at startup. (default: ./vm.paused.<pid>)") \ | |
3549 \ | |
3550 product(bool, ExtendedDTraceProbes, false, \ | |
3551 "Enable performance-impacting dtrace probes") \ | |
3552 \ | |
3553 product(bool, DTraceMethodProbes, false, \ | |
3554 "Enable dtrace probes for method-entry and method-exit") \ | |
3555 \ | |
3556 product(bool, DTraceAllocProbes, false, \ | |
3557 "Enable dtrace probes for object allocation") \ | |
3558 \ | |
3559 product(bool, DTraceMonitorProbes, false, \ | |
3560 "Enable dtrace probes for monitor events") \ | |
3561 \ | |
3562 product(bool, RelaxAccessControlCheck, false, \ | |
3563 "Relax the access control checks in the verifier") \ | |
3564 \ | |
116
018d5b58dd4f
6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
113
diff
changeset
|
3565 diagnostic(bool, PrintDTraceDOF, false, \ |
018d5b58dd4f
6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
113
diff
changeset
|
3566 "Print the DTrace DOF passed to the system for JSDT probes") \ |
018d5b58dd4f
6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents:
113
diff
changeset
|
3567 \ |
449
171e581e8161
6554406: Change switch UseVMInterruptibleIO default to false (sol)
xlu
parents:
443
diff
changeset
|
3568 product(bool, UseVMInterruptibleIO, false, \ |
0 | 3569 "(Unstable, Solaris-specific) Thread interrupt before or with " \ |
449
171e581e8161
6554406: Change switch UseVMInterruptibleIO default to false (sol)
xlu
parents:
443
diff
changeset
|
3570 "EINTR for I/O operations results in OS_INTRPT. The default value"\ |
171e581e8161
6554406: Change switch UseVMInterruptibleIO default to false (sol)
xlu
parents:
443
diff
changeset
|
3571 " of this flag is true for JDK 6 and earliers") |
0 | 3572 |
3573 /* | |
3574 * Macros for factoring of globals | |
3575 */ | |
3576 | |
3577 // Interface macros | |
3578 #define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; | |
3579 #define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name; | |
3580 #define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name; | |
350
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
3581 #define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name; |
0 | 3582 #define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name; |
3583 #define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name; | |
3584 #ifdef PRODUCT | |
3585 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) const type name = value; | |
3586 #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) const type name = pd_##name; | |
3587 #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) | |
3588 #else | |
3589 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name; | |
3590 #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name; | |
3591 #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name; | |
3592 #endif | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3593 // Special LP64 flags, product only needed for now. |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3594 #ifdef _LP64 |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3595 #define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3596 #else |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3597 #define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value; |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3598 #endif // _LP64 |
0 | 3599 |
3600 // Implementation macros | |
3601 #define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value; | |
3602 #define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name; | |
3603 #define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value; | |
350
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
3604 #define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value; |
0 | 3605 #define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value; |
3606 #define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value; | |
3607 #ifdef PRODUCT | |
3608 #define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) /* flag name is constant */ | |
3609 #define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) /* flag name is constant */ | |
3610 #define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) | |
3611 #else | |
3612 #define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value; | |
3613 #define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name; | |
3614 #define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value; | |
3615 #endif | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3616 #ifdef _LP64 |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3617 #define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value; |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3618 #else |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3619 #define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */ |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
109
diff
changeset
|
3620 #endif // _LP64 |
0 | 3621 |
350
d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
348
diff
changeset
|
3622 RUNTIME_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, DECLARE_LP64_PRODUCT_FLAG) |
0 | 3623 |
3624 RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG) |