globals.hpp revision 695:becb17ad5e51
157429Smarkm/*
257429Smarkm * Copyright 1997-2009 Sun Microsystems, Inc.  All Rights Reserved.
357429Smarkm * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
457429Smarkm *
557429Smarkm * This code is free software; you can redistribute it and/or modify it
657429Smarkm * under the terms of the GNU General Public License version 2 only, as
760573Skris * published by the Free Software Foundation.
865668Skris *
965668Skris * This code is distributed in the hope that it will be useful, but WITHOUT
1065668Skris * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1165668Skris * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1265668Skris * version 2 for more details (a copy is included in the LICENSE file that
1365668Skris * accompanied this code).
1465668Skris *
1560573Skris * You should have received a copy of the GNU General Public License version
1665668Skris * 2 along with this work; if not, write to the Free Software Foundation,
1760573Skris * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1865668Skris *
1965668Skris * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
2065668Skris * CA 95054 USA or visit www.sun.com if you need additional information or
2165668Skris * have any questions.
2265668Skris *
2365668Skris */
2465668Skris
2565668Skris#if !defined(COMPILER1) && !defined(COMPILER2)
2665668Skrisdefine_pd_global(bool, BackgroundCompilation,        false);
2765668Skrisdefine_pd_global(bool, UseTLAB,                      false);
2865668Skrisdefine_pd_global(bool, CICompileOSR,                 false);
2965668Skrisdefine_pd_global(bool, UseTypeProfile,               false);
3065668Skrisdefine_pd_global(bool, UseOnStackReplacement,        false);
3165668Skrisdefine_pd_global(bool, InlineIntrinsics,             false);
3265668Skrisdefine_pd_global(bool, PreferInterpreterNativeStubs, true);
3365668Skrisdefine_pd_global(bool, ProfileInterpreter,           false);
3465668Skrisdefine_pd_global(bool, ProfileTraps,                 false);
3565668Skrisdefine_pd_global(bool, TieredCompilation,            false);
3665668Skris
3757429Smarkmdefine_pd_global(intx, CompileThreshold,             0);
3857429Smarkmdefine_pd_global(intx, Tier2CompileThreshold,        0);
3957429Smarkmdefine_pd_global(intx, Tier3CompileThreshold,        0);
4069587Sgreendefine_pd_global(intx, Tier4CompileThreshold,        0);
4157429Smarkm
4257429Smarkmdefine_pd_global(intx, BackEdgeThreshold,            0);
4357429Smarkmdefine_pd_global(intx, Tier2BackEdgeThreshold,       0);
4457429Smarkmdefine_pd_global(intx, Tier3BackEdgeThreshold,       0);
4557429Smarkmdefine_pd_global(intx, Tier4BackEdgeThreshold,       0);
4657429Smarkm
4757429Smarkmdefine_pd_global(intx, OnStackReplacePercentage,     0);
4857429Smarkmdefine_pd_global(bool, ResizeTLAB,                   false);
4957429Smarkmdefine_pd_global(intx, FreqInlineSize,               0);
5057429Smarkmdefine_pd_global(intx, NewSizeThreadIncrease,        4*K);
5157429Smarkmdefine_pd_global(intx, NewRatio,                     4);
5260573Skrisdefine_pd_global(intx, InlineClassNatives,           true);
5357429Smarkmdefine_pd_global(intx, InlineUnsafeOps,              true);
5460573Skrisdefine_pd_global(intx, InitialCodeCacheSize,         160*K);
5560573Skrisdefine_pd_global(intx, ReservedCodeCacheSize,        32*M);
5660573Skrisdefine_pd_global(intx, CodeCacheExpansionSize,       32*K);
5760573Skrisdefine_pd_global(intx, CodeCacheMinBlockLength,      1);
5860573Skrisdefine_pd_global(uintx,PermSize,    ScaleForWordSize(4*M));
5960573Skrisdefine_pd_global(uintx,MaxPermSize, ScaleForWordSize(64*M));
6060573Skrisdefine_pd_global(bool, NeverActAsServerClassMachine, true);
6169587Sgreendefine_pd_global(uintx, DefaultMaxRAM,               1*G);
6260573Skris#define CI_COMPILER_COUNT 0
6360573Skris#else
6460573Skris
6560573Skris#ifdef COMPILER2
6660573Skris#define CI_COMPILER_COUNT 2
6760573Skris#else
6860573Skris#define CI_COMPILER_COUNT 1
6960573Skris#endif // COMPILER2
7060573Skris
7157429Smarkm#endif // no compilers
7257429Smarkm
7357429Smarkm
7457429Smarkm// string type aliases used only in this file
7557429Smarkmtypedef const char* ccstr;
7657429Smarkmtypedef const char* ccstrlist;   // represents string arguments which accumulate
7757429Smarkm
7857429Smarkmenum FlagValueOrigin {
7957429Smarkm  DEFAULT          = 0,
8057429Smarkm  COMMAND_LINE     = 1,
8157429Smarkm  ENVIRON_VAR      = 2,
8257429Smarkm  CONFIG_FILE      = 3,
8357429Smarkm  MANAGEMENT       = 4,
8457429Smarkm  ERGONOMIC        = 5,
8557429Smarkm  ATTACH_ON_DEMAND = 6,
8657429Smarkm  INTERNAL         = 99
8757429Smarkm};
8857429Smarkm
8957429Smarkmstruct Flag {
9057429Smarkm  const char *type;
9157429Smarkm  const char *name;
9257429Smarkm  void*       addr;
9357429Smarkm  const char *kind;
9457429Smarkm  FlagValueOrigin origin;
9557429Smarkm
9657429Smarkm  // points to all Flags static array
9757429Smarkm  static Flag *flags;
9857429Smarkm
9957429Smarkm  // number of flags
10057429Smarkm  static size_t numFlags;
10157429Smarkm
10257429Smarkm  static Flag* find_flag(char* name, size_t length);
10357429Smarkm
10457429Smarkm  bool is_bool() const        { return strcmp(type, "bool") == 0; }
10557429Smarkm  bool get_bool() const       { return *((bool*) addr); }
10657429Smarkm  void set_bool(bool value)   { *((bool*) addr) = value; }
10757429Smarkm
10857429Smarkm  bool is_intx()  const       { return strcmp(type, "intx")  == 0; }
10957429Smarkm  intx get_intx() const       { return *((intx*) addr); }
11057429Smarkm  void set_intx(intx value)   { *((intx*) addr) = value; }
11157429Smarkm
11257429Smarkm  bool is_uintx() const       { return strcmp(type, "uintx") == 0; }
11357429Smarkm  uintx get_uintx() const     { return *((uintx*) addr); }
11457429Smarkm  void set_uintx(uintx value) { *((uintx*) addr) = value; }
11557429Smarkm
11657429Smarkm  bool is_double() const        { return strcmp(type, "double") == 0; }
11757429Smarkm  double get_double() const     { return *((double*) addr); }
11857429Smarkm  void set_double(double value) { *((double*) addr) = value; }
11957429Smarkm
12057429Smarkm  bool is_ccstr() const          { return strcmp(type, "ccstr") == 0 || strcmp(type, "ccstrlist") == 0; }
12157429Smarkm  bool ccstr_accumulates() const { return strcmp(type, "ccstrlist") == 0; }
12260573Skris  ccstr get_ccstr() const     { return *((ccstr*) addr); }
12360573Skris  void set_ccstr(ccstr value) { *((ccstr*) addr) = value; }
12460573Skris
12560573Skris  bool is_unlocker() const;
12660573Skris  bool is_unlocked() const;
12760573Skris  bool is_writeable() const;
12860573Skris  bool is_external() const;
12960573Skris
13060573Skris  void print_on(outputStream* st);
13160573Skris  void print_as_flag(outputStream* st);
13260573Skris};
13360573Skris
13460573Skris// debug flags control various aspects of the VM and are global accessible
13560573Skris
13660573Skris// use FlagSetting to temporarily change some debug flag
13760573Skris// e.g. FlagSetting fs(DebugThisAndThat, true);
13860573Skris// restored to previous value upon leaving scope
13960573Skrisclass FlagSetting {
14060573Skris  bool val;
14160573Skris  bool* flag;
14260573Skris public:
14360573Skris  FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; }
14460573Skris  ~FlagSetting()                       { *flag = val; }
14560573Skris};
14660573Skris
14760573Skris
14860573Skrisclass CounterSetting {
14960573Skris  intx* counter;
15060573Skris public:
15160573Skris  CounterSetting(intx* cnt) { counter = cnt; (*counter)++; }
15260573Skris  ~CounterSetting()         { (*counter)--; }
15360573Skris};
15460573Skris
15560573Skris
15660573Skrisclass IntFlagSetting {
15757429Smarkm  intx val;
15857429Smarkm  intx* flag;
15957429Smarkm public:
16057429Smarkm  IntFlagSetting(intx& fl, intx newValue) { flag = &fl; val = fl; fl = newValue; }
16157429Smarkm  ~IntFlagSetting()                       { *flag = val; }
16257429Smarkm};
16357429Smarkm
16469587Sgreen
16569587Sgreenclass DoubleFlagSetting {
16669587Sgreen  double val;
16757429Smarkm  double* flag;
16857429Smarkm public:
16957429Smarkm  DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; }
17069587Sgreen  ~DoubleFlagSetting()                           { *flag = val; }
17169587Sgreen};
17257429Smarkm
17357429Smarkm
17457429Smarkmclass CommandLineFlags {
17557429Smarkm public:
17657429Smarkm  static bool boolAt(char* name, size_t len, bool* value);
17757429Smarkm  static bool boolAt(char* name, bool* value)      { return boolAt(name, strlen(name), value); }
17857429Smarkm  static bool boolAtPut(char* name, size_t len, bool* value, FlagValueOrigin origin);
17957429Smarkm  static bool boolAtPut(char* name, bool* value, FlagValueOrigin origin)   { return boolAtPut(name, strlen(name), value, origin); }
18057429Smarkm
18157429Smarkm  static bool intxAt(char* name, size_t len, intx* value);
18257429Smarkm  static bool intxAt(char* name, intx* value)      { return intxAt(name, strlen(name), value); }
18357429Smarkm  static bool intxAtPut(char* name, size_t len, intx* value, FlagValueOrigin origin);
18457429Smarkm  static bool intxAtPut(char* name, intx* value, FlagValueOrigin origin)   { return intxAtPut(name, strlen(name), value, origin); }
18557429Smarkm
18657429Smarkm  static bool uintxAt(char* name, size_t len, uintx* value);
18757429Smarkm  static bool uintxAt(char* name, uintx* value)    { return uintxAt(name, strlen(name), value); }
18857429Smarkm  static bool uintxAtPut(char* name, size_t len, uintx* value, FlagValueOrigin origin);
18957429Smarkm  static bool uintxAtPut(char* name, uintx* value, FlagValueOrigin origin) { return uintxAtPut(name, strlen(name), value, origin); }
19057429Smarkm
19157429Smarkm  static bool doubleAt(char* name, size_t len, double* value);
19257429Smarkm  static bool doubleAt(char* name, double* value)    { return doubleAt(name, strlen(name), value); }
19357429Smarkm  static bool doubleAtPut(char* name, size_t len, double* value, FlagValueOrigin origin);
19457429Smarkm  static bool doubleAtPut(char* name, double* value, FlagValueOrigin origin) { return doubleAtPut(name, strlen(name), value, origin); }
19557429Smarkm
19657429Smarkm  static bool ccstrAt(char* name, size_t len, ccstr* value);
19757429Smarkm  static bool ccstrAt(char* name, ccstr* value)    { return ccstrAt(name, strlen(name), value); }
19857429Smarkm  static bool ccstrAtPut(char* name, size_t len, ccstr* value, FlagValueOrigin origin);
19957429Smarkm  static bool ccstrAtPut(char* name, ccstr* value, FlagValueOrigin origin) { return ccstrAtPut(name, strlen(name), value, origin); }
20057429Smarkm
20157429Smarkm  // Returns false if name is not a command line flag.
20257429Smarkm  static bool wasSetOnCmdline(const char* name, bool* value);
20357429Smarkm  static void printSetFlags();
20457429Smarkm
20557429Smarkm  static void printFlags() PRODUCT_RETURN;
20657429Smarkm
20757429Smarkm  static void verify() PRODUCT_RETURN;
20857429Smarkm};
20957429Smarkm
21057429Smarkm// use this for flags that are true by default in the debug version but
21157429Smarkm// false in the optimized version, and vice versa
21257429Smarkm#ifdef ASSERT
21357429Smarkm#define trueInDebug  true
21457429Smarkm#define falseInDebug false
21557429Smarkm#else
21657429Smarkm#define trueInDebug  false
21757429Smarkm#define falseInDebug true
21857429Smarkm#endif
21957429Smarkm
22057429Smarkm// use this for flags that are true per default in the product build
22157429Smarkm// but false in development builds, and vice versa
22257429Smarkm#ifdef PRODUCT
22357429Smarkm#define trueInProduct  true
22457429Smarkm#define falseInProduct false
22557429Smarkm#else
22657429Smarkm#define trueInProduct  false
22757429Smarkm#define falseInProduct true
22857429Smarkm#endif
22957429Smarkm
23057429Smarkm// use this for flags that are true per default in the tiered build
23157429Smarkm// but false in non-tiered builds, and vice versa
23257429Smarkm#ifdef TIERED
23357429Smarkm#define  trueInTiered true
23457429Smarkm#define falseInTiered false
23557429Smarkm#else
23657429Smarkm#define  trueInTiered false
23757429Smarkm#define falseInTiered true
23857429Smarkm#endif
23957429Smarkm
24057429Smarkm// develop flags are settable / visible only during development and are constant in the PRODUCT version
24157429Smarkm// product flags are always settable / visible
24257429Smarkm// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
24357429Smarkm
24457429Smarkm// A flag must be declared with one of the following types:
24557429Smarkm// bool, intx, uintx, ccstr.
24657429Smarkm// The type "ccstr" is an alias for "const char*" and is used
24757429Smarkm// only in this file, because the macrology requires single-token type names.
24857429Smarkm
24957429Smarkm// Note: Diagnostic options not meant for VM tuning or for product modes.
25057429Smarkm// They are to be used for VM quality assurance or field diagnosis
25157429Smarkm// of VM bugs.  They are hidden so that users will not be encouraged to
25257429Smarkm// try them as if they were VM ordinary execution options.  However, they
25357429Smarkm// are available in the product version of the VM.  Under instruction
25457429Smarkm// from support engineers, VM customers can turn them on to collect
25557429Smarkm// diagnostic information about VM problems.  To use a VM diagnostic
25657429Smarkm// option, you must first specify +UnlockDiagnosticVMOptions.
25757429Smarkm// (This master switch also affects the behavior of -Xprintflags.)
25857429Smarkm//
25957429Smarkm// experimental flags are in support of features that are not
26057429Smarkm//    part of the officially supported product, but are available
26157429Smarkm//    for experimenting with. They could, for example, be performance
26257429Smarkm//    features that may not have undergone full or rigorous QA, but which may
26357429Smarkm//    help performance in some cases and released for experimentation
26457429Smarkm//    by the community of users and developers. This flag also allows one to
26557429Smarkm//    be able to build a fully supported product that nonetheless also
26657429Smarkm//    ships with some unsupported, lightly tested, experimental features.
26757429Smarkm//    Like the UnlockDiagnosticVMOptions flag above, there is a corresponding
26857429Smarkm//    UnlockExperimentalVMOptions flag, which allows the control and
26957429Smarkm//    modification of the experimental flags.
27057429Smarkm//
27157429Smarkm// manageable flags are writeable external product flags.
27257429Smarkm//    They are dynamically writeable through the JDK management interface
27357429Smarkm//    (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
27457429Smarkm//    These flags are external exported interface (see CCC).  The list of
27557429Smarkm//    manageable flags can be queried programmatically through the management
27657429Smarkm//    interface.
27757429Smarkm//
27857429Smarkm//    A flag can be made as "manageable" only if
27957429Smarkm//    - the flag is defined in a CCC as an external exported interface.
28057429Smarkm//    - the VM implementation supports dynamic setting of the flag.
28157429Smarkm//      This implies that the VM must *always* query the flag variable
28257429Smarkm//      and not reuse state related to the flag state at any given time.
28357429Smarkm//    - you want the flag to be queried programmatically by the customers.
28457429Smarkm//
28557429Smarkm// product_rw flags are writeable internal product flags.
28657429Smarkm//    They are like "manageable" flags but for internal/private use.
28757429Smarkm//    The list of product_rw flags are internal/private flags which
28857429Smarkm//    may be changed/removed in a future release.  It can be set
28957429Smarkm//    through the management interface to get/set value
29057429Smarkm//    when the name of flag is supplied.
29157429Smarkm//
29257429Smarkm//    A flag can be made as "product_rw" only if
29357429Smarkm//    - the VM implementation supports dynamic setting of the flag.
29457429Smarkm//      This implies that the VM must *always* query the flag variable
29557429Smarkm//      and not reuse state related to the flag state at any given time.
29657429Smarkm//
29757429Smarkm// Note that when there is a need to support develop flags to be writeable,
29857429Smarkm// it can be done in the same way as product_rw.
29957429Smarkm
30057429Smarkm#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \
30157429Smarkm                                                                            \
30257429Smarkm  lp64_product(bool, UseCompressedOops, false,                              \
30360573Skris            "Use 32-bit object references in 64-bit VM. "                   \
30457429Smarkm            "lp64_product means flag is always constant in 32 bit VM")      \
30557429Smarkm                                                                            \
30657429Smarkm  notproduct(bool, CheckCompressedOops, true,                               \
30757429Smarkm            "generate checks in encoding/decoding code in debug VM")        \
30857429Smarkm                                                                            \
30957429Smarkm  product_pd(uintx, HeapBaseMinAddress,                                     \
31057429Smarkm            "OS specific low limit for heap base address")                  \
31157429Smarkm                                                                            \
31257429Smarkm  diagnostic(bool, PrintCompressedOopsMode, false,                          \
31357429Smarkm            "Print compressed oops base address and encoding mode")         \
31457429Smarkm                                                                            \
31557429Smarkm  /* UseMembar is theoretically a temp flag used for memory barrier         \
31657429Smarkm   * removal testing.  It was supposed to be removed before FCS but has     \
31757429Smarkm   * been re-added (see 6401008) */                                         \
31857429Smarkm  product(bool, UseMembar, false,                                           \
31957429Smarkm          "(Unstable) Issues membars on thread state transitions")          \
32057429Smarkm                                                                            \
32160573Skris  product(bool, PrintCommandLineFlags, false,                               \
32257429Smarkm          "Prints flags that appeared on the command line")                 \
32357429Smarkm                                                                            \
32457429Smarkm  diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug,                  \
32557429Smarkm          "Enable normal processing of flags relating to field diagnostics")\
32657429Smarkm                                                                            \
32757429Smarkm  experimental(bool, UnlockExperimentalVMOptions, false,                    \
32857429Smarkm          "Enable normal processing of flags relating to experimental features")\
32957429Smarkm                                                                            \
33057429Smarkm  product(bool, JavaMonitorsInStackTrace, true,                             \
33157429Smarkm          "Print info. about Java monitor locks when the stacks are dumped")\
33269587Sgreen                                                                            \
33357429Smarkm  product_pd(bool, UseLargePages,                                           \
33457429Smarkm          "Use large page memory")                                          \
33557429Smarkm                                                                            \
33657429Smarkm  product_pd(bool, UseLargePagesIndividualAllocation,                       \
33757429Smarkm          "Allocate large pages individually for better affinity")          \
33869587Sgreen                                                                            \
33969587Sgreen  develop(bool, LargePagesIndividualAllocationInjectError, false,           \
34069587Sgreen          "Fail large pages individual allocation")                         \
34157429Smarkm                                                                            \
34257429Smarkm  develop(bool, TracePageSizes, false,                                      \
34369587Sgreen          "Trace page size selection and usage.")                           \
34457429Smarkm                                                                            \
34557429Smarkm  product(bool, UseNUMA, false,                                             \
34657429Smarkm          "Use NUMA if available")                                          \
34757429Smarkm                                                                            \
34857429Smarkm  product(bool, ForceNUMA, false,                                           \
34957429Smarkm          "Force NUMA optimizations on single-node/UMA systems")            \
35057429Smarkm                                                                            \
35157429Smarkm  product(intx, NUMAChunkResizeWeight, 20,                                  \
35257429Smarkm          "Percentage (0-100) used to weight the current sample when "      \
35357429Smarkm          "computing exponentially decaying average for "                   \
35469587Sgreen          "AdaptiveNUMAChunkSizing")                                        \
35557429Smarkm                                                                            \
35669587Sgreen  product(intx, NUMASpaceResizeRate, 1*G,                                   \
35769587Sgreen          "Do not reallocate more that this amount per collection")         \
35869587Sgreen                                                                            \
35960573Skris  product(bool, UseAdaptiveNUMAChunkSizing, true,                           \
36069587Sgreen          "Enable adaptive chunk sizing for NUMA")                          \
36169587Sgreen                                                                            \
36269587Sgreen  product(bool, NUMAStats, false,                                           \
36357429Smarkm          "Print NUMA stats in detailed heap information")                  \
36457429Smarkm                                                                            \
36557429Smarkm  product(intx, NUMAPageScanRate, 256,                                      \
36657429Smarkm          "Maximum number of pages to include in the page scan procedure")  \
36757429Smarkm                                                                            \
36860573Skris  product_pd(bool, NeedsDeoptSuspend,                                       \
36957429Smarkm          "True for register window machines (sparc/ia64)")                 \
37057429Smarkm                                                                            \
37157429Smarkm  product(intx, UseSSE, 99,                                                 \
37257429Smarkm          "Highest supported SSE instructions set on x86/x64")              \
37357429Smarkm                                                                            \
37457429Smarkm  product(uintx, LargePageSizeInBytes, 0,                                   \
37557429Smarkm          "Large page size (0 to let VM choose the page size")              \
37657429Smarkm                                                                            \
37757429Smarkm  product(uintx, LargePageHeapSizeThreshold, 128*M,                         \
37860573Skris          "Use large pages if max heap is at least this big")               \
37960573Skris                                                                            \
38060573Skris  product(bool, ForceTimeHighResolution, false,                             \
38160573Skris          "Using high time resolution(For Win32 only)")                     \
38260573Skris                                                                            \
38360573Skris  develop(bool, TraceItables, false,                                        \
38460573Skris          "Trace initialization and use of itables")                        \
38560573Skris                                                                            \
38660573Skris  develop(bool, TracePcPatching, false,                                     \
38760573Skris          "Trace usage of frame::patch_pc")                                 \
38860573Skris                                                                            \
38960573Skris  develop(bool, TraceJumps, false,                                          \
39060573Skris          "Trace assembly jumps in thread ring buffer")                     \
39160573Skris                                                                            \
39260573Skris  develop(bool, TraceRelocator, false,                                      \
39360573Skris          "Trace the bytecode relocator")                                   \
39460573Skris                                                                            \
39560573Skris  develop(bool, TraceLongCompiles, false,                                   \
39660573Skris          "Print out every time compilation is longer than "                \
39760573Skris          "a given threashold")                                             \
39860573Skris                                                                            \
39960573Skris  develop(bool, SafepointALot, false,                                       \
40060573Skris          "Generates a lot of safepoints. Works with "                      \
40157429Smarkm          "GuaranteedSafepointInterval")                                    \
40257429Smarkm                                                                            \
40357429Smarkm  product_pd(bool, BackgroundCompilation,                                   \
40457429Smarkm          "A thread requesting compilation is not blocked during "          \
40557429Smarkm          "compilation")                                                    \
40657429Smarkm                                                                            \
40757429Smarkm  product(bool, PrintVMQWaitTime, false,                                    \
40857429Smarkm          "Prints out the waiting time in VM operation queue")              \
40957429Smarkm                                                                            \
41057429Smarkm  develop(bool, BailoutToInterpreterForThrows, false,                       \
41157429Smarkm          "Compiled methods which throws/catches exceptions will be "       \
41257429Smarkm          "deopt and intp.")                                                \
41357429Smarkm                                                                            \
41457429Smarkm  develop(bool, NoYieldsInMicrolock, false,                                 \
41557429Smarkm          "Disable yields in microlock")                                    \
41657429Smarkm                                                                            \
41757429Smarkm  develop(bool, TraceOopMapGeneration, false,                               \
41857429Smarkm          "Shows oopmap generation")                                        \
41957429Smarkm                                                                            \
42057429Smarkm  product(bool, MethodFlushing, true,                                       \
42157429Smarkm          "Reclamation of zombie and not-entrant methods")                  \
42257429Smarkm                                                                            \
42357429Smarkm  develop(bool, VerifyStack, false,                                         \
42457429Smarkm          "Verify stack of each thread when it is entering a runtime call") \
42560573Skris                                                                            \
42660573Skris  develop(bool, ForceUnreachable, false,                                    \
42760573Skris          "(amd64) Make all non code cache addresses to be unreachable with rip-rel forcing use of 64bit literal fixups") \
42860573Skris                                                                            \
42960573Skris  notproduct(bool, StressDerivedPointers, false,                            \
43057429Smarkm          "Force scavenge when a derived pointers is detected on stack "    \
43160573Skris          "after rtm call")                                                 \
43260573Skris                                                                            \
43360573Skris  develop(bool, TraceDerivedPointers, false,                                \
43460573Skris          "Trace traversal of derived pointers on stack")                   \
43560573Skris                                                                            \
43660573Skris  notproduct(bool, TraceCodeBlobStacks, false,                              \
43760573Skris          "Trace stack-walk of codeblobs")                                  \
43857429Smarkm                                                                            \
43957429Smarkm  product(bool, PrintJNIResolving, false,                                   \
44057429Smarkm          "Used to implement -v:jni")                                       \
44157429Smarkm                                                                            \
44257429Smarkm  notproduct(bool, PrintRewrites, false,                                    \
44357429Smarkm          "Print methods that are being rewritten")                         \
44457429Smarkm                                                                            \
44560573Skris  product(bool, UseInlineCaches, true,                                      \
44660573Skris          "Use Inline Caches for virtual calls ")                           \
44760573Skris                                                                            \
44860573Skris  develop(bool, InlineArrayCopy, true,                                      \
44960573Skris          "inline arraycopy native that is known to be part of "            \
45057429Smarkm          "base library DLL")                                               \
45157429Smarkm                                                                            \
45257429Smarkm  develop(bool, InlineObjectHash, true,                                     \
45357429Smarkm          "inline Object::hashCode() native that is known to be part "      \
45457429Smarkm          "of base library DLL")                                            \
45557429Smarkm                                                                            \
45657429Smarkm  develop(bool, InlineObjectCopy, true,                                     \
45760573Skris          "inline Object.clone and Arrays.copyOf[Range] intrinsics")        \
45857429Smarkm                                                                            \
45957429Smarkm  develop(bool, InlineNatives, true,                                        \
46057429Smarkm          "inline natives that are known to be part of base library DLL")   \
46157429Smarkm                                                                            \
46257429Smarkm  develop(bool, InlineMathNatives, true,                                    \
46357429Smarkm          "inline SinD, CosD, etc.")                                        \
46457429Smarkm                                                                            \
46557429Smarkm  develop(bool, InlineClassNatives, true,                                   \
46657429Smarkm          "inline Class.isInstance, etc")                                   \
46757429Smarkm                                                                            \
46857429Smarkm  develop(bool, InlineAtomicLong, true,                                     \
46957429Smarkm          "inline sun.misc.AtomicLong")                                     \
47057429Smarkm                                                                            \
47157429Smarkm  develop(bool, InlineThreadNatives, true,                                  \
47257429Smarkm          "inline Thread.currentThread, etc")                               \
47357429Smarkm                                                                            \
47457429Smarkm  develop(bool, InlineReflectionGetCallerClass, true,                       \
47557429Smarkm          "inline sun.reflect.Reflection.getCallerClass(), known to be part "\
47657429Smarkm          "of base library DLL")                                            \
47757429Smarkm                                                                            \
47857429Smarkm  develop(bool, InlineUnsafeOps, true,                                      \
47957429Smarkm          "inline memory ops (native methods) from sun.misc.Unsafe")        \
48057429Smarkm                                                                            \
48157429Smarkm  develop(bool, ConvertCmpD2CmpF, true,                                     \
48260573Skris          "Convert cmpD to cmpF when one input is constant in float range") \
48357429Smarkm                                                                            \
48457429Smarkm  develop(bool, ConvertFloat2IntClipping, true,                             \
48557429Smarkm          "Convert float2int clipping idiom to integer clipping")           \
48657429Smarkm                                                                            \
48757429Smarkm  develop(bool, SpecialStringCompareTo, true,                               \
48857429Smarkm          "special version of string compareTo")                            \
48957429Smarkm                                                                            \
49057429Smarkm  develop(bool, SpecialStringIndexOf, true,                                 \
49157429Smarkm          "special version of string indexOf")                              \
49257429Smarkm                                                                            \
49357429Smarkm  product(bool, SpecialArraysEquals, false,                                 \
49457429Smarkm          "special version of Arrays.equals(char[],char[])")                \
49557429Smarkm                                                                            \
49665668Skris  develop(bool, TraceCallFixup, false,                                      \
49765668Skris          "traces all call fixups")                                         \
49857429Smarkm                                                                            \
49957429Smarkm  develop(bool, DeoptimizeALot, false,                                      \
50057429Smarkm          "deoptimize at every exit from the runtime system")               \
50157429Smarkm                                                                            \
50257429Smarkm  notproduct(ccstrlist, DeoptimizeOnlyAt, "",                               \
50357429Smarkm          "a comma separated list of bcis to deoptimize at")                \
50457429Smarkm                                                                            \
50557429Smarkm  product(bool, DeoptimizeRandom, false,                                    \
50657429Smarkm          "deoptimize random frames on random exit from the runtime system")\
50757429Smarkm                                                                            \
50857429Smarkm  notproduct(bool, ZombieALot, false,                                       \
50957429Smarkm          "creates zombies (non-entrant) at exit from the runt. system")    \
51057429Smarkm                                                                            \
51157429Smarkm  notproduct(bool, WalkStackALot, false,                                    \
51257429Smarkm          "trace stack (no print) at every exit from the runtime system")   \
51357429Smarkm                                                                            \
51457429Smarkm  develop(bool, Debugging, false,                                           \
51557429Smarkm          "set when executing debug methods in debug.ccp "                  \
51657429Smarkm          "(to prevent triggering assertions)")                             \
51757429Smarkm                                                                            \
51857429Smarkm  notproduct(bool, StrictSafepointChecks, trueInDebug,                      \
51957429Smarkm          "Enable strict checks that safepoints cannot happen for threads " \
52057429Smarkm          "that used No_Safepoint_Verifier")                                \
52157429Smarkm                                                                            \
52257429Smarkm  notproduct(bool, VerifyLastFrame, false,                                  \
52357429Smarkm          "Verify oops on last frame on entry to VM")                       \
52457429Smarkm                                                                            \
52557429Smarkm  develop(bool, TraceHandleAllocation, false,                               \
52657429Smarkm          "Prints out warnings when suspicious many handles are allocated") \
52757429Smarkm                                                                            \
52860573Skris  product(bool, UseCompilerSafepoints, true,                                \
52960573Skris          "Stop at safepoints in compiled code")                            \
53060573Skris                                                                            \
53160573Skris  product(bool, UseSplitVerifier, true,                                     \
53260573Skris          "use split verifier with StackMapTable attributes")               \
53360573Skris                                                                            \
53460573Skris  product(bool, FailOverToOldVerifier, true,                                \
53560573Skris          "fail over to old verifier when split verifier fails")            \
53660573Skris                                                                            \
53760573Skris  develop(bool, ShowSafepointMsgs, false,                                   \
53860573Skris          "Show msg. about safepoint synch.")                               \
53960573Skris                                                                            \
54060573Skris  product(bool, SafepointTimeout, false,                                    \
54160573Skris          "Time out and warn or fail after SafepointTimeoutDelay "          \
54260573Skris          "milliseconds if failed to reach safepoint")                      \
54360573Skris                                                                            \
54460573Skris  develop(bool, DieOnSafepointTimeout, false,                               \
54560573Skris          "Die upon failure to reach safepoint (see SafepointTimeout)")     \
54660573Skris                                                                            \
54760573Skris  /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */      \
54860573Skris  /* typically, at most a few retries are needed */                         \
54960573Skris  product(intx, SuspendRetryCount, 50,                                      \
55069587Sgreen          "Maximum retry count for an external suspend request")            \
55160573Skris                                                                            \
55260573Skris  product(intx, SuspendRetryDelay, 5,                                       \
55360573Skris          "Milliseconds to delay per retry (* current_retry_count)")        \
55460573Skris                                                                            \
55560573Skris  product(bool, AssertOnSuspendWaitFailure, false,                          \
55660573Skris          "Assert/Guarantee on external suspend wait failure")              \
55760573Skris                                                                            \
55860573Skris  product(bool, TraceSuspendWaitFailures, false,                            \
55960573Skris          "Trace external suspend wait failures")                           \
56060573Skris                                                                            \
56160573Skris  product(bool, MaxFDLimit, true,                                           \
56260573Skris          "Bump the number of file descriptors to max in solaris.")         \
56360573Skris                                                                            \
56460573Skris  notproduct(bool, LogEvents, trueInDebug,                                  \
56560573Skris          "Enable Event log")                                               \
56660573Skris                                                                            \
56760573Skris  product(bool, BytecodeVerificationRemote, true,                           \
56860573Skris          "Enables the Java bytecode verifier for remote classes")          \
56960573Skris                                                                            \
57060573Skris  product(bool, BytecodeVerificationLocal, false,                           \
57160573Skris          "Enables the Java bytecode verifier for local classes")           \
57260573Skris                                                                            \
57360573Skris  develop(bool, ForceFloatExceptions, trueInDebug,                          \
57460573Skris          "Force exceptions on FP stack under/overflow")                    \
57560573Skris                                                                            \
57660573Skris  develop(bool, SoftMatchFailure, trueInProduct,                            \
57760573Skris          "If the DFA fails to match a node, print a message and bail out") \
57860573Skris                                                                            \
57960573Skris  develop(bool, VerifyStackAtCalls, false,                                  \
58060573Skris          "Verify that the stack pointer is unchanged after calls")         \
58160573Skris                                                                            \
58260573Skris  develop(bool, TraceJavaAssertions, false,                                 \
58360573Skris          "Trace java language assertions")                                 \
58460573Skris                                                                            \
58569587Sgreen  notproduct(bool, CheckAssertionStatusDirectives, false,                   \
58660573Skris          "temporary - see javaClasses.cpp")                                \
58760573Skris                                                                            \
58860573Skris  notproduct(bool, PrintMallocFree, false,                                  \
58960573Skris          "Trace calls to C heap malloc/free allocation")                   \
59060573Skris                                                                            \
59160573Skris  notproduct(bool, PrintOopAddress, false,                                  \
59260573Skris          "Always print the location of the oop")                           \
59360573Skris                                                                            \
59460573Skris  notproduct(bool, VerifyCodeCacheOften, false,                             \
59560573Skris          "Verify compiled-code cache often")                               \
59660573Skris                                                                            \
59760573Skris  develop(bool, ZapDeadCompiledLocals, false,                               \
59860573Skris          "Zap dead locals in compiler frames")                             \
59960573Skris                                                                            \
60060573Skris  notproduct(bool, ZapDeadLocalsOld, false,                                 \
60160573Skris          "Zap dead locals (old version, zaps all frames when "             \
60260573Skris          "entering the VM")                                                \
60360573Skris                                                                            \
60460573Skris  notproduct(bool, CheckOopishValues, false,                                \
60560573Skris          "Warn if value contains oop ( requires ZapDeadLocals)")           \
60660573Skris                                                                            \
60760573Skris  develop(bool, UseMallocOnly, false,                                       \
60860573Skris          "use only malloc/free for allocation (no resource area/arena)")   \
60960573Skris                                                                            \
61060573Skris  develop(bool, PrintMalloc, false,                                         \
61169587Sgreen          "print all malloc/free calls")                                    \
61260573Skris                                                                            \
61360573Skris  develop(bool, ZapResourceArea, trueInDebug,                               \
61460573Skris          "Zap freed resource/arena space with 0xABABABAB")                 \
61560573Skris                                                                            \
61660573Skris  notproduct(bool, ZapVMHandleArea, trueInDebug,                            \
61760573Skris          "Zap freed VM handle space with 0xBCBCBCBC")                      \
61860573Skris                                                                            \
61960573Skris  develop(bool, ZapJNIHandleArea, trueInDebug,                              \
62060573Skris          "Zap freed JNI handle space with 0xFEFEFEFE")                     \
62160573Skris                                                                            \
62260573Skris  develop(bool, ZapUnusedHeapArea, trueInDebug,                             \
62360573Skris          "Zap unused heap space with 0xBAADBABE")                          \
62460573Skris                                                                            \
62560573Skris  develop(bool, TraceZapUnusedHeapArea, false,                              \
62660573Skris          "Trace zapping of unused heap space")                             \
62760573Skris                                                                            \
62860573Skris  develop(bool, CheckZapUnusedHeapArea, false,                              \
62960573Skris          "Check zapping of unused heap space")                             \
63060573Skris                                                                            \
63160573Skris  develop(bool, ZapFillerObjects, trueInDebug,                              \
63260573Skris          "Zap filler objects with 0xDEAFBABE")                             \
63360573Skris                                                                            \
63469587Sgreen  develop(bool, PrintVMMessages, true,                                      \
63569587Sgreen          "Print vm messages on console")                                   \
63669587Sgreen                                                                            \
63769587Sgreen  product(bool, PrintGCApplicationConcurrentTime, false,                    \
63860573Skris          "Print the time the application has been running")                \
63960573Skris                                                                            \
64060573Skris  product(bool, PrintGCApplicationStoppedTime, false,                       \
64160573Skris          "Print the time the application has been stopped")                \
64260573Skris                                                                            \
64360573Skris  develop(bool, Verbose, false,                                             \
64460573Skris          "Prints additional debugging information from other modes")       \
64560573Skris                                                                            \
64660573Skris  develop(bool, PrintMiscellaneous, false,                                  \
64760573Skris          "Prints uncategorized debugging information (requires +Verbose)") \
64860573Skris                                                                            \
64960573Skris  develop(bool, WizardMode, false,                                          \
65060573Skris          "Prints much more debugging information")                         \
65160573Skris                                                                            \
65260573Skris  product(bool, ShowMessageBoxOnError, false,                               \
65360573Skris          "Keep process alive on VM fatal error")                           \
65460573Skris                                                                            \
65560573Skris  product_pd(bool, UseOSErrorReporting,                                     \
65660573Skris          "Let VM fatal error propagate to the OS (ie. WER on Windows)")    \
65760573Skris                                                                            \
65857429Smarkm  product(bool, SuppressFatalErrorMessage, false,                           \
65957429Smarkm          "Do NO Fatal Error report [Avoid deadlock]")                      \
66057429Smarkm                                                                            \
66157429Smarkm  product(ccstrlist, OnError, "",                                           \
66257429Smarkm          "Run user-defined commands on fatal error; see VMError.cpp "      \
66357429Smarkm          "for examples")                                                   \
66457429Smarkm                                                                            \
66557429Smarkm  product(ccstrlist, OnOutOfMemoryError, "",                                \
66657429Smarkm          "Run user-defined commands on first java.lang.OutOfMemoryError")  \
66757429Smarkm                                                                            \
66857429Smarkm  manageable(bool, HeapDumpBeforeFullGC, false,                             \
66960573Skris          "Dump heap to file before any major stop-world GC")               \
67057429Smarkm                                                                            \
67157429Smarkm  manageable(bool, HeapDumpAfterFullGC, false,                              \
67257429Smarkm          "Dump heap to file after any major stop-world GC")                \
67357429Smarkm                                                                            \
67457429Smarkm  manageable(bool, HeapDumpOnOutOfMemoryError, false,                       \
67557429Smarkm          "Dump heap to file when java.lang.OutOfMemoryError is thrown")    \
67657429Smarkm                                                                            \
67757429Smarkm  manageable(ccstr, HeapDumpPath, NULL,                                     \
67860573Skris          "When HeapDumpOnOutOfMemoryError is on, the path (filename or"    \
67960573Skris          "directory) of the dump file (defaults to java_pid<pid>.hprof"    \
68057429Smarkm          "in the working directory)")                                      \
68157429Smarkm                                                                            \
68260573Skris  develop(uintx, SegmentedHeapDumpThreshold, 2*G,                           \
68357429Smarkm          "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) "     \
68457429Smarkm          "when the heap usage is larger than this")                        \
68557429Smarkm                                                                            \
68657429Smarkm  develop(uintx, HeapDumpSegmentSize, 1*G,                                  \
68757429Smarkm          "Approximate segment size when generating a segmented heap dump") \
68857429Smarkm                                                                            \
68957429Smarkm  develop(bool, BreakAtWarning, false,                                      \
69057429Smarkm          "Execute breakpoint upon encountering VM warning")                \
69157429Smarkm                                                                            \
69257429Smarkm  product_pd(bool, UseVectoredExceptions,                                   \
69357429Smarkm          "Temp Flag - Use Vectored Exceptions rather than SEH (Windows Only)") \
69457429Smarkm                                                                            \
69557429Smarkm  develop(bool, TraceVMOperation, false,                                    \
69657429Smarkm          "Trace vm operations")                                            \
69757429Smarkm                                                                            \
69857429Smarkm  develop(bool, UseFakeTimers, false,                                       \
69957429Smarkm          "Tells whether the VM should use system time or a fake timer")    \
70057429Smarkm                                                                            \
70157429Smarkm  diagnostic(bool, LogCompilation, false,                                   \
70257429Smarkm          "Log compilation activity in detail to hotspot.log or LogFile")   \
70357429Smarkm                                                                            \
70457429Smarkm  product(bool, PrintCompilation, false,                                    \
70557429Smarkm          "Print compilations")                                             \
70657429Smarkm                                                                            \
70757429Smarkm  diagnostic(bool, TraceNMethodInstalls, false,                             \
70857429Smarkm             "Trace nmethod intallation")                                   \
70957429Smarkm                                                                            \
71057429Smarkm  diagnostic(bool, TraceOSRBreakpoint, false,                               \
71157429Smarkm             "Trace OSR Breakpoint ")                                       \
71257429Smarkm                                                                            \
71357429Smarkm  diagnostic(bool, TraceCompileTriggered, false,                            \
71457429Smarkm             "Trace compile triggered")                                     \
71557429Smarkm                                                                            \
71657429Smarkm  diagnostic(bool, TraceTriggers, false,                                    \
71757429Smarkm             "Trace triggers")                                              \
71857429Smarkm                                                                            \
71957429Smarkm  product(bool, AlwaysRestoreFPU, false,                                    \
72057429Smarkm          "Restore the FPU control word after every JNI call (expensive)")  \
72157429Smarkm                                                                            \
72257429Smarkm  notproduct(bool, PrintCompilation2, false,                                \
72357429Smarkm          "Print additional statistics per compilation")                    \
72460573Skris                                                                            \
72557429Smarkm  diagnostic(bool, PrintAdapterHandlers, false,                             \
72657429Smarkm          "Print code generated for i2c/c2i adapters")                      \
72757429Smarkm                                                                            \
72857429Smarkm  diagnostic(bool, PrintAssembly, false,                                    \
72957429Smarkm          "Print assembly code (using external disassembler.so)")           \
73057429Smarkm                                                                            \
73157429Smarkm  diagnostic(ccstr, PrintAssemblyOptions, NULL,                             \
73257429Smarkm          "Options string passed to disassembler.so")                       \
73357429Smarkm                                                                            \
73457429Smarkm  diagnostic(bool, PrintNMethods, false,                                    \
73557429Smarkm          "Print assembly code for nmethods when generated")                \
73657429Smarkm                                                                            \
73757429Smarkm  diagnostic(bool, PrintNativeNMethods, false,                              \
73857429Smarkm          "Print assembly code for native nmethods when generated")         \
73957429Smarkm                                                                            \
74057429Smarkm  develop(bool, PrintDebugInfo, false,                                      \
74157429Smarkm          "Print debug information for all nmethods when generated")        \
74257429Smarkm                                                                            \
74360573Skris  develop(bool, PrintRelocations, false,                                    \
74457429Smarkm          "Print relocation information for all nmethods when generated")   \
74557429Smarkm                                                                            \
74657429Smarkm  develop(bool, PrintDependencies, false,                                   \
74760573Skris          "Print dependency information for all nmethods when generated")   \
74857429Smarkm                                                                            \
74957429Smarkm  develop(bool, PrintExceptionHandlers, false,                              \
75057429Smarkm          "Print exception handler tables for all nmethods when generated") \
75157429Smarkm                                                                            \
75257429Smarkm  develop(bool, InterceptOSException, false,                                \
75357429Smarkm          "Starts debugger when an implicit OS (e.g., NULL) "               \
75457429Smarkm          "exception happens")                                              \
75557429Smarkm                                                                            \
75657429Smarkm  notproduct(bool, PrintCodeCache, false,                                   \
75757429Smarkm          "Print the compiled_code cache when exiting")                     \
75857429Smarkm                                                                            \
75957429Smarkm  develop(bool, PrintCodeCache2, false,                                     \
76057429Smarkm          "Print detailed info on the compiled_code cache when exiting")    \
76157429Smarkm                                                                            \
76257429Smarkm  diagnostic(bool, PrintStubCode, false,                                    \
76357429Smarkm          "Print generated stub code")                                      \
76457429Smarkm                                                                            \
76557429Smarkm  product(bool, StackTraceInThrowable, true,                                \
76657429Smarkm          "Collect backtrace in throwable when exception happens")          \
76757429Smarkm                                                                            \
76857429Smarkm  product(bool, OmitStackTraceInFastThrow, true,                            \
76957429Smarkm          "Omit backtraces for some 'hot' exceptions in optimized code")    \
77057429Smarkm                                                                            \
77157429Smarkm  product(bool, ProfilerPrintByteCodeStatistics, false,                     \
77257429Smarkm          "Prints byte code statictics when dumping profiler output")       \
77357429Smarkm                                                                            \
77457429Smarkm  product(bool, ProfilerRecordPC, false,                                    \
77557429Smarkm          "Collects tick for each 16 byte interval of compiled code")       \
77657429Smarkm                                                                            \
77757429Smarkm  product(bool, ProfileVM,  false,                                          \
77857429Smarkm          "Profiles ticks that fall within VM (either in the VM Thread "    \
77957429Smarkm          "or VM code called through stubs)")                               \
78057429Smarkm                                                                            \
78165668Skris  product(bool, ProfileIntervals, false,                                    \
78260573Skris          "Prints profiles for each interval (see ProfileIntervalsTicks)")  \
78357429Smarkm                                                                            \
78457429Smarkm  notproduct(bool, ProfilerCheckIntervals, false,                           \
78557429Smarkm          "Collect and print info on spacing of profiler ticks")            \
78657429Smarkm                                                                            \
78757429Smarkm  develop(bool, PrintJVMWarnings, false,                                    \
78857429Smarkm          "Prints warnings for unimplemented JVM functions")                \
78957429Smarkm                                                                            \
79057429Smarkm  notproduct(uintx, WarnOnStalledSpinLock, 0,                               \
79160573Skris          "Prints warnings for stalled SpinLocks")                          \
79257429Smarkm                                                                            \
79357429Smarkm  develop(bool, InitializeJavaLangSystem, true,                             \
79457429Smarkm          "Initialize java.lang.System - turn off for individual "          \
79557429Smarkm          "method debugging")                                               \
79657429Smarkm                                                                            \
79757429Smarkm  develop(bool, InitializeJavaLangString, true,                             \
79857429Smarkm          "Initialize java.lang.String - turn off for individual "          \
79957429Smarkm          "method debugging")                                               \
80057429Smarkm                                                                            \
80157429Smarkm  develop(bool, InitializeJavaLangExceptionsErrors, true,                   \
80257429Smarkm          "Initialize various error and exception classes - turn off for "  \
80357429Smarkm          "individual method debugging")                                    \
80457429Smarkm                                                                            \
80560573Skris  product(bool, RegisterFinalizersAtInit, true,                             \
80657429Smarkm          "Register finalizable objects at end of Object.<init> or "        \
80757429Smarkm          "after allocation.")                                              \
80857429Smarkm                                                                            \
80957429Smarkm  develop(bool, RegisterReferences, true,                                   \
81057429Smarkm          "Tells whether the VM should register soft/weak/final/phantom "   \
81157429Smarkm          "references")                                                     \
81257429Smarkm                                                                            \
81360573Skris  develop(bool, IgnoreRewrites, false,                                      \
81460573Skris          "Supress rewrites of bytecodes in the oopmap generator. "         \
81560573Skris          "This is unsafe!")                                                \
81657429Smarkm                                                                            \
81760573Skris  develop(bool, PrintCodeCacheExtension, false,                             \
81860573Skris          "Print extension of code cache")                                  \
81960573Skris                                                                            \
82060573Skris  develop(bool, UsePrivilegedStack, true,                                   \
82160573Skris          "Enable the security JVM functions")                              \
82260573Skris                                                                            \
82360573Skris  develop(bool, IEEEPrecision, true,                                        \
82460573Skris          "Enables IEEE precision (for INTEL only)")                        \
82560573Skris                                                                            \
82660573Skris  develop(bool, ProtectionDomainVerification, true,                         \
82760573Skris          "Verifies protection domain before resolution in system "         \
82860573Skris          "dictionary")                                                     \
82960573Skris                                                                            \
83060573Skris  product(bool, ClassUnloading, true,                                       \
83157429Smarkm          "Do unloading of classes")                                        \
83260573Skris                                                                            \
83360573Skris  diagnostic(bool, LinkWellKnownClasses, false,                             \
83460573Skris          "Resolve a well known class as soon as its name is seen")         \
83560573Skris                                                                            \
83657429Smarkm  develop(bool, DisableStartThread, false,                                  \
83760573Skris          "Disable starting of additional Java threads "                    \
83869587Sgreen          "(for debugging only)")                                           \
83960573Skris                                                                            \
84060573Skris  develop(bool, MemProfiling, false,                                        \
84160573Skris          "Write memory usage profiling to log file")                       \
84260573Skris                                                                            \
84360573Skris  notproduct(bool, PrintSystemDictionaryAtExit, false,                      \
84460573Skris          "Prints the system dictionary at exit")                           \
84560573Skris                                                                            \
84660573Skris  diagnostic(bool, UnsyncloadClass, false,                                  \
84760573Skris          "Unstable: VM calls loadClass unsynchronized. Custom "            \
84860573Skris          "class loader  must call VM synchronized for findClass "          \
84960573Skris          "and defineClass.")                                               \
85060573Skris                                                                            \
85160573Skris  product(bool, AlwaysLockClassLoader, false,                               \
85260573Skris          "Require the VM to acquire the class loader lock before calling " \
85360573Skris          "loadClass() even for class loaders registering "                 \
85460573Skris          "as parallel capable. Default false. ")                           \
85560573Skris                                                                            \
85660573Skris  product(bool, AllowParallelDefineClass, false,                            \
85760573Skris          "Allow parallel defineClass requests for class loaders "          \
85860573Skris          "registering as parallel capable. Default false")                 \
85960573Skris                                                                            \
86060573Skris  product(bool, MustCallLoadClassInternal, false,                           \
86160573Skris          "Call loadClassInternal() rather than loadClass().Default false") \
86260573Skris                                                                            \
86360573Skris  product_pd(bool, DontYieldALot,                                           \
86460573Skris          "Throw away obvious excess yield calls (for SOLARIS only)")       \
86560573Skris                                                                            \
86660573Skris  product_pd(bool, ConvertSleepToYield,                                     \
86760573Skris          "Converts sleep(0) to thread yield "                              \
86860573Skris          "(may be off for SOLARIS to improve GUI)")                        \
86960573Skris                                                                            \
87060573Skris  product(bool, ConvertYieldToSleep, false,                                 \
87160573Skris          "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\
87260573Skris          "behavior (SOLARIS only)")                                        \
87360573Skris                                                                            \
87460573Skris  product(bool, UseBoundThreads, true,                                      \
87560573Skris          "Bind user level threads to kernel threads (for SOLARIS only)")   \
87660573Skris                                                                            \
87760573Skris  develop(bool, UseDetachedThreads, true,                                   \
87860573Skris          "Use detached threads that are recycled upon termination "        \
87960573Skris          "(for SOLARIS only)")                                             \
88060573Skris                                                                            \
88160573Skris  product(bool, UseLWPSynchronization, true,                                \
88260573Skris          "Use LWP-based instead of libthread-based synchronization "       \
88360573Skris          "(SPARC only)")                                                   \
88460573Skris                                                                            \
88560573Skris  product(ccstr, SyncKnobs, NULL,                                           \
88660573Skris          "(Unstable) Various monitor synchronization tunables")            \
88760573Skris                                                                            \
88860573Skris  product(intx, EmitSync, 0,                                                \
88960573Skris          "(Unsafe,Unstable) "                                              \
89060573Skris          " Controls emission of inline sync fast-path code")               \
89169587Sgreen                                                                            \
89269587Sgreen  product(intx, AlwaysInflate, 0, "(Unstable) Force inflation")             \
89360573Skris                                                                            \
89460573Skris  product(intx, Atomics, 0,                                                 \
89560573Skris          "(Unsafe,Unstable) Diagnostic - Controls emission of atomics")    \
89660573Skris                                                                            \
89760573Skris  product(intx, FenceInstruction, 0,                                        \
89860573Skris          "(Unsafe,Unstable) Experimental")                                 \
89960573Skris                                                                            \
90060573Skris  product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \
90160573Skris                                                                            \
90260573Skris  product(intx, SyncVerbose, 0, "(Unstable)" )                              \
90360573Skris                                                                            \
90460573Skris  product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" )                    \
90560573Skris                                                                            \
90660573Skris  product(intx, hashCode, 0,                                                \
90760573Skris         "(Unstable) select hashCode generation algorithm" )                \
90860573Skris                                                                            \
90960573Skris  product(intx, WorkAroundNPTLTimedWaitHang, 1,                             \
91060573Skris         "(Unstable, Linux-specific)"                                       \
91160573Skris         " avoid NPTL-FUTEX hang pthread_cond_timedwait" )                  \
91260573Skris                                                                            \
91360573Skris  product(bool, FilterSpuriousWakeups , true,                               \
91460573Skris          "Prevent spurious or premature wakeups from object.wait"              \
91560573Skris          "(Solaris only)")                                                     \
91660573Skris                                                                            \
91760573Skris  product(intx, NativeMonitorTimeout, -1, "(Unstable)" )                    \
91860573Skris  product(intx, NativeMonitorFlags, 0, "(Unstable)" )                       \
91960573Skris  product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" )                  \
92060573Skris                                                                            \
92160573Skris  develop(bool, UsePthreads, false,                                         \
92260573Skris          "Use pthread-based instead of libthread-based synchronization "   \
92360573Skris          "(SPARC only)")                                                   \
92460573Skris                                                                            \
92560573Skris  product(bool, AdjustConcurrency, false,                                   \
92660573Skris          "call thr_setconcurrency at thread create time to avoid "         \
92760573Skris          "LWP starvation on MP systems (For Solaris Only)")                \
92860573Skris                                                                            \
92960573Skris  develop(bool, UpdateHotSpotCompilerFileOnError, true,                     \
93060573Skris          "Should the system attempt to update the compiler file when "     \
93160573Skris          "an error occurs?")                                               \
93260573Skris                                                                            \
93360573Skris  product(bool, ReduceSignalUsage, false,                                   \
93460573Skris          "Reduce the use of OS signals in Java and/or the VM")             \
93560573Skris                                                                            \
93669587Sgreen  notproduct(bool, ValidateMarkSweep, false,                                \
93769587Sgreen          "Do extra validation during MarkSweep collection")                \
93869587Sgreen                                                                            \
93969587Sgreen  notproduct(bool, RecordMarkSweepCompaction, false,                        \
94060573Skris          "Enable GC-to-GC recording and querying of compaction during "    \
94160573Skris          "MarkSweep")                                                      \
94260573Skris                                                                            \
94360573Skris  develop_pd(bool, ShareVtableStubs,                                        \
94460573Skris          "Share vtable stubs (smaller code but worse branch prediction")   \
94560573Skris                                                                            \
94660573Skris  develop(bool, LoadLineNumberTables, true,                                 \
94760573Skris          "Tells whether the class file parser loads line number tables")   \
94860573Skris                                                                            \
94960573Skris  develop(bool, LoadLocalVariableTables, true,                              \
95060573Skris          "Tells whether the class file parser loads local variable tables")\
95160573Skris                                                                            \
95260573Skris  develop(bool, LoadLocalVariableTypeTables, true,                          \
95357429Smarkm          "Tells whether the class file parser loads local variable type tables")\
95457429Smarkm                                                                            \
95560573Skris  product(bool, AllowUserSignalHandlers, false,                             \
95660573Skris          "Do not complain if the application installs signal handlers "    \
95760573Skris          "(Solaris & Linux only)")                                         \
95860573Skris                                                                            \
95960573Skris  product(bool, UseSignalChaining, true,                                    \
96060573Skris          "Use signal-chaining to invoke signal handlers installed "        \
96160573Skris          "by the application (Solaris & Linux only)")                      \
96260573Skris                                                                            \
96360573Skris  product(bool, UseAltSigs, false,                                          \
96460573Skris          "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM "      \
96560573Skris          "internal signals. (Solaris only)")                               \
96660573Skris                                                                            \
96760573Skris  product(bool, UseSpinning, false,                                         \
96860573Skris          "Use spinning in monitor inflation and before entry")             \
96960573Skris                                                                            \
97060573Skris  product(bool, PreSpinYield, false,                                        \
97160573Skris          "Yield before inner spinning loop")                               \
97260573Skris                                                                            \
97360573Skris  product(bool, PostSpinYield, true,                                        \
97460573Skris          "Yield after inner spinning loop")                                \
97560573Skris                                                                            \
97660573Skris  product(bool, AllowJNIEnvProxy, false,                                    \
97760573Skris          "Allow JNIEnv proxies for jdbx")                                  \
97860573Skris                                                                            \
97960573Skris  product(bool, JNIDetachReleasesMonitors, true,                            \
98060573Skris          "JNI DetachCurrentThread releases monitors owned by thread")      \
98160573Skris                                                                            \
98260573Skris  product(bool, RestoreMXCSROnJNICalls, false,                              \
98360573Skris          "Restore MXCSR when returning from JNI calls")                    \
98460573Skris                                                                            \
98560573Skris  product(bool, CheckJNICalls, false,                                       \
98660573Skris          "Verify all arguments to JNI calls")                              \
98760573Skris                                                                            \
98860573Skris  product(bool, UseFastJNIAccessors, true,                                  \
98960573Skris          "Use optimized versions of Get<Primitive>Field")                  \
99060573Skris                                                                            \
99160573Skris  product(bool, EagerXrunInit, false,                                       \
99260573Skris          "Eagerly initialize -Xrun libraries; allows startup profiling, "  \
99360573Skris          " but not all -Xrun libraries may support the state of the VM at this time") \
99460573Skris                                                                            \
99560573Skris  product(bool, PreserveAllAnnotations, false,                              \
99660573Skris          "Preserve RuntimeInvisibleAnnotations as well as RuntimeVisibleAnnotations") \
99760573Skris                                                                            \
99860573Skris  develop(uintx, PreallocatedOutOfMemoryErrorCount, 4,                      \
99960573Skris          "Number of OutOfMemoryErrors preallocated with backtrace")        \
100060573Skris                                                                            \
100160573Skris  product(bool, LazyBootClassLoader, true,                                  \
100260573Skris          "Enable/disable lazy opening of boot class path entries")         \
100360573Skris                                                                            \
100460573Skris  diagnostic(bool, UseIncDec, true,                                         \
100560573Skris          "Use INC, DEC instructions on x86")                               \
100660573Skris                                                                            \
100760573Skris  product(bool, UseNewLongLShift, false,                                    \
100860573Skris          "Use optimized bitwise shift left")                               \
100960573Skris                                                                            \
101060573Skris  product(bool, UseStoreImmI16, true,                                       \
101160573Skris          "Use store immediate 16-bits value instruction on x86")           \
101260573Skris                                                                            \
101360573Skris  product(bool, UseAddressNop, false,                                       \
101460573Skris          "Use '0F 1F [addr]' NOP instructions on x86 cpus")                \
101557429Smarkm                                                                            \
101657429Smarkm  product(bool, UseXmmLoadAndClearUpper, true,                              \
101757429Smarkm          "Load low part of XMM register and clear upper part")             \
101857429Smarkm                                                                            \
101957429Smarkm  product(bool, UseXmmRegToRegMoveAll, false,                               \
102057429Smarkm          "Copy all XMM register bits when moving value between registers") \
102157429Smarkm                                                                            \
102257429Smarkm  product(bool, UseXmmI2D, false,                                           \
102357429Smarkm          "Use SSE2 CVTDQ2PD instruction to convert Integer to Double")     \
102457429Smarkm                                                                            \
102557429Smarkm  product(bool, UseXmmI2F, false,                                           \
102657429Smarkm          "Use SSE2 CVTDQ2PS instruction to convert Integer to Float")      \
102757429Smarkm                                                                            \
102857429Smarkm  product(bool, UseXMMForArrayCopy, false,                                  \
102957429Smarkm          "Use SSE2 MOVQ instruction for Arraycopy")                        \
103057429Smarkm                                                                            \
103157429Smarkm  product(bool, UseUnalignedLoadStores, false,                              \
103257429Smarkm          "Use SSE2 MOVDQU instruction for Arraycopy")                      \
103357429Smarkm                                                                            \
103457429Smarkm  product(intx, FieldsAllocationStyle, 1,                                   \
103557429Smarkm          "0 - type based with oops first, 1 - with oops last")             \
103657429Smarkm                                                                            \
103757429Smarkm  product(bool, CompactFields, true,                                        \
103857429Smarkm          "Allocate nonstatic fields in gaps between previous fields")      \
103957429Smarkm                                                                            \
104057429Smarkm  notproduct(bool, PrintCompactFieldsSavings, false,                        \
104157429Smarkm          "Print how many words were saved with CompactFields")             \
104257429Smarkm                                                                            \
104357429Smarkm  product(bool, UseBiasedLocking, true,                                     \
104457429Smarkm          "Enable biased locking in JVM")                                   \
104557429Smarkm                                                                            \
104657429Smarkm  product(intx, BiasedLockingStartupDelay, 4000,                            \
104757429Smarkm          "Number of milliseconds to wait before enabling biased locking")  \
104857429Smarkm                                                                            \
104957429Smarkm  diagnostic(bool, PrintBiasedLockingStatistics, false,                     \
105057429Smarkm          "Print statistics of biased locking in JVM")                      \
105157429Smarkm                                                                            \
105257429Smarkm  product(intx, BiasedLockingBulkRebiasThreshold, 20,                       \
105357429Smarkm          "Threshold of number of revocations per type to try to "          \
105457429Smarkm          "rebias all objects in the heap of that type")                    \
105560573Skris                                                                            \
105660573Skris  product(intx, BiasedLockingBulkRevokeThreshold, 40,                       \
105760573Skris          "Threshold of number of revocations per type to permanently "     \
105860573Skris          "revoke biases of all objects in the heap of that type")          \
105960573Skris                                                                            \
106060573Skris  product(intx, BiasedLockingDecayTime, 25000,                              \
106160573Skris          "Decay time (in milliseconds) to re-enable bulk rebiasing of a "  \
106260573Skris          "type after previous bulk rebias")                                \
106360573Skris                                                                            \
106460573Skris  /* tracing */                                                             \
106560573Skris                                                                            \
106660573Skris  notproduct(bool, TraceRuntimeCalls, false,                                \
106760573Skris          "Trace run-time calls")                                           \
106860573Skris                                                                            \
106960573Skris  develop(bool, TraceJNICalls, false,                                       \
107060573Skris          "Trace JNI calls")                                                \
107160573Skris                                                                            \
107260573Skris  notproduct(bool, TraceJVMCalls, false,                                    \
107360573Skris          "Trace JVM calls")                                                \
107460573Skris                                                                            \
107560573Skris  product(ccstr, TraceJVMTI, NULL,                                          \
107657429Smarkm          "Trace flags for JVMTI functions and events")                     \
107757429Smarkm                                                                            \
107857429Smarkm  /* This option can change an EMCP method into an obsolete method. */      \
107957429Smarkm  /* This can affect tests that except specific methods to be EMCP. */      \
108057429Smarkm  /* This option should be used with caution. */                            \
108157429Smarkm  product(bool, StressLdcRewrite, false,                                    \
108257429Smarkm          "Force ldc -> ldc_w rewrite during RedefineClasses")              \
108357429Smarkm                                                                            \
108457429Smarkm  product(intx, TraceRedefineClasses, 0,                                    \
108557429Smarkm          "Trace level for JVMTI RedefineClasses")                          \
108657429Smarkm                                                                            \
108757429Smarkm  /* change to false by default sometime after Mustang */                   \
108857429Smarkm  product(bool, VerifyMergedCPBytecodes, true,                              \
108957429Smarkm          "Verify bytecodes after RedefineClasses constant pool merging")   \
109057429Smarkm                                                                            \
109157429Smarkm  develop(bool, TraceJNIHandleAllocation, false,                            \
109257429Smarkm          "Trace allocation/deallocation of JNI handle blocks")             \
109357429Smarkm                                                                            \
109457429Smarkm  develop(bool, TraceThreadEvents, false,                                   \
109557429Smarkm          "Trace all thread events")                                        \
109657429Smarkm                                                                            \
109757429Smarkm  develop(bool, TraceBytecodes, false,                                      \
109857429Smarkm          "Trace bytecode execution")                                       \
109957429Smarkm                                                                            \
110057429Smarkm  develop(bool, TraceClassInitialization, false,                            \
110157429Smarkm          "Trace class initialization")                                     \
110257429Smarkm                                                                            \
110357429Smarkm  develop(bool, TraceExceptions, false,                                     \
110457429Smarkm          "Trace exceptions")                                               \
110557429Smarkm                                                                            \
110657429Smarkm  develop(bool, TraceICs, false,                                            \
110757429Smarkm          "Trace inline cache changes")                                     \
110860573Skris                                                                            \
110960573Skris  notproduct(bool, TraceInvocationCounterOverflow, false,                   \
111060573Skris          "Trace method invocation counter overflow")                       \
111160573Skris                                                                            \
111260573Skris  develop(bool, TraceInlineCacheClearing, false,                            \
111360573Skris          "Trace clearing of inline caches in nmethods")                    \
111460573Skris                                                                            \
111560573Skris  develop(bool, TraceDependencies, false,                                   \
111660573Skris          "Trace dependencies")                                             \
111757429Smarkm                                                                            \
111857429Smarkm  develop(bool, VerifyDependencies, trueInDebug,                            \
111957429Smarkm         "Exercise and verify the compilation dependency mechanism")        \
112057429Smarkm                                                                            \
112157429Smarkm  develop(bool, TraceNewOopMapGeneration, false,                            \
112257429Smarkm          "Trace OopMapGeneration")                                         \
112357429Smarkm                                                                            \
112457429Smarkm  develop(bool, TraceNewOopMapGenerationDetailed, false,                    \
112557429Smarkm          "Trace OopMapGeneration: print detailed cell states")             \
112657429Smarkm                                                                            \
112757429Smarkm  develop(bool, TimeOopMap, false,                                          \
112857429Smarkm          "Time calls to GenerateOopMap::compute_map() in sum")             \
112957429Smarkm                                                                            \
113057429Smarkm  develop(bool, TimeOopMap2, false,                                         \
113157429Smarkm          "Time calls to GenerateOopMap::compute_map() individually")       \
113257429Smarkm                                                                            \
113357429Smarkm  develop(bool, TraceMonitorMismatch, false,                                \
113457429Smarkm          "Trace monitor matching failures during OopMapGeneration")        \
113557429Smarkm                                                                            \
113657429Smarkm  develop(bool, TraceOopMapRewrites, false,                                 \
113757429Smarkm          "Trace rewritting of method oops during oop map generation")      \
113857429Smarkm                                                                            \
113957429Smarkm  develop(bool, TraceSafepoint, false,                                      \
114057429Smarkm          "Trace safepoint operations")                                     \
114157429Smarkm                                                                            \
114257429Smarkm  develop(bool, TraceICBuffer, false,                                       \
114357429Smarkm          "Trace usage of IC buffer")                                       \
114457429Smarkm                                                                            \
114557429Smarkm  develop(bool, TraceCompiledIC, false,                                     \
114657429Smarkm          "Trace changes of compiled IC")                                   \
114760573Skris                                                                            \
114860573Skris  notproduct(bool, TraceZapDeadLocals, false,                               \
114960573Skris          "Trace zapping dead locals")                                      \
115060573Skris                                                                            \
115160573Skris  develop(bool, TraceStartupTime, false,                                    \
115260573Skris          "Trace setup time")                                               \
115360573Skris                                                                            \
115460573Skris  develop(bool, TraceHPI, false,                                            \
115560573Skris          "Trace Host Porting Interface (HPI)")                             \
115657429Smarkm                                                                            \
115757429Smarkm  product(ccstr, HPILibPath, NULL,                                          \
115857429Smarkm          "Specify alternate path to HPI library")                          \
115957429Smarkm                                                                            \
116057429Smarkm  develop(bool, TraceProtectionDomainVerification, false,                   \
116157429Smarkm          "Trace protection domain verifcation")                            \
116257429Smarkm                                                                            \
116357429Smarkm  develop(bool, TraceClearedExceptions, false,                              \
116457429Smarkm          "Prints when an exception is forcibly cleared")                   \
116557429Smarkm                                                                            \
116657429Smarkm  product(bool, TraceClassResolution, false,                                \
116757429Smarkm          "Trace all constant pool resolutions (for debugging)")            \
116857429Smarkm                                                                            \
116957429Smarkm  product(bool, TraceBiasedLocking, false,                                  \
117057429Smarkm          "Trace biased locking in JVM")                                    \
117157429Smarkm                                                                            \
117257429Smarkm  product(bool, TraceMonitorInflation, false,                               \
117357429Smarkm          "Trace monitor inflation in JVM")                                 \
117457429Smarkm                                                                            \
117557429Smarkm  /* assembler */                                                           \
117657429Smarkm  product(bool, Use486InstrsOnly, false,                                    \
117757429Smarkm          "Use 80486 Compliant instruction subset")                         \
117857429Smarkm                                                                            \
117957429Smarkm  /* gc */                                                                  \
118057429Smarkm                                                                            \
118157429Smarkm  product(bool, UseSerialGC, false,                                         \
118257429Smarkm          "Use the serial garbage collector")                               \
118357429Smarkm                                                                            \
118457429Smarkm  experimental(bool, UseG1GC, false,                                        \
118557429Smarkm          "Use the Garbage-First garbage collector")                        \
118657429Smarkm                                                                            \
118757429Smarkm  product(bool, UseParallelGC, false,                                       \
118857429Smarkm          "Use the Parallel Scavenge garbage collector")                    \
118957429Smarkm                                                                            \
119057429Smarkm  product(bool, UseParallelOldGC, false,                                    \
119157429Smarkm          "Use the Parallel Old garbage collector")                         \
119257429Smarkm                                                                            \
119357429Smarkm  product(bool, UseParallelOldGCCompacting, true,                           \
119457429Smarkm          "In the Parallel Old garbage collector use parallel compaction")  \
119557429Smarkm                                                                            \
119657429Smarkm  product(bool, UseParallelDensePrefixUpdate, true,                         \
119757429Smarkm          "In the Parallel Old garbage collector use parallel dense"        \
119857429Smarkm          " prefix update")                                                 \
119957429Smarkm                                                                            \
120057429Smarkm  product(uintx, HeapMaximumCompactionInterval, 20,                         \
120157429Smarkm          "How often should we maximally compact the heap (not allowing "   \
120257429Smarkm          "any dead space)")                                                \
120357429Smarkm                                                                            \
120457429Smarkm  product(uintx, HeapFirstMaximumCompactionCount, 3,                        \
120557429Smarkm          "The collection count for the first maximum compaction")          \
120657429Smarkm                                                                            \
120757429Smarkm  product(bool, UseMaximumCompactionOnSystemGC, true,                       \
120857429Smarkm          "In the Parallel Old garbage collector maximum compaction for "   \
120957429Smarkm          "a system GC")                                                    \
121057429Smarkm                                                                            \
121157429Smarkm  product(uintx, ParallelOldDeadWoodLimiterMean, 50,                        \
121257429Smarkm          "The mean used by the par compact dead wood"                      \
121357429Smarkm          "limiter (a number between 0-100).")                              \
121457429Smarkm                                                                            \
121557429Smarkm  product(uintx, ParallelOldDeadWoodLimiterStdDev, 80,                      \
121657429Smarkm          "The standard deviation used by the par compact dead wood"        \
121757429Smarkm          "limiter (a number between 0-100).")                              \
121857429Smarkm                                                                            \
121957429Smarkm  product(bool, UseParallelOldGCDensePrefix, true,                          \
122057429Smarkm          "Use a dense prefix with the Parallel Old garbage collector")     \
122157429Smarkm                                                                            \
122257429Smarkm  product(uintx, ParallelGCThreads, 0,                                      \
122357429Smarkm          "Number of parallel threads parallel gc will use")                \
122457429Smarkm                                                                            \
122557429Smarkm  product(uintx, ParallelCMSThreads, 0,                                     \
122657429Smarkm          "Max number of threads CMS will use for concurrent work")         \
122757429Smarkm                                                                            \
122857429Smarkm  develop(bool, ParallelOldGCSplitALot, false,                              \
122957429Smarkm          "Provoke splitting (copying data from a young gen space to"       \
123057429Smarkm          "multiple destination spaces)")                                   \
123157429Smarkm                                                                            \
123257429Smarkm  develop(uintx, ParallelOldGCSplitInterval, 3,                             \
123357429Smarkm          "How often to provoke splitting a young gen space")               \
123457429Smarkm                                                                            \
123557429Smarkm  develop(bool, TraceRegionTasksQueuing, false,                             \
123657429Smarkm          "Trace the queuing of the region tasks")                          \
123757429Smarkm                                                                            \
123857429Smarkm  product(uintx, ParallelMarkingThreads, 0,                                 \
123957429Smarkm          "Number of marking threads concurrent gc will use")               \
124057429Smarkm                                                                            \
124157429Smarkm  product(uintx, YoungPLABSize, 4096,                                       \
124257429Smarkm          "Size of young gen promotion labs (in HeapWords)")                \
124357429Smarkm                                                                            \
124457429Smarkm  product(uintx, OldPLABSize, 1024,                                         \
124557429Smarkm          "Size of old gen promotion labs (in HeapWords)")                  \
124657429Smarkm                                                                            \
124757429Smarkm  product(uintx, GCTaskTimeStampEntries, 200,                               \
124857429Smarkm          "Number of time stamp entries per gc worker thread")              \
124957429Smarkm                                                                            \
125057429Smarkm  product(bool, AlwaysTenure, false,                                        \
125157429Smarkm          "Always tenure objects in eden. (ParallelGC only)")               \
125257429Smarkm                                                                            \
125357429Smarkm  product(bool, NeverTenure, false,                                         \
125457429Smarkm          "Never tenure objects in eden, May tenure on overflow"            \
125557429Smarkm          " (ParallelGC only)")                                             \
125657429Smarkm                                                                            \
125757429Smarkm  product(bool, ScavengeBeforeFullGC, true,                                 \
125857429Smarkm          "Scavenge youngest generation before each full GC,"               \
125957429Smarkm          " used with UseParallelGC")                                       \
126057429Smarkm                                                                            \
126157429Smarkm  develop(bool, ScavengeWithObjectsInToSpace, false,                        \
126257429Smarkm          "Allow scavenges to occur when to_space contains objects.")       \
126357429Smarkm                                                                            \
126457429Smarkm  product(bool, UseConcMarkSweepGC, false,                                  \
126557429Smarkm          "Use Concurrent Mark-Sweep GC in the old generation")             \
126657429Smarkm                                                                            \
126757429Smarkm  product(bool, ExplicitGCInvokesConcurrent, false,                         \
126857429Smarkm          "A System.gc() request invokes a concurrent collection;"          \
126957429Smarkm          " (effective only when UseConcMarkSweepGC)")                      \
127057429Smarkm                                                                            \
127157429Smarkm  product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false,        \
127257429Smarkm          "A System.gc() request invokes a concurrent collection and"       \
127357429Smarkm          " also unloads classes during such a concurrent gc cycle  "       \
127457429Smarkm          " (effective only when UseConcMarkSweepGC)")                      \
127557429Smarkm                                                                            \
127657429Smarkm  develop(bool, UseCMSAdaptiveFreeLists, true,                              \
127757429Smarkm          "Use Adaptive Free Lists in the CMS generation")                  \
127857429Smarkm                                                                            \
127957429Smarkm  develop(bool, UseAsyncConcMarkSweepGC, true,                              \
128057429Smarkm          "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\
128157429Smarkm                                                                            \
128257429Smarkm  develop(bool, RotateCMSCollectionTypes, false,                            \
128357429Smarkm          "Rotate the CMS collections among concurrent and STW")            \
128457429Smarkm                                                                            \
128557429Smarkm  product(bool, UseCMSBestFit, true,                                        \
128660573Skris          "Use CMS best fit allocation strategy")                           \
128760573Skris                                                                            \
128857429Smarkm  product(bool, UseCMSCollectionPassing, true,                              \
128957429Smarkm          "Use passing of collection from background to foreground")        \
129057429Smarkm                                                                            \
129157429Smarkm  product(bool, UseParNewGC, false,                                         \
129257429Smarkm          "Use parallel threads in the new generation.")                    \
129357429Smarkm                                                                            \
129457429Smarkm  product(bool, ParallelGCVerbose, false,                                   \
129557429Smarkm          "Verbose output for parallel GC.")                                \
129657429Smarkm                                                                            \
129757429Smarkm  product(intx, ParallelGCBufferWastePct, 10,                               \
1298          "wasted fraction of parallel allocation buffer.")                 \
1299                                                                            \
1300  product(bool, ParallelGCRetainPLAB, true,                                 \
1301          "Retain parallel allocation buffers across scavenges.")           \
1302                                                                            \
1303  product(intx, TargetPLABWastePct, 10,                                     \
1304          "target wasted space in last buffer as pct of overall allocation")\
1305                                                                            \
1306  product(uintx, PLABWeight, 75,                                            \
1307          "Percentage (0-100) used to weight the current sample when"       \
1308          "computing exponentially decaying average for ResizePLAB.")       \
1309                                                                            \
1310  product(bool, ResizePLAB, true,                                           \
1311          "Dynamically resize (survivor space) promotion labs")             \
1312                                                                            \
1313  product(bool, PrintPLAB, false,                                           \
1314          "Print (survivor space) promotion labs sizing decisions")         \
1315                                                                            \
1316  product(intx, ParGCArrayScanChunk, 50,                                    \
1317          "Scan a subset and push remainder, if array is bigger than this") \
1318                                                                            \
1319  product(bool, ParGCUseLocalOverflow, false,                               \
1320          "Instead of a global overflow list, use local overflow stacks")   \
1321                                                                            \
1322  product(bool, ParGCTrimOverflow, true,                                    \
1323          "Eagerly trim the local overflow lists (when ParGCUseLocalOverflow") \
1324                                                                            \
1325  notproduct(bool, ParGCWorkQueueOverflowALot, false,                       \
1326          "Whether we should simulate work queue overflow in ParNew")       \
1327                                                                            \
1328  notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000,                   \
1329          "An `interval' counter that determines how frequently"            \
1330          " we simulate overflow; a smaller number increases frequency")    \
1331                                                                            \
1332  product(uintx, ParGCDesiredObjsFromOverflowList, 20,                      \
1333          "The desired number of objects to claim from the overflow list")  \
1334                                                                            \
1335  product(uintx, CMSParPromoteBlocksToClaim, 50,                            \
1336          "Number of blocks to attempt to claim when refilling CMS LAB for "\
1337          "parallel GC.")                                                   \
1338                                                                            \
1339  product(bool, AlwaysPreTouch, false,                                      \
1340          "It forces all freshly committed pages to be pre-touched.")       \
1341                                                                            \
1342  product(bool, CMSUseOldDefaults, false,                                   \
1343          "A flag temporarily  introduced to allow reverting to some older" \
1344          "default settings; older as of 6.0 ")                             \
1345                                                                            \
1346  product(intx, CMSYoungGenPerWorker, 16*M,                                 \
1347          "The amount of young gen chosen by default per GC worker "        \
1348          "thread available ")                                              \
1349                                                                            \
1350  product(bool, GCOverheadReporting, false,                                 \
1351         "Enables the GC overhead reporting facility")                      \
1352                                                                            \
1353  product(intx, GCOverheadReportingPeriodMS, 100,                           \
1354          "Reporting period for conc GC overhead reporting, in ms ")        \
1355                                                                            \
1356  product(bool, CMSIncrementalMode, false,                                  \
1357          "Whether CMS GC should operate in \"incremental\" mode")          \
1358                                                                            \
1359  product(uintx, CMSIncrementalDutyCycle, 10,                               \
1360          "CMS incremental mode duty cycle (a percentage, 0-100).  If"      \
1361          "CMSIncrementalPacing is enabled, then this is just the initial"  \
1362          "value")                                                          \
1363                                                                            \
1364  product(bool, CMSIncrementalPacing, true,                                 \
1365          "Whether the CMS incremental mode duty cycle should be "          \
1366          "automatically adjusted")                                         \
1367                                                                            \
1368  product(uintx, CMSIncrementalDutyCycleMin, 0,                             \
1369          "Lower bound on the duty cycle when CMSIncrementalPacing is"      \
1370          "enabled (a percentage, 0-100).")                                 \
1371                                                                            \
1372  product(uintx, CMSIncrementalSafetyFactor, 10,                            \
1373          "Percentage (0-100) used to add conservatism when computing the"  \
1374          "duty cycle.")                                                    \
1375                                                                            \
1376  product(uintx, CMSIncrementalOffset, 0,                                   \
1377          "Percentage (0-100) by which the CMS incremental mode duty cycle" \
1378          "is shifted to the right within the period between young GCs")    \
1379                                                                            \
1380  product(uintx, CMSExpAvgFactor, 25,                                       \
1381          "Percentage (0-100) used to weight the current sample when"       \
1382          "computing exponential averages for CMS statistics.")             \
1383                                                                            \
1384  product(uintx, CMS_FLSWeight, 50,                                         \
1385          "Percentage (0-100) used to weight the current sample when"       \
1386          "computing exponentially decating averages for CMS FLS statistics.") \
1387                                                                            \
1388  product(uintx, CMS_FLSPadding, 2,                                         \
1389          "The multiple of deviation from mean to use for buffering"        \
1390          "against volatility in free list demand.")                        \
1391                                                                            \
1392  product(uintx, FLSCoalescePolicy, 2,                                      \
1393          "CMS: Aggression level for coalescing, increasing from 0 to 4")   \
1394                                                                            \
1395  product(uintx, CMS_SweepWeight, 50,                                       \
1396          "Percentage (0-100) used to weight the current sample when"       \
1397          "computing exponentially decaying average for inter-sweep duration.") \
1398                                                                            \
1399  product(uintx, CMS_SweepPadding, 2,                                       \
1400          "The multiple of deviation from mean to use for buffering"        \
1401          "against volatility in inter-sweep duration.")                    \
1402                                                                            \
1403  product(uintx, CMS_SweepTimerThresholdMillis, 10,                         \
1404          "Skip block flux-rate sampling for an epoch unless inter-sweep "  \
1405          " duration exceeds this threhold in milliseconds")                \
1406                                                                            \
1407  develop(bool, CMSTraceIncrementalMode, false,                             \
1408          "Trace CMS incremental mode")                                     \
1409                                                                            \
1410  develop(bool, CMSTraceIncrementalPacing, false,                           \
1411          "Trace CMS incremental mode pacing computation")                  \
1412                                                                            \
1413  develop(bool, CMSTraceThreadState, false,                                 \
1414          "Trace the CMS thread state (enable the trace_state() method)")   \
1415                                                                            \
1416  product(bool, CMSClassUnloadingEnabled, false,                            \
1417          "Whether class unloading enabled when using CMS GC")              \
1418                                                                            \
1419  product(uintx, CMSClassUnloadingMaxInterval, 0,                           \
1420          "When CMS class unloading is enabled, the maximum CMS cycle count"\
1421          " for which classes may not be unloaded")                         \
1422                                                                            \
1423  product(bool, CMSCompactWhenClearAllSoftRefs, true,                       \
1424          "Compact when asked to collect CMS gen with clear_all_soft_refs") \
1425                                                                            \
1426  product(bool, UseCMSCompactAtFullCollection, true,                        \
1427          "Use mark sweep compact at full collections")                     \
1428                                                                            \
1429  product(uintx, CMSFullGCsBeforeCompaction, 0,                             \
1430          "Number of CMS full collection done before compaction if > 0")    \
1431                                                                            \
1432  develop(intx, CMSDictionaryChoice, 0,                                     \
1433          "Use BinaryTreeDictionary as default in the CMS generation")      \
1434                                                                            \
1435  product(uintx, CMSIndexedFreeListReplenish, 4,                            \
1436          "Replenish and indexed free list with this number of chunks")     \
1437                                                                            \
1438  product(bool, CMSLoopWarn, false,                                         \
1439          "Warn in case of excessive CMS looping")                          \
1440                                                                            \
1441  develop(bool, CMSOverflowEarlyRestoration, false,                         \
1442          "Whether preserved marks should be restored early")               \
1443                                                                            \
1444  product(uintx, CMSMarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M),           \
1445          "Size of CMS marking stack")                                      \
1446                                                                            \
1447  product(uintx, CMSMarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M),       \
1448          "Max size of CMS marking stack")                                  \
1449                                                                            \
1450  notproduct(bool, CMSMarkStackOverflowALot, false,                         \
1451          "Whether we should simulate frequent marking stack / work queue"  \
1452          " overflow")                                                      \
1453                                                                            \
1454  notproduct(uintx, CMSMarkStackOverflowInterval, 1000,                     \
1455          "An `interval' counter that determines how frequently"            \
1456          " we simulate overflow; a smaller number increases frequency")    \
1457                                                                            \
1458  product(uintx, CMSMaxAbortablePrecleanLoops, 0,                           \
1459          "(Temporary, subject to experimentation)"                         \
1460          "Maximum number of abortable preclean iterations, if > 0")        \
1461                                                                            \
1462  product(intx, CMSMaxAbortablePrecleanTime, 5000,                          \
1463          "(Temporary, subject to experimentation)"                         \
1464          "Maximum time in abortable preclean in ms")                       \
1465                                                                            \
1466  product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100,              \
1467          "(Temporary, subject to experimentation)"                         \
1468          "Nominal minimum work per abortable preclean iteration")          \
1469                                                                            \
1470  product(intx, CMSAbortablePrecleanWaitMillis, 100,                        \
1471          "(Temporary, subject to experimentation)"                         \
1472          " Time that we sleep between iterations when not given"           \
1473          " enough work per iteration")                                     \
1474                                                                            \
1475  product(uintx, CMSRescanMultiple, 32,                                     \
1476          "Size (in cards) of CMS parallel rescan task")                    \
1477                                                                            \
1478  product(uintx, CMSConcMarkMultiple, 32,                                   \
1479          "Size (in cards) of CMS concurrent MT marking task")              \
1480                                                                            \
1481  product(uintx, CMSRevisitStackSize, 1*M,                                  \
1482          "Size of CMS KlassKlass revisit stack")                           \
1483                                                                            \
1484  product(bool, CMSAbortSemantics, false,                                   \
1485          "Whether abort-on-overflow semantics is implemented")             \
1486                                                                            \
1487  product(bool, CMSParallelRemarkEnabled, true,                             \
1488          "Whether parallel remark enabled (only if ParNewGC)")             \
1489                                                                            \
1490  product(bool, CMSParallelSurvivorRemarkEnabled, true,                     \
1491          "Whether parallel remark of survivor space"                       \
1492          " enabled (effective only if CMSParallelRemarkEnabled)")          \
1493                                                                            \
1494  product(bool, CMSPLABRecordAlways, true,                                  \
1495          "Whether to always record survivor space PLAB bdries"             \
1496          " (effective only if CMSParallelSurvivorRemarkEnabled)")          \
1497                                                                            \
1498  product(bool, CMSConcurrentMTEnabled, true,                               \
1499          "Whether multi-threaded concurrent work enabled (if ParNewGC)")   \
1500                                                                            \
1501  product(bool, CMSPermGenPrecleaningEnabled, true,                         \
1502          "Whether concurrent precleaning enabled in perm gen"              \
1503          " (effective only when CMSPrecleaningEnabled is true)")           \
1504                                                                            \
1505  product(bool, CMSPrecleaningEnabled, true,                                \
1506          "Whether concurrent precleaning enabled")                         \
1507                                                                            \
1508  product(uintx, CMSPrecleanIter, 3,                                        \
1509          "Maximum number of precleaning iteration passes")                 \
1510                                                                            \
1511  product(uintx, CMSPrecleanNumerator, 2,                                   \
1512          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence"  \
1513          " ratio")                                                         \
1514                                                                            \
1515  product(uintx, CMSPrecleanDenominator, 3,                                 \
1516          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence"  \
1517          " ratio")                                                         \
1518                                                                            \
1519  product(bool, CMSPrecleanRefLists1, true,                                 \
1520          "Preclean ref lists during (initial) preclean phase")             \
1521                                                                            \
1522  product(bool, CMSPrecleanRefLists2, false,                                \
1523          "Preclean ref lists during abortable preclean phase")             \
1524                                                                            \
1525  product(bool, CMSPrecleanSurvivors1, false,                               \
1526          "Preclean survivors during (initial) preclean phase")             \
1527                                                                            \
1528  product(bool, CMSPrecleanSurvivors2, true,                                \
1529          "Preclean survivors during abortable preclean phase")             \
1530                                                                            \
1531  product(uintx, CMSPrecleanThreshold, 1000,                                \
1532          "Don't re-iterate if #dirty cards less than this")                \
1533                                                                            \
1534  product(bool, CMSCleanOnEnter, true,                                      \
1535          "Clean-on-enter optimization for reducing number of dirty cards") \
1536                                                                            \
1537  product(uintx, CMSRemarkVerifyVariant, 1,                                 \
1538          "Choose variant (1,2) of verification following remark")          \
1539                                                                            \
1540  product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M,                   \
1541          "If Eden used is below this value, don't try to schedule remark") \
1542                                                                            \
1543  product(uintx, CMSScheduleRemarkEdenPenetration, 50,                      \
1544          "The Eden occupancy % at which to try and schedule remark pause") \
1545                                                                            \
1546  product(uintx, CMSScheduleRemarkSamplingRatio, 5,                         \
1547          "Start sampling Eden top at least before yg occupancy reaches"    \
1548          " 1/<ratio> of the size at which we plan to schedule remark")     \
1549                                                                            \
1550  product(uintx, CMSSamplingGrain, 16*K,                                    \
1551          "The minimum distance between eden samples for CMS (see above)")  \
1552                                                                            \
1553  product(bool, CMSScavengeBeforeRemark, false,                             \
1554          "Attempt scavenge before the CMS remark step")                    \
1555                                                                            \
1556  develop(bool, CMSTraceSweeper, false,                                     \
1557          "Trace some actions of the CMS sweeper")                          \
1558                                                                            \
1559  product(uintx, CMSWorkQueueDrainThreshold, 10,                            \
1560          "Don't drain below this size per parallel worker/thief")          \
1561                                                                            \
1562  product(intx, CMSWaitDuration, 2000,                                      \
1563          "Time in milliseconds that CMS thread waits for young GC")        \
1564                                                                            \
1565  product(bool, CMSYield, true,                                             \
1566          "Yield between steps of concurrent mark & sweep")                 \
1567                                                                            \
1568  product(uintx, CMSBitMapYieldQuantum, 10*M,                               \
1569          "Bitmap operations should process at most this many bits"         \
1570          "between yields")                                                 \
1571                                                                            \
1572  diagnostic(bool, FLSVerifyAllHeapReferences, false,                       \
1573          "Verify that all refs across the FLS boundary "                   \
1574          " are to valid objects")                                          \
1575                                                                            \
1576  diagnostic(bool, FLSVerifyLists, false,                                   \
1577          "Do lots of (expensive) FreeListSpace verification")              \
1578                                                                            \
1579  diagnostic(bool, FLSVerifyIndexTable, false,                              \
1580          "Do lots of (expensive) FLS index table verification")            \
1581                                                                            \
1582  develop(bool, FLSVerifyDictionary, false,                                 \
1583          "Do lots of (expensive) FLS dictionary verification")             \
1584                                                                            \
1585  develop(bool, VerifyBlockOffsetArray, false,                              \
1586          "Do (expensive!) block offset array verification")                \
1587                                                                            \
1588  product(bool, BlockOffsetArrayUseUnallocatedBlock, trueInDebug,           \
1589          "Maintain _unallocated_block in BlockOffsetArray"                 \
1590          " (currently applicable only to CMS collector)")                  \
1591                                                                            \
1592  develop(bool, TraceCMSState, false,                                       \
1593          "Trace the state of the CMS collection")                          \
1594                                                                            \
1595  product(intx, RefDiscoveryPolicy, 0,                                      \
1596          "Whether reference-based(0) or referent-based(1)")                \
1597                                                                            \
1598  product(bool, ParallelRefProcEnabled, false,                              \
1599          "Enable parallel reference processing whenever possible")         \
1600                                                                            \
1601  product(bool, ParallelRefProcBalancingEnabled, true,                      \
1602          "Enable balancing of reference processing queues")                \
1603                                                                            \
1604  product(intx, CMSTriggerRatio, 80,                                        \
1605          "Percentage of MinHeapFreeRatio in CMS generation that is "       \
1606          "  allocated before a CMS collection cycle commences")            \
1607                                                                            \
1608  product(intx, CMSTriggerPermRatio, 80,                                    \
1609          "Percentage of MinHeapFreeRatio in the CMS perm generation that"  \
1610          "  is allocated before a CMS collection cycle commences, that  "  \
1611          "  also collects the perm generation")                            \
1612                                                                            \
1613  product(uintx, CMSBootstrapOccupancy, 50,                                 \
1614          "Percentage CMS generation occupancy at which to "                \
1615          " initiate CMS collection for bootstrapping collection stats")    \
1616                                                                            \
1617  product(intx, CMSInitiatingOccupancyFraction, -1,                         \
1618          "Percentage CMS generation occupancy to start a CMS collection "  \
1619          " cycle (A negative value means that CMSTriggerRatio is used)")   \
1620                                                                            \
1621  product(intx, CMSInitiatingPermOccupancyFraction, -1,                     \
1622          "Percentage CMS perm generation occupancy to start a CMScollection"\
1623          " cycle (A negative value means that CMSTriggerPermRatio is used)")\
1624                                                                            \
1625  product(bool, UseCMSInitiatingOccupancyOnly, false,                       \
1626          "Only use occupancy as a crierion for starting a CMS collection") \
1627                                                                            \
1628  product(intx, CMSIsTooFullPercentage, 98,                                 \
1629          "An absolute ceiling above which CMS will always consider the"    \
1630          " perm gen ripe for collection")                                  \
1631                                                                            \
1632  develop(bool, CMSTestInFreeList, false,                                   \
1633          "Check if the coalesced range is already in the "                 \
1634          "free lists as claimed.")                                         \
1635                                                                            \
1636  notproduct(bool, CMSVerifyReturnedBytes, false,                           \
1637          "Check that all the garbage collected was returned to the "       \
1638          "free lists.")                                                    \
1639                                                                            \
1640  notproduct(bool, ScavengeALot, false,                                     \
1641          "Force scavenge at every Nth exit from the runtime system "       \
1642          "(N=ScavengeALotInterval)")                                       \
1643                                                                            \
1644  develop(bool, FullGCALot, false,                                          \
1645          "Force full gc at every Nth exit from the runtime system "        \
1646          "(N=FullGCALotInterval)")                                         \
1647                                                                            \
1648  notproduct(bool, GCALotAtAllSafepoints, false,                            \
1649          "Enforce ScavengeALot/GCALot at all potential safepoints")        \
1650                                                                            \
1651  product(bool, HandlePromotionFailure, true,                               \
1652          "The youngest generation collection does not require"             \
1653          " a guarantee of full promotion of all live objects.")            \
1654                                                                            \
1655  notproduct(bool, PromotionFailureALot, false,                             \
1656          "Use promotion failure handling on every youngest generation "    \
1657          "collection")                                                     \
1658                                                                            \
1659  develop(uintx, PromotionFailureALotCount, 1000,                           \
1660          "Number of promotion failures occurring at ParGCAllocBuffer"      \
1661          "refill attempts (ParNew) or promotion attempts "                 \
1662          "(other young collectors) ")                                      \
1663                                                                            \
1664  develop(uintx, PromotionFailureALotInterval, 5,                           \
1665          "Total collections between promotion failures alot")              \
1666                                                                            \
1667  develop(intx, WorkStealingSleepMillis, 1,                                 \
1668          "Sleep time when sleep is used for yields")                       \
1669                                                                            \
1670  develop(uintx, WorkStealingYieldsBeforeSleep, 1000,                       \
1671          "Number of yields before a sleep is done during workstealing")    \
1672                                                                            \
1673  develop(uintx, WorkStealingHardSpins, 4096,                               \
1674          "Number of iterations in a spin loop between checks on "          \
1675          "time out of hard spin")                                          \
1676                                                                            \
1677  develop(uintx, WorkStealingSpinToYieldRatio, 10,                          \
1678          "Ratio of hard spins to calls to yield")                          \
1679                                                                            \
1680  product(uintx, PreserveMarkStackSize, 1024,                               \
1681           "Size for stack used in promotion failure handling")             \
1682                                                                            \
1683  product_pd(bool, UseTLAB, "Use thread-local object allocation")           \
1684                                                                            \
1685  product_pd(bool, ResizeTLAB,                                              \
1686          "Dynamically resize tlab size for threads")                       \
1687                                                                            \
1688  product(bool, ZeroTLAB, false,                                            \
1689          "Zero out the newly created TLAB")                                \
1690                                                                            \
1691  product(bool, FastTLABRefill, true,                                       \
1692          "Use fast TLAB refill code")                                      \
1693                                                                            \
1694  product(bool, PrintTLAB, false,                                           \
1695          "Print various TLAB related information")                         \
1696                                                                            \
1697  product(bool, TLABStats, true,                                            \
1698          "Print various TLAB related information")                         \
1699                                                                            \
1700  product_pd(bool, NeverActAsServerClassMachine,                            \
1701          "Never act like a server-class machine")                          \
1702                                                                            \
1703  product(bool, AlwaysActAsServerClassMachine, false,                       \
1704          "Always act like a server-class machine")                         \
1705                                                                            \
1706  product_pd(uintx, DefaultMaxRAM,                                          \
1707          "Maximum real memory size for setting server class heap size")    \
1708                                                                            \
1709  product(uintx, DefaultMaxRAMFraction, 4,                                  \
1710          "Fraction (1/n) of real memory used for server class max heap")   \
1711                                                                            \
1712  product(uintx, DefaultInitialRAMFraction, 64,                             \
1713          "Fraction (1/n) of real memory used for server class initial heap")  \
1714                                                                            \
1715  product(bool, UseAutoGCSelectPolicy, false,                               \
1716          "Use automatic collection selection policy")                      \
1717                                                                            \
1718  product(uintx, AutoGCSelectPauseMillis, 5000,                             \
1719          "Automatic GC selection pause threshhold in ms")                  \
1720                                                                            \
1721  product(bool, UseAdaptiveSizePolicy, true,                                \
1722          "Use adaptive generation sizing policies")                        \
1723                                                                            \
1724  product(bool, UsePSAdaptiveSurvivorSizePolicy, true,                      \
1725          "Use adaptive survivor sizing policies")                          \
1726                                                                            \
1727  product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true,     \
1728          "Use adaptive young-old sizing policies at minor collections")    \
1729                                                                            \
1730  product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true,     \
1731          "Use adaptive young-old sizing policies at major collections")    \
1732                                                                            \
1733  product(bool, UseAdaptiveSizePolicyWithSystemGC, false,                   \
1734          "Use statistics from System.GC for adaptive size policy")         \
1735                                                                            \
1736  product(bool, UseAdaptiveGCBoundary, false,                               \
1737          "Allow young-old boundary to move")                               \
1738                                                                            \
1739  develop(bool, TraceAdaptiveGCBoundary, false,                             \
1740          "Trace young-old boundary moves")                                 \
1741                                                                            \
1742  develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1,             \
1743          "Resize the virtual spaces of the young or old generations")      \
1744                                                                            \
1745  product(uintx, AdaptiveSizeThroughPutPolicy, 0,                           \
1746          "Policy for changeing generation size for throughput goals")      \
1747                                                                            \
1748  product(uintx, AdaptiveSizePausePolicy, 0,                                \
1749          "Policy for changing generation size for pause goals")            \
1750                                                                            \
1751  develop(bool, PSAdjustTenuredGenForMinorPause, false,                     \
1752          "Adjust tenured generation to achive a minor pause goal")         \
1753                                                                            \
1754  develop(bool, PSAdjustYoungGenForMajorPause, false,                       \
1755          "Adjust young generation to achive a major pause goal")           \
1756                                                                            \
1757  product(uintx, AdaptiveSizePolicyInitializingSteps, 20,                   \
1758          "Number of steps where heuristics is used before data is used")   \
1759                                                                            \
1760  develop(uintx, AdaptiveSizePolicyReadyThreshold, 5,                       \
1761          "Number of collections before the adaptive sizing is started")    \
1762                                                                            \
1763  product(uintx, AdaptiveSizePolicyOutputInterval, 0,                       \
1764          "Collecton interval for printing information, zero => never")     \
1765                                                                            \
1766  product(bool, UseAdaptiveSizePolicyFootprintGoal, true,                   \
1767          "Use adaptive minimum footprint as a goal")                       \
1768                                                                            \
1769  product(uintx, AdaptiveSizePolicyWeight, 10,                              \
1770          "Weight given to exponential resizing, between 0 and 100")        \
1771                                                                            \
1772  product(uintx, AdaptiveTimeWeight,       25,                              \
1773          "Weight given to time in adaptive policy, between 0 and 100")     \
1774                                                                            \
1775  product(uintx, PausePadding, 1,                                           \
1776          "How much buffer to keep for pause time")                         \
1777                                                                            \
1778  product(uintx, PromotedPadding, 3,                                        \
1779          "How much buffer to keep for promotion failure")                  \
1780                                                                            \
1781  product(uintx, SurvivorPadding, 3,                                        \
1782          "How much buffer to keep for survivor overflow")                  \
1783                                                                            \
1784  product(uintx, AdaptivePermSizeWeight, 20,                                \
1785          "Weight for perm gen exponential resizing, between 0 and 100")    \
1786                                                                            \
1787  product(uintx, PermGenPadding, 3,                                         \
1788          "How much buffer to keep for perm gen sizing")                    \
1789                                                                            \
1790  product(uintx, ThresholdTolerance, 10,                                    \
1791          "Allowed collection cost difference between generations")         \
1792                                                                            \
1793  product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50,                \
1794          "If collection costs are within margin, reduce both by full delta") \
1795                                                                            \
1796  product(uintx, YoungGenerationSizeIncrement, 20,                          \
1797          "Adaptive size percentage change in young generation")            \
1798                                                                            \
1799  product(uintx, YoungGenerationSizeSupplement, 80,                         \
1800          "Supplement to YoungedGenerationSizeIncrement used at startup")   \
1801                                                                            \
1802  product(uintx, YoungGenerationSizeSupplementDecay, 8,                     \
1803          "Decay factor to YoungedGenerationSizeSupplement")                \
1804                                                                            \
1805  product(uintx, TenuredGenerationSizeIncrement, 20,                        \
1806          "Adaptive size percentage change in tenured generation")          \
1807                                                                            \
1808  product(uintx, TenuredGenerationSizeSupplement, 80,                       \
1809          "Supplement to TenuredGenerationSizeIncrement used at startup")   \
1810                                                                            \
1811  product(uintx, TenuredGenerationSizeSupplementDecay, 2,                   \
1812          "Decay factor to TenuredGenerationSizeIncrement")                 \
1813                                                                            \
1814  product(uintx, MaxGCPauseMillis, max_uintx,                               \
1815          "Adaptive size policy maximum GC pause time goal in msec")        \
1816                                                                            \
1817  product(uintx, MaxGCMinorPauseMillis, max_uintx,                          \
1818          "Adaptive size policy maximum GC minor pause time goal in msec")  \
1819                                                                            \
1820  product(uintx, GCTimeRatio, 99,                                           \
1821          "Adaptive size policy application time to GC time ratio")         \
1822                                                                            \
1823  product(uintx, AdaptiveSizeDecrementScaleFactor, 4,                       \
1824          "Adaptive size scale down factor for shrinking")                  \
1825                                                                            \
1826  product(bool, UseAdaptiveSizeDecayMajorGCCost, true,                      \
1827          "Adaptive size decays the major cost for long major intervals")   \
1828                                                                            \
1829  product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10,                     \
1830          "Time scale over which major costs decay")                        \
1831                                                                            \
1832  product(uintx, MinSurvivorRatio, 3,                                       \
1833          "Minimum ratio of young generation/survivor space size")          \
1834                                                                            \
1835  product(uintx, InitialSurvivorRatio, 8,                                   \
1836          "Initial ratio of eden/survivor space size")                      \
1837                                                                            \
1838  product(uintx, BaseFootPrintEstimate, 256*M,                              \
1839          "Estimate of footprint other than Java Heap")                     \
1840                                                                            \
1841  product(bool, UseGCOverheadLimit, true,                                   \
1842          "Use policy to limit of proportion of time spent in GC "          \
1843          "before an OutOfMemory error is thrown")                          \
1844                                                                            \
1845  product(uintx, GCTimeLimit, 98,                                           \
1846          "Limit of proportion of time spent in GC before an OutOfMemory"   \
1847          "error is thrown (used with GCHeapFreeLimit)")                    \
1848                                                                            \
1849  product(uintx, GCHeapFreeLimit, 2,                                        \
1850          "Minimum percentage of free space after a full GC before an "     \
1851          "OutOfMemoryError is thrown (used with GCTimeLimit)")             \
1852                                                                            \
1853  develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5,                 \
1854          "Number of consecutive collections before gc time limit fires")   \
1855                                                                            \
1856  product(bool, PrintAdaptiveSizePolicy, false,                             \
1857          "Print information about AdaptiveSizePolicy")                     \
1858                                                                            \
1859  product(intx, PrefetchCopyIntervalInBytes, -1,                            \
1860          "How far ahead to prefetch destination area (<= 0 means off)")    \
1861                                                                            \
1862  product(intx, PrefetchScanIntervalInBytes, -1,                            \
1863          "How far ahead to prefetch scan area (<= 0 means off)")           \
1864                                                                            \
1865  product(intx, PrefetchFieldsAhead, -1,                                    \
1866          "How many fields ahead to prefetch in oop scan (<= 0 means off)") \
1867                                                                            \
1868  develop(bool, UsePrefetchQueue, true,                                     \
1869          "Use the prefetch queue during PS promotion")                     \
1870                                                                            \
1871  diagnostic(bool, VerifyBeforeExit, trueInDebug,                           \
1872          "Verify system before exiting")                                   \
1873                                                                            \
1874  diagnostic(bool, VerifyBeforeGC, false,                                   \
1875          "Verify memory system before GC")                                 \
1876                                                                            \
1877  diagnostic(bool, VerifyAfterGC, false,                                    \
1878          "Verify memory system after GC")                                  \
1879                                                                            \
1880  diagnostic(bool, VerifyDuringGC, false,                                   \
1881          "Verify memory system during GC (between phases)")                \
1882                                                                            \
1883  diagnostic(bool, GCParallelVerificationEnabled, true,                     \
1884          "Enable parallel memory system verification")                     \
1885                                                                            \
1886  diagnostic(bool, VerifyRememberedSets, false,                             \
1887          "Verify GC remembered sets")                                      \
1888                                                                            \
1889  diagnostic(bool, VerifyObjectStartArray, true,                            \
1890          "Verify GC object start array if verify before/after")            \
1891                                                                            \
1892  product(bool, DisableExplicitGC, false,                                   \
1893          "Tells whether calling System.gc() does a full GC")               \
1894                                                                            \
1895  notproduct(bool, CheckMemoryInitialization, false,                        \
1896          "Checks memory initialization")                                   \
1897                                                                            \
1898  product(bool, CollectGen0First, false,                                    \
1899          "Collect youngest generation before each full GC")                \
1900                                                                            \
1901  diagnostic(bool, BindCMSThreadToCPU, false,                               \
1902          "Bind CMS Thread to CPU if possible")                             \
1903                                                                            \
1904  diagnostic(uintx, CPUForCMSThread, 0,                                     \
1905          "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \
1906                                                                            \
1907  product(bool, BindGCTaskThreadsToCPUs, false,                             \
1908          "Bind GCTaskThreads to CPUs if possible")                         \
1909                                                                            \
1910  product(bool, UseGCTaskAffinity, false,                                   \
1911          "Use worker affinity when asking for GCTasks")                    \
1912                                                                            \
1913  product(uintx, ProcessDistributionStride, 4,                              \
1914          "Stride through processors when distributing processes")          \
1915                                                                            \
1916  product(uintx, CMSCoordinatorYieldSleepCount, 10,                         \
1917          "number of times the coordinator GC thread will sleep while "     \
1918          "yielding before giving up and resuming GC")                      \
1919                                                                            \
1920  product(uintx, CMSYieldSleepCount, 0,                                     \
1921          "number of times a GC thread (minus the coordinator) "            \
1922          "will sleep while yielding before giving up and resuming GC")     \
1923                                                                            \
1924  notproduct(bool, PrintFlagsFinal, false,                                  \
1925          "Print all command line flags after argument processing")         \
1926                                                                            \
1927  /* gc tracing */                                                          \
1928  manageable(bool, PrintGC, false,                                          \
1929          "Print message at garbage collect")                               \
1930                                                                            \
1931  manageable(bool, PrintGCDetails, false,                                   \
1932          "Print more details at garbage collect")                          \
1933                                                                            \
1934  manageable(bool, PrintGCDateStamps, false,                                \
1935          "Print date stamps at garbage collect")                           \
1936                                                                            \
1937  manageable(bool, PrintGCTimeStamps, false,                                \
1938          "Print timestamps at garbage collect")                            \
1939                                                                            \
1940  product(bool, PrintGCTaskTimeStamps, false,                               \
1941          "Print timestamps for individual gc worker thread tasks")         \
1942                                                                            \
1943  develop(intx, ConcGCYieldTimeout, 0,                                      \
1944          "If non-zero, assert that GC threads yield within this # of ms.") \
1945                                                                            \
1946  notproduct(bool, TraceMarkSweep, false,                                   \
1947          "Trace mark sweep")                                               \
1948                                                                            \
1949  product(bool, PrintReferenceGC, false,                                    \
1950          "Print times spent handling reference objects during GC "         \
1951          " (enabled only when PrintGCDetails)")                            \
1952                                                                            \
1953  develop(bool, TraceReferenceGC, false,                                    \
1954          "Trace handling of soft/weak/final/phantom references")           \
1955                                                                            \
1956  develop(bool, TraceFinalizerRegistration, false,                          \
1957         "Trace registration of final references")                          \
1958                                                                            \
1959  notproduct(bool, TraceScavenge, false,                                    \
1960          "Trace scavenge")                                                 \
1961                                                                            \
1962  product_rw(bool, TraceClassLoading, false,                                \
1963          "Trace all classes loaded")                                       \
1964                                                                            \
1965  product(bool, TraceClassLoadingPreorder, false,                           \
1966          "Trace all classes loaded in order referenced (not loaded)")      \
1967                                                                            \
1968  product_rw(bool, TraceClassUnloading, false,                              \
1969          "Trace unloading of classes")                                     \
1970                                                                            \
1971  product_rw(bool, TraceLoaderConstraints, false,                           \
1972          "Trace loader constraints")                                       \
1973                                                                            \
1974  product(bool, TraceGen0Time, false,                                       \
1975          "Trace accumulated time for Gen 0 collection")                    \
1976                                                                            \
1977  product(bool, TraceGen1Time, false,                                       \
1978          "Trace accumulated time for Gen 1 collection")                    \
1979                                                                            \
1980  product(bool, PrintTenuringDistribution, false,                           \
1981          "Print tenuring age information")                                 \
1982                                                                            \
1983  product_rw(bool, PrintHeapAtGC, false,                                    \
1984          "Print heap layout before and after each GC")                     \
1985                                                                            \
1986  product(bool, PrintHeapAtSIGBREAK, true,                                  \
1987          "Print heap layout in response to SIGBREAK")                      \
1988                                                                            \
1989  manageable(bool, PrintClassHistogramBeforeFullGC, false,                  \
1990          "Print a class histogram before any major stop-world GC")         \
1991                                                                            \
1992  manageable(bool, PrintClassHistogramAfterFullGC, false,                   \
1993          "Print a class histogram after any major stop-world GC")          \
1994                                                                            \
1995  manageable(bool, PrintClassHistogram, false,                              \
1996          "Print a histogram of class instances")                           \
1997                                                                            \
1998  develop(bool, TraceWorkGang, false,                                       \
1999          "Trace activities of work gangs")                                 \
2000                                                                            \
2001  product(bool, TraceParallelOldGCTasks, false,                             \
2002          "Trace multithreaded GC activity")                                \
2003                                                                            \
2004  develop(bool, TraceBlockOffsetTable, false,                               \
2005          "Print BlockOffsetTable maps")                                    \
2006                                                                            \
2007  develop(bool, TraceCardTableModRefBS, false,                              \
2008          "Print CardTableModRefBS maps")                                   \
2009                                                                            \
2010  develop(bool, TraceGCTaskManager, false,                                  \
2011          "Trace actions of the GC task manager")                           \
2012                                                                            \
2013  develop(bool, TraceGCTaskQueue, false,                                    \
2014          "Trace actions of the GC task queues")                            \
2015                                                                            \
2016  develop(bool, TraceGCTaskThread, false,                                   \
2017          "Trace actions of the GC task threads")                           \
2018                                                                            \
2019  product(bool, PrintParallelOldGCPhaseTimes, false,                        \
2020          "Print the time taken by each parallel old gc phase."             \
2021          "PrintGCDetails must also be enabled.")                           \
2022                                                                            \
2023  develop(bool, TraceParallelOldGCMarkingPhase, false,                      \
2024          "Trace parallel old gc marking phase")                            \
2025                                                                            \
2026  develop(bool, TraceParallelOldGCSummaryPhase, false,                      \
2027          "Trace parallel old gc summary phase")                            \
2028                                                                            \
2029  develop(bool, TraceParallelOldGCCompactionPhase, false,                   \
2030          "Trace parallel old gc compaction phase")                         \
2031                                                                            \
2032  develop(bool, TraceParallelOldGCDensePrefix, false,                       \
2033          "Trace parallel old gc dense prefix computation")                 \
2034                                                                            \
2035  develop(bool, IgnoreLibthreadGPFault, false,                              \
2036          "Suppress workaround for libthread GP fault")                     \
2037                                                                            \
2038  product(bool, PrintJNIGCStalls, false,                                    \
2039          "Print diagnostic message when GC is stalled"                     \
2040          "by JNI critical section")                                        \
2041                                                                            \
2042  /* JVMTI heap profiling */                                                \
2043                                                                            \
2044  diagnostic(bool, TraceJVMTIObjectTagging, false,                          \
2045          "Trace JVMTI object tagging calls")                               \
2046                                                                            \
2047  diagnostic(bool, VerifyBeforeIteration, false,                            \
2048          "Verify memory system before JVMTI iteration")                    \
2049                                                                            \
2050  /* compiler interface */                                                  \
2051                                                                            \
2052  develop(bool, CIPrintCompilerName, false,                                 \
2053          "when CIPrint is active, print the name of the active compiler")  \
2054                                                                            \
2055  develop(bool, CIPrintCompileQueue, false,                                 \
2056          "display the contents of the compile queue whenever a "           \
2057          "compilation is enqueued")                                        \
2058                                                                            \
2059  develop(bool, CIPrintRequests, false,                                     \
2060          "display every request for compilation")                          \
2061                                                                            \
2062  product(bool, CITime, false,                                              \
2063          "collect timing information for compilation")                     \
2064                                                                            \
2065  develop(bool, CITimeEach, false,                                          \
2066          "display timing information after each successful compilation")   \
2067                                                                            \
2068  develop(bool, CICountOSR, true,                                           \
2069          "use a separate counter when assigning ids to osr compilations")  \
2070                                                                            \
2071  develop(bool, CICompileNatives, true,                                     \
2072          "compile native methods if supported by the compiler")            \
2073                                                                            \
2074  develop_pd(bool, CICompileOSR,                                            \
2075          "compile on stack replacement methods if supported by the "       \
2076          "compiler")                                                       \
2077                                                                            \
2078  develop(bool, CIPrintMethodCodes, false,                                  \
2079          "print method bytecodes of the compiled code")                    \
2080                                                                            \
2081  develop(bool, CIPrintTypeFlow, false,                                     \
2082          "print the results of ciTypeFlow analysis")                       \
2083                                                                            \
2084  develop(bool, CITraceTypeFlow, false,                                     \
2085          "detailed per-bytecode tracing of ciTypeFlow analysis")           \
2086                                                                            \
2087  develop(intx, CICloneLoopTestLimit, 100,                                  \
2088          "size limit for blocks heuristically cloned in ciTypeFlow")       \
2089                                                                            \
2090  /* temp diagnostics */                                                    \
2091                                                                            \
2092  diagnostic(bool, TraceRedundantCompiles, false,                           \
2093          "Have compile broker print when a request already in the queue is"\
2094          " requested again")                                               \
2095                                                                            \
2096  diagnostic(bool, InitialCompileFast, false,                               \
2097          "Initial compile at CompLevel_fast_compile")                      \
2098                                                                            \
2099  diagnostic(bool, InitialCompileReallyFast, false,                         \
2100          "Initial compile at CompLevel_really_fast_compile (no profile)")  \
2101                                                                            \
2102  diagnostic(bool, FullProfileOnReInterpret, true,                          \
2103          "On re-interpret unc-trap compile next at CompLevel_fast_compile")\
2104                                                                            \
2105  /* compiler */                                                            \
2106                                                                            \
2107  product(intx, CICompilerCount, CI_COMPILER_COUNT,                         \
2108          "Number of compiler threads to run")                              \
2109                                                                            \
2110  product(intx, CompilationPolicyChoice, 0,                                 \
2111          "which compilation policy (0/1)")                                 \
2112                                                                            \
2113  develop(bool, UseStackBanging, true,                                      \
2114          "use stack banging for stack overflow checks (required for "      \
2115          "proper StackOverflow handling; disable only to measure cost "    \
2116          "of stackbanging)")                                               \
2117                                                                            \
2118  develop(bool, Use24BitFPMode, true,                                       \
2119          "Set 24-bit FPU mode on a per-compile basis ")                    \
2120                                                                            \
2121  develop(bool, Use24BitFP, true,                                           \
2122          "use FP instructions that produce 24-bit precise results")        \
2123                                                                            \
2124  develop(bool, UseStrictFP, true,                                          \
2125          "use strict fp if modifier strictfp is set")                      \
2126                                                                            \
2127  develop(bool, GenerateSynchronizationCode, true,                          \
2128          "generate locking/unlocking code for synchronized methods and "   \
2129          "monitors")                                                       \
2130                                                                            \
2131  develop(bool, GenerateCompilerNullChecks, true,                           \
2132          "Generate explicit null checks for loads/stores/calls")           \
2133                                                                            \
2134  develop(bool, GenerateRangeChecks, true,                                  \
2135          "Generate range checks for array accesses")                       \
2136                                                                            \
2137  develop_pd(bool, ImplicitNullChecks,                                      \
2138          "generate code for implicit null checks")                         \
2139                                                                            \
2140  product(bool, PrintSafepointStatistics, false,                            \
2141          "print statistics about safepoint synchronization")               \
2142                                                                            \
2143  product(intx, PrintSafepointStatisticsCount, 300,                         \
2144          "total number of safepoint statistics collected "                 \
2145          "before printing them out")                                       \
2146                                                                            \
2147  product(intx, PrintSafepointStatisticsTimeout,  -1,                       \
2148          "print safepoint statistics only when safepoint takes"            \
2149          " more than PrintSafepointSatisticsTimeout in millis")            \
2150                                                                            \
2151  develop(bool, InlineAccessors, true,                                      \
2152          "inline accessor methods (get/set)")                              \
2153                                                                            \
2154  product(bool, Inline, true,                                               \
2155          "enable inlining")                                                \
2156                                                                            \
2157  product(bool, ClipInlining, true,                                         \
2158          "clip inlining if aggregate method exceeds DesiredMethodLimit")   \
2159                                                                            \
2160  develop(bool, UseCHA, true,                                               \
2161          "enable CHA")                                                     \
2162                                                                            \
2163  product(bool, UseTypeProfile, true,                                       \
2164          "Check interpreter profile for historically monomorphic calls")   \
2165                                                                            \
2166  product(intx, TypeProfileMajorReceiverPercent, 90,                        \
2167          "% of major receiver type to all profiled receivers")             \
2168                                                                            \
2169  notproduct(bool, TimeCompiler, false,                                     \
2170          "time the compiler")                                              \
2171                                                                            \
2172  notproduct(bool, TimeCompiler2, false,                                    \
2173          "detailed time the compiler (requires +TimeCompiler)")            \
2174                                                                            \
2175  diagnostic(bool, PrintInlining, false,                                    \
2176          "prints inlining optimizations")                                  \
2177                                                                            \
2178  diagnostic(bool, PrintIntrinsics, false,                                  \
2179          "prints attempted and successful inlining of intrinsics")         \
2180                                                                            \
2181  product(bool, UsePopCountInstruction, false,                              \
2182          "Use population count instruction")                               \
2183                                                                            \
2184  diagnostic(ccstrlist, DisableIntrinsic, "",                               \
2185          "do not expand intrinsics whose (internal) names appear here")    \
2186                                                                            \
2187  develop(bool, StressReflectiveCode, false,                                \
2188          "Use inexact types at allocations, etc., to test reflection")     \
2189                                                                            \
2190  develop(bool, EagerInitialization, false,                                 \
2191          "Eagerly initialize classes if possible")                         \
2192                                                                            \
2193  product(bool, Tier1UpdateMethodData, trueInTiered,                        \
2194          "Update methodDataOops in Tier1-generated code")                  \
2195                                                                            \
2196  develop(bool, TraceMethodReplacement, false,                              \
2197          "Print when methods are replaced do to recompilation")            \
2198                                                                            \
2199  develop(bool, PrintMethodFlushing, false,                                 \
2200          "print the nmethods being flushed")                               \
2201                                                                            \
2202  notproduct(bool, LogMultipleMutexLocking, false,                          \
2203          "log locking and unlocking of mutexes (only if multiple locks "   \
2204          "are held)")                                                      \
2205                                                                            \
2206  develop(bool, UseRelocIndex, false,                                       \
2207         "use an index to speed random access to relocations")              \
2208                                                                            \
2209  develop(bool, StressCodeBuffers, false,                                   \
2210         "Exercise code buffer expansion and other rare state changes")     \
2211                                                                            \
2212  diagnostic(bool, DebugNonSafepoints, trueInDebug,                         \
2213         "Generate extra debugging info for non-safepoints in nmethods")    \
2214                                                                            \
2215  diagnostic(bool, DebugInlinedCalls, true,                                 \
2216         "If false, restricts profiled locations to the root method only")  \
2217                                                                            \
2218  product(bool, PrintVMOptions, trueInDebug,                                \
2219         "print VM flag settings")                                          \
2220                                                                            \
2221  product(bool, IgnoreUnrecognizedVMOptions, false,                         \
2222         "Ignore unrecognized VM options")                                  \
2223                                                                            \
2224  diagnostic(bool, SerializeVMOutput, true,                                 \
2225         "Use a mutex to serialize output to tty and hotspot.log")          \
2226                                                                            \
2227  diagnostic(bool, DisplayVMOutput, true,                                   \
2228         "Display all VM output on the tty, independently of LogVMOutput")  \
2229                                                                            \
2230  diagnostic(bool, LogVMOutput, trueInDebug,                                \
2231         "Save VM output to hotspot.log, or to LogFile")                    \
2232                                                                            \
2233  diagnostic(ccstr, LogFile, NULL,                                          \
2234         "If LogVMOutput is on, save VM output to this file [hotspot.log]") \
2235                                                                            \
2236  product(ccstr, ErrorFile, NULL,                                           \
2237         "If an error occurs, save the error data to this file "            \
2238         "[default: ./hs_err_pid%p.log] (%p replaced with pid)")            \
2239                                                                            \
2240  product(bool, DisplayVMOutputToStderr, false,                             \
2241         "If DisplayVMOutput is true, display all VM output to stderr")     \
2242                                                                            \
2243  product(bool, DisplayVMOutputToStdout, false,                             \
2244         "If DisplayVMOutput is true, display all VM output to stdout")     \
2245                                                                            \
2246  product(bool, UseHeavyMonitors, false,                                    \
2247          "use heavyweight instead of lightweight Java monitors")           \
2248                                                                            \
2249  notproduct(bool, PrintSymbolTableSizeHistogram, false,                    \
2250          "print histogram of the symbol table")                            \
2251                                                                            \
2252  notproduct(bool, ExitVMOnVerifyError, false,                              \
2253          "standard exit from VM if bytecode verify error "                 \
2254          "(only in debug mode)")                                           \
2255                                                                            \
2256  notproduct(ccstr, AbortVMOnException, NULL,                               \
2257          "Call fatal if this exception is thrown.  Example: "              \
2258          "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
2259                                                                            \
2260  develop(bool, DebugVtables, false,                                        \
2261          "add debugging code to vtable dispatch")                          \
2262                                                                            \
2263  develop(bool, PrintVtables, false,                                        \
2264          "print vtables when printing klass")                              \
2265                                                                            \
2266  notproduct(bool, PrintVtableStats, false,                                 \
2267          "print vtables stats at end of run")                              \
2268                                                                            \
2269  develop(bool, TraceCreateZombies, false,                                  \
2270          "trace creation of zombie nmethods")                              \
2271                                                                            \
2272  notproduct(bool, IgnoreLockingAssertions, false,                          \
2273          "disable locking assertions (for speed)")                         \
2274                                                                            \
2275  notproduct(bool, VerifyLoopOptimizations, false,                          \
2276          "verify major loop optimizations")                                \
2277                                                                            \
2278  product(bool, RangeCheckElimination, true,                                \
2279          "Split loop iterations to eliminate range checks")                \
2280                                                                            \
2281  develop_pd(bool, UncommonNullCast,                                        \
2282          "track occurrences of null in casts; adjust compiler tactics")    \
2283                                                                            \
2284  develop(bool, TypeProfileCasts,  true,                                    \
2285          "treat casts like calls for purposes of type profiling")          \
2286                                                                            \
2287  develop(bool, MonomorphicArrayCheck, true,                                \
2288          "Uncommon-trap array store checks that require full type check")  \
2289                                                                            \
2290  develop(bool, DelayCompilationDuringStartup, true,                        \
2291          "Delay invoking the compiler until main application class is "    \
2292          "loaded")                                                         \
2293                                                                            \
2294  develop(bool, CompileTheWorld, false,                                     \
2295          "Compile all methods in all classes in bootstrap class path "     \
2296          "(stress test)")                                                  \
2297                                                                            \
2298  develop(bool, CompileTheWorldPreloadClasses, true,                        \
2299          "Preload all classes used by a class before start loading")       \
2300                                                                            \
2301  notproduct(bool, CompileTheWorldIgnoreInitErrors, false,                  \
2302          "Compile all methods although class initializer failed")          \
2303                                                                            \
2304  develop(bool, TraceIterativeGVN, false,                                   \
2305          "Print progress during Iterative Global Value Numbering")         \
2306                                                                            \
2307  develop(bool, FillDelaySlots, true,                                       \
2308          "Fill delay slots (on SPARC only)")                               \
2309                                                                            \
2310  develop(bool, VerifyIterativeGVN, false,                                  \
2311          "Verify Def-Use modifications during sparse Iterative Global "    \
2312          "Value Numbering")                                                \
2313                                                                            \
2314  notproduct(bool, TracePhaseCCP, false,                                    \
2315          "Print progress during Conditional Constant Propagation")         \
2316                                                                            \
2317  develop(bool, TimeLivenessAnalysis, false,                                \
2318          "Time computation of bytecode liveness analysis")                 \
2319                                                                            \
2320  develop(bool, TraceLivenessGen, false,                                    \
2321          "Trace the generation of liveness analysis information")          \
2322                                                                            \
2323  notproduct(bool, TraceLivenessQuery, false,                               \
2324          "Trace queries of liveness analysis information")                 \
2325                                                                            \
2326  notproduct(bool, CollectIndexSetStatistics, false,                        \
2327          "Collect information about IndexSets")                            \
2328                                                                            \
2329  develop(bool, PrintDominators, false,                                     \
2330          "Print out dominator trees for GVN")                              \
2331                                                                            \
2332  develop(bool, UseLoopSafepoints, true,                                    \
2333          "Generate Safepoint nodes in every loop")                         \
2334                                                                            \
2335  notproduct(bool, TraceCISCSpill, false,                                   \
2336          "Trace allocators use of cisc spillable instructions")            \
2337                                                                            \
2338  notproduct(bool, TraceSpilling, false,                                    \
2339          "Trace spilling")                                                 \
2340                                                                            \
2341  develop(bool, DeutschShiffmanExceptions, true,                            \
2342          "Fast check to find exception handler for precisely typed "       \
2343          "exceptions")                                                     \
2344                                                                            \
2345  product(bool, SplitIfBlocks, true,                                        \
2346          "Clone compares and control flow through merge points to fold "   \
2347          "some branches")                                                  \
2348                                                                            \
2349  develop(intx, FastAllocateSizeLimit, 128*K,                               \
2350          /* Note:  This value is zero mod 1<<13 for a cheap sparc set. */  \
2351          "Inline allocations larger than this in doublewords must go slow")\
2352                                                                            \
2353  product(bool, AggressiveOpts, false,                                      \
2354          "Enable aggressive optimizations - see arguments.cpp")            \
2355                                                                            \
2356  product(bool, UseStringCache, false,                                      \
2357          "Enable String cache capabilities on String.java")                \
2358                                                                            \
2359  /* statistics */                                                          \
2360  develop(bool, UseVTune, false,                                            \
2361          "enable support for Intel's VTune profiler")                      \
2362                                                                            \
2363  develop(bool, CountCompiledCalls, false,                                  \
2364          "counts method invocations")                                      \
2365                                                                            \
2366  notproduct(bool, CountRuntimeCalls, false,                                \
2367          "counts VM runtime calls")                                        \
2368                                                                            \
2369  develop(bool, CountJNICalls, false,                                       \
2370          "counts jni method invocations")                                  \
2371                                                                            \
2372  notproduct(bool, CountJVMCalls, false,                                    \
2373          "counts jvm method invocations")                                  \
2374                                                                            \
2375  notproduct(bool, CountRemovableExceptions, false,                         \
2376          "count exceptions that could be replaced by branches due to "     \
2377          "inlining")                                                       \
2378                                                                            \
2379  notproduct(bool, ICMissHistogram, false,                                  \
2380          "produce histogram of IC misses")                                 \
2381                                                                            \
2382  notproduct(bool, PrintClassStatistics, false,                             \
2383          "prints class statistics at end of run")                          \
2384                                                                            \
2385  notproduct(bool, PrintMethodStatistics, false,                            \
2386          "prints method statistics at end of run")                         \
2387                                                                            \
2388  /* interpreter */                                                         \
2389  develop(bool, ClearInterpreterLocals, false,                              \
2390          "Always clear local variables of interpreter activations upon "   \
2391          "entry")                                                          \
2392                                                                            \
2393  product_pd(bool, RewriteBytecodes,                                        \
2394          "Allow rewriting of bytecodes (bytecodes are not immutable)")     \
2395                                                                            \
2396  product_pd(bool, RewriteFrequentPairs,                                    \
2397          "Rewrite frequently used bytecode pairs into a single bytecode")  \
2398                                                                            \
2399  diagnostic(bool, PrintInterpreter, false,                                 \
2400          "Prints the generated interpreter code")                          \
2401                                                                            \
2402  product(bool, UseInterpreter, true,                                       \
2403          "Use interpreter for non-compiled methods")                       \
2404                                                                            \
2405  develop(bool, UseFastSignatureHandlers, true,                             \
2406          "Use fast signature handlers for native calls")                   \
2407                                                                            \
2408  develop(bool, UseV8InstrsOnly, false,                                     \
2409          "Use SPARC-V8 Compliant instruction subset")                      \
2410                                                                            \
2411  product(bool, UseNiagaraInstrs, false,                                    \
2412          "Use Niagara-efficient instruction subset")                       \
2413                                                                            \
2414  develop(bool, UseCASForSwap, false,                                       \
2415          "Do not use swap instructions, but only CAS (in a loop) on SPARC")\
2416                                                                            \
2417  product(bool, UseLoopCounter, true,                                       \
2418          "Increment invocation counter on backward branch")                \
2419                                                                            \
2420  product(bool, UseFastEmptyMethods, true,                                  \
2421          "Use fast method entry code for empty methods")                   \
2422                                                                            \
2423  product(bool, UseFastAccessorMethods, true,                               \
2424          "Use fast method entry code for accessor methods")                \
2425                                                                            \
2426  product_pd(bool, UseOnStackReplacement,                                   \
2427           "Use on stack replacement, calls runtime if invoc. counter "     \
2428           "overflows in loop")                                             \
2429                                                                            \
2430  notproduct(bool, TraceOnStackReplacement, false,                          \
2431          "Trace on stack replacement")                                     \
2432                                                                            \
2433  develop(bool, PoisonOSREntry, true,                                       \
2434           "Detect abnormal calls to OSR code")                             \
2435                                                                            \
2436  product_pd(bool, PreferInterpreterNativeStubs,                            \
2437          "Use always interpreter stubs for native methods invoked via "    \
2438          "interpreter")                                                    \
2439                                                                            \
2440  develop(bool, CountBytecodes, false,                                      \
2441          "Count number of bytecodes executed")                             \
2442                                                                            \
2443  develop(bool, PrintBytecodeHistogram, false,                              \
2444          "Print histogram of the executed bytecodes")                      \
2445                                                                            \
2446  develop(bool, PrintBytecodePairHistogram, false,                          \
2447          "Print histogram of the executed bytecode pairs")                 \
2448                                                                            \
2449  diagnostic(bool, PrintSignatureHandlers, false,                           \
2450          "Print code generated for native method signature handlers")      \
2451                                                                            \
2452  develop(bool, VerifyOops, false,                                          \
2453          "Do plausibility checks for oops")                                \
2454                                                                            \
2455  develop(bool, CheckUnhandledOops, false,                                  \
2456          "Check for unhandled oops in VM code")                            \
2457                                                                            \
2458  develop(bool, VerifyJNIFields, trueInDebug,                               \
2459          "Verify jfieldIDs for instance fields")                           \
2460                                                                            \
2461  notproduct(bool, VerifyJNIEnvThread, false,                               \
2462          "Verify JNIEnv.thread == Thread::current() when entering VM "     \
2463          "from JNI")                                                       \
2464                                                                            \
2465  develop(bool, VerifyFPU, false,                                           \
2466          "Verify FPU state (check for NaN's, etc.)")                       \
2467                                                                            \
2468  develop(bool, VerifyThread, false,                                        \
2469          "Watch the thread register for corruption (SPARC only)")          \
2470                                                                            \
2471  develop(bool, VerifyActivationFrameSize, false,                           \
2472          "Verify that activation frame didn't become smaller than its "    \
2473          "minimal size")                                                   \
2474                                                                            \
2475  develop(bool, TraceFrequencyInlining, false,                              \
2476          "Trace frequency based inlining")                                 \
2477                                                                            \
2478  notproduct(bool, TraceTypeProfile, false,                                 \
2479          "Trace type profile")                                             \
2480                                                                            \
2481  develop_pd(bool, InlineIntrinsics,                                        \
2482           "Inline intrinsics that can be statically resolved")             \
2483                                                                            \
2484  product_pd(bool, ProfileInterpreter,                                      \
2485           "Profile at the bytecode level during interpretation")           \
2486                                                                            \
2487  develop_pd(bool, ProfileTraps,                                            \
2488          "Profile deoptimization traps at the bytecode level")             \
2489                                                                            \
2490  product(intx, ProfileMaturityPercentage, 20,                              \
2491          "number of method invocations/branches (expressed as % of "       \
2492          "CompileThreshold) before using the method's profile")            \
2493                                                                            \
2494  develop(bool, PrintMethodData, false,                                     \
2495           "Print the results of +ProfileInterpreter at end of run")        \
2496                                                                            \
2497  develop(bool, VerifyDataPointer, trueInDebug,                             \
2498          "Verify the method data pointer during interpreter profiling")    \
2499                                                                            \
2500  develop(bool, VerifyCompiledCode, false,                                  \
2501          "Include miscellaneous runtime verifications in nmethod code; "   \
2502          "off by default because it disturbs nmethod size heuristics.")    \
2503                                                                            \
2504                                                                            \
2505  /* compilation */                                                         \
2506  product(bool, UseCompiler, true,                                          \
2507          "use compilation")                                                \
2508                                                                            \
2509  develop(bool, TraceCompilationPolicy, false,                              \
2510          "Trace compilation policy")                                       \
2511                                                                            \
2512  develop(bool, TimeCompilationPolicy, false,                               \
2513          "Time the compilation policy")                                    \
2514                                                                            \
2515  product(bool, UseCounterDecay, true,                                      \
2516           "adjust recompilation counters")                                 \
2517                                                                            \
2518  develop(intx, CounterHalfLifeTime,    30,                                 \
2519          "half-life time of invocation counters (in secs)")                \
2520                                                                            \
2521  develop(intx, CounterDecayMinIntervalLength,   500,                       \
2522          "Min. ms. between invocation of CounterDecay")                    \
2523                                                                            \
2524  product(bool, AlwaysCompileLoopMethods, false,                            \
2525          "when using recompilation, never interpret methods "              \
2526          "containing loops")                                               \
2527                                                                            \
2528  product(bool, DontCompileHugeMethods, true,                               \
2529          "don't compile methods > HugeMethodLimit")                        \
2530                                                                            \
2531  /* Bytecode escape analysis estimation. */                                \
2532  product(bool, EstimateArgEscape, true,                                    \
2533          "Analyze bytecodes to estimate escape state of arguments")        \
2534                                                                            \
2535  product(intx, BCEATraceLevel, 0,                                          \
2536          "How much tracing to do of bytecode escape analysis estimates")   \
2537                                                                            \
2538  product(intx, MaxBCEAEstimateLevel, 5,                                    \
2539          "Maximum number of nested calls that are analyzed by BC EA.")     \
2540                                                                            \
2541  product(intx, MaxBCEAEstimateSize, 150,                                   \
2542          "Maximum bytecode size of a method to be analyzed by BC EA.")     \
2543                                                                            \
2544  product(intx,  AllocatePrefetchStyle, 1,                                  \
2545          "0 = no prefetch, "                                               \
2546          "1 = prefetch instructions for each allocation, "                 \
2547          "2 = use TLAB watermark to gate allocation prefetch")             \
2548                                                                            \
2549  product(intx,  AllocatePrefetchDistance, -1,                              \
2550          "Distance to prefetch ahead of allocation pointer")               \
2551                                                                            \
2552  product(intx,  AllocatePrefetchLines, 1,                                  \
2553          "Number of lines to prefetch ahead of allocation pointer")        \
2554                                                                            \
2555  product(intx,  AllocatePrefetchStepSize, 16,                              \
2556          "Step size in bytes of sequential prefetch instructions")         \
2557                                                                            \
2558  product(intx,  AllocatePrefetchInstr, 0,                                  \
2559          "Prefetch instruction to prefetch ahead of allocation pointer")   \
2560                                                                            \
2561  product(intx,  ReadPrefetchInstr, 0,                                      \
2562          "Prefetch instruction to prefetch ahead")                         \
2563                                                                            \
2564  /* deoptimization */                                                      \
2565  develop(bool, TraceDeoptimization, false,                                 \
2566          "Trace deoptimization")                                           \
2567                                                                            \
2568  develop(bool, DebugDeoptimization, false,                                 \
2569          "Tracing various information while debugging deoptimization")     \
2570                                                                            \
2571  product(intx, SelfDestructTimer, 0,                                       \
2572          "Will cause VM to terminate after a given time (in minutes) "     \
2573          "(0 means off)")                                                  \
2574                                                                            \
2575  product(intx, MaxJavaStackTraceDepth, 1024,                               \
2576          "Max. no. of lines in the stack trace for Java exceptions "       \
2577          "(0 means all)")                                                  \
2578                                                                            \
2579  develop(intx, GuaranteedSafepointInterval, 1000,                          \
2580          "Guarantee a safepoint (at least) every so many milliseconds "    \
2581          "(0 means none)")                                                 \
2582                                                                            \
2583  product(intx, SafepointTimeoutDelay, 10000,                               \
2584          "Delay in milliseconds for option SafepointTimeout")              \
2585                                                                            \
2586  product(intx, NmethodSweepFraction, 4,                                    \
2587          "Number of invocations of sweeper to cover all nmethods")         \
2588                                                                            \
2589  notproduct(intx, MemProfilingInterval, 500,                               \
2590          "Time between each invocation of the MemProfiler")                \
2591                                                                            \
2592  develop(intx, MallocCatchPtr, -1,                                         \
2593          "Hit breakpoint when mallocing/freeing this pointer")             \
2594                                                                            \
2595  notproduct(intx, AssertRepeat, 1,                                         \
2596          "number of times to evaluate expression in assert "               \
2597          "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \
2598                                                                            \
2599  notproduct(ccstrlist, SuppressErrorAt, "",                                \
2600          "List of assertions (file:line) to muzzle")                       \
2601                                                                            \
2602  notproduct(uintx, HandleAllocationLimit, 1024,                            \
2603          "Threshold for HandleMark allocation when +TraceHandleAllocation "\
2604          "is used")                                                        \
2605                                                                            \
2606  develop(uintx, TotalHandleAllocationLimit, 1024,                          \
2607          "Threshold for total handle allocation when "                     \
2608          "+TraceHandleAllocation is used")                                 \
2609                                                                            \
2610  develop(intx, StackPrintLimit, 100,                                       \
2611          "number of stack frames to print in VM-level stack dump")         \
2612                                                                            \
2613  notproduct(intx, MaxElementPrintSize, 256,                                \
2614          "maximum number of elements to print")                            \
2615                                                                            \
2616  notproduct(intx, MaxSubklassPrintSize, 4,                                 \
2617          "maximum number of subklasses to print when printing klass")      \
2618                                                                            \
2619  develop(intx, MaxInlineLevel, 9,                                          \
2620          "maximum number of nested calls that are inlined")                \
2621                                                                            \
2622  develop(intx, MaxRecursiveInlineLevel, 1,                                 \
2623          "maximum number of nested recursive calls that are inlined")      \
2624                                                                            \
2625  product(intx, InlineSmallCode, 1000,                                      \
2626          "Only inline already compiled methods if their code size is "     \
2627          "less than this")                                                 \
2628                                                                            \
2629  product(intx, MaxInlineSize, 35,                                          \
2630          "maximum bytecode size of a method to be inlined")                \
2631                                                                            \
2632  product_pd(intx, FreqInlineSize,                                          \
2633          "maximum bytecode size of a frequent method to be inlined")       \
2634                                                                            \
2635  develop(intx, MaxTrivialSize, 6,                                          \
2636          "maximum bytecode size of a trivial method to be inlined")        \
2637                                                                            \
2638  develop(intx, MinInliningThreshold, 250,                                  \
2639          "min. invocation count a method needs to have to be inlined")     \
2640                                                                            \
2641  develop(intx, AlignEntryCode, 4,                                          \
2642          "aligns entry code to specified value (in bytes)")                \
2643                                                                            \
2644  develop(intx, MethodHistogramCutoff, 100,                                 \
2645          "cutoff value for method invoc. histogram (+CountCalls)")         \
2646                                                                            \
2647  develop(intx, ProfilerNumberOfInterpretedMethods, 25,                     \
2648          "# of interpreted methods to show in profile")                    \
2649                                                                            \
2650  develop(intx, ProfilerNumberOfCompiledMethods, 25,                        \
2651          "# of compiled methods to show in profile")                       \
2652                                                                            \
2653  develop(intx, ProfilerNumberOfStubMethods, 25,                            \
2654          "# of stub methods to show in profile")                           \
2655                                                                            \
2656  develop(intx, ProfilerNumberOfRuntimeStubNodes, 25,                       \
2657          "# of runtime stub nodes to show in profile")                     \
2658                                                                            \
2659  product(intx, ProfileIntervalsTicks, 100,                                 \
2660          "# of ticks between printing of interval profile "                \
2661          "(+ProfileIntervals)")                                            \
2662                                                                            \
2663  notproduct(intx, ScavengeALotInterval,     1,                             \
2664          "Interval between which scavenge will occur with +ScavengeALot")  \
2665                                                                            \
2666  notproduct(intx, FullGCALotInterval,     1,                               \
2667          "Interval between which full gc will occur with +FullGCALot")     \
2668                                                                            \
2669  notproduct(intx, FullGCALotStart,     0,                                  \
2670          "For which invocation to start FullGCAlot")                       \
2671                                                                            \
2672  notproduct(intx, FullGCALotDummies,  32*K,                                \
2673          "Dummy object allocated with +FullGCALot, forcing all objects "   \
2674          "to move")                                                        \
2675                                                                            \
2676  develop(intx, DontYieldALotInterval,    10,                               \
2677          "Interval between which yields will be dropped (milliseconds)")   \
2678                                                                            \
2679  develop(intx, MinSleepInterval,     1,                                    \
2680          "Minimum sleep() interval (milliseconds) when "                   \
2681          "ConvertSleepToYield is off (used for SOLARIS)")                  \
2682                                                                            \
2683  product(intx, EventLogLength,  2000,                                      \
2684          "maximum nof events in event log")                                \
2685                                                                            \
2686  develop(intx, ProfilerPCTickThreshold,    15,                             \
2687          "Number of ticks in a PC buckets to be a hotspot")                \
2688                                                                            \
2689  notproduct(intx, DeoptimizeALotInterval,     5,                           \
2690          "Number of exits until DeoptimizeALot kicks in")                  \
2691                                                                            \
2692  notproduct(intx, ZombieALotInterval,     5,                               \
2693          "Number of exits until ZombieALot kicks in")                      \
2694                                                                            \
2695  develop(bool, StressNonEntrant, false,                                    \
2696          "Mark nmethods non-entrant at registration")                      \
2697                                                                            \
2698  diagnostic(intx, MallocVerifyInterval,     0,                             \
2699          "if non-zero, verify C heap after every N calls to "              \
2700          "malloc/realloc/free")                                            \
2701                                                                            \
2702  diagnostic(intx, MallocVerifyStart,     0,                                \
2703          "if non-zero, start verifying C heap after Nth call to "          \
2704          "malloc/realloc/free")                                            \
2705                                                                            \
2706  product(intx, TypeProfileWidth,      2,                                   \
2707          "number of receiver types to record in call/cast profile")        \
2708                                                                            \
2709  develop(intx, BciProfileWidth,      2,                                    \
2710          "number of return bci's to record in ret profile")                \
2711                                                                            \
2712  product(intx, PerMethodRecompilationCutoff, 400,                          \
2713          "After recompiling N times, stay in the interpreter (-1=>'Inf')") \
2714                                                                            \
2715  product(intx, PerBytecodeRecompilationCutoff, 100,                        \
2716          "Per-BCI limit on repeated recompilation (-1=>'Inf')")            \
2717                                                                            \
2718  product(intx, PerMethodTrapLimit,  100,                                   \
2719          "Limit on traps (of one kind) in a method (includes inlines)")    \
2720                                                                            \
2721  product(intx, PerBytecodeTrapLimit,  4,                                   \
2722          "Limit on traps (of one kind) at a particular BCI")               \
2723                                                                            \
2724  develop(intx, FreqCountInvocations,  1,                                   \
2725          "Scaling factor for branch frequencies (deprecated)")             \
2726                                                                            \
2727  develop(intx, InlineFrequencyRatio,    20,                                \
2728          "Ratio of call site execution to caller method invocation")       \
2729                                                                            \
2730  develop_pd(intx, InlineFrequencyCount,                                    \
2731          "Count of call site execution necessary to trigger frequent "     \
2732          "inlining")                                                       \
2733                                                                            \
2734  develop(intx, InlineThrowCount,    50,                                    \
2735          "Force inlining of interpreted methods that throw this often")    \
2736                                                                            \
2737  develop(intx, InlineThrowMaxSize,   200,                                  \
2738          "Force inlining of throwing methods smaller than this")           \
2739                                                                            \
2740  product(intx, AliasLevel,     3,                                          \
2741          "0 for no aliasing, 1 for oop/field/static/array split, "         \
2742          "2 for class split, 3 for unique instances")                      \
2743                                                                            \
2744  develop(bool, VerifyAliases, false,                                       \
2745          "perform extra checks on the results of alias analysis")          \
2746                                                                            \
2747  develop(intx, ProfilerNodeSize,  1024,                                    \
2748          "Size in K to allocate for the Profile Nodes of each thread")     \
2749                                                                            \
2750  develop(intx, V8AtomicOperationUnderLockSpinCount,    50,                 \
2751          "Number of times to spin wait on a v8 atomic operation lock")     \
2752                                                                            \
2753  product(intx, ReadSpinIterations,   100,                                  \
2754          "Number of read attempts before a yield (spin inner loop)")       \
2755                                                                            \
2756  product_pd(intx, PreInflateSpin,                                          \
2757          "Number of times to spin wait before inflation")                  \
2758                                                                            \
2759  product(intx, PreBlockSpin,    10,                                        \
2760          "Number of times to spin in an inflated lock before going to "    \
2761          "an OS lock")                                                     \
2762                                                                            \
2763  /* gc parameters */                                                       \
2764  product(uintx, MaxHeapSize, ScaleForWordSize(64*M),                       \
2765          "Default maximum size for object heap (in bytes)")                \
2766                                                                            \
2767  product_pd(uintx, NewSize,                                                \
2768          "Default size of new generation (in bytes)")                      \
2769                                                                            \
2770  product(uintx, MaxNewSize, max_uintx,                                     \
2771          "Maximum size of new generation (in bytes)")                      \
2772                                                                            \
2773  product(uintx, PretenureSizeThreshold, 0,                                 \
2774          "Max size in bytes of objects allocated in DefNew generation")    \
2775                                                                            \
2776  product_pd(uintx, TLABSize,                                               \
2777          "Default (or starting) size of TLAB (in bytes)")                  \
2778                                                                            \
2779  product(uintx, MinTLABSize, 2*K,                                          \
2780          "Minimum allowed TLAB size (in bytes)")                           \
2781                                                                            \
2782  product(uintx, TLABAllocationWeight, 35,                                  \
2783          "Allocation averaging weight")                                    \
2784                                                                            \
2785  product(uintx, TLABWasteTargetPercent, 1,                                 \
2786          "Percentage of Eden that can be wasted")                          \
2787                                                                            \
2788  product(uintx, TLABRefillWasteFraction,    64,                            \
2789          "Max TLAB waste at a refill (internal fragmentation)")            \
2790                                                                            \
2791  product(uintx, TLABWasteIncrement,    4,                                  \
2792          "Increment allowed waste at slow allocation")                     \
2793                                                                            \
2794  product_pd(intx, SurvivorRatio,                                           \
2795          "Ratio of eden/survivor space size")                              \
2796                                                                            \
2797  product_pd(intx, NewRatio,                                                \
2798          "Ratio of new/old generation sizes")                              \
2799                                                                            \
2800  product(uintx, MaxLiveObjectEvacuationRatio, 100,                         \
2801          "Max percent of eden objects that will be live at scavenge")      \
2802                                                                            \
2803  product_pd(uintx, NewSizeThreadIncrease,                                  \
2804          "Additional size added to desired new generation size per "       \
2805          "non-daemon thread (in bytes)")                                   \
2806                                                                            \
2807  product(uintx, OldSize, ScaleForWordSize(4096*K),                         \
2808          "Default size of tenured generation (in bytes)")                  \
2809                                                                            \
2810  product_pd(uintx, PermSize,                                               \
2811          "Default size of permanent generation (in bytes)")                \
2812                                                                            \
2813  product_pd(uintx, MaxPermSize,                                            \
2814          "Maximum size of permanent generation (in bytes)")                \
2815                                                                            \
2816  product(uintx, MinHeapFreeRatio,    40,                                   \
2817          "Min percentage of heap free after GC to avoid expansion")        \
2818                                                                            \
2819  product(uintx, MaxHeapFreeRatio,    70,                                   \
2820          "Max percentage of heap free after GC to avoid shrinking")        \
2821                                                                            \
2822  product(intx, SoftRefLRUPolicyMSPerMB, 1000,                              \
2823          "Number of milliseconds per MB of free space in the heap")        \
2824                                                                            \
2825  product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K),                \
2826          "Min change in heap space due to GC (in bytes)")                  \
2827                                                                            \
2828  product(uintx, MinPermHeapExpansion, ScaleForWordSize(256*K),             \
2829          "Min expansion of permanent heap (in bytes)")                     \
2830                                                                            \
2831  product(uintx, MaxPermHeapExpansion, ScaleForWordSize(4*M),               \
2832          "Max expansion of permanent heap without full GC (in bytes)")     \
2833                                                                            \
2834  product(intx, QueuedAllocationWarningCount, 0,                            \
2835          "Number of times an allocation that queues behind a GC "          \
2836          "will retry before printing a warning")                           \
2837                                                                            \
2838  diagnostic(uintx, VerifyGCStartAt,   0,                                   \
2839          "GC invoke count where +VerifyBefore/AfterGC kicks in")           \
2840                                                                            \
2841  diagnostic(intx, VerifyGCLevel,     0,                                    \
2842          "Generation level at which to start +VerifyBefore/AfterGC")       \
2843                                                                            \
2844  develop(uintx, ExitAfterGCNum,   0,                                       \
2845          "If non-zero, exit after this GC.")                               \
2846                                                                            \
2847  product(intx, MaxTenuringThreshold,    15,                                \
2848          "Maximum value for tenuring threshold")                           \
2849                                                                            \
2850  product(intx, InitialTenuringThreshold,     7,                            \
2851          "Initial value for tenuring threshold")                           \
2852                                                                            \
2853  product(intx, TargetSurvivorRatio,    50,                                 \
2854          "Desired percentage of survivor space used after scavenge")       \
2855                                                                            \
2856  product(uintx, MarkSweepDeadRatio,     5,                                 \
2857          "Percentage (0-100) of the old gen allowed as dead wood."         \
2858          "Serial mark sweep treats this as both the min and max value."    \
2859          "CMS uses this value only if it falls back to mark sweep."        \
2860          "Par compact uses a variable scale based on the density of the"   \
2861          "generation and treats this as the max value when the heap is"    \
2862          "either completely full or completely empty.  Par compact also"   \
2863          "has a smaller default value; see arguments.cpp.")                \
2864                                                                            \
2865  product(uintx, PermMarkSweepDeadRatio,    20,                             \
2866          "Percentage (0-100) of the perm gen allowed as dead wood."        \
2867          "See MarkSweepDeadRatio for collector-specific comments.")        \
2868                                                                            \
2869  product(intx, MarkSweepAlwaysCompactCount,     4,                         \
2870          "How often should we fully compact the heap (ignoring the dead "  \
2871          "space parameters)")                                              \
2872                                                                            \
2873  product(intx, PrintCMSStatistics, 0,                                      \
2874          "Statistics for CMS")                                             \
2875                                                                            \
2876  product(bool, PrintCMSInitiationStatistics, false,                        \
2877          "Statistics for initiating a CMS collection")                     \
2878                                                                            \
2879  product(intx, PrintFLSStatistics, 0,                                      \
2880          "Statistics for CMS' FreeListSpace")                              \
2881                                                                            \
2882  product(intx, PrintFLSCensus, 0,                                          \
2883          "Census for CMS' FreeListSpace")                                  \
2884                                                                            \
2885  develop(uintx, GCExpandToAllocateDelayMillis, 0,                          \
2886          "Delay in ms between expansion and allocation")                   \
2887                                                                            \
2888  product(intx, DeferThrSuspendLoopCount,     4000,                         \
2889          "(Unstable) Number of times to iterate in safepoint loop "        \
2890          " before blocking VM threads ")                                   \
2891                                                                            \
2892  product(intx, DeferPollingPageLoopCount,     -1,                          \
2893          "(Unsafe,Unstable) Number of iterations in safepoint loop "       \
2894          "before changing safepoint polling page to RO ")                  \
2895                                                                            \
2896  product(intx, SafepointSpinBeforeYield, 2000,  "(Unstable)")              \
2897                                                                            \
2898  product(bool, UseDepthFirstScavengeOrder, true,                           \
2899          "true: the scavenge order will be depth-first, "                  \
2900          "false: the scavenge order will be breadth-first")                \
2901                                                                            \
2902  product(bool, PSChunkLargeArrays, true,                                   \
2903          "true: process large arrays in chunks")                           \
2904                                                                            \
2905  product(uintx, GCDrainStackTargetSize, 64,                                \
2906          "how many entries we'll try to leave on the stack during "        \
2907          "parallel GC")                                                    \
2908                                                                            \
2909  product(intx, DCQBarrierQueueBufferSize, 256,                             \
2910          "Number of elements in a dirty card queue buffer")                \
2911                                                                            \
2912  product(intx, DCQBarrierProcessCompletedThreshold, 5,                     \
2913          "Number of completed dirty card buffers to trigger processing.")  \
2914                                                                            \
2915  /* stack parameters */                                                    \
2916  product_pd(intx, StackYellowPages,                                        \
2917          "Number of yellow zone (recoverable overflows) pages")            \
2918                                                                            \
2919  product_pd(intx, StackRedPages,                                           \
2920          "Number of red zone (unrecoverable overflows) pages")             \
2921                                                                            \
2922  product_pd(intx, StackShadowPages,                                        \
2923          "Number of shadow zone (for overflow checking) pages"             \
2924          " this should exceed the depth of the VM and native call stack")  \
2925                                                                            \
2926  product_pd(intx, ThreadStackSize,                                         \
2927          "Thread Stack Size (in Kbytes)")                                  \
2928                                                                            \
2929  product_pd(intx, VMThreadStackSize,                                       \
2930          "Non-Java Thread Stack Size (in Kbytes)")                         \
2931                                                                            \
2932  product_pd(intx, CompilerThreadStackSize,                                 \
2933          "Compiler Thread Stack Size (in Kbytes)")                         \
2934                                                                            \
2935  develop_pd(uintx, JVMInvokeMethodSlack,                                   \
2936          "Stack space (bytes) required for JVM_InvokeMethod to complete")  \
2937                                                                            \
2938  product(uintx, ThreadSafetyMargin, 50*M,                                  \
2939          "Thread safety margin is used on fixed-stack LinuxThreads (on "   \
2940          "Linux/x86 only) to prevent heap-stack collision. Set to 0 to "   \
2941          "disable this feature")                                           \
2942                                                                            \
2943  /* code cache parameters */                                               \
2944  develop(uintx, CodeCacheSegmentSize, 64,                                  \
2945          "Code cache segment size (in bytes) - smallest unit of "          \
2946          "allocation")                                                     \
2947                                                                            \
2948  develop_pd(intx, CodeEntryAlignment,                                      \
2949          "Code entry alignment for generated code (in bytes)")             \
2950                                                                            \
2951  product_pd(uintx, InitialCodeCacheSize,                                   \
2952          "Initial code cache size (in bytes)")                             \
2953                                                                            \
2954  product_pd(uintx, ReservedCodeCacheSize,                                  \
2955          "Reserved code cache size (in bytes) - maximum code cache size")  \
2956                                                                            \
2957  product(uintx, CodeCacheMinimumFreeSpace, 500*K,                          \
2958          "When less than X space left, we stop compiling.")                \
2959                                                                            \
2960  product_pd(uintx, CodeCacheExpansionSize,                                 \
2961          "Code cache expansion size (in bytes)")                           \
2962                                                                            \
2963  develop_pd(uintx, CodeCacheMinBlockLength,                                \
2964          "Minimum number of segments in a code cache block.")              \
2965                                                                            \
2966  notproduct(bool, ExitOnFullCodeCache, false,                              \
2967          "Exit the VM if we fill the code cache.")                         \
2968                                                                            \
2969  /* interpreter debugging */                                               \
2970  develop(intx, BinarySwitchThreshold, 5,                                   \
2971          "Minimal number of lookupswitch entries for rewriting to binary " \
2972          "switch")                                                         \
2973                                                                            \
2974  develop(intx, StopInterpreterAt, 0,                                       \
2975          "Stops interpreter execution at specified bytecode number")       \
2976                                                                            \
2977  develop(intx, TraceBytecodesAt, 0,                                        \
2978          "Traces bytecodes starting with specified bytecode number")       \
2979                                                                            \
2980  /* compiler interface */                                                  \
2981  develop(intx, CIStart, 0,                                                 \
2982          "the id of the first compilation to permit")                      \
2983                                                                            \
2984  develop(intx, CIStop,    -1,                                              \
2985          "the id of the last compilation to permit")                       \
2986                                                                            \
2987  develop(intx, CIStartOSR,     0,                                          \
2988          "the id of the first osr compilation to permit "                  \
2989          "(CICountOSR must be on)")                                        \
2990                                                                            \
2991  develop(intx, CIStopOSR,    -1,                                           \
2992          "the id of the last osr compilation to permit "                   \
2993          "(CICountOSR must be on)")                                        \
2994                                                                            \
2995  develop(intx, CIBreakAtOSR,    -1,                                        \
2996          "id of osr compilation to break at")                              \
2997                                                                            \
2998  develop(intx, CIBreakAt,    -1,                                           \
2999          "id of compilation to break at")                                  \
3000                                                                            \
3001  product(ccstrlist, CompileOnly, "",                                       \
3002          "List of methods (pkg/class.name) to restrict compilation to")    \
3003                                                                            \
3004  product(ccstr, CompileCommandFile, NULL,                                  \
3005          "Read compiler commands from this file [.hotspot_compiler]")      \
3006                                                                            \
3007  product(ccstrlist, CompileCommand, "",                                    \
3008          "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
3009                                                                            \
3010  product(bool, CICompilerCountPerCPU, false,                               \
3011          "1 compiler thread for log(N CPUs)")                              \
3012                                                                            \
3013  develop(intx, CIFireOOMAt,    -1,                                         \
3014          "Fire OutOfMemoryErrors throughout CI for testing the compiler "  \
3015          "(non-negative value throws OOM after this many CI accesses "     \
3016          "in each compile)")                                               \
3017                                                                            \
3018  develop(intx, CIFireOOMAtDelay, -1,                                       \
3019          "Wait for this many CI accesses to occur in all compiles before " \
3020          "beginning to throw OutOfMemoryErrors in each compile")           \
3021                                                                            \
3022  /* Priorities */                                                          \
3023  product_pd(bool, UseThreadPriorities,  "Use native thread priorities")    \
3024                                                                            \
3025  product(intx, ThreadPriorityPolicy, 0,                                    \
3026          "0 : Normal.                                                     "\
3027          "    VM chooses priorities that are appropriate for normal       "\
3028          "    applications. On Solaris NORM_PRIORITY and above are mapped "\
3029          "    to normal native priority. Java priorities below NORM_PRIORITY"\
3030          "    map to lower native priority values. On Windows applications"\
3031          "    are allowed to use higher native priorities. However, with  "\
3032          "    ThreadPriorityPolicy=0, VM will not use the highest possible"\
3033          "    native priority, THREAD_PRIORITY_TIME_CRITICAL, as it may   "\
3034          "    interfere with system threads. On Linux thread priorities   "\
3035          "    are ignored because the OS does not support static priority "\
3036          "    in SCHED_OTHER scheduling class which is the only choice for"\
3037          "    non-root, non-realtime applications.                        "\
3038          "1 : Aggressive.                                                 "\
3039          "    Java thread priorities map over to the entire range of      "\
3040          "    native thread priorities. Higher Java thread priorities map "\
3041          "    to higher native thread priorities. This policy should be   "\
3042          "    used with care, as sometimes it can cause performance       "\
3043          "    degradation in the application and/or the entire system. On "\
3044          "    Linux this policy requires root privilege.")                 \
3045                                                                            \
3046  product(bool, ThreadPriorityVerbose, false,                               \
3047          "print priority changes")                                         \
3048                                                                            \
3049  product(intx, DefaultThreadPriority, -1,                                  \
3050          "what native priority threads run at if not specified elsewhere (-1 means no change)") \
3051                                                                            \
3052  product(intx, CompilerThreadPriority, -1,                                 \
3053          "what priority should compiler threads run at (-1 means no change)") \
3054                                                                            \
3055  product(intx, VMThreadPriority, -1,                                       \
3056          "what priority should VM threads run at (-1 means no change)")    \
3057                                                                            \
3058  product(bool, CompilerThreadHintNoPreempt, true,                          \
3059          "(Solaris only) Give compiler threads an extra quanta")           \
3060                                                                            \
3061  product(bool, VMThreadHintNoPreempt, false,                               \
3062          "(Solaris only) Give VM thread an extra quanta")                  \
3063                                                                            \
3064  product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3065  product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3066  product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3067  product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3068  product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3069  product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3070  product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3071  product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3072  product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3073  product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \
3074                                                                            \
3075  /* compiler debugging */                                                  \
3076  notproduct(intx, CompileTheWorldStartAt,     1,                           \
3077          "First class to consider when using +CompileTheWorld")            \
3078                                                                            \
3079  notproduct(intx, CompileTheWorldStopAt, max_jint,                         \
3080          "Last class to consider when using +CompileTheWorld")             \
3081                                                                            \
3082  develop(intx, NewCodeParameter,      0,                                   \
3083          "Testing Only: Create a dedicated integer parameter before "      \
3084          "putback")                                                        \
3085                                                                            \
3086  /* new oopmap storage allocation */                                       \
3087  develop(intx, MinOopMapAllocation,     8,                                 \
3088          "Minimum number of OopMap entries in an OopMapSet")               \
3089                                                                            \
3090  /* Background Compilation */                                              \
3091  develop(intx, LongCompileThreshold,     50,                               \
3092          "Used with +TraceLongCompiles")                                   \
3093                                                                            \
3094  product(intx, StarvationMonitorInterval,    200,                          \
3095          "Pause between each check in ms")                                 \
3096                                                                            \
3097  /* recompilation */                                                       \
3098  product_pd(intx, CompileThreshold,                                        \
3099          "number of interpreted method invocations before (re-)compiling") \
3100                                                                            \
3101  product_pd(intx, BackEdgeThreshold,                                       \
3102          "Interpreter Back edge threshold at which an OSR compilation is invoked")\
3103                                                                            \
3104  product(intx, Tier1BytecodeLimit,      10,                                \
3105          "Must have at least this many bytecodes before tier1"             \
3106          "invocation counters are used")                                   \
3107                                                                            \
3108  product_pd(intx, Tier2CompileThreshold,                                   \
3109          "threshold at which a tier 2 compilation is invoked")             \
3110                                                                            \
3111  product_pd(intx, Tier2BackEdgeThreshold,                                  \
3112          "Back edge threshold at which a tier 2 compilation is invoked")   \
3113                                                                            \
3114  product_pd(intx, Tier3CompileThreshold,                                   \
3115          "threshold at which a tier 3 compilation is invoked")             \
3116                                                                            \
3117  product_pd(intx, Tier3BackEdgeThreshold,                                  \
3118          "Back edge threshold at which a tier 3 compilation is invoked")   \
3119                                                                            \
3120  product_pd(intx, Tier4CompileThreshold,                                   \
3121          "threshold at which a tier 4 compilation is invoked")             \
3122                                                                            \
3123  product_pd(intx, Tier4BackEdgeThreshold,                                  \
3124          "Back edge threshold at which a tier 4 compilation is invoked")   \
3125                                                                            \
3126  product_pd(bool, TieredCompilation,                                       \
3127          "Enable two-tier compilation")                                    \
3128                                                                            \
3129  product(bool, StressTieredRuntime, false,                                 \
3130          "Alternate client and server compiler on compile requests")       \
3131                                                                            \
3132  product_pd(intx, OnStackReplacePercentage,                                \
3133          "NON_TIERED number of method invocations/branches (expressed as %"\
3134          "of CompileThreshold) before (re-)compiling OSR code")            \
3135                                                                            \
3136  product(intx, InterpreterProfilePercentage, 33,                           \
3137          "NON_TIERED number of method invocations/branches (expressed as %"\
3138          "of CompileThreshold) before profiling in the interpreter")       \
3139                                                                            \
3140  develop(intx, MaxRecompilationSearchLength,    10,                        \
3141          "max. # frames to inspect searching for recompilee")              \
3142                                                                            \
3143  develop(intx, MaxInterpretedSearchLength,     3,                          \
3144          "max. # interp. frames to skip when searching for recompilee")    \
3145                                                                            \
3146  develop(intx, DesiredMethodLimit,  8000,                                  \
3147          "desired max. method size (in bytecodes) after inlining")         \
3148                                                                            \
3149  develop(intx, HugeMethodLimit,  8000,                                     \
3150          "don't compile methods larger than this if "                      \
3151          "+DontCompileHugeMethods")                                        \
3152                                                                            \
3153  /* New JDK 1.4 reflection implementation */                               \
3154                                                                            \
3155  develop(bool, UseNewReflection, true,                                     \
3156          "Temporary flag for transition to reflection based on dynamic "   \
3157          "bytecode generation in 1.4; can no longer be turned off in 1.4 " \
3158          "JDK, and is unneeded in 1.3 JDK, but marks most places VM "      \
3159          "changes were needed")                                            \
3160                                                                            \
3161  develop(bool, VerifyReflectionBytecodes, false,                           \
3162          "Force verification of 1.4 reflection bytecodes. Does not work "  \
3163          "in situations like that described in 4486457 or for "            \
3164          "constructors generated for serialization, so can not be enabled "\
3165          "in product.")                                                    \
3166                                                                            \
3167  product(bool, ReflectionWrapResolutionErrors, true,                       \
3168          "Temporary flag for transition to AbstractMethodError wrapped "   \
3169          "in InvocationTargetException. See 6531596")                      \
3170                                                                            \
3171                                                                            \
3172  develop(intx, FastSuperclassLimit, 8,                                     \
3173          "Depth of hardwired instanceof accelerator array")                \
3174                                                                            \
3175  /* Properties for Java libraries  */                                      \
3176                                                                            \
3177  product(intx, MaxDirectMemorySize, -1,                                    \
3178          "Maximum total size of NIO direct-buffer allocations")            \
3179                                                                            \
3180  /* temporary developer defined flags  */                                  \
3181                                                                            \
3182  diagnostic(bool, UseNewCode, false,                                       \
3183          "Testing Only: Use the new version while testing")                \
3184                                                                            \
3185  diagnostic(bool, UseNewCode2, false,                                      \
3186          "Testing Only: Use the new version while testing")                \
3187                                                                            \
3188  diagnostic(bool, UseNewCode3, false,                                      \
3189          "Testing Only: Use the new version while testing")                \
3190                                                                            \
3191  /* flags for performance data collection */                               \
3192                                                                            \
3193  product(bool, UsePerfData, true,                                          \
3194          "Flag to disable jvmstat instrumentation for performance testing" \
3195          "and problem isolation purposes.")                                \
3196                                                                            \
3197  product(bool, PerfDataSaveToFile, false,                                  \
3198          "Save PerfData memory to hsperfdata_<pid> file on exit")          \
3199                                                                            \
3200  product(ccstr, PerfDataSaveFile, NULL,                                    \
3201          "Save PerfData memory to the specified absolute pathname,"        \
3202           "%p in the file name if present will be replaced by pid")        \
3203                                                                            \
3204  product(intx, PerfDataSamplingInterval, 50 /*ms*/,                        \
3205          "Data sampling interval in milliseconds")                         \
3206                                                                            \
3207  develop(bool, PerfTraceDataCreation, false,                               \
3208          "Trace creation of Performance Data Entries")                     \
3209                                                                            \
3210  develop(bool, PerfTraceMemOps, false,                                     \
3211          "Trace PerfMemory create/attach/detach calls")                    \
3212                                                                            \
3213  product(bool, PerfDisableSharedMem, false,                                \
3214          "Store performance data in standard memory")                      \
3215                                                                            \
3216  product(intx, PerfDataMemorySize, 32*K,                                   \
3217          "Size of performance data memory region. Will be rounded "        \
3218          "up to a multiple of the native os page size.")                   \
3219                                                                            \
3220  product(intx, PerfMaxStringConstLength, 1024,                             \
3221          "Maximum PerfStringConstant string length before truncation")     \
3222                                                                            \
3223  product(bool, PerfAllowAtExitRegistration, false,                         \
3224          "Allow registration of atexit() methods")                         \
3225                                                                            \
3226  product(bool, PerfBypassFileSystemCheck, false,                           \
3227          "Bypass Win32 file system criteria checks (Windows Only)")        \
3228                                                                            \
3229  product(intx, UnguardOnExecutionViolation, 0,                             \
3230          "Unguard page and retry on no-execute fault (Win32 only)"         \
3231          "0=off, 1=conservative, 2=aggressive")                            \
3232                                                                            \
3233  /* Serviceability Support */                                              \
3234                                                                            \
3235  product(bool, ManagementServer, false,                                    \
3236          "Create JMX Management Server")                                   \
3237                                                                            \
3238  product(bool, DisableAttachMechanism, false,                              \
3239         "Disable mechanism that allows tools to attach to this VM")        \
3240                                                                            \
3241  product(bool, StartAttachListener, false,                                 \
3242          "Always start Attach Listener at VM startup")                     \
3243                                                                            \
3244  manageable(bool, PrintConcurrentLocks, false,                             \
3245          "Print java.util.concurrent locks in thread dump")                \
3246                                                                            \
3247  /* Shared spaces */                                                       \
3248                                                                            \
3249  product(bool, UseSharedSpaces, true,                                      \
3250          "Use shared spaces in the permanent generation")                  \
3251                                                                            \
3252  product(bool, RequireSharedSpaces, false,                                 \
3253          "Require shared spaces in the permanent generation")              \
3254                                                                            \
3255  product(bool, ForceSharedSpaces, false,                                   \
3256          "Require shared spaces in the permanent generation")              \
3257                                                                            \
3258  product(bool, DumpSharedSpaces, false,                                    \
3259           "Special mode: JVM reads a class list, loads classes, builds "   \
3260            "shared spaces, and dumps the shared spaces to a file to be "   \
3261            "used in future JVM runs.")                                     \
3262                                                                            \
3263  product(bool, PrintSharedSpaces, false,                                   \
3264          "Print usage of shared spaces")                                   \
3265                                                                            \
3266  product(uintx, SharedDummyBlockSize, 512*M,                               \
3267          "Size of dummy block used to shift heap addresses (in bytes)")    \
3268                                                                            \
3269  product(uintx, SharedReadWriteSize,  12*M,                                \
3270          "Size of read-write space in permanent generation (in bytes)")    \
3271                                                                            \
3272  product(uintx, SharedReadOnlySize,    8*M,                                \
3273          "Size of read-only space in permanent generation (in bytes)")     \
3274                                                                            \
3275  product(uintx, SharedMiscDataSize,    4*M,                                \
3276          "Size of the shared data area adjacent to the heap (in bytes)")   \
3277                                                                            \
3278  product(uintx, SharedMiscCodeSize,    4*M,                                \
3279          "Size of the shared code area adjacent to the heap (in bytes)")   \
3280                                                                            \
3281  diagnostic(bool, SharedOptimizeColdStart, true,                           \
3282          "At dump time, order shared objects to achieve better "           \
3283          "cold startup time.")                                             \
3284                                                                            \
3285  develop(intx, SharedOptimizeColdStartPolicy, 2,                           \
3286          "Reordering policy for SharedOptimizeColdStart "                  \
3287          "0=favor classload-time locality, 1=balanced, "                   \
3288          "2=favor runtime locality")                                       \
3289                                                                            \
3290  diagnostic(bool, SharedSkipVerify, false,                                 \
3291          "Skip assert() and verify() which page-in unwanted shared "       \
3292          "objects. ")                                                      \
3293                                                                            \
3294  product(bool, AnonymousClasses, false,                                    \
3295          "support sun.misc.Unsafe.defineAnonymousClass")                   \
3296                                                                            \
3297  product(bool, TaggedStackInterpreter, false,                              \
3298          "Insert tags in interpreter execution stack for oopmap generaion")\
3299                                                                            \
3300  diagnostic(bool, PauseAtStartup,      false,                              \
3301          "Causes the VM to pause at startup time and wait for the pause "  \
3302          "file to be removed (default: ./vm.paused.<pid>)")                \
3303                                                                            \
3304  diagnostic(ccstr, PauseAtStartupFile, NULL,                               \
3305          "The file to create and for whose removal to await when pausing " \
3306          "at startup. (default: ./vm.paused.<pid>)")                       \
3307                                                                            \
3308  product(bool, ExtendedDTraceProbes,    false,                             \
3309          "Enable performance-impacting dtrace probes")                     \
3310                                                                            \
3311  product(bool, DTraceMethodProbes, false,                                  \
3312          "Enable dtrace probes for method-entry and method-exit")          \
3313                                                                            \
3314  product(bool, DTraceAllocProbes, false,                                   \
3315          "Enable dtrace probes for object allocation")                     \
3316                                                                            \
3317  product(bool, DTraceMonitorProbes, false,                                 \
3318          "Enable dtrace probes for monitor events")                        \
3319                                                                            \
3320  product(bool, RelaxAccessControlCheck, false,                             \
3321          "Relax the access control checks in the verifier")                \
3322                                                                            \
3323  diagnostic(bool, PrintDTraceDOF, false,                                   \
3324             "Print the DTrace DOF passed to the system for JSDT probes")   \
3325                                                                            \
3326  product(bool, UseVMInterruptibleIO, false,                                \
3327          "(Unstable, Solaris-specific) Thread interrupt before or with "   \
3328          "EINTR for I/O operations results in OS_INTRPT. The default value"\
3329          " of this flag is true for JDK 6 and earliers")
3330
3331
3332/*
3333 *  Macros for factoring of globals
3334 */
3335
3336// Interface macros
3337#define DECLARE_PRODUCT_FLAG(type, name, value, doc)    extern "C" type name;
3338#define DECLARE_PD_PRODUCT_FLAG(type, name, doc)        extern "C" type name;
3339#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name;
3340#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
3341#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name;
3342#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name;
3343#ifdef PRODUCT
3344#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)  const type name = value;
3345#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)      const type name = pd_##name;
3346#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)
3347#else
3348#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)  extern "C" type name;
3349#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)      extern "C" type name;
3350#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)  extern "C" type name;
3351#endif
3352// Special LP64 flags, product only needed for now.
3353#ifdef _LP64
3354#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
3355#else
3356#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value;
3357#endif // _LP64
3358
3359// Implementation macros
3360#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc)   type name = value;
3361#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc)       type name = pd_##name;
3362#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value;
3363#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value;
3364#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value;
3365#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value;
3366#ifdef PRODUCT
3367#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) /* flag name is constant */
3368#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)     /* flag name is constant */
3369#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)
3370#else
3371#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value;
3372#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)     type name = pd_##name;
3373#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value;
3374#endif
3375#ifdef _LP64
3376#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc)   type name = value;
3377#else
3378#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */
3379#endif // _LP64
3380
3381RUNTIME_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)
3382
3383RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)
3384