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