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