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