globals.hpp revision 3411:8b0a4867acf0
137Srgrimes/*
237Srgrimes * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
337Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4705Swollman *
5705Swollman * This code is free software; you can redistribute it and/or modify it
6705Swollman * under the terms of the GNU General Public License version 2 only, as
739139Sobrien * published by the Free Software Foundation.
846414Sghelmer *
980266Sdougb * This code is distributed in the hope that it will be useful, but WITHOUT
1080945Sdougb * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1180266Sdougb * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1239139Sobrien * version 2 for more details (a copy is included in the LICENSE file that
1339139Sobrien * accompanied this code).
1439139Sobrien *
1539139Sobrien * You should have received a copy of the GNU General Public License version
167685Sache * 2 along with this work; if not, write to the Free Software Foundation,
177685Sache * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1837Srgrimes *
1950472Speter * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20705Swollman * or visit www.oracle.com if you need additional information or have any
21705Swollman * questions.
227685Sache *
237685Sache */
2422009Sphk
257685Sache#ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
267685Sache#define SHARE_VM_RUNTIME_GLOBALS_HPP
2722009Sphk
287685Sache#include "utilities/debug.hpp"
297685Sache
307685Sache// use this for flags that are true per default in the tiered build
317685Sache// but false in non-tiered builds, and vice versa
3222009Sphk#ifdef TIERED
337685Sache#define  trueInTiered true
347685Sache#define falseInTiered false
3522009Sphk#else
36215249Stuexen#define  trueInTiered false
377685Sache#define falseInTiered true
387685Sache#endif
39215249Stuexen
407685Sache#ifdef TARGET_ARCH_x86
417685Sache# include "globals_x86.hpp"
427685Sache#endif
437685Sache#ifdef TARGET_ARCH_sparc
44215249Stuexen# include "globals_sparc.hpp"
457685Sache#endif
467685Sache#ifdef TARGET_ARCH_zero
477685Sache# include "globals_zero.hpp"
487685Sache#endif
497685Sache#ifdef TARGET_ARCH_arm
507685Sache# include "globals_arm.hpp"
51215249Stuexen#endif
527685Sache#ifdef TARGET_ARCH_ppc
537685Sache# include "globals_ppc.hpp"
54215249Stuexen#endif
557685Sache#ifdef TARGET_OS_FAMILY_linux
567685Sache# include "globals_linux.hpp"
57215249Stuexen#endif
587685Sache#ifdef TARGET_OS_FAMILY_solaris
597685Sache# include "globals_solaris.hpp"
60215249Stuexen#endif
61131994Scperciva#ifdef TARGET_OS_FAMILY_windows
62131994Scperciva# include "globals_windows.hpp"
637685Sache#endif
647685Sache#ifdef TARGET_OS_FAMILY_bsd
657685Sache# include "globals_bsd.hpp"
667685Sache#endif
677685Sache#ifdef TARGET_OS_ARCH_linux_x86
687685Sache# include "globals_linux_x86.hpp"
697685Sache#endif
707685Sache#ifdef TARGET_OS_ARCH_linux_sparc
717685Sache# include "globals_linux_sparc.hpp"
727685Sache#endif
737685Sache#ifdef TARGET_OS_ARCH_linux_zero
747685Sache# include "globals_linux_zero.hpp"
757685Sache#endif
767685Sache#ifdef TARGET_OS_ARCH_solaris_x86
777685Sache# include "globals_solaris_x86.hpp"
787685Sache#endif
797685Sache#ifdef TARGET_OS_ARCH_solaris_sparc
807685Sache# include "globals_solaris_sparc.hpp"
817685Sache#endif
827685Sache#ifdef TARGET_OS_ARCH_windows_x86
837685Sache# include "globals_windows_x86.hpp"
847685Sache#endif
857685Sache#ifdef TARGET_OS_ARCH_linux_arm
867685Sache# include "globals_linux_arm.hpp"
877685Sache#endif
887685Sache#ifdef TARGET_OS_ARCH_linux_ppc
897685Sache# include "globals_linux_ppc.hpp"
907685Sache#endif
917685Sache#ifdef TARGET_OS_ARCH_bsd_x86
927685Sache# include "globals_bsd_x86.hpp"
937685Sache#endif
947685Sache#ifdef TARGET_OS_ARCH_bsd_zero
957685Sache# include "globals_bsd_zero.hpp"
967685Sache#endif
977685Sache#ifdef COMPILER1
987685Sache#ifdef TARGET_ARCH_x86
997685Sache# include "c1_globals_x86.hpp"
1007685Sache#endif
101131994Scperciva#ifdef TARGET_ARCH_sparc
102131994Scperciva# include "c1_globals_sparc.hpp"
1037685Sache#endif
1047685Sache#ifdef TARGET_ARCH_arm
1057685Sache# include "c1_globals_arm.hpp"
1067685Sache#endif
1077685Sache#ifdef TARGET_ARCH_ppc
1087685Sache# include "c1_globals_ppc.hpp"
1097685Sache#endif
1107685Sache#ifdef TARGET_OS_FAMILY_linux
1117685Sache# include "c1_globals_linux.hpp"
1127685Sache#endif
1137685Sache#ifdef TARGET_OS_FAMILY_solaris
1147685Sache# include "c1_globals_solaris.hpp"
1157685Sache#endif
1167685Sache#ifdef TARGET_OS_FAMILY_windows
117169784Sgrog# include "c1_globals_windows.hpp"
118169784Sgrog#endif
1197685Sache#ifdef TARGET_OS_FAMILY_bsd
1207685Sache# include "c1_globals_bsd.hpp"
1217685Sache#endif
1227685Sache#endif
1237685Sache#ifdef COMPILER2
1247685Sache#ifdef TARGET_ARCH_x86
1257685Sache# include "c2_globals_x86.hpp"
1267685Sache#endif
1277685Sache#ifdef TARGET_ARCH_sparc
1287685Sache# include "c2_globals_sparc.hpp"
1297685Sache#endif
1307685Sache#ifdef TARGET_ARCH_arm
1317685Sache# include "c2_globals_arm.hpp"
1327685Sache#endif
1337685Sache#ifdef TARGET_OS_FAMILY_linux
1347685Sache# include "c2_globals_linux.hpp"
13513583Spst#endif
13613583Spst#ifdef TARGET_OS_FAMILY_solaris
13713583Spst# include "c2_globals_solaris.hpp"
13813583Spst#endif
1397685Sache#ifdef TARGET_OS_FAMILY_windows
1407685Sache# include "c2_globals_windows.hpp"
1417685Sache#endif
1427685Sache#ifdef TARGET_OS_FAMILY_bsd
1437685Sache# include "c2_globals_bsd.hpp"
1447685Sache#endif
1457685Sache#endif
1467685Sache#ifdef SHARK
1477685Sache#ifdef TARGET_ARCH_zero
1487685Sache# include "shark_globals_zero.hpp"
1497685Sache#endif
1507685Sache#endif
1517685Sache
1527685Sache#if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK)
1537685Sachedefine_pd_global(bool, BackgroundCompilation,        false);
1547685Sachedefine_pd_global(bool, UseTLAB,                      false);
1557685Sachedefine_pd_global(bool, CICompileOSR,                 false);
1567685Sachedefine_pd_global(bool, UseTypeProfile,               false);
1577685Sachedefine_pd_global(bool, UseOnStackReplacement,        false);
1587685Sachedefine_pd_global(bool, InlineIntrinsics,             false);
1597685Sachedefine_pd_global(bool, PreferInterpreterNativeStubs, true);
1607685Sachedefine_pd_global(bool, ProfileInterpreter,           false);
161215249Stuexendefine_pd_global(bool, ProfileTraps,                 false);
162131994Scpercivadefine_pd_global(bool, TieredCompilation,            false);
163131994Scperciva
1647685Sachedefine_pd_global(intx, CompileThreshold,             0);
1657685Sachedefine_pd_global(intx, BackEdgeThreshold,            0);
1667685Sache
1677685Sachedefine_pd_global(intx, OnStackReplacePercentage,     0);
1687685Sachedefine_pd_global(bool, ResizeTLAB,                   false);
1697685Sachedefine_pd_global(intx, FreqInlineSize,               0);
1707685Sachedefine_pd_global(intx, InlineSmallCode,              0);
1717685Sachedefine_pd_global(intx, NewSizeThreadIncrease,        4*K);
1727685Sachedefine_pd_global(intx, InlineClassNatives,           true);
1737685Sachedefine_pd_global(intx, InlineUnsafeOps,              true);
1747685Sachedefine_pd_global(intx, InitialCodeCacheSize,         160*K);
1757685Sachedefine_pd_global(intx, ReservedCodeCacheSize,        32*M);
1767685Sachedefine_pd_global(intx, CodeCacheExpansionSize,       32*K);
1777685Sachedefine_pd_global(intx, CodeCacheMinBlockLength,      1);
178131994Scpercivadefine_pd_global(uintx,PermSize,    ScaleForWordSize(4*M));
179131994Scpercivadefine_pd_global(uintx,MaxPermSize, ScaleForWordSize(64*M));
1807685Sachedefine_pd_global(bool, NeverActAsServerClassMachine, true);
1817685Sachedefine_pd_global(uint64_t,MaxRAM,                    1ULL*G);
1827685Sache#define CI_COMPILER_COUNT 0
1837685Sache#else
1847685Sache
1857685Sache#ifdef COMPILER2
1867685Sache#define CI_COMPILER_COUNT 2
1877685Sache#else
1887685Sache#define CI_COMPILER_COUNT 1
1897685Sache#endif // COMPILER2
1907685Sache
1917685Sache#endif // no compilers
1927685Sache
1937685Sache
1947685Sache// string type aliases used only in this file
1957685Sachetypedef const char* ccstr;
1967685Sachetypedef const char* ccstrlist;   // represents string arguments which accumulate
1977685Sache
19880597Sdougbenum FlagValueOrigin {
19980597Sdougb  DEFAULT          = 0,
2007685Sache  COMMAND_LINE     = 1,
2017685Sache  ENVIRON_VAR      = 2,
2027685Sache  CONFIG_FILE      = 3,
2037685Sache  MANAGEMENT       = 4,
2047685Sache  ERGONOMIC        = 5,
2057685Sache  ATTACH_ON_DEMAND = 6,
2067685Sache  INTERNAL         = 99
2077685Sache};
2087685Sache
2097685Sachestruct Flag {
2107685Sache  const char *type;
21139139Sobrien  const char *name;
21239139Sobrien  void*       addr;
213131994Scperciva
2147685Sache  NOT_PRODUCT(const char *doc;)
2157685Sache
2167685Sache  const char *kind;
2177685Sache  FlagValueOrigin origin;
2187685Sache
2197685Sache  // points to all Flags static array
2207685Sache  static Flag *flags;
2217685Sache
2227685Sache  // number of flags
2237685Sache  static size_t numFlags;
2247685Sache
2257685Sache  static Flag* find_flag(char* name, size_t length, bool allow_locked = false);
2267685Sache
2277685Sache  bool is_bool() const        { return strcmp(type, "bool") == 0; }
2287685Sache  bool get_bool() const       { return *((bool*) addr); }
2297685Sache  void set_bool(bool value)   { *((bool*) addr) = value; }
2307685Sache
2317685Sache  bool is_intx()  const       { return strcmp(type, "intx")  == 0; }
2327685Sache  intx get_intx() const       { return *((intx*) addr); }
2337685Sache  void set_intx(intx value)   { *((intx*) addr) = value; }
2347685Sache
2357685Sache  bool is_uintx() const       { return strcmp(type, "uintx") == 0; }
2367685Sache  uintx get_uintx() const     { return *((uintx*) addr); }
2377685Sache  void set_uintx(uintx value) { *((uintx*) addr) = value; }
2387685Sache
2397685Sache  bool is_uint64_t() const          { return strcmp(type, "uint64_t") == 0; }
2407685Sache  uint64_t get_uint64_t() const     { return *((uint64_t*) addr); }
2417685Sache  void set_uint64_t(uint64_t value) { *((uint64_t*) addr) = value; }
2427685Sache
2437685Sache  bool is_double() const        { return strcmp(type, "double") == 0; }
2447685Sache  double get_double() const     { return *((double*) addr); }
2457685Sache  void set_double(double value) { *((double*) addr) = value; }
2467685Sache
2477685Sache  bool is_ccstr() const          { return strcmp(type, "ccstr") == 0 || strcmp(type, "ccstrlist") == 0; }
2487685Sache  bool ccstr_accumulates() const { return strcmp(type, "ccstrlist") == 0; }
2497685Sache  ccstr get_ccstr() const     { return *((ccstr*) addr); }
2507685Sache  void set_ccstr(ccstr value) { *((ccstr*) addr) = value; }
2517685Sache
2527685Sache  bool is_unlocker() const;
2537685Sache  bool is_unlocked() const;
2547685Sache  bool is_writeable() const;
2557685Sache  bool is_external() const;
2567685Sache
2577685Sache  bool is_unlocker_ext() const;
2587685Sache  bool is_unlocked_ext() const;
2597685Sache  bool is_writeable_ext() const;
2607685Sache  bool is_external_ext() const;
2617685Sache
2627685Sache  void get_locked_message(char*, int) const;
2637685Sache  void get_locked_message_ext(char*, int) const;
2647685Sache
2657685Sache  void print_on(outputStream* st, bool withComments = false );
2667685Sache  void print_as_flag(outputStream* st);
2677685Sache};
2687685Sache
26939139Sobrien// debug flags control various aspects of the VM and are global accessible
27039139Sobrien
27191141Scjc// use FlagSetting to temporarily change some debug flag
27291141Scjc// e.g. FlagSetting fs(DebugThisAndThat, true);
27391141Scjc// restored to previous value upon leaving scope
27491141Scjcclass FlagSetting {
2757685Sache  bool val;
2767685Sache  bool* flag;
2777685Sache public:
2787685Sache  FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; }
2797685Sache  ~FlagSetting()                       { *flag = val; }
2807685Sache};
2817685Sache
2827685Sache
28391141Scjcclass CounterSetting {
28491141Scjc  intx* counter;
285131994Scperciva public:
286131994Scperciva  CounterSetting(intx* cnt) { counter = cnt; (*counter)++; }
2877685Sache  ~CounterSetting()         { (*counter)--; }
2887685Sache};
28939139Sobrien
29039139Sobrien
29139139Sobrienclass IntFlagSetting {
29239139Sobrien  intx val;
29391141Scjc  intx* flag;
29491141Scjc public:
2957685Sache  IntFlagSetting(intx& fl, intx newValue) { flag = &fl; val = fl; fl = newValue; }
2967685Sache  ~IntFlagSetting()                       { *flag = val; }
2977685Sache};
2987685Sache
29991141Scjc
30091141Scjcclass DoubleFlagSetting {
30191141Scjc  double val;
30291141Scjc  double* flag;
3037685Sache public:
3047685Sache  DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; }
3057685Sache  ~DoubleFlagSetting()                           { *flag = val; }
3067685Sache};
30791141Scjc
30891141Scjc
3097685Sacheclass CommandLineFlags {
3107685Sache public:
3117685Sache  static bool boolAt(char* name, size_t len, bool* value);
3127685Sache  static bool boolAt(char* name, bool* value)      { return boolAt(name, strlen(name), value); }
3137685Sache  static bool boolAtPut(char* name, size_t len, bool* value, FlagValueOrigin origin);
3147685Sache  static bool boolAtPut(char* name, bool* value, FlagValueOrigin origin)   { return boolAtPut(name, strlen(name), value, origin); }
31591141Scjc
31691141Scjc  static bool intxAt(char* name, size_t len, intx* value);
3177685Sache  static bool intxAt(char* name, intx* value)      { return intxAt(name, strlen(name), value); }
3187685Sache  static bool intxAtPut(char* name, size_t len, intx* value, FlagValueOrigin origin);
31991141Scjc  static bool intxAtPut(char* name, intx* value, FlagValueOrigin origin)   { return intxAtPut(name, strlen(name), value, origin); }
32091141Scjc
3217685Sache  static bool uintxAt(char* name, size_t len, uintx* value);
3227685Sache  static bool uintxAt(char* name, uintx* value)    { return uintxAt(name, strlen(name), value); }
3237685Sache  static bool uintxAtPut(char* name, size_t len, uintx* value, FlagValueOrigin origin);
3247685Sache  static bool uintxAtPut(char* name, uintx* value, FlagValueOrigin origin) { return uintxAtPut(name, strlen(name), value, origin); }
3257685Sache
3267685Sache  static bool uint64_tAt(char* name, size_t len, uint64_t* value);
3277685Sache  static bool uint64_tAt(char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); }
3287685Sache  static bool uint64_tAtPut(char* name, size_t len, uint64_t* value, FlagValueOrigin origin);
32991141Scjc  static bool uint64_tAtPut(char* name, uint64_t* value, FlagValueOrigin origin) { return uint64_tAtPut(name, strlen(name), value, origin); }
33091141Scjc
33191141Scjc  static bool doubleAt(char* name, size_t len, double* value);
33291141Scjc  static bool doubleAt(char* name, double* value)    { return doubleAt(name, strlen(name), value); }
33391141Scjc  static bool doubleAtPut(char* name, size_t len, double* value, FlagValueOrigin origin);
33491141Scjc  static bool doubleAtPut(char* name, double* value, FlagValueOrigin origin) { return doubleAtPut(name, strlen(name), value, origin); }
33591141Scjc
33691141Scjc  static bool ccstrAt(char* name, size_t len, ccstr* value);
3377685Sache  static bool ccstrAt(char* name, ccstr* value)    { return ccstrAt(name, strlen(name), value); }
3387685Sache  static bool ccstrAtPut(char* name, size_t len, ccstr* value, FlagValueOrigin origin);
3397685Sache  static bool ccstrAtPut(char* name, ccstr* value, FlagValueOrigin origin) { return ccstrAtPut(name, strlen(name), value, origin); }
3407685Sache
3417685Sache  // Returns false if name is not a command line flag.
3427685Sache  static bool wasSetOnCmdline(const char* name, bool* value);
34391141Scjc  static void printSetFlags(outputStream* out);
34491141Scjc
3457685Sache  static void printFlags(outputStream* out, bool withComments);
3467685Sache
34791141Scjc  static void verify() PRODUCT_RETURN;
34891141Scjc};
3497685Sache
3507685Sache// use this for flags that are true by default in the debug version but
3517685Sache// false in the optimized version, and vice versa
3527685Sache#ifdef ASSERT
3537685Sache#define trueInDebug  true
3547685Sache#define falseInDebug false
3557685Sache#else
3567685Sache#define trueInDebug  false
35791141Scjc#define falseInDebug true
35891141Scjc#endif
35939139Sobrien
3607685Sache// use this for flags that are true per default in the product build
361215249Stuexen// but false in development builds, and vice versa
36291141Scjc#ifdef PRODUCT
36391141Scjc#define trueInProduct  true
36491141Scjc#define falseInProduct false
36591141Scjc#else
3667685Sache#define trueInProduct  false
3677685Sache#define falseInProduct true
36891141Scjc#endif
36991141Scjc
3707685Sache#ifdef JAVASE_EMBEDDED
3717685Sache#define falseInEmbedded false
3727685Sache#else
3737685Sache#define falseInEmbedded true
3747685Sache#endif
3757685Sache
37691141Scjc// develop flags are settable / visible only during development and are constant in the PRODUCT version
37791141Scjc// product flags are always settable / visible
3787685Sache// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
3797685Sache
38091141Scjc// A flag must be declared with one of the following types:
38191141Scjc// bool, intx, uintx, ccstr.
38291141Scjc// The type "ccstr" is an alias for "const char*" and is used
38391141Scjc// only in this file, because the macrology requires single-token type names.
3847685Sache
385131994Scperciva// Note: Diagnostic options not meant for VM tuning or for product modes.
38691141Scjc// They are to be used for VM quality assurance or field diagnosis
38791141Scjc// of VM bugs.  They are hidden so that users will not be encouraged to
38891141Scjc// try them as if they were VM ordinary execution options.  However, they
38991141Scjc// are available in the product version of the VM.  Under instruction
39091141Scjc// from support engineers, VM customers can turn them on to collect
39191141Scjc// diagnostic information about VM problems.  To use a VM diagnostic
39291141Scjc// option, you must first specify +UnlockDiagnosticVMOptions.
39391141Scjc// (This master switch also affects the behavior of -Xprintflags.)
39491141Scjc//
39591141Scjc// experimental flags are in support of features that are not
3967685Sache//    part of the officially supported product, but are available
3977685Sache//    for experimenting with. They could, for example, be performance
39891141Scjc//    features that may not have undergone full or rigorous QA, but which may
39991141Scjc//    help performance in some cases and released for experimentation
4007685Sache//    by the community of users and developers. This flag also allows one to
4017685Sache//    be able to build a fully supported product that nonetheless also
4027685Sache//    ships with some unsupported, lightly tested, experimental features.
403705Swollman//    Like the UnlockDiagnosticVMOptions flag above, there is a corresponding
4047685Sache//    UnlockExperimentalVMOptions flag, which allows the control and
4057685Sache//    modification of the experimental flags.
40691141Scjc//
40791141Scjc// Nota bene: neither diagnostic nor experimental options should be used casually,
40891141Scjc//    and they are not supported on production loads, except under explicit
40991141Scjc//    direction from support engineers.
41091141Scjc//
41191141Scjc// manageable flags are writeable external product flags.
41291141Scjc//    They are dynamically writeable through the JDK management interface
41391141Scjc//    (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
41491141Scjc//    These flags are external exported interface (see CCC).  The list of
41591141Scjc//    manageable flags can be queried programmatically through the management
41691141Scjc//    interface.
41791141Scjc//
41891141Scjc//    A flag can be made as "manageable" only if
41991141Scjc//    - the flag is defined in a CCC as an external exported interface.
42091141Scjc//    - the VM implementation supports dynamic setting of the flag.
42191141Scjc//      This implies that the VM must *always* query the flag variable
422131994Scperciva//      and not reuse state related to the flag state at any given time.
423131994Scperciva//    - you want the flag to be queried programmatically by the customers.
42439139Sobrien//
42539139Sobrien// product_rw flags are writeable internal product flags.
42639139Sobrien//    They are like "manageable" flags but for internal/private use.
42739139Sobrien//    The list of product_rw flags are internal/private flags which
4287685Sache//    may be changed/removed in a future release.  It can be set
4297685Sache//    through the management interface to get/set value
4307685Sache//    when the name of flag is supplied.
4317685Sache//
43291141Scjc//    A flag can be made as "product_rw" only if
43391141Scjc//    - the VM implementation supports dynamic setting of the flag.
4347685Sache//      This implies that the VM must *always* query the flag variable
435705Swollman//      and not reuse state related to the flag state at any given time.
4367685Sache//
4377685Sache// Note that when there is a need to support develop flags to be writeable,
4387685Sache// it can be done in the same way as product_rw.
4397685Sache
440131994Scperciva#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \
441131994Scperciva                                                                            \
4427685Sache  lp64_product(bool, UseCompressedOops, false,                              \
4437685Sache            "Use 32-bit object references in 64-bit VM. "                   \
4447685Sache            "lp64_product means flag is always constant in 32 bit VM")      \
4457685Sache                                                                            \
44691141Scjc  notproduct(bool, CheckCompressedOops, true,                               \
44791141Scjc            "generate checks in encoding/decoding code in debug VM")        \
448169784Sgrog                                                                            \
449169784Sgrog  product_pd(uintx, HeapBaseMinAddress,                                     \
45091141Scjc            "OS specific low limit for heap base address")                  \
45191141Scjc                                                                            \
45291141Scjc  diagnostic(bool, PrintCompressedOopsMode, false,                          \
45391141Scjc            "Print compressed oops base address and encoding mode")         \
45491141Scjc                                                                            \
45591141Scjc  lp64_product(intx, ObjectAlignmentInBytes, 8,                             \
456169784Sgrog          "Default object alignment in bytes, 8 is minimum")                \
457169784Sgrog                                                                            \
45839139Sobrien  /* UseMembar is theoretically a temp flag used for memory barrier         \
45939139Sobrien   * removal testing.  It was supposed to be removed before FCS but has     \
46091141Scjc   * been re-added (see 6401008) */                                         \
46191141Scjc  product_pd(bool, UseMembar,                                               \
46239139Sobrien          "(Unstable) Issues membars on thread state transitions")          \
46339139Sobrien                                                                            \
4647685Sache  /* Temp PPC Flag to allow disabling the use of lwsync on ppc platforms    \
4657685Sache   * that don't support it.  This will be replaced by processor detection   \
46691141Scjc   * logic.                                                                 \
46791141Scjc   */                                                                       \
46839139Sobrien  product(bool, UsePPCLWSYNC, true,                                         \
46939139Sobrien          "Use lwsync instruction if true, else use slower sync")           \
47039139Sobrien                                                                            \
47139139Sobrien  develop(bool, CleanChunkPoolAsync, falseInEmbedded,                       \
472169590Sgrog          "Whether to clean the chunk pool asynchronously")                 \
47339139Sobrien                                                                            \
47439139Sobrien  /* Temporary: See 6948537 */                                             \
47539139Sobrien  experimental(bool, UseMemSetInBOT, true,                                  \
47639139Sobrien          "(Unstable) uses memset in BOT updates in GC code")               \
47739139Sobrien                                                                            \
47839139Sobrien  diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug,                  \
47939139Sobrien          "Enable normal processing of flags relating to field diagnostics")\
48039139Sobrien                                                                            \
48139139Sobrien  experimental(bool, UnlockExperimentalVMOptions, false,                    \
48239139Sobrien          "Enable normal processing of flags relating to experimental features")\
48339139Sobrien                                                                            \
48439139Sobrien  product(bool, JavaMonitorsInStackTrace, true,                             \
48539139Sobrien          "Print info. about Java monitor locks when the stacks are dumped")\
48639139Sobrien                                                                            \
48739139Sobrien  product_pd(bool, UseLargePages,                                           \
48839139Sobrien          "Use large page memory")                                          \
489169784Sgrog                                                                            \
490169784Sgrog  product_pd(bool, UseLargePagesIndividualAllocation,                       \
491169784Sgrog          "Allocate large pages individually for better affinity")          \
492169784Sgrog                                                                            \
493169784Sgrog  develop(bool, LargePagesIndividualAllocationInjectError, false,           \
494169784Sgrog          "Fail large pages individual allocation")                         \
495169784Sgrog                                                                            \
496169784Sgrog  develop(bool, TracePageSizes, false,                                      \
497169784Sgrog          "Trace page size selection and usage.")                           \
49839139Sobrien                                                                            \
49939139Sobrien  product(bool, UseNUMA, false,                                             \
50039139Sobrien          "Use NUMA if available")                                          \
50139139Sobrien                                                                            \
50239139Sobrien  product(bool, UseNUMAInterleaving, false,                                 \
50339139Sobrien          "Interleave memory across NUMA nodes if available")               \
504169784Sgrog                                                                            \
505169784Sgrog  product(uintx, NUMAInterleaveGranularity, 2*M,                            \
506169784Sgrog          "Granularity to use for NUMA interleaving on Windows OS")         \
507169784Sgrog                                                                            \
508169784Sgrog  product(bool, ForceNUMA, false,                                           \
509169784Sgrog          "Force NUMA optimizations on single-node/UMA systems")            \
510169784Sgrog                                                                            \
511169784Sgrog  product(intx, NUMAChunkResizeWeight, 20,                                  \
512169784Sgrog          "Percentage (0-100) used to weight the current sample when "      \
513169784Sgrog          "computing exponentially decaying average for "                   \
51439139Sobrien          "AdaptiveNUMAChunkSizing")                                        \
51539139Sobrien                                                                            \
51639139Sobrien  product(intx, NUMASpaceResizeRate, 1*G,                                   \
51739139Sobrien          "Do not reallocate more that this amount per collection")         \
51839139Sobrien                                                                            \
51991141Scjc  product(bool, UseAdaptiveNUMAChunkSizing, true,                           \
52039139Sobrien          "Enable adaptive chunk sizing for NUMA")                          \
52139139Sobrien                                                                            \
52239139Sobrien  product(bool, NUMAStats, false,                                           \
52339139Sobrien          "Print NUMA stats in detailed heap information")                  \
52439139Sobrien                                                                            \
52539139Sobrien  product(intx, NUMAPageScanRate, 256,                                      \
52639139Sobrien          "Maximum number of pages to include in the page scan procedure")  \
52739139Sobrien                                                                            \
52839139Sobrien  product_pd(bool, NeedsDeoptSuspend,                                       \
52939139Sobrien          "True for register window machines (sparc/ia64)")                 \
53039139Sobrien                                                                            \
53139139Sobrien  product(intx, UseSSE, 99,                                                 \
53239139Sobrien          "Highest supported SSE instructions set on x86/x64")              \
53339139Sobrien                                                                            \
534169784Sgrog  product(intx, UseAVX, 99,                                                 \
535169784Sgrog          "Highest supported AVX instructions set on x86/x64")              \
536169784Sgrog                                                                            \
537169784Sgrog  product(intx, UseVIS, 99,                                                 \
538169784Sgrog          "Highest supported VIS instructions set on Sparc")                \
539169784Sgrog                                                                            \
54039139Sobrien  product(uintx, LargePageSizeInBytes, 0,                                   \
54139139Sobrien          "Large page size (0 to let VM choose the page size")              \
542169784Sgrog                                                                            \
543169784Sgrog  product(uintx, LargePageHeapSizeThreshold, 128*M,                         \
544169784Sgrog          "Use large pages if max heap is at least this big")               \
545169784Sgrog                                                                            \
546169784Sgrog  product(bool, ForceTimeHighResolution, false,                             \
547169784Sgrog          "Using high time resolution(For Win32 only)")                     \
5487685Sache                                                                            \
5497685Sache  develop(bool, TraceItables, false,                                        \
5507685Sache          "Trace initialization and use of itables")                        \
5517685Sache                                                                            \
5527685Sache  develop(bool, TracePcPatching, false,                                     \
5537685Sache          "Trace usage of frame::patch_pc")                                 \
5547685Sache                                                                            \
5557685Sache  develop(bool, TraceJumps, false,                                          \
5567685Sache          "Trace assembly jumps in thread ring buffer")                     \
5577685Sache                                                                            \
55839139Sobrien  develop(bool, TraceRelocator, false,                                      \
55939139Sobrien          "Trace the bytecode relocator")                                   \
56039139Sobrien                                                                            \
56139139Sobrien  develop(bool, TraceLongCompiles, false,                                   \
56239139Sobrien          "Print out every time compilation is longer than "                \
56339139Sobrien          "a given threashold")                                             \
56439139Sobrien                                                                            \
565131994Scperciva  develop(bool, SafepointALot, false,                                       \
56639139Sobrien          "Generates a lot of safepoints. Works with "                      \
56739139Sobrien          "GuaranteedSafepointInterval")                                    \
568131994Scperciva                                                                            \
569131994Scperciva  product_pd(bool, BackgroundCompilation,                                   \
57039139Sobrien          "A thread requesting compilation is not blocked during "          \
57139139Sobrien          "compilation")                                                    \
57239139Sobrien                                                                            \
57339139Sobrien  product(bool, PrintVMQWaitTime, false,                                    \
57439139Sobrien          "Prints out the waiting time in VM operation queue")              \
57539139Sobrien                                                                            \
57639139Sobrien  develop(bool, BailoutToInterpreterForThrows, false,                       \
57739139Sobrien          "Compiled methods which throws/catches exceptions will be "       \
57839139Sobrien          "deopt and intp.")                                                \
57939139Sobrien                                                                            \
58039139Sobrien  develop(bool, NoYieldsInMicrolock, false,                                 \
58139139Sobrien          "Disable yields in microlock")                                    \
58239139Sobrien                                                                            \
58339139Sobrien  develop(bool, TraceOopMapGeneration, false,                               \
58439139Sobrien          "Shows oopmap generation")                                        \
58539139Sobrien                                                                            \
58639139Sobrien  product(bool, MethodFlushing, true,                                       \
58739139Sobrien          "Reclamation of zombie and not-entrant methods")                  \
58839139Sobrien                                                                            \
58939139Sobrien  develop(bool, VerifyStack, false,                                         \
59039139Sobrien          "Verify stack of each thread when it is entering a runtime call") \
59139139Sobrien                                                                            \
59239139Sobrien  diagnostic(bool, ForceUnreachable, false,                                 \
59339139Sobrien          "Make all non code cache addresses to be unreachable with forcing use of 64bit literal fixups") \
594131994Scperciva                                                                            \
595131994Scperciva  notproduct(bool, StressDerivedPointers, false,                            \
59639139Sobrien          "Force scavenge when a derived pointers is detected on stack "    \
59739139Sobrien          "after rtm call")                                                 \
59839139Sobrien                                                                            \
59939139Sobrien  develop(bool, TraceDerivedPointers, false,                                \
60039139Sobrien          "Trace traversal of derived pointers on stack")                   \
60139139Sobrien                                                                            \
60239139Sobrien  notproduct(bool, TraceCodeBlobStacks, false,                              \
60339139Sobrien          "Trace stack-walk of codeblobs")                                  \
60439139Sobrien                                                                            \
60539139Sobrien  product(bool, PrintJNIResolving, false,                                   \
6067685Sache          "Used to implement -v:jni")                                       \
6077685Sache                                                                            \
60839139Sobrien  notproduct(bool, PrintRewrites, false,                                    \
60939139Sobrien          "Print methods that are being rewritten")                         \
61039139Sobrien                                                                            \
61139139Sobrien  product(bool, UseInlineCaches, true,                                      \
61239139Sobrien          "Use Inline Caches for virtual calls ")                           \
61339139Sobrien                                                                            \
6147685Sache  develop(bool, InlineArrayCopy, true,                                      \
6157685Sache          "inline arraycopy native that is known to be part of "            \
61691141Scjc          "base library DLL")                                               \
6177685Sache                                                                            \
6187685Sache  develop(bool, InlineObjectHash, true,                                     \
6197685Sache          "inline Object::hashCode() native that is known to be part "      \
6207685Sache          "of base library DLL")                                            \
6217685Sache                                                                            \
6227685Sache  develop(bool, InlineObjectCopy, true,                                     \
6237685Sache          "inline Object.clone and Arrays.copyOf[Range] intrinsics")        \
6247685Sache                                                                            \
6257685Sache  develop(bool, InlineNatives, true,                                        \
6267685Sache          "inline natives that are known to be part of base library DLL")   \
6277685Sache                                                                            \
62891141Scjc  develop(bool, InlineMathNatives, true,                                    \
62991141Scjc          "inline SinD, CosD, etc.")                                        \
6307685Sache                                                                            \
6317685Sache  develop(bool, InlineClassNatives, true,                                   \
6327685Sache          "inline Class.isInstance, etc")                                   \
6337685Sache                                                                            \
6347685Sache  develop(bool, InlineThreadNatives, true,                                  \
63534344Ssteve          "inline Thread.currentThread, etc")                               \
6367685Sache                                                                            \
6377685Sache  develop(bool, InlineReflectionGetCallerClass, true,                       \
6387685Sache          "inline sun.reflect.Reflection.getCallerClass(), known to be part "\
6397685Sache          "of base library DLL")                                            \
6407685Sache                                                                            \
6417685Sache  develop(bool, InlineUnsafeOps, true,                                      \
6427685Sache          "inline memory ops (native methods) from sun.misc.Unsafe")        \
6437685Sache                                                                            \
6447685Sache  develop(bool, ConvertCmpD2CmpF, true,                                     \
6457685Sache          "Convert cmpD to cmpF when one input is constant in float range") \
6467685Sache                                                                            \
6477685Sache  develop(bool, ConvertFloat2IntClipping, true,                             \
64891141Scjc          "Convert float2int clipping idiom to integer clipping")           \
64991141Scjc                                                                            \
6507685Sache  develop(bool, SpecialStringCompareTo, true,                               \
6517685Sache          "special version of string compareTo")                            \
6527685Sache                                                                            \
6537685Sache  develop(bool, SpecialStringIndexOf, true,                                 \
6547685Sache          "special version of string indexOf")                              \
6557685Sache                                                                            \
6567685Sache  develop(bool, SpecialStringEquals, true,                                  \
6577685Sache          "special version of string equals")                               \
6587685Sache                                                                            \
6597685Sache  develop(bool, SpecialArraysEquals, true,                                  \
6607685Sache          "special version of Arrays.equals(char[],char[])")                \
6617685Sache                                                                            \
6627685Sache  product(bool, CriticalJNINatives, true,                                   \
6637685Sache          "check for critical JNI entry points")                            \
6647685Sache                                                                            \
6657685Sache  notproduct(bool, StressCriticalJNINatives, false,                         \
6667685Sache            "Exercise register saving code in critical natives")            \
6677685Sache                                                                            \
6687685Sache  product(bool, UseSSE42Intrinsics, false,                                  \
6697685Sache          "SSE4.2 versions of intrinsics")                                  \
6707685Sache                                                                            \
6717685Sache  product(bool, UseCondCardMark, false,                                     \
6727685Sache          "Check for already marked card before updating card table")       \
6737685Sache                                                                            \
6747685Sache  develop(bool, TraceCallFixup, false,                                      \
6757685Sache          "traces all call fixups")                                         \
6767685Sache                                                                            \
6777685Sache  develop(bool, DeoptimizeALot, false,                                      \
6787685Sache          "deoptimize at every exit from the runtime system")               \
6797685Sache                                                                            \
6807685Sache  notproduct(ccstrlist, DeoptimizeOnlyAt, "",                               \
6817685Sache          "a comma separated list of bcis to deoptimize at")                \
6827685Sache                                                                            \
6837685Sache  product(bool, DeoptimizeRandom, false,                                    \
6847685Sache          "deoptimize random frames on random exit from the runtime system")\
6857685Sache                                                                            \
6867685Sache  notproduct(bool, ZombieALot, false,                                       \
6877685Sache          "creates zombies (non-entrant) at exit from the runt. system")    \
6887685Sache                                                                            \
6897685Sache  product(bool, UnlinkSymbolsALot, false,                                   \
6907685Sache          "unlink unreferenced symbols from the symbol table at safepoints")\
6917685Sache                                                                            \
6927685Sache  notproduct(bool, WalkStackALot, false,                                    \
6937685Sache          "trace stack (no print) at every exit from the runtime system")   \
6947685Sache                                                                            \
6957685Sache  product(bool, Debugging, false,                                           \
6967685Sache          "set when executing debug methods in debug.ccp "                  \
6977685Sache          "(to prevent triggering assertions)")                             \
6987685Sache                                                                            \
6997685Sache  notproduct(bool, StrictSafepointChecks, trueInDebug,                      \
7007685Sache          "Enable strict checks that safepoints cannot happen for threads " \
7017685Sache          "that used No_Safepoint_Verifier")                                \
7027685Sache                                                                            \
7037685Sache  notproduct(bool, VerifyLastFrame, false,                                  \
7047685Sache          "Verify oops on last frame on entry to VM")                       \
7057685Sache                                                                            \
7067685Sache  develop(bool, TraceHandleAllocation, false,                               \
7077685Sache          "Prints out warnings when suspicious many handles are allocated") \
7087685Sache                                                                            \
7097685Sache  product(bool, UseCompilerSafepoints, true,                                \
7107685Sache          "Stop at safepoints in compiled code")                            \
7117685Sache                                                                            \
7127685Sache  product(bool, UseSplitVerifier, true,                                     \
7137685Sache          "use split verifier with StackMapTable attributes")               \
7147685Sache                                                                            \
7157685Sache  product(bool, FailOverToOldVerifier, true,                                \
7167685Sache          "fail over to old verifier when split verifier fails")            \
7177685Sache                                                                            \
7187685Sache  develop(bool, ShowSafepointMsgs, false,                                   \
7197685Sache          "Show msg. about safepoint synch.")                               \
7207685Sache                                                                            \
7217685Sache  product(bool, SafepointTimeout, false,                                    \
7227685Sache          "Time out and warn or fail after SafepointTimeoutDelay "          \
7237685Sache          "milliseconds if failed to reach safepoint")                      \
7247685Sache                                                                            \
7257685Sache  develop(bool, DieOnSafepointTimeout, false,                               \
7267685Sache          "Die upon failure to reach safepoint (see SafepointTimeout)")     \
7277685Sache                                                                            \
7287685Sache  /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */      \
7297685Sache  /* typically, at most a few retries are needed */                         \
7307685Sache  product(intx, SuspendRetryCount, 50,                                      \
7317685Sache          "Maximum retry count for an external suspend request")            \
7327685Sache                                                                            \
7337685Sache  product(intx, SuspendRetryDelay, 5,                                       \
7347685Sache          "Milliseconds to delay per retry (* current_retry_count)")        \
7357685Sache                                                                            \
7367685Sache  product(bool, AssertOnSuspendWaitFailure, false,                          \
7377685Sache          "Assert/Guarantee on external suspend wait failure")              \
7387685Sache                                                                            \
7397685Sache  product(bool, TraceSuspendWaitFailures, false,                            \
7407685Sache          "Trace external suspend wait failures")                           \
7417685Sache                                                                            \
7427685Sache  product(bool, MaxFDLimit, true,                                           \
7437685Sache          "Bump the number of file descriptors to max in solaris.")         \
7447685Sache                                                                            \
7457685Sache  diagnostic(bool, LogEvents, true,                                         \
7467685Sache             "Enable the various ring buffer event logs")                   \
7477685Sache                                                                            \
7487685Sache  diagnostic(intx, LogEventsBufferEntries, 10,                              \
7497685Sache             "Enable the various ring buffer event logs")                   \
750215249Stuexen                                                                            \
7517685Sache  product(bool, BytecodeVerificationRemote, true,                           \
7527685Sache          "Enables the Java bytecode verifier for remote classes")          \
7537685Sache                                                                            \
7547685Sache  product(bool, BytecodeVerificationLocal, false,                           \
7557685Sache          "Enables the Java bytecode verifier for local classes")           \
7567685Sache                                                                            \
7577685Sache  develop(bool, ForceFloatExceptions, trueInDebug,                          \
7587685Sache          "Force exceptions on FP stack under/overflow")                    \
7597685Sache                                                                            \
7607685Sache  develop(bool, SoftMatchFailure, trueInProduct,                            \
7617685Sache          "If the DFA fails to match a node, print a message and bail out") \
76239139Sobrien                                                                            \
76339139Sobrien  develop(bool, VerifyStackAtCalls, false,                                  \
7647685Sache          "Verify that the stack pointer is unchanged after calls")         \
7657685Sache                                                                            \
7667685Sache  develop(bool, TraceJavaAssertions, false,                                 \
7677685Sache          "Trace java language assertions")                                 \
7687685Sache                                                                            \
7697685Sache  notproduct(bool, CheckAssertionStatusDirectives, false,                   \
7707685Sache          "temporary - see javaClasses.cpp")                                \
7717685Sache                                                                            \
7727685Sache  notproduct(bool, PrintMallocFree, false,                                  \
7737685Sache          "Trace calls to C heap malloc/free allocation")                   \
7747685Sache                                                                            \
7757685Sache  product(bool, PrintOopAddress, false,                                     \
7767685Sache          "Always print the location of the oop")                           \
7777685Sache                                                                            \
7787685Sache  notproduct(bool, VerifyCodeCacheOften, false,                             \
7797685Sache          "Verify compiled-code cache often")                               \
7807685Sache                                                                            \
7817685Sache  develop(bool, ZapDeadCompiledLocals, false,                               \
7827685Sache          "Zap dead locals in compiler frames")                             \
7837685Sache                                                                            \
7847685Sache  notproduct(bool, ZapDeadLocalsOld, false,                                 \
7857685Sache          "Zap dead locals (old version, zaps all frames when "             \
7867685Sache          "entering the VM")                                                \
7877685Sache                                                                            \
7887685Sache  notproduct(bool, CheckOopishValues, false,                                \
7897685Sache          "Warn if value contains oop ( requires ZapDeadLocals)")           \
7907685Sache                                                                            \
7917685Sache  develop(bool, UseMallocOnly, false,                                       \
7927685Sache          "use only malloc/free for allocation (no resource area/arena)")   \
7937685Sache                                                                            \
79439139Sobrien  develop(bool, PrintMalloc, false,                                         \
79539139Sobrien          "print all malloc/free calls")                                    \
79639139Sobrien                                                                            \
79739139Sobrien  develop(bool, PrintMallocStatistics, false,                               \
79839139Sobrien          "print malloc/free statistics")                                   \
799169590Sgrog                                                                            \
800169590Sgrog  develop(bool, ZapResourceArea, trueInDebug,                               \
80139139Sobrien          "Zap freed resource/arena space with 0xABABABAB")                 \
80239139Sobrien                                                                            \
80339139Sobrien  notproduct(bool, ZapVMHandleArea, trueInDebug,                            \
80439139Sobrien          "Zap freed VM handle space with 0xBCBCBCBC")                      \
80539139Sobrien                                                                            \
80639139Sobrien  develop(bool, ZapJNIHandleArea, trueInDebug,                              \
80739139Sobrien          "Zap freed JNI handle space with 0xFEFEFEFE")                     \
80839139Sobrien                                                                            \
80939139Sobrien  notproduct(bool, ZapStackSegments, trueInDebug,                           \
81039139Sobrien             "Zap allocated/freed Stack segments with 0xFADFADED")          \
81139139Sobrien                                                                            \
81239139Sobrien  develop(bool, ZapUnusedHeapArea, trueInDebug,                             \
81339139Sobrien          "Zap unused heap space with 0xBAADBABE")                          \
81439139Sobrien                                                                            \
81539139Sobrien  develop(bool, TraceZapUnusedHeapArea, false,                              \
81639139Sobrien          "Trace zapping of unused heap space")                             \
81739139Sobrien                                                                            \
81839139Sobrien  develop(bool, CheckZapUnusedHeapArea, false,                              \
81939139Sobrien          "Check zapping of unused heap space")                             \
82039139Sobrien                                                                            \
82139139Sobrien  develop(bool, ZapFillerObjects, trueInDebug,                              \
82239139Sobrien          "Zap filler objects with 0xDEAFBABE")                             \
82339139Sobrien                                                                            \
82439139Sobrien  develop(bool, PrintVMMessages, true,                                      \
82539139Sobrien          "Print vm messages on console")                                   \
82639139Sobrien                                                                            \
82739139Sobrien  product(bool, PrintGCApplicationConcurrentTime, false,                    \
82839139Sobrien          "Print the time the application has been running")                \
82939139Sobrien                                                                            \
83039139Sobrien  product(bool, PrintGCApplicationStoppedTime, false,                       \
83139139Sobrien          "Print the time the application has been stopped")                \
83239139Sobrien                                                                            \
83339139Sobrien  notproduct(uintx, ErrorHandlerTest, 0,                                    \
83439139Sobrien          "If > 0, provokes an error after VM initialization; the value"    \
83539139Sobrien          "determines which error to provoke.  See test_error_handler()"    \
83639139Sobrien          "in debug.cpp.")                                                  \
83739139Sobrien                                                                            \
83839139Sobrien  develop(bool, Verbose, false,                                             \
83939139Sobrien          "Prints additional debugging information from other modes")       \
84039139Sobrien                                                                            \
84139139Sobrien  develop(bool, PrintMiscellaneous, false,                                  \
84239139Sobrien          "Prints uncategorized debugging information (requires +Verbose)") \
84339139Sobrien                                                                            \
84439139Sobrien  develop(bool, WizardMode, false,                                          \
84539139Sobrien          "Prints much more debugging information")                         \
84639139Sobrien                                                                            \
84739139Sobrien  product(bool, ShowMessageBoxOnError, false,                               \
84839139Sobrien          "Keep process alive on VM fatal error")                           \
84939139Sobrien                                                                            \
85039139Sobrien  product(bool, CreateMinidumpOnCrash, false,                               \
85139139Sobrien          "Create minidump on VM fatal error")                              \
85239139Sobrien                                                                            \
85339139Sobrien  product_pd(bool, UseOSErrorReporting,                                     \
85439139Sobrien          "Let VM fatal error propagate to the OS (ie. WER on Windows)")    \
85539139Sobrien                                                                            \
85639139Sobrien  product(bool, SuppressFatalErrorMessage, false,                           \
85739139Sobrien          "Do NO Fatal Error report [Avoid deadlock]")                      \
85839139Sobrien                                                                            \
85939139Sobrien  product(ccstrlist, OnError, "",                                           \
86039139Sobrien          "Run user-defined commands on fatal error; see VMError.cpp "      \
86139139Sobrien          "for examples")                                                   \
86239139Sobrien                                                                            \
86339139Sobrien  product(ccstrlist, OnOutOfMemoryError, "",                                \
86439139Sobrien          "Run user-defined commands on first java.lang.OutOfMemoryError")  \
86539139Sobrien                                                                            \
86639139Sobrien  manageable(bool, HeapDumpBeforeFullGC, false,                             \
86739139Sobrien          "Dump heap to file before any major stop-world GC")               \
86839139Sobrien                                                                            \
86939139Sobrien  manageable(bool, HeapDumpAfterFullGC, false,                              \
87039139Sobrien          "Dump heap to file after any major stop-world GC")                \
87139139Sobrien                                                                            \
87239139Sobrien  manageable(bool, HeapDumpOnOutOfMemoryError, false,                       \
87339139Sobrien          "Dump heap to file when java.lang.OutOfMemoryError is thrown")    \
87439139Sobrien                                                                            \
87539139Sobrien  manageable(ccstr, HeapDumpPath, NULL,                                     \
87639139Sobrien          "When HeapDumpOnOutOfMemoryError is on, the path (filename or"    \
87739139Sobrien          "directory) of the dump file (defaults to java_pid<pid>.hprof"    \
87839139Sobrien          "in the working directory)")                                      \
87939139Sobrien                                                                            \
88039139Sobrien  develop(uintx, SegmentedHeapDumpThreshold, 2*G,                           \
88139139Sobrien          "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) "     \
88239139Sobrien          "when the heap usage is larger than this")                        \
88339139Sobrien                                                                            \
88439139Sobrien  develop(uintx, HeapDumpSegmentSize, 1*G,                                  \
88539139Sobrien          "Approximate segment size when generating a segmented heap dump") \
88639139Sobrien                                                                            \
88739139Sobrien  develop(bool, BreakAtWarning, false,                                      \
88839139Sobrien          "Execute breakpoint upon encountering VM warning")                \
88939139Sobrien                                                                            \
89039139Sobrien  product_pd(bool, UseVectoredExceptions,                                   \
89139139Sobrien          "Temp Flag - Use Vectored Exceptions rather than SEH (Windows Only)") \
89239139Sobrien                                                                            \
89339139Sobrien  develop(bool, TraceVMOperation, false,                                    \
89439139Sobrien          "Trace vm operations")                                            \
89539139Sobrien                                                                            \
89637Srgrimes  develop(bool, UseFakeTimers, false,                                       \
8971088Swollman          "Tells whether the VM should use system time or a fake timer")    \
89837Srgrimes                                                                            \
8997685Sache  diagnostic(bool, LogCompilation, false,                                   \
9007685Sache          "Log compilation activity in detail to hotspot.log or LogFile")   \
90168690Sben                                                                            \
9027685Sache  product(bool, PrintCompilation, false,                                    \
9037685Sache          "Print compilations")                                             \
9047685Sache                                                                            \
9057685Sache  diagnostic(bool, TraceNMethodInstalls, false,                             \
9067685Sache             "Trace nmethod intallation")                                   \
9077685Sache                                                                            \
9087685Sache  diagnostic(intx, ScavengeRootsInCode, 2,                                  \
9097685Sache             "0: do not allow scavengable oops in the code cache; "         \
9107685Sache             "1: allow scavenging from the code cache; "                    \
9117685Sache             "2: emit as many constants as the compiler can see")           \
9127685Sache                                                                            \
9137685Sache  diagnostic(bool, TraceOSRBreakpoint, false,                               \
9147685Sache             "Trace OSR Breakpoint ")                                       \
91539139Sobrien                                                                            \
9167685Sache  diagnostic(bool, TraceCompileTriggered, false,                            \
9177685Sache             "Trace compile triggered")                                     \
91837Srgrimes                                                                            \
9197685Sache  diagnostic(bool, TraceTriggers, false,                                    \
9207685Sache             "Trace triggers")                                              \
92139139Sobrien                                                                            \
92239139Sobrien  product(bool, AlwaysRestoreFPU, false,                                    \
9237685Sache          "Restore the FPU control word after every JNI call (expensive)")  \
9247685Sache                                                                            \
9257685Sache  diagnostic(bool, PrintCompilation2, false,                                \
9267685Sache          "Print additional statistics per compilation")                    \
9277685Sache                                                                            \
9287685Sache  diagnostic(bool, PrintAdapterHandlers, false,                             \
9297685Sache          "Print code generated for i2c/c2i adapters")                      \
9307685Sache                                                                            \
9317685Sache  develop(bool, VerifyAdapterSharing, false,                                \
9327685Sache          "Verify that the code for shared adapters is the equivalent")     \
9337685Sache                                                                            \
93437Srgrimes  diagnostic(bool, PrintAssembly, false,                                    \
9357685Sache          "Print assembly code (using external disassembler.so)")           \
9367685Sache                                                                            \
9377685Sache  diagnostic(ccstr, PrintAssemblyOptions, NULL,                             \
938131994Scperciva          "Options string passed to disassembler.so")                       \
9397685Sache                                                                            \
9407685Sache  diagnostic(bool, PrintNMethods, false,                                    \
94139139Sobrien          "Print assembly code for nmethods when generated")                \
94239139Sobrien                                                                            \
94339139Sobrien  diagnostic(bool, PrintNativeNMethods, false,                              \
94439139Sobrien          "Print assembly code for native nmethods when generated")         \
94539139Sobrien                                                                            \
94639139Sobrien  develop(bool, PrintDebugInfo, false,                                      \
94739139Sobrien          "Print debug information for all nmethods when generated")        \
94839139Sobrien                                                                            \
9497685Sache  develop(bool, PrintRelocations, false,                                    \
9507685Sache          "Print relocation information for all nmethods when generated")   \
9517685Sache                                                                            \
9527685Sache  develop(bool, PrintDependencies, false,                                   \
95339139Sobrien          "Print dependency information for all nmethods when generated")   \
95439139Sobrien                                                                            \
95539139Sobrien  develop(bool, PrintExceptionHandlers, false,                              \
95639139Sobrien          "Print exception handler tables for all nmethods when generated") \
95739139Sobrien                                                                            \
95839139Sobrien  develop(bool, InterceptOSException, false,                                \
9597685Sache          "Starts debugger when an implicit OS (e.g., NULL) "               \
9607685Sache          "exception happens")                                              \
9617685Sache                                                                            \
9627685Sache  notproduct(bool, PrintCodeCache, false,                                   \
9637685Sache          "Print the compiled_code cache when exiting")                     \
9647685Sache                                                                            \
9657685Sache  develop(bool, PrintCodeCache2, false,                                     \
9667685Sache          "Print detailed info on the compiled_code cache when exiting")    \
96739139Sobrien                                                                            \
96839139Sobrien  diagnostic(bool, PrintStubCode, false,                                    \
96939139Sobrien          "Print generated stub code")                                      \
97039139Sobrien                                                                            \
97139139Sobrien  product(bool, StackTraceInThrowable, true,                                \
97239139Sobrien          "Collect backtrace in throwable when exception happens")          \
97339139Sobrien                                                                            \
97439139Sobrien  product(bool, OmitStackTraceInFastThrow, true,                            \
97539139Sobrien          "Omit backtraces for some 'hot' exceptions in optimized code")    \
97639139Sobrien                                                                            \
9777685Sache  product(bool, ProfilerPrintByteCodeStatistics, false,                     \
9787685Sache          "Prints byte code statictics when dumping profiler output")       \
9797685Sache                                                                            \
9807685Sache  product(bool, ProfilerRecordPC, false,                                    \
9817685Sache          "Collects tick for each 16 byte interval of compiled code")       \
9827685Sache                                                                            \
98339139Sobrien  product(bool, ProfileVM, false,                                           \
98439139Sobrien          "Profiles ticks that fall within VM (either in the VM Thread "    \
985131994Scperciva          "or VM code called through stubs)")                               \
986131994Scperciva                                                                            \
9877685Sache  product(bool, ProfileIntervals, false,                                    \
9887685Sache          "Prints profiles for each interval (see ProfileIntervalsTicks)")  \
9897685Sache                                                                            \
9907685Sache  notproduct(bool, ProfilerCheckIntervals, false,                           \
99191141Scjc          "Collect and print info on spacing of profiler ticks")            \
99291141Scjc                                                                            \
99391141Scjc  develop(bool, PrintJVMWarnings, false,                                    \
99491141Scjc          "Prints warnings for unimplemented JVM functions")                \
99539139Sobrien                                                                            \
99639139Sobrien  product(bool, PrintWarnings, true,                                        \
99739139Sobrien          "Prints JVM warnings to output stream")                           \
99839139Sobrien                                                                            \
9997685Sache  notproduct(uintx, WarnOnStalledSpinLock, 0,                               \
10007685Sache          "Prints warnings for stalled SpinLocks")                          \
10017685Sache                                                                            \
10027685Sache  develop(bool, InitializeJavaLangSystem, true,                             \
10037685Sache          "Initialize java.lang.System - turn off for individual "          \
10047685Sache          "method debugging")                                               \
10057685Sache                                                                            \
10067685Sache  develop(bool, InitializeJavaLangString, true,                             \
100739139Sobrien          "Initialize java.lang.String - turn off for individual "          \
100839139Sobrien          "method debugging")                                               \
10097685Sache                                                                            \
10107685Sache  develop(bool, InitializeJavaLangExceptionsErrors, true,                   \
10117685Sache          "Initialize various error and exception classes - turn off for "  \
10127685Sache          "individual method debugging")                                    \
10137685Sache                                                                            \
10147685Sache  product(bool, RegisterFinalizersAtInit, true,                             \
10157685Sache          "Register finalizable objects at end of Object.<init> or "        \
10167685Sache          "after allocation")                                               \
10177685Sache                                                                            \
10187685Sache  develop(bool, RegisterReferences, true,                                   \
10197685Sache          "Tells whether the VM should register soft/weak/final/phantom "   \
10207685Sache          "references")                                                     \
10217685Sache                                                                            \
10227685Sache  develop(bool, IgnoreRewrites, false,                                      \
10237685Sache          "Supress rewrites of bytecodes in the oopmap generator. "         \
10247685Sache          "This is unsafe!")                                                \
102539139Sobrien                                                                            \
102639139Sobrien  develop(bool, PrintCodeCacheExtension, false,                             \
10277685Sache          "Print extension of code cache")                                  \
10287685Sache                                                                            \
10297685Sache  develop(bool, UsePrivilegedStack, true,                                   \
10307685Sache          "Enable the security JVM functions")                              \
103139139Sobrien                                                                            \
1032169784Sgrog  develop(bool, IEEEPrecision, true,                                        \
103339139Sobrien          "Enables IEEE precision (for INTEL only)")                        \
103439139Sobrien                                                                            \
103539139Sobrien  develop(bool, ProtectionDomainVerification, true,                         \
103639139Sobrien          "Verifies protection domain before resolution in system "         \
103739139Sobrien          "dictionary")                                                     \
103839139Sobrien                                                                            \
10397685Sache  product(bool, ClassUnloading, true,                                       \
10407685Sache          "Do unloading of classes")                                        \
10417685Sache                                                                            \
10427685Sache  diagnostic(bool, LinkWellKnownClasses, false,                             \
104339139Sobrien          "Resolve a well known class as soon as its name is seen")         \
104439139Sobrien                                                                            \
104539139Sobrien  develop(bool, DisableStartThread, false,                                  \
104639139Sobrien          "Disable starting of additional Java threads "                    \
104739139Sobrien          "(for debugging only)")                                           \
104839139Sobrien                                                                            \
104939139Sobrien  develop(bool, MemProfiling, false,                                        \
105039139Sobrien          "Write memory usage profiling to log file")                       \
105139139Sobrien                                                                            \
105239139Sobrien  notproduct(bool, PrintSystemDictionaryAtExit, false,                      \
105339139Sobrien          "Prints the system dictionary at exit")                           \
105439139Sobrien                                                                            \
105539139Sobrien  experimental(intx, PredictedLoadedClassCount, 0,                          \
105639139Sobrien          "Experimental: Tune loaded class cache starting size.")           \
105739139Sobrien                                                                            \
105839139Sobrien  diagnostic(bool, UnsyncloadClass, false,                                  \
105939139Sobrien          "Unstable: VM calls loadClass unsynchronized. Custom "            \
106039139Sobrien          "class loader  must call VM synchronized for findClass "          \
106139139Sobrien          "and defineClass.")                                               \
106239139Sobrien                                                                            \
106339139Sobrien  product(bool, AlwaysLockClassLoader, false,                               \
106439139Sobrien          "Require the VM to acquire the class loader lock before calling " \
106539139Sobrien          "loadClass() even for class loaders registering "                 \
106639139Sobrien          "as parallel capable")                                            \
106739139Sobrien                                                                            \
106839139Sobrien  product(bool, AllowParallelDefineClass, false,                            \
1069108664Sschweikh          "Allow parallel defineClass requests for class loaders "          \
1070108664Sschweikh          "registering as parallel capable")                                \
1071108664Sschweikh                                                                            \
107291141Scjc  product(bool, MustCallLoadClassInternal, false,                           \
107339139Sobrien          "Call loadClassInternal() rather than loadClass()")               \
107439139Sobrien                                                                            \
107539139Sobrien  product_pd(bool, DontYieldALot,                                           \
107639139Sobrien          "Throw away obvious excess yield calls (for SOLARIS only)")       \
107739139Sobrien                                                                            \
107839139Sobrien  product_pd(bool, ConvertSleepToYield,                                     \
107939139Sobrien          "Converts sleep(0) to thread yield "                              \
108039139Sobrien          "(may be off for SOLARIS to improve GUI)")                        \
108139139Sobrien                                                                            \
108239139Sobrien  product(bool, ConvertYieldToSleep, false,                                 \
108339139Sobrien          "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\
108439139Sobrien          "behavior (SOLARIS only)")                                        \
108539139Sobrien                                                                            \
108639139Sobrien  product(bool, UseBoundThreads, true,                                      \
108739139Sobrien          "Bind user level threads to kernel threads (for SOLARIS only)")   \
108839139Sobrien                                                                            \
108939139Sobrien  develop(bool, UseDetachedThreads, true,                                   \
109039139Sobrien          "Use detached threads that are recycled upon termination "        \
109139139Sobrien          "(for SOLARIS only)")                                             \
109239139Sobrien                                                                            \
109339139Sobrien  product(bool, UseLWPSynchronization, true,                                \
109439139Sobrien          "Use LWP-based instead of libthread-based synchronization "       \
109539139Sobrien          "(SPARC only)")                                                   \
109639139Sobrien                                                                            \
109739139Sobrien  product(ccstr, SyncKnobs, NULL,                                           \
109839139Sobrien          "(Unstable) Various monitor synchronization tunables")            \
109939139Sobrien                                                                            \
11007685Sache  product(intx, EmitSync, 0,                                                \
11017685Sache          "(Unsafe,Unstable) "                                              \
1102169784Sgrog          " Controls emission of inline sync fast-path code")               \
1103169784Sgrog                                                                            \
1104169784Sgrog  product(intx, AlwaysInflate, 0, "(Unstable) Force inflation")             \
1105169784Sgrog                                                                            \
1106169784Sgrog  product(intx, MonitorBound, 0, "Bound Monitor population")                \
1107169784Sgrog                                                                            \
1108169784Sgrog  product(bool, MonitorInUseLists, false, "Track Monitors for Deflation")   \
1109169784Sgrog                                                                            \
1110169784Sgrog  product(intx, Atomics, 0,                                                 \
1111169784Sgrog          "(Unsafe,Unstable) Diagnostic - Controls emission of atomics")    \
1112131732Scperciva                                                                            \
1113131732Scperciva  product(intx, FenceInstruction, 0,                                        \
11147685Sache          "(Unsafe,Unstable) Experimental")                                 \
11157685Sache                                                                            \
111691141Scjc  product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \
11177685Sache                                                                            \
11187685Sache  product(intx, SyncVerbose, 0, "(Unstable)" )                              \
11197685Sache                                                                            \
11207685Sache  product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" )                    \
11217685Sache                                                                            \
11227685Sache  product(intx, hashCode, 0,                                                \
11237685Sache         "(Unstable) select hashCode generation algorithm" )                \
1124169784Sgrog                                                                            \
1125169784Sgrog  product(intx, WorkAroundNPTLTimedWaitHang, 1,                             \
1126169784Sgrog         "(Unstable, Linux-specific)"                                       \
1127169784Sgrog         " avoid NPTL-FUTEX hang pthread_cond_timedwait" )                  \
112880266Sdougb                                                                            \
112980266Sdougb  product(bool, FilterSpuriousWakeups, true,                                \
1130169784Sgrog          "Prevent spurious or premature wakeups from object.wait "         \
1131169784Sgrog          "(Solaris only)")                                                 \
1132169784Sgrog                                                                            \
1133169784Sgrog  product(intx, NativeMonitorTimeout, -1, "(Unstable)" )                    \
1134169784Sgrog  product(intx, NativeMonitorFlags, 0, "(Unstable)" )                       \
1135169784Sgrog  product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" )                  \
1136169784Sgrog                                                                            \
1137169784Sgrog  develop(bool, UsePthreads, false,                                         \
1138169784Sgrog          "Use pthread-based instead of libthread-based synchronization "   \
1139169784Sgrog          "(SPARC only)")                                                   \
1140169784Sgrog                                                                            \
1141169784Sgrog  product(bool, AdjustConcurrency, false,                                   \
1142169784Sgrog          "call thr_setconcurrency at thread create time to avoid "         \
1143169784Sgrog          "LWP starvation on MP systems (For Solaris Only)")                \
1144169784Sgrog                                                                            \
1145169784Sgrog  develop(bool, UpdateHotSpotCompilerFileOnError, true,                     \
1146169784Sgrog          "Should the system attempt to update the compiler file when "     \
1147169784Sgrog          "an error occurs?")                                               \
1148169784Sgrog                                                                            \
1149169784Sgrog  product(bool, ReduceSignalUsage, false,                                   \
1150169784Sgrog          "Reduce the use of OS signals in Java and/or the VM")             \
1151169784Sgrog                                                                            \
1152169784Sgrog  notproduct(bool, ValidateMarkSweep, false,                                \
1153169784Sgrog          "Do extra validation during MarkSweep collection")                \
1154169784Sgrog                                                                            \
1155169784Sgrog  notproduct(bool, RecordMarkSweepCompaction, false,                        \
1156169784Sgrog          "Enable GC-to-GC recording and querying of compaction during "    \
1157169784Sgrog          "MarkSweep")                                                      \
1158169784Sgrog                                                                            \
1159169784Sgrog  develop_pd(bool, ShareVtableStubs,                                        \
1160169784Sgrog          "Share vtable stubs (smaller code but worse branch prediction")   \
1161169784Sgrog                                                                            \
1162131994Scperciva  develop(bool, LoadLineNumberTables, true,                                 \
1163131994Scperciva          "Tells whether the class file parser loads line number tables")   \
1164169784Sgrog                                                                            \
1165169784Sgrog  develop(bool, LoadLocalVariableTables, true,                              \
1166169784Sgrog          "Tells whether the class file parser loads local variable tables")\
1167169784Sgrog                                                                            \
11687685Sache  develop(bool, LoadLocalVariableTypeTables, true,                          \
11697685Sache          "Tells whether the class file parser loads local variable type tables")\
1170169784Sgrog                                                                            \
1171169784Sgrog  product(bool, AllowUserSignalHandlers, false,                             \
1172131994Scperciva          "Do not complain if the application installs signal handlers "    \
1173131994Scperciva          "(Solaris & Linux only)")                                         \
1174169784Sgrog                                                                            \
1175169784Sgrog  product(bool, UseSignalChaining, true,                                    \
1176169784Sgrog          "Use signal-chaining to invoke signal handlers installed "        \
1177169784Sgrog          "by the application (Solaris & Linux only)")                      \
1178169784Sgrog                                                                            \
1179169784Sgrog  product(bool, UseAltSigs, false,                                          \
1180169784Sgrog          "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM "      \
1181169784Sgrog          "internal signals (Solaris only)")                                \
1182169784Sgrog                                                                            \
1183169784Sgrog  product(bool, UseSpinning, false,                                         \
1184169784Sgrog          "Use spinning in monitor inflation and before entry")             \
1185169784Sgrog                                                                            \
1186169784Sgrog  product(bool, PreSpinYield, false,                                        \
1187169784Sgrog          "Yield before inner spinning loop")                               \
1188169784Sgrog                                                                            \
1189169784Sgrog  product(bool, PostSpinYield, true,                                        \
1190169784Sgrog          "Yield after inner spinning loop")                                \
1191169784Sgrog                                                                            \
1192169784Sgrog  product(bool, AllowJNIEnvProxy, false,                                    \
1193169784Sgrog          "Allow JNIEnv proxies for jdbx")                                  \
1194169784Sgrog                                                                            \
1195169784Sgrog  product(bool, JNIDetachReleasesMonitors, true,                            \
1196169784Sgrog          "JNI DetachCurrentThread releases monitors owned by thread")      \
1197169784Sgrog                                                                            \
1198169784Sgrog  product(bool, RestoreMXCSROnJNICalls, false,                              \
1199169784Sgrog          "Restore MXCSR when returning from JNI calls")                    \
1200169784Sgrog                                                                            \
1201169784Sgrog  product(bool, CheckJNICalls, false,                                       \
1202169784Sgrog          "Verify all arguments to JNI calls")                              \
1203169784Sgrog                                                                            \
1204169784Sgrog  product(bool, UseFastJNIAccessors, true,                                  \
1205169784Sgrog          "Use optimized versions of Get<Primitive>Field")                  \
1206169784Sgrog                                                                            \
1207169784Sgrog  product(bool, EagerXrunInit, false,                                       \
1208131994Scperciva          "Eagerly initialize -Xrun libraries; allows startup profiling, "  \
1209131994Scperciva          " but not all -Xrun libraries may support the state of the VM at this time") \
1210169784Sgrog                                                                            \
1211169784Sgrog  product(bool, PreserveAllAnnotations, false,                              \
1212169784Sgrog          "Preserve RuntimeInvisibleAnnotations as well as RuntimeVisibleAnnotations") \
1213169784Sgrog                                                                            \
1214169784Sgrog  develop(uintx, PreallocatedOutOfMemoryErrorCount, 4,                      \
1215169784Sgrog          "Number of OutOfMemoryErrors preallocated with backtrace")        \
1216169784Sgrog                                                                            \
1217169784Sgrog  product(bool, LazyBootClassLoader, true,                                  \
1218169784Sgrog          "Enable/disable lazy opening of boot class path entries")         \
1219169784Sgrog                                                                            \
1220169784Sgrog  diagnostic(bool, UseIncDec, true,                                         \
1221169784Sgrog          "Use INC, DEC instructions on x86")                               \
1222169784Sgrog                                                                            \
1223169784Sgrog  product(bool, UseNewLongLShift, false,                                    \
1224169784Sgrog          "Use optimized bitwise shift left")                               \
1225169784Sgrog                                                                            \
1226169784Sgrog  product(bool, UseStoreImmI16, true,                                       \
1227169784Sgrog          "Use store immediate 16-bits value instruction on x86")           \
1228169784Sgrog                                                                            \
1229169784Sgrog  product(bool, UseAddressNop, false,                                       \
123091141Scjc          "Use '0F 1F [addr]' NOP instructions on x86 cpus")                \
123191141Scjc                                                                            \
12327685Sache  product(bool, UseXmmLoadAndClearUpper, true,                              \
12337685Sache          "Load low part of XMM register and clear upper part")             \
12347685Sache                                                                            \
12357685Sache  product(bool, UseXmmRegToRegMoveAll, false,                               \
1236169784Sgrog          "Copy all XMM register bits when moving value between registers") \
1237169784Sgrog                                                                            \
1238169784Sgrog  product(bool, UseXmmI2D, false,                                           \
1239169784Sgrog          "Use SSE2 CVTDQ2PD instruction to convert Integer to Double")     \
1240169784Sgrog                                                                            \
1241169784Sgrog  product(bool, UseXmmI2F, false,                                           \
1242169784Sgrog          "Use SSE2 CVTDQ2PS instruction to convert Integer to Float")      \
1243169784Sgrog                                                                            \
1244169784Sgrog  product(bool, UseXMMForArrayCopy, false,                                  \
1245169784Sgrog          "Use SSE2 MOVQ instruction for Arraycopy")                        \
1246169784Sgrog                                                                            \
1247169784Sgrog  product(bool, UseUnalignedLoadStores, false,                              \
1248169784Sgrog          "Use SSE2 MOVDQU instruction for Arraycopy")                      \
1249169784Sgrog                                                                            \
125065465Ssheldonh  product(bool, UseCBCond, false,                                           \
125165465Ssheldonh          "Use compare and branch instruction on SPARC")                    \
1252169784Sgrog                                                                            \
1253169784Sgrog  product(intx, FieldsAllocationStyle, 1,                                   \
1254169784Sgrog          "0 - type based with oops first, 1 - with oops last, "            \
1255169784Sgrog          "2 - oops in super and sub classes are together")                 \
1256208060Sdougb                                                                            \
1257208060Sdougb  product(bool, CompactFields, true,                                        \
1258169784Sgrog          "Allocate nonstatic fields in gaps between previous fields")      \
1259169784Sgrog                                                                            \
1260169784Sgrog  notproduct(bool, PrintCompactFieldsSavings, false,                        \
1261169784Sgrog          "Print how many words were saved with CompactFields")             \
1262169784Sgrog                                                                            \
1263169784Sgrog  product(bool, UseBiasedLocking, true,                                     \
1264169784Sgrog          "Enable biased locking in JVM")                                   \
1265169784Sgrog                                                                            \
1266169784Sgrog  product(intx, BiasedLockingStartupDelay, 4000,                            \
1267169784Sgrog          "Number of milliseconds to wait before enabling biased locking")  \
1268208060Sdougb                                                                            \
1269208060Sdougb  diagnostic(bool, PrintBiasedLockingStatistics, false,                     \
1270169784Sgrog          "Print statistics of biased locking in JVM")                      \
1271169784Sgrog                                                                            \
1272169784Sgrog  product(intx, BiasedLockingBulkRebiasThreshold, 20,                       \
1273169784Sgrog          "Threshold of number of revocations per type to try to "          \
1274169784Sgrog          "rebias all objects in the heap of that type")                    \
1275169784Sgrog                                                                            \
1276169784Sgrog  product(intx, BiasedLockingBulkRevokeThreshold, 40,                       \
1277169784Sgrog          "Threshold of number of revocations per type to permanently "     \
1278169784Sgrog          "revoke biases of all objects in the heap of that type")          \
1279169784Sgrog                                                                            \
1280169784Sgrog  product(intx, BiasedLockingDecayTime, 25000,                              \
1281169784Sgrog          "Decay time (in milliseconds) to re-enable bulk rebiasing of a "  \
1282169784Sgrog          "type after previous bulk rebias")                                \
1283169784Sgrog                                                                            \
1284169784Sgrog  develop(bool, JavaObjectsInPerm, false,                                   \
1285169784Sgrog          "controls whether Classes and interned Strings are allocated"     \
1286169784Sgrog          "in perm.  This purely intended to allow debugging issues"        \
1287169784Sgrog          "in production.")                                                 \
1288169784Sgrog                                                                            \
1289169784Sgrog  /* tracing */                                                             \
1290169784Sgrog                                                                            \
1291169784Sgrog  notproduct(bool, TraceRuntimeCalls, false,                                \
1292169784Sgrog          "Trace run-time calls")                                           \
1293169784Sgrog                                                                            \
1294169784Sgrog  develop(bool, TraceJNICalls, false,                                       \
1295169784Sgrog          "Trace JNI calls")                                                \
1296169784Sgrog                                                                            \
1297169784Sgrog  notproduct(bool, TraceJVMCalls, false,                                    \
1298169784Sgrog          "Trace JVM calls")                                                \
1299169784Sgrog                                                                            \
1300169784Sgrog  product(ccstr, TraceJVMTI, NULL,                                          \
1301169784Sgrog          "Trace flags for JVMTI functions and events")                     \
1302169784Sgrog                                                                            \
1303169784Sgrog  /* This option can change an EMCP method into an obsolete method. */      \
1304169784Sgrog  /* This can affect tests that except specific methods to be EMCP. */      \
1305169784Sgrog  /* This option should be used with caution. */                            \
1306169784Sgrog  product(bool, StressLdcRewrite, false,                                    \
1307169784Sgrog          "Force ldc -> ldc_w rewrite during RedefineClasses")              \
13087685Sache                                                                            \
13097685Sache  product(intx, TraceRedefineClasses, 0,                                    \
1310169784Sgrog          "Trace level for JVMTI RedefineClasses")                          \
1311169784Sgrog                                                                            \
1312169784Sgrog  develop(bool, StressMethodComparator, false,                              \
1313169784Sgrog          "run the MethodComparator on all loaded methods")                 \
1314169784Sgrog                                                                            \
1315169784Sgrog  /* change to false by default sometime after Mustang */                   \
13167685Sache  product(bool, VerifyMergedCPBytecodes, true,                              \
13177685Sache          "Verify bytecodes after RedefineClasses constant pool merging")   \
1318169784Sgrog                                                                            \
1319169784Sgrog  develop(bool, TraceJNIHandleAllocation, false,                            \
1320169784Sgrog          "Trace allocation/deallocation of JNI handle blocks")             \
1321169784Sgrog                                                                            \
1322169784Sgrog  develop(bool, TraceThreadEvents, false,                                   \
1323169784Sgrog          "Trace all thread events")                                        \
1324208060Sdougb                                                                            \
1325208060Sdougb  develop(bool, TraceBytecodes, false,                                      \
1326169784Sgrog          "Trace bytecode execution")                                       \
1327169784Sgrog                                                                            \
1328169784Sgrog  develop(bool, TraceClassInitialization, false,                            \
1329169784Sgrog          "Trace class initialization")                                     \
13307685Sache                                                                            \
13317685Sache  develop(bool, TraceExceptions, false,                                     \
13327685Sache          "Trace exceptions")                                               \
13337685Sache                                                                            \
13347685Sache  develop(bool, TraceICs, false,                                            \
13357685Sache          "Trace inline cache changes")                                     \
13367685Sache                                                                            \
13377685Sache  notproduct(bool, TraceInvocationCounterOverflow, false,                   \
13387685Sache          "Trace method invocation counter overflow")                       \
13397685Sache                                                                            \
13407685Sache  develop(bool, TraceInlineCacheClearing, false,                            \
13417685Sache          "Trace clearing of inline caches in nmethods")                    \
13427685Sache                                                                            \
13437685Sache  develop(bool, TraceDependencies, false,                                   \
13447685Sache          "Trace dependencies")                                             \
13457685Sache                                                                            \
1346131994Scperciva  develop(bool, VerifyDependencies, trueInDebug,                            \
1347131994Scperciva         "Exercise and verify the compilation dependency mechanism")        \
1348131994Scperciva                                                                            \
1349131994Scperciva  develop(bool, TraceNewOopMapGeneration, false,                            \
13507685Sache          "Trace OopMapGeneration")                                         \
135129928Smarkm                                                                            \
135229928Smarkm  develop(bool, TraceNewOopMapGenerationDetailed, false,                    \
13537685Sache          "Trace OopMapGeneration: print detailed cell states")             \
135491141Scjc                                                                            \
135591141Scjc  develop(bool, TimeOopMap, false,                                          \
13567685Sache          "Time calls to GenerateOopMap::compute_map() in sum")             \
13577685Sache                                                                            \
13587685Sache  develop(bool, TimeOopMap2, false,                                         \
13597685Sache          "Time calls to GenerateOopMap::compute_map() individually")       \
13607685Sache                                                                            \
13617685Sache  develop(bool, TraceMonitorMismatch, false,                                \
13627685Sache          "Trace monitor matching failures during OopMapGeneration")        \
13637685Sache                                                                            \
1364131994Scperciva  develop(bool, TraceOopMapRewrites, false,                                 \
13659882Sache          "Trace rewritting of method oops during oop map generation")      \
1366131994Scperciva                                                                            \
13679882Sache  develop(bool, TraceSafepoint, false,                                      \
1368131994Scperciva          "Trace safepoint operations")                                     \
13697685Sache                                                                            \
13707685Sache  develop(bool, TraceICBuffer, false,                                       \
13717685Sache          "Trace usage of IC buffer")                                       \
13727685Sache                                                                            \
1373131994Scperciva  develop(bool, TraceCompiledIC, false,                                     \
13747685Sache          "Trace changes of compiled IC")                                   \
13757685Sache                                                                            \
13767685Sache  notproduct(bool, TraceZapDeadLocals, false,                               \
13777685Sache          "Trace zapping dead locals")                                      \
1378131994Scperciva                                                                            \
13797685Sache  develop(bool, TraceStartupTime, false,                                    \
13807685Sache          "Trace setup time")                                               \
13817685Sache                                                                            \
13827685Sache  product(ccstr, HPILibPath, NULL,                                          \
13837685Sache          "Specify alternate path to HPI library")                          \
13847685Sache                                                                            \
13857685Sache  develop(bool, TraceProtectionDomainVerification, false,                   \
13867685Sache          "Trace protection domain verifcation")                            \
13877685Sache                                                                            \
13887685Sache  develop(bool, TraceClearedExceptions, false,                              \
13897685Sache          "Prints when an exception is forcibly cleared")                   \
1390705Swollman                                                                            \
13917685Sache  product(bool, TraceClassResolution, false,                                \
13927685Sache          "Trace all constant pool resolutions (for debugging)")            \
13937685Sache                                                                            \
13947685Sache  product(bool, TraceBiasedLocking, false,                                  \
13957685Sache          "Trace biased locking in JVM")                                    \
13967685Sache                                                                            \
13977685Sache  product(bool, TraceMonitorInflation, false,                               \
13987685Sache          "Trace monitor inflation in JVM")                                 \
13997685Sache                                                                            \
14007685Sache  /* assembler */                                                           \
14017685Sache  product(bool, Use486InstrsOnly, false,                                    \
14027685Sache          "Use 80486 Compliant instruction subset")                         \
14037685Sache                                                                            \
14047685Sache  /* gc */                                                                  \
14057685Sache                                                                            \
14067685Sache  product(bool, UseSerialGC, false,                                         \
14077685Sache          "Use the serial garbage collector")                               \
14087685Sache                                                                            \
1409169784Sgrog  product(bool, UseG1GC, false,                                             \
1410169784Sgrog          "Use the Garbage-First garbage collector")                        \
14117685Sache                                                                            \
14127685Sache  product(bool, UseParallelGC, false,                                       \
141391141Scjc          "Use the Parallel Scavenge garbage collector")                    \
141491141Scjc                                                                            \
14157685Sache  product(bool, UseParallelOldGC, false,                                    \
14167685Sache          "Use the Parallel Old garbage collector")                         \
1417169784Sgrog                                                                            \
1418169784Sgrog  product(uintx, HeapMaximumCompactionInterval, 20,                         \
1419169784Sgrog          "How often should we maximally compact the heap (not allowing "   \
1420169784Sgrog          "any dead space)")                                                \
1421169784Sgrog                                                                            \
1422169784Sgrog  product(uintx, HeapFirstMaximumCompactionCount, 3,                        \
1423169784Sgrog          "The collection count for the first maximum compaction")          \
1424169784Sgrog                                                                            \
1425208060Sdougb  product(bool, UseMaximumCompactionOnSystemGC, true,                       \
1426169784Sgrog          "In the Parallel Old garbage collector maximum compaction for "   \
1427169784Sgrog          "a system GC")                                                    \
1428169784Sgrog                                                                            \
1429169784Sgrog  product(uintx, ParallelOldDeadWoodLimiterMean, 50,                        \
1430169784Sgrog          "The mean used by the par compact dead wood"                      \
1431169784Sgrog          "limiter (a number between 0-100).")                              \
1432169784Sgrog                                                                            \
1433169784Sgrog  product(uintx, ParallelOldDeadWoodLimiterStdDev, 80,                      \
1434169784Sgrog          "The standard deviation used by the par compact dead wood"        \
1435169784Sgrog          "limiter (a number between 0-100).")                              \
1436169784Sgrog                                                                            \
1437169784Sgrog  product(uintx, ParallelGCThreads, 0,                                      \
1438169784Sgrog          "Number of parallel threads parallel gc will use")                \
1439131994Scperciva                                                                            \
144080266Sdougb  product(bool, UseDynamicNumberOfGCThreads, false,                         \
144180266Sdougb          "Dynamically choose the number of parallel threads "              \
1442169784Sgrog          "parallel gc will use")                                           \
1443169784Sgrog                                                                            \
1444169784Sgrog  diagnostic(bool, ForceDynamicNumberOfGCThreads, false,                    \
1445169784Sgrog          "Force dynamic selection of the number of"                        \
14467685Sache          "parallel threads parallel gc will use to aid debugging")         \
14477685Sache                                                                            \
1448169784Sgrog  product(uintx, HeapSizePerGCThread, ScaleForWordSize(64*M),               \
1449169784Sgrog          "Size of heap (bytes) per GC thread used in calculating the "     \
1450131994Scperciva          "number of GC threads")                                           \
1451169784Sgrog                                                                            \
1452169784Sgrog  product(bool, TraceDynamicGCThreads, false,                               \
1453169784Sgrog          "Trace the dynamic GC thread usage")                              \
1454169784Sgrog                                                                            \
1455169784Sgrog  develop(bool, ParallelOldGCSplitALot, false,                              \
1456169784Sgrog          "Provoke splitting (copying data from a young gen space to"       \
1457208060Sdougb          "multiple destination spaces)")                                   \
1458169784Sgrog                                                                            \
1459169784Sgrog  develop(uintx, ParallelOldGCSplitInterval, 3,                             \
1460169784Sgrog          "How often to provoke splitting a young gen space")               \
1461169784Sgrog                                                                            \
1462169784Sgrog  develop(bool, TraceRegionTasksQueuing, false,                             \
1463169784Sgrog          "Trace the queuing of the region tasks")                          \
1464208060Sdougb                                                                            \
1465131994Scperciva  product(uintx, ConcGCThreads, 0,                                          \
1466131994Scperciva          "Number of threads concurrent gc will use")                       \
146780266Sdougb                                                                            \
1468131994Scperciva  product(uintx, YoungPLABSize, 4096,                                       \
146980266Sdougb          "Size of young gen promotion labs (in HeapWords)")                \
1470169784Sgrog                                                                            \
1471169784Sgrog  product(uintx, OldPLABSize, 1024,                                         \
1472131994Scperciva          "Size of old gen promotion labs (in HeapWords)")                  \
147380266Sdougb                                                                            \
1474131994Scperciva  product(uintx, GCTaskTimeStampEntries, 200,                               \
147580266Sdougb          "Number of time stamp entries per gc worker thread")              \
1476131994Scperciva                                                                            \
147780266Sdougb  product(bool, AlwaysTenure, false,                                        \
1478131994Scperciva          "Always tenure objects in eden. (ParallelGC only)")               \
1479131994Scperciva                                                                            \
14807685Sache  product(bool, NeverTenure, false,                                         \
14817685Sache          "Never tenure objects in eden, May tenure on overflow "           \
14827685Sache          "(ParallelGC only)")                                              \
14837685Sache                                                                            \
14847685Sache  product(bool, ScavengeBeforeFullGC, true,                                 \
14857685Sache          "Scavenge youngest generation before each full GC, "              \
14867685Sache          "used with UseParallelGC")                                        \
1487131994Scperciva                                                                            \
14887685Sache  develop(bool, ScavengeWithObjectsInToSpace, false,                        \
14897685Sache          "Allow scavenges to occur when to_space contains objects.")       \
1490120910Sbms                                                                            \
1491120910Sbms  product(bool, UseConcMarkSweepGC, false,                                  \
1492169784Sgrog          "Use Concurrent Mark-Sweep GC in the old generation")             \
1493169784Sgrog                                                                            \
1494169784Sgrog  product(bool, ExplicitGCInvokesConcurrent, false,                         \
1495169784Sgrog          "A System.gc() request invokes a concurrent collection;"          \
1496169784Sgrog          " (effective only when UseConcMarkSweepGC)")                      \
1497169784Sgrog                                                                            \
1498705Swollman  product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false,        \
14997685Sache          "A System.gc() request invokes a concurrent collection and "      \
1500705Swollman          "also unloads classes during such a concurrent gc cycle "         \
15017685Sache          "(effective only when UseConcMarkSweepGC)")                       \
15027685Sache                                                                            \
15037685Sache  product(bool, GCLockerInvokesConcurrent, false,                           \
15047685Sache          "The exit of a JNI CS necessitating a scavenge also"              \
15057685Sache          " kicks off a bkgrd concurrent collection")                       \
15067685Sache                                                                            \
15077685Sache  product(uintx, GCLockerEdenExpansionPercent, 5,                           \
15087685Sache          "How much the GC can expand the eden by while the GC locker  "    \
15097685Sache          "is active (as a percentage)")                                    \
15107685Sache                                                                            \
15117685Sache  develop(bool, UseCMSAdaptiveFreeLists, true,                              \
15127685Sache          "Use Adaptive Free Lists in the CMS generation")                  \
151391141Scjc                                                                            \
151491141Scjc  develop(bool, UseAsyncConcMarkSweepGC, true,                              \
151591141Scjc          "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\
151691141Scjc                                                                            \
15177685Sache  develop(bool, RotateCMSCollectionTypes, false,                            \
15187685Sache          "Rotate the CMS collections among concurrent and STW")            \
15197685Sache                                                                            \
15207685Sache  product(bool, UseCMSBestFit, true,                                        \
15217685Sache          "Use CMS best fit allocation strategy")                           \
15227685Sache                                                                            \
1523108008Seric  product(bool, UseCMSCollectionPassing, true,                              \
1524108008Seric          "Use passing of collection from background to foreground")        \
152580662Sdougb                                                                            \
152680662Sdougb  product(bool, UseParNewGC, false,                                         \
15277685Sache          "Use parallel threads in the new generation.")                    \
15287685Sache                                                                            \
1529131994Scperciva  product(bool, ParallelGCVerbose, false,                                   \
153091141Scjc          "Verbose output for parallel GC.")                                \
153191141Scjc                                                                            \
1532215249Stuexen  product(intx, ParallelGCBufferWastePct, 10,                               \
1533215249Stuexen          "wasted fraction of parallel allocation buffer.")                 \
1534215249Stuexen                                                                            \
153517771Sasami  diagnostic(bool, ParallelGCRetainPLAB, false,                             \
1536197728Srpaulo             "Retain parallel allocation buffers across scavenges; "        \
1537197728Srpaulo             " -- disabled because this currently conflicts with "          \
15387685Sache             " parallel card scanning under certain conditions ")           \
15397685Sache                                                                            \
154091141Scjc  product(intx, TargetPLABWastePct, 10,                                     \
154191141Scjc          "target wasted space in last buffer as pct of overall allocation")\
15427685Sache                                                                            \
15437685Sache  product(uintx, PLABWeight, 75,                                            \
154466668Ssheldonh          "Percentage (0-100) used to weight the current sample when"       \
154566668Ssheldonh          "computing exponentially decaying average for ResizePLAB.")       \
154691141Scjc                                                                            \
154791141Scjc  product(bool, ResizePLAB, true,                                           \
15487685Sache          "Dynamically resize (survivor space) promotion labs")             \
15497685Sache                                                                            \
15507685Sache  product(bool, PrintPLAB, false,                                           \
15517685Sache          "Print (survivor space) promotion labs sizing decisions")         \
155291141Scjc                                                                            \
155391141Scjc  product(intx, ParGCArrayScanChunk, 50,                                    \
155491141Scjc          "Scan a subset and push remainder, if array is bigger than this") \
155591141Scjc                                                                            \
155691141Scjc  product(bool, ParGCUseLocalOverflow, false,                               \
155791141Scjc          "Instead of a global overflow list, use local overflow stacks")   \
155891141Scjc                                                                            \
155991141Scjc  product(bool, ParGCTrimOverflow, true,                                    \
156091141Scjc          "Eagerly trim the local overflow lists (when ParGCUseLocalOverflow") \
156191141Scjc                                                                            \
156291141Scjc  notproduct(bool, ParGCWorkQueueOverflowALot, false,                       \
156391141Scjc          "Whether we should simulate work queue overflow in ParNew")       \
15647685Sache                                                                            \
15657685Sache  notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000,                   \
156691141Scjc          "An `interval' counter that determines how frequently "           \
156791141Scjc          "we simulate overflow; a smaller number increases frequency")     \
156891141Scjc                                                                            \
156991141Scjc  product(uintx, ParGCDesiredObjsFromOverflowList, 20,                      \
15707685Sache          "The desired number of objects to claim from the overflow list")  \
15717685Sache                                                                            \
15727685Sache  diagnostic(uintx, ParGCStridesPerThread, 2,                               \
15737685Sache          "The number of strides per worker thread that we divide up the "  \
15747685Sache          "card table scanning work into")                                  \
15757685Sache                                                                            \
15767685Sache  diagnostic(intx, ParGCCardsPerStrideChunk, 256,                           \
15777685Sache          "The number of cards in each chunk of the parallel chunks used "  \
15787685Sache          "during card table scanning")                                     \
15797685Sache                                                                            \
15807685Sache  product(uintx, CMSParPromoteBlocksToClaim, 16,                            \
15817685Sache          "Number of blocks to attempt to claim when refilling CMS LAB for "\
158291141Scjc          "parallel GC.")                                                   \
158391141Scjc                                                                            \
15847685Sache  product(uintx, OldPLABWeight, 50,                                         \
15857685Sache          "Percentage (0-100) used to weight the current sample when"       \
15867685Sache          "computing exponentially decaying average for resizing CMSParPromoteBlocksToClaim.") \
15877685Sache                                                                            \
15887685Sache  product(bool, ResizeOldPLAB, true,                                        \
15897685Sache          "Dynamically resize (old gen) promotion labs")                    \
15907685Sache                                                                            \
15917685Sache  product(bool, PrintOldPLAB, false,                                        \
159291141Scjc          "Print (old gen) promotion labs sizing decisions")                \
159391141Scjc                                                                            \
159491141Scjc  product(uintx, CMSOldPLABMin, 16,                                         \
159591141Scjc          "Min size of CMS gen promotion lab caches per worker per blksize")\
159691141Scjc                                                                            \
159791141Scjc  product(uintx, CMSOldPLABMax, 1024,                                       \
159891141Scjc          "Max size of CMS gen promotion lab caches per worker per blksize")\
159991141Scjc                                                                            \
16007685Sache  product(uintx, CMSOldPLABNumRefills, 4,                                   \
16017685Sache          "Nominal number of refills of CMS gen promotion lab cache"        \
160291141Scjc          " per worker per block size")                                     \
160391141Scjc                                                                            \
16047685Sache  product(bool, CMSOldPLABResizeQuicker, false,                             \
16057685Sache          "Whether to react on-the-fly during a scavenge to a sudden"       \
160691141Scjc          " change in block demand rate")                                   \
160791141Scjc                                                                            \
160891141Scjc  product(uintx, CMSOldPLABToleranceFactor, 4,                              \
160991141Scjc          "The tolerance of the phase-change detector for on-the-fly"       \
161091141Scjc          " PLAB resizing during a scavenge")                               \
161191141Scjc                                                                            \
161291141Scjc  product(uintx, CMSOldPLABReactivityFactor, 2,                             \
161391141Scjc          "The gain in the feedback loop for on-the-fly PLAB resizing"      \
161491141Scjc          " during a scavenge")                                             \
161591141Scjc                                                                            \
161691141Scjc  product(uintx, CMSOldPLABReactivityCeiling, 10,                           \
161791141Scjc          "The clamping of the gain in the feedback loop for on-the-fly"    \
161891141Scjc          " PLAB resizing during a scavenge")                               \
161991141Scjc                                                                            \
16207685Sache  product(bool, AlwaysPreTouch, false,                                      \
16217685Sache          "It forces all freshly committed pages to be pre-touched.")       \
162291141Scjc                                                                            \
162391141Scjc  product_pd(intx, CMSYoungGenPerWorker,                                    \
16247685Sache          "The maximum size of young gen chosen by default per GC worker "  \
16257685Sache          "thread available")                                               \
162691141Scjc                                                                            \
162791141Scjc  product(bool, GCOverheadReporting, false,                                 \
162891141Scjc         "Enables the GC overhead reporting facility")                      \
162991141Scjc                                                                            \
16307685Sache  product(intx, GCOverheadReportingPeriodMS, 100,                           \
16317685Sache          "Reporting period for conc GC overhead reporting, in ms ")        \
163291141Scjc                                                                            \
163391141Scjc  product(bool, CMSIncrementalMode, false,                                  \
163491141Scjc          "Whether CMS GC should operate in \"incremental\" mode")          \
163591141Scjc                                                                            \
163691141Scjc  product(uintx, CMSIncrementalDutyCycle, 10,                               \
163791141Scjc          "CMS incremental mode duty cycle (a percentage, 0-100).  If"      \
163891141Scjc          "CMSIncrementalPacing is enabled, then this is just the initial"  \
163991141Scjc          "value")                                                          \
164091141Scjc                                                                            \
164191141Scjc  product(bool, CMSIncrementalPacing, true,                                 \
164291141Scjc          "Whether the CMS incremental mode duty cycle should be "          \
164391141Scjc          "automatically adjusted")                                         \
164491141Scjc                                                                            \
164591141Scjc  product(uintx, CMSIncrementalDutyCycleMin, 0,                             \
164691141Scjc          "Lower bound on the duty cycle when CMSIncrementalPacing is "     \
164791141Scjc          "enabled (a percentage, 0-100)")                                  \
164891141Scjc                                                                            \
164991141Scjc  product(uintx, CMSIncrementalSafetyFactor, 10,                            \
165091141Scjc          "Percentage (0-100) used to add conservatism when computing the " \
165191141Scjc          "duty cycle")                                                     \
165291141Scjc                                                                            \
165391141Scjc  product(uintx, CMSIncrementalOffset, 0,                                   \
165491141Scjc          "Percentage (0-100) by which the CMS incremental mode duty cycle" \
165591141Scjc          " is shifted to the right within the period between young GCs")   \
165691141Scjc                                                                            \
165791141Scjc  product(uintx, CMSExpAvgFactor, 50,                                       \
16587685Sache          "Percentage (0-100) used to weight the current sample when"       \
16597685Sache          "computing exponential averages for CMS statistics.")             \
16607685Sache                                                                            \
16617685Sache  product(uintx, CMS_FLSWeight, 75,                                         \
16627685Sache          "Percentage (0-100) used to weight the current sample when"       \
16637685Sache          "computing exponentially decating averages for CMS FLS statistics.") \
16647685Sache                                                                            \
16657685Sache  product(uintx, CMS_FLSPadding, 1,                                         \
16667685Sache          "The multiple of deviation from mean to use for buffering"        \
16677685Sache          "against volatility in free list demand.")                        \
166891141Scjc                                                                            \
166991141Scjc  product(uintx, FLSCoalescePolicy, 2,                                      \
167091141Scjc          "CMS: Aggression level for coalescing, increasing from 0 to 4")   \
167191141Scjc                                                                            \
167291141Scjc  product(bool, FLSAlwaysCoalesceLarge, false,                              \
167391141Scjc          "CMS: Larger free blocks are always available for coalescing")    \
167491141Scjc                                                                            \
167591141Scjc  product(double, FLSLargestBlockCoalesceProximity, 0.99,                   \
167691141Scjc          "CMS: the smaller the percentage the greater the coalition force")\
167791141Scjc                                                                            \
16787685Sache  product(double, CMSSmallCoalSurplusPercent, 1.05,                         \
16797685Sache          "CMS: the factor by which to inflate estimated demand of small"   \
16807685Sache          " block sizes to prevent coalescing with an adjoining block")     \
16817685Sache                                                                            \
168291141Scjc  product(double, CMSLargeCoalSurplusPercent, 0.95,                         \
168391141Scjc          "CMS: the factor by which to inflate estimated demand of large"   \
16847685Sache          " block sizes to prevent coalescing with an adjoining block")     \
16857685Sache                                                                            \
168691141Scjc  product(double, CMSSmallSplitSurplusPercent, 1.10,                        \
168791141Scjc          "CMS: the factor by which to inflate estimated demand of small"   \
168891141Scjc          " block sizes to prevent splitting to supply demand for smaller"  \
168991141Scjc          " blocks")                                                        \
169091141Scjc                                                                            \
169191141Scjc  product(double, CMSLargeSplitSurplusPercent, 1.00,                        \
169291141Scjc          "CMS: the factor by which to inflate estimated demand of large"   \
169391141Scjc          " block sizes to prevent splitting to supply demand for smaller"  \
169491141Scjc          " blocks")                                                        \
169591141Scjc                                                                            \
16967685Sache  product(bool, CMSExtrapolateSweep, false,                                 \
16977685Sache          "CMS: cushion for block demand during sweep")                     \
169891141Scjc                                                                            \
169991141Scjc  product(uintx, CMS_SweepWeight, 75,                                       \
170091141Scjc          "Percentage (0-100) used to weight the current sample when "      \
170191141Scjc          "computing exponentially decaying average for inter-sweep "       \
170291141Scjc          "duration")                                                       \
170391141Scjc                                                                            \
170491141Scjc  product(uintx, CMS_SweepPadding, 1,                                       \
170591141Scjc          "The multiple of deviation from mean to use for buffering "       \
17067685Sache          "against volatility in inter-sweep duration.")                    \
17077685Sache                                                                            \
170891141Scjc  product(uintx, CMS_SweepTimerThresholdMillis, 10,                         \
170991141Scjc          "Skip block flux-rate sampling for an epoch unless inter-sweep "  \
17107685Sache          "duration exceeds this threhold in milliseconds")                 \
17117685Sache                                                                            \
171291141Scjc  develop(bool, CMSTraceIncrementalMode, false,                             \
171391141Scjc          "Trace CMS incremental mode")                                     \
171491141Scjc                                                                            \
171591141Scjc  develop(bool, CMSTraceIncrementalPacing, false,                           \
17167685Sache          "Trace CMS incremental mode pacing computation")                  \
17177685Sache                                                                            \
171891141Scjc  develop(bool, CMSTraceThreadState, false,                                 \
171991141Scjc          "Trace the CMS thread state (enable the trace_state() method)")   \
172091141Scjc                                                                            \
172191141Scjc  product(bool, CMSClassUnloadingEnabled, false,                            \
17227685Sache          "Whether class unloading enabled when using CMS GC")              \
172391141Scjc                                                                            \
17247685Sache  product(uintx, CMSClassUnloadingMaxInterval, 0,                           \
17257685Sache          "When CMS class unloading is enabled, the maximum CMS cycle count"\
17267685Sache          " for which classes may not be unloaded")                         \
17277685Sache                                                                            \
17287685Sache  product(bool, CMSCompactWhenClearAllSoftRefs, true,                       \
17297685Sache          "Compact when asked to collect CMS gen with clear_all_soft_refs") \
173091141Scjc                                                                            \
173191141Scjc  product(bool, UseCMSCompactAtFullCollection, true,                        \
173291141Scjc          "Use mark sweep compact at full collections")                     \
173391141Scjc                                                                            \
173491141Scjc  product(uintx, CMSFullGCsBeforeCompaction, 0,                             \
173591141Scjc          "Number of CMS full collection done before compaction if > 0")    \
173691141Scjc                                                                            \
173791141Scjc  develop(intx, CMSDictionaryChoice, 0,                                     \
173891141Scjc          "Use BinaryTreeDictionary as default in the CMS generation")      \
173991141Scjc                                                                            \
174091141Scjc  product(uintx, CMSIndexedFreeListReplenish, 4,                            \
174191141Scjc          "Replenish an indexed free list with this number of chunks")     \
174291141Scjc                                                                            \
174391141Scjc  product(bool, CMSReplenishIntermediate, true,                             \
174491141Scjc          "Replenish all intermediate free-list caches")                    \
174591141Scjc                                                                            \
17467685Sache  product(bool, CMSSplitIndexedFreeListBlocks, true,                        \
17477685Sache          "When satisfying batched demand, split blocks from the "          \
17487685Sache          "IndexedFreeList whose size is a multiple of requested size")     \
17497685Sache                                                                            \
17507685Sache  product(bool, CMSLoopWarn, false,                                         \
17517685Sache          "Warn in case of excessive CMS looping")                          \
17527685Sache                                                                            \
17537685Sache  develop(bool, CMSOverflowEarlyRestoration, false,                         \
175491141Scjc          "Whether preserved marks should be restored early")               \
175591141Scjc                                                                            \
17567685Sache  product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M),              \
17577685Sache          "Size of marking stack")                                          \
175891141Scjc                                                                            \
175991141Scjc  product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M),          \
176091141Scjc          "Max size of marking stack")                                      \
176191141Scjc                                                                            \
176291141Scjc  notproduct(bool, CMSMarkStackOverflowALot, false,                         \
176391141Scjc          "Whether we should simulate frequent marking stack / work queue"  \
176491141Scjc          " overflow")                                                      \
176591141Scjc                                                                            \
17667685Sache  notproduct(uintx, CMSMarkStackOverflowInterval, 1000,                     \
17677685Sache          "An `interval' counter that determines how frequently"            \
1768131994Scperciva          " we simulate overflow; a smaller number increases frequency")    \
1769131994Scperciva                                                                            \
1770131994Scperciva  product(uintx, CMSMaxAbortablePrecleanLoops, 0,                           \
1771131994Scperciva          "(Temporary, subject to experimentation)"                         \
1772131994Scperciva          "Maximum number of abortable preclean iterations, if > 0")        \
1773131994Scperciva                                                                            \
1774131994Scperciva  product(intx, CMSMaxAbortablePrecleanTime, 5000,                          \
1775131994Scperciva          "(Temporary, subject to experimentation)"                         \
1776131994Scperciva          "Maximum time in abortable preclean in ms")                       \
1777131994Scperciva                                                                            \
1778131994Scperciva  product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100,              \
1779131994Scperciva          "(Temporary, subject to experimentation)"                         \
17807685Sache          "Nominal minimum work per abortable preclean iteration")          \
17817685Sache                                                                            \
1782131994Scperciva  manageable(intx, CMSAbortablePrecleanWaitMillis, 100,                     \
1783131994Scperciva          "(Temporary, subject to experimentation)"                         \
1784131994Scperciva          " Time that we sleep between iterations when not given"           \
1785131994Scperciva          " enough work per iteration")                                     \
1786131994Scperciva                                                                            \
1787131994Scperciva  product(uintx, CMSRescanMultiple, 32,                                     \
17887685Sache          "Size (in cards) of CMS parallel rescan task")                    \
17897685Sache                                                                            \
17907685Sache  product(uintx, CMSConcMarkMultiple, 32,                                   \
17917685Sache          "Size (in cards) of CMS concurrent MT marking task")              \
1792131994Scperciva                                                                            \
1793131994Scperciva  product(uintx, CMSRevisitStackSize, 1*M,                                  \
1794131994Scperciva          "Size of CMS KlassKlass revisit stack")                           \
1795131994Scperciva                                                                            \
17967685Sache  product(bool, CMSAbortSemantics, false,                                   \
17977685Sache          "Whether abort-on-overflow semantics is implemented")             \
17987685Sache                                                                            \
17997685Sache  product(bool, CMSParallelRemarkEnabled, true,                             \
18007685Sache          "Whether parallel remark enabled (only if ParNewGC)")             \
18017685Sache                                                                            \
18027685Sache  product(bool, CMSParallelSurvivorRemarkEnabled, true,                     \
18037685Sache          "Whether parallel remark of survivor space"                       \
1804131994Scperciva          " enabled (effective only if CMSParallelRemarkEnabled)")          \
1805131994Scperciva                                                                            \
18067685Sache  product(bool, CMSPLABRecordAlways, true,                                  \
18077685Sache          "Whether to always record survivor space PLAB bdries"             \
18087685Sache          " (effective only if CMSParallelSurvivorRemarkEnabled)")          \
18097685Sache                                                                            \
18107685Sache  product(bool, CMSConcurrentMTEnabled, true,                               \
18117685Sache          "Whether multi-threaded concurrent work enabled (if ParNewGC)")   \
18127685Sache                                                                            \
18137685Sache  product(bool, CMSPermGenPrecleaningEnabled, true,                         \
18147685Sache          "Whether concurrent precleaning enabled in perm gen"              \
18157685Sache          " (effective only when CMSPrecleaningEnabled is true)")           \
18167685Sache                                                                            \
18177685Sache  product(bool, CMSPrecleaningEnabled, true,                                \
1818131994Scperciva          "Whether concurrent precleaning enabled")                         \
1819131994Scperciva                                                                            \
1820131994Scperciva  product(uintx, CMSPrecleanIter, 3,                                        \
1821131994Scperciva          "Maximum number of precleaning iteration passes")                 \
1822131994Scperciva                                                                            \
1823131994Scperciva  product(uintx, CMSPrecleanNumerator, 2,                                   \
18247685Sache          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence"  \
18257685Sache          " ratio")                                                         \
18267685Sache                                                                            \
18277685Sache  product(uintx, CMSPrecleanDenominator, 3,                                 \
18287685Sache          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence"  \
18297685Sache          " ratio")                                                         \
18307685Sache                                                                            \
18317685Sache  product(bool, CMSPrecleanRefLists1, true,                                 \
18327685Sache          "Preclean ref lists during (initial) preclean phase")             \
18337685Sache                                                                            \
18347685Sache  product(bool, CMSPrecleanRefLists2, false,                                \
18357685Sache          "Preclean ref lists during abortable preclean phase")             \
18367685Sache                                                                            \
18377685Sache  product(bool, CMSPrecleanSurvivors1, false,                               \
18387685Sache          "Preclean survivors during (initial) preclean phase")             \
18397685Sache                                                                            \
18407685Sache  product(bool, CMSPrecleanSurvivors2, true,                                \
18417685Sache          "Preclean survivors during abortable preclean phase")             \
18427685Sache                                                                            \
18437685Sache  product(uintx, CMSPrecleanThreshold, 1000,                                \
18447685Sache          "Don't re-iterate if #dirty cards less than this")                \
18457685Sache                                                                            \
18467685Sache  product(bool, CMSCleanOnEnter, true,                                      \
18477685Sache          "Clean-on-enter optimization for reducing number of dirty cards") \
18487685Sache                                                                            \
18497685Sache  product(uintx, CMSRemarkVerifyVariant, 1,                                 \
18507685Sache          "Choose variant (1,2) of verification following remark")          \
18517685Sache                                                                            \
1852131994Scperciva  product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M,                   \
1853131994Scperciva          "If Eden used is below this value, don't try to schedule remark") \
1854131994Scperciva                                                                            \
1855131994Scperciva  product(uintx, CMSScheduleRemarkEdenPenetration, 50,                      \
1856131994Scperciva          "The Eden occupancy % at which to try and schedule remark pause") \
1857131994Scperciva                                                                            \
1858131994Scperciva  product(uintx, CMSScheduleRemarkSamplingRatio, 5,                         \
1859131994Scperciva          "Start sampling Eden top at least before yg occupancy reaches"    \
1860131994Scperciva          " 1/<ratio> of the size at which we plan to schedule remark")     \
1861131994Scperciva                                                                            \
1862131994Scperciva  product(uintx, CMSSamplingGrain, 16*K,                                    \
1863131994Scperciva          "The minimum distance between eden samples for CMS (see above)")  \
1864131994Scperciva                                                                            \
1865131994Scperciva  product(bool, CMSScavengeBeforeRemark, false,                             \
1866131994Scperciva          "Attempt scavenge before the CMS remark step")                    \
1867131994Scperciva                                                                            \
18687685Sache  develop(bool, CMSTraceSweeper, false,                                     \
18697685Sache          "Trace some actions of the CMS sweeper")                          \
18707685Sache                                                                            \
18717685Sache  product(uintx, CMSWorkQueueDrainThreshold, 10,                            \
1872131994Scperciva          "Don't drain below this size per parallel worker/thief")          \
1873131994Scperciva                                                                            \
1874131994Scperciva  manageable(intx, CMSWaitDuration, 2000,                                   \
1875131994Scperciva          "Time in milliseconds that CMS thread waits for young GC")        \
18767685Sache                                                                            \
18777685Sache  product(bool, CMSYield, true,                                             \
1878131994Scperciva          "Yield between steps of concurrent mark & sweep")                 \
1879131994Scperciva                                                                            \
1880131994Scperciva  product(uintx, CMSBitMapYieldQuantum, 10*M,                               \
1881131994Scperciva          "Bitmap operations should process at most this many bits"         \
1882131994Scperciva          "between yields")                                                 \
1883131994Scperciva                                                                            \
18847685Sache  product(bool, CMSDumpAtPromotionFailure, false,                           \
18857685Sache          "Dump useful information about the state of the CMS old "         \
1886131994Scperciva          " generation upon a promotion failure.")                          \
1887131994Scperciva                                                                            \
1888131994Scperciva  product(bool, CMSPrintChunksInDump, false,                                \
1889131994Scperciva          "In a dump enabled by CMSDumpAtPromotionFailure, include "        \
1890131994Scperciva          " more detailed information about the free chunks.")              \
1891131994Scperciva                                                                            \
1892131994Scperciva  product(bool, CMSPrintObjectsInDump, false,                               \
1893131994Scperciva          "In a dump enabled by CMSDumpAtPromotionFailure, include "        \
1894131994Scperciva          " more detailed information about the allocated objects.")        \
1895131994Scperciva                                                                            \
1896131994Scperciva  diagnostic(bool, FLSVerifyAllHeapReferences, false,                       \
1897131994Scperciva          "Verify that all refs across the FLS boundary "                   \
1898131994Scperciva          " are to valid objects")                                          \
1899131994Scperciva                                                                            \
19007685Sache  diagnostic(bool, FLSVerifyLists, false,                                   \
19017685Sache          "Do lots of (expensive) FreeListSpace verification")              \
1902131994Scperciva                                                                            \
1903131994Scperciva  diagnostic(bool, FLSVerifyIndexTable, false,                              \
1904131994Scperciva          "Do lots of (expensive) FLS index table verification")            \
1905131994Scperciva                                                                            \
19067685Sache  develop(bool, FLSVerifyDictionary, false,                                 \
1907131994Scperciva          "Do lots of (expensive) FLS dictionary verification")             \
1908131994Scperciva                                                                            \
19097685Sache  develop(bool, VerifyBlockOffsetArray, false,                              \
1910131994Scperciva          "Do (expensive!) block offset array verification")                \
1911131994Scperciva                                                                            \
1912131994Scperciva  diagnostic(bool, BlockOffsetArrayUseUnallocatedBlock, false,              \
1913131994Scperciva          "Maintain _unallocated_block in BlockOffsetArray"                 \
19147685Sache          " (currently applicable only to CMS collector)")                  \
19157685Sache                                                                            \
1916131994Scperciva  develop(bool, TraceCMSState, false,                                       \
1917131994Scperciva          "Trace the state of the CMS collection")                          \
1918131994Scperciva                                                                            \
19197685Sache  product(intx, RefDiscoveryPolicy, 0,                                      \
19207685Sache          "Whether reference-based(0) or referent-based(1)")                \
19217685Sache                                                                            \
19227685Sache  product(bool, ParallelRefProcEnabled, false,                              \
19237685Sache          "Enable parallel reference processing whenever possible")         \
19247685Sache                                                                            \
1925131994Scperciva  product(bool, ParallelRefProcBalancingEnabled, true,                      \
1926131994Scperciva          "Enable balancing of reference processing queues")                \
19277685Sache                                                                            \
19287685Sache  product(intx, CMSTriggerRatio, 80,                                        \
19297685Sache          "Percentage of MinHeapFreeRatio in CMS generation that is "       \
19307685Sache          "allocated before a CMS collection cycle commences")              \
19317685Sache                                                                            \
19327685Sache  product(intx, CMSTriggerPermRatio, 80,                                    \
19337685Sache          "Percentage of MinHeapFreeRatio in the CMS perm generation that " \
19347685Sache          "is allocated before a CMS collection cycle commences, that "     \
19357685Sache          "also collects the perm generation")                              \
19367685Sache                                                                            \
1937131994Scperciva  product(uintx, CMSBootstrapOccupancy, 50,                                 \
1938131994Scperciva          "Percentage CMS generation occupancy at which to "                \
19397685Sache          "initiate CMS collection for bootstrapping collection stats")     \
19407685Sache                                                                            \
19417685Sache  product(intx, CMSInitiatingOccupancyFraction, -1,                         \
19427685Sache          "Percentage CMS generation occupancy to start a CMS collection "  \
19437685Sache          "cycle. A negative value means that CMSTriggerRatio is used")     \
19447685Sache                                                                            \
19457685Sache  product(uintx, InitiatingHeapOccupancyPercent, 45,                        \
19467685Sache          "Percentage of the (entire) heap occupancy to start a "           \
19477685Sache          "concurrent GC cycle. It us used by GCs that trigger a "          \
19487685Sache          "concurrent GC cycle based on the occupancy of the entire heap, " \
19497685Sache          "not just one of the generations (e.g., G1). A value of 0 "       \
19507685Sache          "denotes 'do constant GC cycles'.")                               \
19517685Sache                                                                            \
19527685Sache  product(intx, CMSInitiatingPermOccupancyFraction, -1,                     \
19537685Sache          "Percentage CMS perm generation occupancy to start a "            \
19547685Sache          "CMScollection cycle. A negative value means that "               \
1955131994Scperciva          "CMSTriggerPermRatio is used")                                    \
1956131994Scperciva                                                                            \
1957131994Scperciva  product(bool, UseCMSInitiatingOccupancyOnly, false,                       \
1958131994Scperciva          "Only use occupancy as a crierion for starting a CMS collection") \
1959131994Scperciva                                                                            \
1960131994Scperciva  product(intx, CMSIsTooFullPercentage, 98,                                 \
19617685Sache          "An absolute ceiling above which CMS will always consider the "   \
19627685Sache          "perm gen ripe for collection")                                   \
19637685Sache                                                                            \
19647685Sache  develop(bool, CMSTestInFreeList, false,                                   \
19657685Sache          "Check if the coalesced range is already in the "                 \
19667685Sache          "free lists as claimed")                                          \
196748384Sjkh                                                                            \
196848384Sjkh  notproduct(bool, CMSVerifyReturnedBytes, false,                           \
196948384Sjkh          "Check that all the garbage collected was returned to the "       \
197048384Sjkh          "free lists.")                                                    \
197148384Sjkh                                                                            \
197248384Sjkh  notproduct(bool, ScavengeALot, false,                                     \
19737685Sache          "Force scavenge at every Nth exit from the runtime system "       \
19747685Sache          "(N=ScavengeALotInterval)")                                       \
19757685Sache                                                                            \
19767685Sache  develop(bool, FullGCALot, false,                                          \
19777685Sache          "Force full gc at every Nth exit from the runtime system "        \
19787685Sache          "(N=FullGCALotInterval)")                                         \
19797685Sache                                                                            \
19807685Sache  notproduct(bool, GCALotAtAllSafepoints, false,                            \
19817685Sache          "Enforce ScavengeALot/GCALot at all potential safepoints")        \
19827685Sache                                                                            \
19837685Sache  product(bool, PrintPromotionFailure, false,                               \
19847685Sache          "Print additional diagnostic information following "              \
19857685Sache          " promotion failure")                                             \
19867685Sache                                                                            \
19877685Sache  notproduct(bool, PromotionFailureALot, false,                             \
19887685Sache          "Use promotion failure handling on every youngest generation "    \
19897685Sache          "collection")                                                     \
19907685Sache                                                                            \
19917685Sache  develop(uintx, PromotionFailureALotCount, 1000,                           \
19927685Sache          "Number of promotion failures occurring at ParGCAllocBuffer"      \
19937685Sache          "refill attempts (ParNew) or promotion attempts "                 \
19947685Sache          "(other young collectors) ")                                      \
19957685Sache                                                                            \
19967685Sache  develop(uintx, PromotionFailureALotInterval, 5,                           \
19977685Sache          "Total collections between promotion failures alot")              \
19987685Sache                                                                            \
19997685Sache  experimental(intx, WorkStealingSleepMillis, 1,                            \
20007685Sache          "Sleep time when sleep is used for yields")                       \
20017685Sache                                                                            \
20027685Sache  experimental(uintx, WorkStealingYieldsBeforeSleep, 5000,                  \
2003108661Sschweikh          "Number of yields before a sleep is done during workstealing")    \
2004108661Sschweikh                                                                            \
2005108661Sschweikh  experimental(uintx, WorkStealingHardSpins, 4096,                          \
2006108661Sschweikh          "Number of iterations in a spin loop between checks on "          \
200733734Sjulian          "time out of hard spin")                                          \
200848384Sjkh                                                                            \
200948388Sjkh  experimental(uintx, WorkStealingSpinToYieldRatio, 10,                     \
201048388Sjkh          "Ratio of hard spins to calls to yield")                          \
20117685Sache                                                                            \
20127685Sache  product(uintx, PreserveMarkStackSize, 1024,                               \
20137685Sache          "Size for stack used in promotion failure handling")              \
20147685Sache                                                                            \
20157685Sache  develop(uintx, ObjArrayMarkingStride, 512,                                \
20167685Sache          "Number of ObjArray elements to push onto the marking stack"      \
20177685Sache          "before pushing a continuation entry")                            \
20187685Sache                                                                            \
20197685Sache  notproduct(bool, ExecuteInternalVMTests, false,                           \
20207685Sache          "Enable execution of internal VM tests.")                         \
20217685Sache                                                                            \
20227685Sache  product_pd(bool, UseTLAB, "Use thread-local object allocation")           \
20237685Sache                                                                            \
20247685Sache  product_pd(bool, ResizeTLAB,                                              \
20257685Sache          "Dynamically resize tlab size for threads")                       \
20267685Sache                                                                            \
20277685Sache  product(bool, ZeroTLAB, false,                                            \
20287685Sache          "Zero out the newly created TLAB")                                \
20297685Sache                                                                            \
20307685Sache  product(bool, FastTLABRefill, true,                                       \
20317685Sache          "Use fast TLAB refill code")                                      \
20327685Sache                                                                            \
20337685Sache  product(bool, PrintTLAB, false,                                           \
20347685Sache          "Print various TLAB related information")                         \
20357685Sache                                                                            \
20367685Sache  product(bool, TLABStats, true,                                            \
20377685Sache          "Print various TLAB related information")                         \
20387685Sache                                                                            \
20397685Sache  product(bool, UseBlockZeroing, false,                                     \
20407685Sache          "Use special cpu instructions for block zeroing")                 \
20417685Sache                                                                            \
20427685Sache  product(intx, BlockZeroingLowLimit, 2048,                                 \
20437685Sache          "Minimum size in bytes when block zeroing will be used")          \
20447685Sache                                                                            \
20457685Sache  product(bool, UseBlockCopy, false,                                        \
20467685Sache          "Use special cpu instructions for block copy")                    \
20477685Sache                                                                            \
20487685Sache  product(intx, BlockCopyLowLimit, 2048,                                    \
20497685Sache          "Minimum size in bytes when block copy will be used")             \
20507685Sache                                                                            \
20517685Sache  product(bool, PrintRevisitStats, false,                                   \
20527685Sache          "Print revisit (klass and MDO) stack related information")        \
2053131994Scperciva                                                                            \
20547685Sache  EMBEDDED_ONLY(product(bool, LowMemoryProtection, true,                    \
2055131994Scperciva          "Enable LowMemoryProtection"))                                    \
20567685Sache                                                                            \
20577685Sache  product_pd(bool, NeverActAsServerClassMachine,                            \
20587685Sache          "Never act like a server-class machine")                          \
2059131994Scperciva                                                                            \
20607685Sache  product(bool, AlwaysActAsServerClassMachine, false,                       \
20617685Sache          "Always act like a server-class machine")                         \
20627685Sache                                                                            \
20637685Sache  product_pd(uint64_t, MaxRAM,                                              \
20647685Sache          "Real memory size (in bytes) used to set maximum heap size")      \
20657685Sache                                                                            \
20667685Sache  product(uintx, ErgoHeapSizeLimit, 0,                                      \
20677685Sache          "Maximum ergonomically set heap size (in bytes); zero means use " \
2068131994Scperciva          "MaxRAM / MaxRAMFraction")                                        \
20697685Sache                                                                            \
20707685Sache  product(uintx, MaxRAMFraction, 4,                                         \
20717685Sache          "Maximum fraction (1/n) of real memory used for maximum heap "    \
20727685Sache          "size")                                                           \
20737685Sache                                                                            \
20747685Sache  product(uintx, DefaultMaxRAMFraction, 4,                                  \
20757685Sache          "Maximum fraction (1/n) of real memory used for maximum heap "    \
20767685Sache          "size; deprecated: to be renamed to MaxRAMFraction")              \
20777685Sache                                                                            \
20787685Sache  product(uintx, MinRAMFraction, 2,                                         \
20797685Sache          "Minimum fraction (1/n) of real memory used for maxmimum heap "   \
20807685Sache          "size on systems with small physical memory size")                \
20817685Sache                                                                            \
20827685Sache  product(uintx, InitialRAMFraction, 64,                                    \
20837685Sache          "Fraction (1/n) of real memory used for initial heap size")       \
20847685Sache                                                                            \
20857685Sache  product(bool, UseAutoGCSelectPolicy, false,                               \
20867685Sache          "Use automatic collection selection policy")                      \
20877685Sache                                                                            \
20887685Sache  product(uintx, AutoGCSelectPauseMillis, 5000,                             \
20897685Sache          "Automatic GC selection pause threshhold in ms")                  \
20907685Sache                                                                            \
20917685Sache  product(bool, UseAdaptiveSizePolicy, true,                                \
20927685Sache          "Use adaptive generation sizing policies")                        \
20937685Sache                                                                            \
20947685Sache  product(bool, UsePSAdaptiveSurvivorSizePolicy, true,                      \
20957685Sache          "Use adaptive survivor sizing policies")                          \
20967685Sache                                                                            \
20977685Sache  product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true,     \
20987685Sache          "Use adaptive young-old sizing policies at minor collections")    \
20997685Sache                                                                            \
21007685Sache  product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true,     \
21017685Sache          "Use adaptive young-old sizing policies at major collections")    \
21027685Sache                                                                            \
21037685Sache  product(bool, UseAdaptiveSizePolicyWithSystemGC, false,                   \
21047685Sache          "Use statistics from System.GC for adaptive size policy")         \
21057685Sache                                                                            \
21067685Sache  product(bool, UseAdaptiveGCBoundary, false,                               \
21077685Sache          "Allow young-old boundary to move")                               \
21087685Sache                                                                            \
21097685Sache  develop(bool, TraceAdaptiveGCBoundary, false,                             \
21107685Sache          "Trace young-old boundary moves")                                 \
21117685Sache                                                                            \
21127685Sache  develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1,             \
21137685Sache          "Resize the virtual spaces of the young or old generations")      \
21147685Sache                                                                            \
21157685Sache  product(uintx, AdaptiveSizeThroughPutPolicy, 0,                           \
21167685Sache          "Policy for changeing generation size for throughput goals")      \
21177685Sache                                                                            \
21187685Sache  product(uintx, AdaptiveSizePausePolicy, 0,                                \
21197685Sache          "Policy for changing generation size for pause goals")            \
21207685Sache                                                                            \
21217685Sache  develop(bool, PSAdjustTenuredGenForMinorPause, false,                     \
21227685Sache          "Adjust tenured generation to achive a minor pause goal")         \
21237685Sache                                                                            \
21247685Sache  develop(bool, PSAdjustYoungGenForMajorPause, false,                       \
21257685Sache          "Adjust young generation to achive a major pause goal")           \
21267685Sache                                                                            \
21277685Sache  product(uintx, AdaptiveSizePolicyInitializingSteps, 20,                   \
21287685Sache          "Number of steps where heuristics is used before data is used")   \
21297685Sache                                                                            \
213091141Scjc  develop(uintx, AdaptiveSizePolicyReadyThreshold, 5,                       \
213191141Scjc          "Number of collections before the adaptive sizing is started")    \
21327685Sache                                                                            \
21337685Sache  product(uintx, AdaptiveSizePolicyOutputInterval, 0,                       \
2134215249Stuexen          "Collecton interval for printing information; zero => never")     \
2135131994Scperciva                                                                            \
2136131994Scperciva  product(bool, UseAdaptiveSizePolicyFootprintGoal, true,                   \
21377685Sache          "Use adaptive minimum footprint as a goal")                       \
213829928Smarkm                                                                            \
213929928Smarkm  product(uintx, AdaptiveSizePolicyWeight, 10,                              \
21407685Sache          "Weight given to exponential resizing, between 0 and 100")        \
21417685Sache                                                                            \
21427685Sache  product(uintx, AdaptiveTimeWeight,       25,                              \
21437685Sache          "Weight given to time in adaptive policy, between 0 and 100")     \
21447685Sache                                                                            \
214591141Scjc  product(uintx, PausePadding, 1,                                           \
214691141Scjc          "How much buffer to keep for pause time")                         \
214729928Smarkm                                                                            \
214829928Smarkm  product(uintx, PromotedPadding, 3,                                        \
214929928Smarkm          "How much buffer to keep for promotion failure")                  \
215010808Sgibbs                                                                            \
215129928Smarkm  product(uintx, SurvivorPadding, 3,                                        \
215229928Smarkm          "How much buffer to keep for survivor overflow")                  \
215329928Smarkm                                                                            \
215410808Sgibbs  product(uintx, AdaptivePermSizeWeight, 20,                                \
215529928Smarkm          "Weight for perm gen exponential resizing, between 0 and 100")    \
21567685Sache                                                                            \
21577685Sache  product(uintx, PermGenPadding, 3,                                         \
2158168625Sstas          "How much buffer to keep for perm gen sizing")                    \
2159168625Sstas                                                                            \
2160168625Sstas  product(uintx, ThresholdTolerance, 10,                                    \
2161168625Sstas          "Allowed collection cost difference between generations")         \
2162215249Stuexen                                                                            \
2163215249Stuexen  product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50,                \
21647685Sache          "If collection costs are within margin, reduce both by full "     \
21657685Sache          "delta")                                                          \
21667685Sache                                                                            \
21677685Sache  product(uintx, YoungGenerationSizeIncrement, 20,                          \
21687685Sache          "Adaptive size percentage change in young generation")            \
21697685Sache                                                                            \
217027017Speter  product(uintx, YoungGenerationSizeSupplement, 80,                         \
217127017Speter          "Supplement to YoungedGenerationSizeIncrement used at startup")   \
217291141Scjc                                                                            \
217391141Scjc  product(uintx, YoungGenerationSizeSupplementDecay, 8,                     \
217491141Scjc          "Decay factor to YoungedGenerationSizeSupplement")                \
217591141Scjc                                                                            \
217691141Scjc  product(uintx, TenuredGenerationSizeIncrement, 20,                        \
217791141Scjc          "Adaptive size percentage change in tenured generation")          \
217891141Scjc                                                                            \
217991141Scjc  product(uintx, TenuredGenerationSizeSupplement, 80,                       \
21807685Sache          "Supplement to TenuredGenerationSizeIncrement used at startup")   \
21817685Sache                                                                            \
21827685Sache  product(uintx, TenuredGenerationSizeSupplementDecay, 2,                   \
21837685Sache          "Decay factor to TenuredGenerationSizeIncrement")                 \
21847685Sache                                                                            \
218536489Sandreas  product(uintx, MaxGCPauseMillis, max_uintx,                           \
218636489Sandreas          "Adaptive size policy maximum GC pause time goal in msec, "       \
218736489Sandreas          "or (G1 Only) the max. GC time per MMU time slice")               \
218836489Sandreas                                                                            \
218936489Sandreas  product(uintx, GCPauseIntervalMillis, 0,                                  \
219036489Sandreas          "Time slice for MMU specification")                               \
219175694Sume                                                                            \
2192131732Scperciva  product(uintx, MaxGCMinorPauseMillis, max_uintx,                          \
2193131732Scperciva          "Adaptive size policy maximum GC minor pause time goal in msec")  \
219436489Sandreas                                                                            \
21957685Sache  product(uintx, GCTimeRatio, 99,                                           \
21967685Sache          "Adaptive size policy application time to GC time ratio")         \
2197215249Stuexen                                                                            \
2198215249Stuexen  product(uintx, AdaptiveSizeDecrementScaleFactor, 4,                       \
2199215249Stuexen          "Adaptive size scale down factor for shrinking")                  \
2200215249Stuexen                                                                            \
2201215249Stuexen  product(bool, UseAdaptiveSizeDecayMajorGCCost, true,                      \
2202215249Stuexen          "Adaptive size decays the major cost for long major intervals")   \
2203215249Stuexen                                                                            \
2204215249Stuexen  product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10,                     \
2205215249Stuexen          "Time scale over which major costs decay")                        \
2206215249Stuexen                                                                            \
2207215249Stuexen  product(uintx, MinSurvivorRatio, 3,                                       \
2208107765Seric          "Minimum ratio of young generation/survivor space size")          \
2209107765Seric                                                                            \
22107685Sache  product(uintx, InitialSurvivorRatio, 8,                                   \
22117685Sache          "Initial ratio of eden/survivor space size")                      \
2212154822Smaxim                                                                            \
2213154822Smaxim  product(uintx, BaseFootPrintEstimate, 256*M,                              \
221417771Sasami          "Estimate of footprint other than Java Heap")                     \
2215215249Stuexen                                                                            \
22167685Sache  product(bool, UseGCOverheadLimit, true,                                   \
22177685Sache          "Use policy to limit of proportion of time spent in GC "          \
2218172089Smr          "before an OutOfMemory error is thrown")                          \
2219172089Smr                                                                            \
22207685Sache  product(uintx, GCTimeLimit, 98,                                           \
22217685Sache          "Limit of proportion of time spent in GC before an OutOfMemory"   \
2222233772Sivoras          "error is thrown (used with GCHeapFreeLimit)")                    \
2223233772Sivoras                                                                            \
22247685Sache  product(uintx, GCHeapFreeLimit, 2,                                        \
22257685Sache          "Minimum percentage of free space after a full GC before an "     \
2226120136Sobrien          "OutOfMemoryError is thrown (used with GCTimeLimit)")             \
22277685Sache                                                                            \
22287685Sache  develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5,                 \
22297685Sache          "Number of consecutive collections before gc time limit fires")   \
2230131994Scperciva                                                                            \
22317685Sache  product(bool, PrintAdaptiveSizePolicy, false,                             \
22327685Sache          "Print information about AdaptiveSizePolicy")                     \
22337685Sache                                                                            \
22347685Sache  product(intx, PrefetchCopyIntervalInBytes, -1,                            \
2235131732Scperciva          "How far ahead to prefetch destination area (<= 0 means off)")    \
2236131732Scperciva                                                                            \
2237215249Stuexen  product(intx, PrefetchScanIntervalInBytes, -1,                            \
2238215249Stuexen          "How far ahead to prefetch scan area (<= 0 means off)")           \
2239133847Scperciva                                                                            \
2240133847Scperciva  product(intx, PrefetchFieldsAhead, -1,                                    \
2241120909Sbms          "How many fields ahead to prefetch in oop scan (<= 0 means off)") \
2242120909Sbms                                                                            \
2243215249Stuexen  develop(bool, UsePrefetchQueue, true,                                     \
2244215249Stuexen          "Use the prefetch queue during PS promotion")                     \
2245215249Stuexen                                                                            \
2246215249Stuexen  diagnostic(bool, VerifyBeforeExit, trueInDebug,                           \
2247215249Stuexen          "Verify system before exiting")                                   \
2248215249Stuexen                                                                            \
2249215249Stuexen  diagnostic(bool, VerifyBeforeGC, false,                                   \
22507685Sache          "Verify memory system before GC")                                 \
22517685Sache                                                                            \
2252131732Scperciva  diagnostic(bool, VerifyAfterGC, false,                                    \
2253131732Scperciva          "Verify memory system after GC")                                  \
2254131732Scperciva                                                                            \
2255131732Scperciva  diagnostic(bool, VerifyDuringGC, false,                                   \
2256131732Scperciva          "Verify memory system during GC (between phases)")                \
2257131732Scperciva                                                                            \
225891141Scjc  diagnostic(bool, GCParallelVerificationEnabled, true,                     \
225991141Scjc          "Enable parallel memory system verification")                     \
2260131994Scperciva                                                                            \
22617685Sache  diagnostic(bool, DeferInitialCardMark, false,                             \
22627685Sache          "When +ReduceInitialCardMarks, explicitly defer any that "        \
22637685Sache           "may arise from new_pre_store_barrier")                          \
22647685Sache                                                                            \
22657685Sache  diagnostic(bool, VerifyRememberedSets, false,                             \
2266203342Sume          "Verify GC remembered sets")                                      \
2267203342Sume                                                                            \
22687685Sache  diagnostic(bool, VerifyObjectStartArray, true,                            \
22697685Sache          "Verify GC object start array if verify before/after")            \
22707685Sache                                                                            \
22717685Sache  product(bool, DisableExplicitGC, false,                                   \
2272203067Sedwin          "Tells whether calling System.gc() does a full GC")               \
2273203067Sedwin                                                                            \
22747685Sache  notproduct(bool, CheckMemoryInitialization, false,                        \
22757685Sache          "Checks memory initialization")                                   \
227691141Scjc                                                                            \
22777685Sache  product(bool, CollectGen0First, false,                                    \
22787685Sache          "Collect youngest generation before each full GC")                \
22797685Sache                                                                            \
22807685Sache  diagnostic(bool, BindCMSThreadToCPU, false,                               \
22817685Sache          "Bind CMS Thread to CPU if possible")                             \
228218270Spst                                                                            \
228318270Spst  diagnostic(uintx, CPUForCMSThread, 0,                                     \
22847685Sache          "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \
22857685Sache                                                                            \
2286215249Stuexen  product(bool, BindGCTaskThreadsToCPUs, false,                             \
2287215249Stuexen          "Bind GCTaskThreads to CPUs if possible")                         \
2288215249Stuexen                                                                            \
2289215249Stuexen  product(bool, UseGCTaskAffinity, false,                                   \
2290215249Stuexen          "Use worker affinity when asking for GCTasks")                    \
2291215249Stuexen                                                                            \
22927685Sache  product(uintx, ProcessDistributionStride, 4,                              \
22937685Sache          "Stride through processors when distributing processes")          \
22947685Sache                                                                            \
22957685Sache  product(uintx, CMSCoordinatorYieldSleepCount, 10,                         \
22967685Sache          "number of times the coordinator GC thread will sleep while "     \
22977685Sache          "yielding before giving up and resuming GC")                      \
22987685Sache                                                                            \
22997685Sache  product(uintx, CMSYieldSleepCount, 0,                                     \
230091141Scjc          "number of times a GC thread (minus the coordinator) "            \
230191141Scjc          "will sleep while yielding before giving up and resuming GC")     \
23027685Sache                                                                            \
23037685Sache  /* gc tracing */                                                          \
2304169591Sgrog  manageable(bool, PrintGC, false,                                          \
2305169591Sgrog          "Print message at garbage collect")                               \
2306169591Sgrog                                                                            \
2307169591Sgrog  manageable(bool, PrintGCDetails, false,                                   \
2308169591Sgrog          "Print more details at garbage collect")                          \
2309169591Sgrog                                                                            \
2310215249Stuexen  manageable(bool, PrintGCDateStamps, false,                                \
2311215249Stuexen          "Print date stamps at garbage collect")                           \
231291141Scjc                                                                            \
231391141Scjc  manageable(bool, PrintGCTimeStamps, false,                                \
23147685Sache          "Print timestamps at garbage collect")                            \
23157685Sache                                                                            \
23167685Sache  product(bool, PrintGCTaskTimeStamps, false,                               \
23177685Sache          "Print timestamps for individual gc worker thread tasks")         \
23187685Sache                                                                            \
23197685Sache  develop(intx, ConcGCYieldTimeout, 0,                                      \
23207685Sache          "If non-zero, assert that GC threads yield within this # of ms.") \
23217685Sache                                                                            \
2322168618Sstas  notproduct(bool, TraceMarkSweep, false,                                   \
2323168618Sstas          "Trace mark sweep")                                               \
23247685Sache                                                                            \
23257685Sache  product(bool, PrintReferenceGC, false,                                    \
2326168618Sstas          "Print times spent handling reference objects during GC "         \
2327168618Sstas          " (enabled only when PrintGCDetails)")                            \
23287685Sache                                                                            \
23297685Sache  develop(bool, TraceReferenceGC, false,                                    \
23307685Sache          "Trace handling of soft/weak/final/phantom references")           \
23317685Sache                                                                            \
23327685Sache  develop(bool, TraceFinalizerRegistration, false,                          \
23337685Sache         "Trace registration of final references")                          \
23347685Sache                                                                            \
23357685Sache  notproduct(bool, TraceScavenge, false,                                    \
233691141Scjc          "Trace scavenge")                                                 \
233791141Scjc                                                                            \
233891141Scjc  product_rw(bool, TraceClassLoading, false,                                \
233991141Scjc          "Trace all classes loaded")                                       \
234034638Sjseger                                                                            \
234134638Sjseger  product(bool, TraceClassLoadingPreorder, false,                           \
2342114209Smdodd          "Trace all classes loaded in order referenced (not loaded)")      \
2343114209Smdodd                                                                            \
234491273Scjc  product_rw(bool, TraceClassUnloading, false,                              \
234591273Scjc          "Trace unloading of classes")                                     \
234615084Sjoerg                                                                            \
2347215249Stuexen  product_rw(bool, TraceLoaderConstraints, false,                           \
2348215249Stuexen          "Trace loader constraints")                                       \
2349215249Stuexen                                                                            \
2350215249Stuexen  product(bool, TraceGen0Time, false,                                       \
2351215249Stuexen          "Trace accumulated time for Gen 0 collection")                    \
2352215249Stuexen                                                                            \
235329571Sasami  product(bool, TraceGen1Time, false,                                       \
23547685Sache          "Trace accumulated time for Gen 1 collection")                    \
23557685Sache                                                                            \
23567685Sache  product(bool, PrintTenuringDistribution, false,                           \
23577685Sache          "Print tenuring age information")                                 \
235891141Scjc                                                                            \
235991141Scjc  product_rw(bool, PrintHeapAtGC, false,                                    \
236091141Scjc          "Print heap layout before and after each GC")                     \
236191141Scjc                                                                            \
236291141Scjc  product_rw(bool, PrintHeapAtGCExtended, false,                            \
236391141Scjc          "Prints extended information about the layout of the heap "       \
236448968Sobrien          "when -XX:+PrintHeapAtGC is set")                                 \
236580961Sdougb                                                                            \
236680961Sdougb  product(bool, PrintHeapAtSIGBREAK, true,                                  \
236780961Sdougb          "Print heap layout in response to SIGBREAK")                      \
236880961Sdougb                                                                            \
23697685Sache  manageable(bool, PrintClassHistogramBeforeFullGC, false,                  \
23707685Sache          "Print a class histogram before any major stop-world GC")         \
23717685Sache                                                                            \
23727685Sache  manageable(bool, PrintClassHistogramAfterFullGC, false,                   \
23737685Sache          "Print a class histogram after any major stop-world GC")          \
23747685Sache                                                                            \
23757685Sache  manageable(bool, PrintClassHistogram, false,                              \
23767685Sache          "Print a histogram of class instances")                           \
23777685Sache                                                                            \
23787685Sache  develop(bool, TraceWorkGang, false,                                       \
23797685Sache          "Trace activities of work gangs")                                 \
23807685Sache                                                                            \
23817685Sache  product(bool, TraceParallelOldGCTasks, false,                             \
23827685Sache          "Trace multithreaded GC activity")                                \
23837685Sache                                                                            \
23847685Sache  develop(bool, TraceBlockOffsetTable, false,                               \
23857685Sache          "Print BlockOffsetTable maps")                                    \
23867685Sache                                                                            \
23877685Sache  develop(bool, TraceCardTableModRefBS, false,                              \
23887685Sache          "Print CardTableModRefBS maps")                                   \
2389172065Sbrooks                                                                            \
2390172065Sbrooks  develop(bool, TraceGCTaskManager, false,                                  \
2391172065Sbrooks          "Trace actions of the GC task manager")                           \
2392172260Sbrooks                                                                            \
239391141Scjc  develop(bool, TraceGCTaskQueue, false,                                    \
239491141Scjc          "Trace actions of the GC task queues")                            \
2395203574Sbms                                                                            \
2396203574Sbms  diagnostic(bool, TraceGCTaskThread, false,                                   \
239786699Sobrien          "Trace actions of the GC task threads")                           \
2398215249Stuexen                                                                            \
2399215249Stuexen  product(bool, PrintParallelOldGCPhaseTimes, false,                        \
2400215249Stuexen          "Print the time taken by each parallel old gc phase."             \
24017685Sache          "PrintGCDetails must also be enabled.")                           \
24027685Sache                                                                            \
240391141Scjc  develop(bool, TraceParallelOldGCMarkingPhase, false,                      \
240491141Scjc          "Trace parallel old gc marking phase")                            \
24057685Sache                                                                            \
24067685Sache  develop(bool, TraceParallelOldGCSummaryPhase, false,                      \
24077685Sache          "Trace parallel old gc summary phase")                            \
24087685Sache                                                                            \
24097685Sache  develop(bool, TraceParallelOldGCCompactionPhase, false,                   \
24107685Sache          "Trace parallel old gc compaction phase")                         \
24117685Sache                                                                            \
24127685Sache  develop(bool, TraceParallelOldGCDensePrefix, false,                       \
241362630Ssheldonh          "Trace parallel old gc dense prefix computation")                 \
241462630Ssheldonh                                                                            \
24157685Sache  develop(bool, IgnoreLibthreadGPFault, false,                              \
24167685Sache          "Suppress workaround for libthread GP fault")                     \
24177685Sache                                                                            \
24187685Sache  product(bool, PrintJNIGCStalls, false,                                    \
24197685Sache          "Print diagnostic message when GC is stalled"                     \
24207685Sache          "by JNI critical section")                                        \
24217685Sache                                                                            \
24227685Sache  /* GC log rotation setting */                                             \
242379093Sassar                                                                            \
242479093Sassar  product(bool, UseGCLogFileRotation, false,                                \
2425131732Scperciva          "Prevent large gclog file for long running app. "                 \
2426131732Scperciva          "Requires -Xloggc:<filename>")                                    \
242779093Sassar                                                                            \
242879093Sassar  product(uintx, NumberOfGCLogFiles, 0,                                     \
24297685Sache          "Number of gclog files in rotation, "                             \
24307685Sache          "Default: 0, no rotation")                                        \
243191141Scjc                                                                            \
243291141Scjc  product(uintx, GCLogFileSize, 0,                                          \
24337685Sache          "GC log file size, Default: 0 bytes, no rotation "                \
24347685Sache          "Only valid with UseGCLogFileRotation")                           \
2435215249Stuexen                                                                            \
2436215249Stuexen  /* JVMTI heap profiling */                                                \
2437129789Smlaier                                                                            \
2438215249Stuexen  diagnostic(bool, TraceJVMTIObjectTagging, false,                          \
2439215249Stuexen          "Trace JVMTI object tagging calls")                               \
244037370Sbrian                                                                            \
2441215249Stuexen  diagnostic(bool, VerifyBeforeIteration, false,                            \
2442215249Stuexen          "Verify memory system before JVMTI iteration")                    \
2443215249Stuexen                                                                            \
2444215249Stuexen  /* compiler interface */                                                  \
244535850Sphk                                                                            \
2446203066Sedwin  develop(bool, CIPrintCompilerName, false,                                 \
2447203066Sedwin          "when CIPrint is active, print the name of the active compiler")  \
24487685Sache                                                                            \
24497685Sache  develop(bool, CIPrintCompileQueue, false,                                 \
24507685Sache          "display the contents of the compile queue whenever a "           \
24517685Sache          "compilation is enqueued")                                        \
2452215249Stuexen                                                                            \
2453215249Stuexen  develop(bool, CIPrintRequests, false,                                     \
2454215249Stuexen          "display every request for compilation")                          \
2455215249Stuexen                                                                            \
2456215249Stuexen  product(bool, CITime, false,                                              \
2457215249Stuexen          "collect timing information for compilation")                     \
2458168624Sstas                                                                            \
245917106Spst  develop(bool, CITimeEach, false,                                          \
246024473Spst          "display timing information after each successful compilation")   \
246124473Spst                                                                            \
2462215249Stuexen  develop(bool, CICountOSR, true,                                           \
2463215249Stuexen          "use a separate counter when assigning ids to osr compilations")  \
2464215249Stuexen                                                                            \
2465215249Stuexen  develop(bool, CICompileNatives, true,                                     \
2466215249Stuexen          "compile native methods if supported by the compiler")            \
24677685Sache                                                                            \
24687685Sache  develop_pd(bool, CICompileOSR,                                            \
2469131994Scperciva          "compile on stack replacement methods if supported by the "       \
2470131994Scperciva          "compiler")                                                       \
2471215249Stuexen                                                                            \
2472215249Stuexen  develop(bool, CIPrintMethodCodes, false,                                  \
2473215249Stuexen          "print method bytecodes of the compiled code")                    \
2474131994Scperciva                                                                            \
2475131994Scperciva  develop(bool, CIPrintTypeFlow, false,                                     \
2476131994Scperciva          "print the results of ciTypeFlow analysis")                       \
2477131994Scperciva                                                                            \
247829606Sasami  develop(bool, CITraceTypeFlow, false,                                     \
2479215249Stuexen          "detailed per-bytecode tracing of ciTypeFlow analysis")           \
2480215249Stuexen                                                                            \
2481215249Stuexen  develop(intx, CICloneLoopTestLimit, 100,                                  \
2482215249Stuexen          "size limit for blocks heuristically cloned in ciTypeFlow")       \
2483215249Stuexen                                                                            \
2484131994Scperciva  develop(intx, OSROnlyBCI, -1,                                             \
2485131994Scperciva          "OSR only at this bci.  Negative values mean exclude that bci")   \
2486                                                                            \
2487  /* temp diagnostics */                                                    \
2488                                                                            \
2489  diagnostic(bool, TraceRedundantCompiles, false,                           \
2490          "Have compile broker print when a request already in the queue is"\
2491          " requested again")                                               \
2492                                                                            \
2493  diagnostic(bool, InitialCompileFast, false,                               \
2494          "Initial compile at CompLevel_fast_compile")                      \
2495                                                                            \
2496  diagnostic(bool, InitialCompileReallyFast, false,                         \
2497          "Initial compile at CompLevel_really_fast_compile (no profile)")  \
2498                                                                            \
2499  diagnostic(bool, FullProfileOnReInterpret, true,                          \
2500          "On re-interpret unc-trap compile next at CompLevel_fast_compile")\
2501                                                                            \
2502  /* compiler */                                                            \
2503                                                                            \
2504  product(intx, CICompilerCount, CI_COMPILER_COUNT,                         \
2505          "Number of compiler threads to run")                              \
2506                                                                            \
2507  product(intx, CompilationPolicyChoice, 0,                                 \
2508          "which compilation policy (0/1)")                                 \
2509                                                                            \
2510  develop(bool, UseStackBanging, true,                                      \
2511          "use stack banging for stack overflow checks (required for "      \
2512          "proper StackOverflow handling; disable only to measure cost "    \
2513          "of stackbanging)")                                               \
2514                                                                            \
2515  develop(bool, Use24BitFPMode, true,                                       \
2516          "Set 24-bit FPU mode on a per-compile basis ")                    \
2517                                                                            \
2518  develop(bool, Use24BitFP, true,                                           \
2519          "use FP instructions that produce 24-bit precise results")        \
2520                                                                            \
2521  develop(bool, UseStrictFP, true,                                          \
2522          "use strict fp if modifier strictfp is set")                      \
2523                                                                            \
2524  develop(bool, GenerateSynchronizationCode, true,                          \
2525          "generate locking/unlocking code for synchronized methods and "   \
2526          "monitors")                                                       \
2527                                                                            \
2528  develop(bool, GenerateCompilerNullChecks, true,                           \
2529          "Generate explicit null checks for loads/stores/calls")           \
2530                                                                            \
2531  develop(bool, GenerateRangeChecks, true,                                  \
2532          "Generate range checks for array accesses")                       \
2533                                                                            \
2534  develop_pd(bool, ImplicitNullChecks,                                      \
2535          "generate code for implicit null checks")                         \
2536                                                                            \
2537  product(bool, PrintSafepointStatistics, false,                            \
2538          "print statistics about safepoint synchronization")               \
2539                                                                            \
2540  product(intx, PrintSafepointStatisticsCount, 300,                         \
2541          "total number of safepoint statistics collected "                 \
2542          "before printing them out")                                       \
2543                                                                            \
2544  product(intx, PrintSafepointStatisticsTimeout,  -1,                       \
2545          "print safepoint statistics only when safepoint takes"            \
2546          " more than PrintSafepointSatisticsTimeout in millis")            \
2547                                                                            \
2548  product(bool, TraceSafepointCleanupTime, false,                           \
2549          "print the break down of clean up tasks performed during"         \
2550          " safepoint")                                                     \
2551                                                                            \
2552  develop(bool, InlineAccessors, true,                                      \
2553          "inline accessor methods (get/set)")                              \
2554                                                                            \
2555  product(bool, Inline, true,                                               \
2556          "enable inlining")                                                \
2557                                                                            \
2558  product(bool, ClipInlining, true,                                         \
2559          "clip inlining if aggregate method exceeds DesiredMethodLimit")   \
2560                                                                            \
2561  develop(bool, UseCHA, true,                                               \
2562          "enable CHA")                                                     \
2563                                                                            \
2564  product(bool, UseTypeProfile, true,                                       \
2565          "Check interpreter profile for historically monomorphic calls")   \
2566                                                                            \
2567  product(intx, TypeProfileMajorReceiverPercent, 90,                        \
2568          "% of major receiver type to all profiled receivers")             \
2569                                                                            \
2570  notproduct(bool, TimeCompiler, false,                                     \
2571          "time the compiler")                                              \
2572                                                                            \
2573  notproduct(bool, TimeCompiler2, false,                                    \
2574          "detailed time the compiler (requires +TimeCompiler)")            \
2575                                                                            \
2576  diagnostic(bool, PrintInlining, false,                                    \
2577          "prints inlining optimizations")                                  \
2578                                                                            \
2579  diagnostic(bool, PrintIntrinsics, false,                                  \
2580          "prints attempted and successful inlining of intrinsics")         \
2581                                                                            \
2582  product(bool, UseCountLeadingZerosInstruction, false,                     \
2583          "Use count leading zeros instruction")                            \
2584                                                                            \
2585  product(bool, UsePopCountInstruction, false,                              \
2586          "Use population count instruction")                               \
2587                                                                            \
2588  diagnostic(ccstrlist, DisableIntrinsic, "",                               \
2589          "do not expand intrinsics whose (internal) names appear here")    \
2590                                                                            \
2591  develop(bool, StressReflectiveCode, false,                                \
2592          "Use inexact types at allocations, etc., to test reflection")     \
2593                                                                            \
2594  develop(bool, EagerInitialization, false,                                 \
2595          "Eagerly initialize classes if possible")                         \
2596                                                                            \
2597  develop(bool, TraceMethodReplacement, false,                              \
2598          "Print when methods are replaced do to recompilation")            \
2599                                                                            \
2600  develop(bool, PrintMethodFlushing, false,                                 \
2601          "print the nmethods being flushed")                               \
2602                                                                            \
2603  notproduct(bool, LogMultipleMutexLocking, false,                          \
2604          "log locking and unlocking of mutexes (only if multiple locks "   \
2605          "are held)")                                                      \
2606                                                                            \
2607  develop(bool, UseRelocIndex, false,                                       \
2608         "use an index to speed random access to relocations")              \
2609                                                                            \
2610  develop(bool, StressCodeBuffers, false,                                   \
2611         "Exercise code buffer expansion and other rare state changes")     \
2612                                                                            \
2613  diagnostic(bool, DebugNonSafepoints, trueInDebug,                         \
2614         "Generate extra debugging info for non-safepoints in nmethods")    \
2615                                                                            \
2616  diagnostic(bool, DebugInlinedCalls, true,                                 \
2617         "If false, restricts profiled locations to the root method only")  \
2618                                                                            \
2619  product(bool, PrintVMOptions, false,                                      \
2620         "Print flags that appeared on the command line")                   \
2621                                                                            \
2622  product(bool, IgnoreUnrecognizedVMOptions, false,                         \
2623         "Ignore unrecognized VM options")                                  \
2624                                                                            \
2625  product(bool, PrintCommandLineFlags, false,                               \
2626         "Print flags specified on command line or set by ergonomics")      \
2627                                                                            \
2628  product(bool, PrintFlagsInitial, false,                                   \
2629         "Print all VM flags before argument processing and exit VM")       \
2630                                                                            \
2631  product(bool, PrintFlagsFinal, false,                                     \
2632         "Print all VM flags after argument and ergonomic processing")      \
2633                                                                            \
2634  notproduct(bool, PrintFlagsWithComments, false,                           \
2635         "Print all VM flags with default values and descriptions and exit")\
2636                                                                            \
2637  diagnostic(bool, SerializeVMOutput, true,                                 \
2638         "Use a mutex to serialize output to tty and hotspot.log")          \
2639                                                                            \
2640  diagnostic(bool, DisplayVMOutput, true,                                   \
2641         "Display all VM output on the tty, independently of LogVMOutput")  \
2642                                                                            \
2643  diagnostic(bool, LogVMOutput, trueInDebug,                                \
2644         "Save VM output to hotspot.log, or to LogFile")                    \
2645                                                                            \
2646  diagnostic(ccstr, LogFile, NULL,                                          \
2647         "If LogVMOutput is on, save VM output to this file [hotspot.log]") \
2648                                                                            \
2649  product(ccstr, ErrorFile, NULL,                                           \
2650         "If an error occurs, save the error data to this file "            \
2651         "[default: ./hs_err_pid%p.log] (%p replaced with pid)")            \
2652                                                                            \
2653  product(bool, DisplayVMOutputToStderr, false,                             \
2654         "If DisplayVMOutput is true, display all VM output to stderr")     \
2655                                                                            \
2656  product(bool, DisplayVMOutputToStdout, false,                             \
2657         "If DisplayVMOutput is true, display all VM output to stdout")     \
2658                                                                            \
2659  product(bool, UseHeavyMonitors, false,                                    \
2660          "use heavyweight instead of lightweight Java monitors")           \
2661                                                                            \
2662  notproduct(bool, PrintSymbolTableSizeHistogram, false,                    \
2663          "print histogram of the symbol table")                            \
2664                                                                            \
2665  notproduct(bool, ExitVMOnVerifyError, false,                              \
2666          "standard exit from VM if bytecode verify error "                 \
2667          "(only in debug mode)")                                           \
2668                                                                            \
2669  notproduct(ccstr, AbortVMOnException, NULL,                               \
2670          "Call fatal if this exception is thrown.  Example: "              \
2671          "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
2672                                                                            \
2673  notproduct(ccstr, AbortVMOnExceptionMessage, NULL,                        \
2674          "Call fatal if the exception pointed by AbortVMOnException "      \
2675          "has this message.")                                              \
2676                                                                            \
2677  develop(bool, DebugVtables, false,                                        \
2678          "add debugging code to vtable dispatch")                          \
2679                                                                            \
2680  develop(bool, PrintVtables, false,                                        \
2681          "print vtables when printing klass")                              \
2682                                                                            \
2683  notproduct(bool, PrintVtableStats, false,                                 \
2684          "print vtables stats at end of run")                              \
2685                                                                            \
2686  develop(bool, TraceCreateZombies, false,                                  \
2687          "trace creation of zombie nmethods")                              \
2688                                                                            \
2689  notproduct(bool, IgnoreLockingAssertions, false,                          \
2690          "disable locking assertions (for speed)")                         \
2691                                                                            \
2692  notproduct(bool, VerifyLoopOptimizations, false,                          \
2693          "verify major loop optimizations")                                \
2694                                                                            \
2695  product(bool, RangeCheckElimination, true,                                \
2696          "Split loop iterations to eliminate range checks")                \
2697                                                                            \
2698  develop_pd(bool, UncommonNullCast,                                        \
2699          "track occurrences of null in casts; adjust compiler tactics")    \
2700                                                                            \
2701  develop(bool, TypeProfileCasts,  true,                                    \
2702          "treat casts like calls for purposes of type profiling")          \
2703                                                                            \
2704  develop(bool, MonomorphicArrayCheck, true,                                \
2705          "Uncommon-trap array store checks that require full type check")  \
2706                                                                            \
2707  diagnostic(bool, ProfileDynamicTypes, true,                               \
2708          "do extra type profiling and use it more aggressively")           \
2709                                                                            \
2710  develop(bool, DelayCompilationDuringStartup, true,                        \
2711          "Delay invoking the compiler until main application class is "    \
2712          "loaded")                                                         \
2713                                                                            \
2714  develop(bool, CompileTheWorld, false,                                     \
2715          "Compile all methods in all classes in bootstrap class path "     \
2716          "(stress test)")                                                  \
2717                                                                            \
2718  develop(bool, CompileTheWorldPreloadClasses, true,                        \
2719          "Preload all classes used by a class before start loading")       \
2720                                                                            \
2721  notproduct(intx, CompileTheWorldSafepointInterval, 100,                   \
2722          "Force a safepoint every n compiles so sweeper can keep up")      \
2723                                                                            \
2724  develop(bool, TraceIterativeGVN, false,                                   \
2725          "Print progress during Iterative Global Value Numbering")         \
2726                                                                            \
2727  develop(bool, FillDelaySlots, true,                                       \
2728          "Fill delay slots (on SPARC only)")                               \
2729                                                                            \
2730  develop(bool, VerifyIterativeGVN, false,                                  \
2731          "Verify Def-Use modifications during sparse Iterative Global "    \
2732          "Value Numbering")                                                \
2733                                                                            \
2734  notproduct(bool, TracePhaseCCP, false,                                    \
2735          "Print progress during Conditional Constant Propagation")         \
2736                                                                            \
2737  develop(bool, TimeLivenessAnalysis, false,                                \
2738          "Time computation of bytecode liveness analysis")                 \
2739                                                                            \
2740  develop(bool, TraceLivenessGen, false,                                    \
2741          "Trace the generation of liveness analysis information")          \
2742                                                                            \
2743  notproduct(bool, TraceLivenessQuery, false,                               \
2744          "Trace queries of liveness analysis information")                 \
2745                                                                            \
2746  notproduct(bool, CollectIndexSetStatistics, false,                        \
2747          "Collect information about IndexSets")                            \
2748                                                                            \
2749  develop(bool, PrintDominators, false,                                     \
2750          "Print out dominator trees for GVN")                              \
2751                                                                            \
2752  develop(bool, UseLoopSafepoints, true,                                    \
2753          "Generate Safepoint nodes in every loop")                         \
2754                                                                            \
2755  notproduct(bool, TraceCISCSpill, false,                                   \
2756          "Trace allocators use of cisc spillable instructions")            \
2757                                                                            \
2758  notproduct(bool, TraceSpilling, false,                                    \
2759          "Trace spilling")                                                 \
2760                                                                            \
2761  product(bool, SplitIfBlocks, true,                                        \
2762          "Clone compares and control flow through merge points to fold "   \
2763          "some branches")                                                  \
2764                                                                            \
2765  develop(intx, FastAllocateSizeLimit, 128*K,                               \
2766          /* Note:  This value is zero mod 1<<13 for a cheap sparc set. */  \
2767          "Inline allocations larger than this in doublewords must go slow")\
2768                                                                            \
2769  product(bool, AggressiveOpts, false,                                      \
2770          "Enable aggressive optimizations - see arguments.cpp")            \
2771                                                                            \
2772  product(bool, UseStringCache, false,                                      \
2773          "Enable String cache capabilities on String.java")                \
2774                                                                            \
2775  /* statistics */                                                          \
2776  develop(bool, CountCompiledCalls, false,                                  \
2777          "counts method invocations")                                      \
2778                                                                            \
2779  notproduct(bool, CountRuntimeCalls, false,                                \
2780          "counts VM runtime calls")                                        \
2781                                                                            \
2782  develop(bool, CountJNICalls, false,                                       \
2783          "counts jni method invocations")                                  \
2784                                                                            \
2785  notproduct(bool, CountJVMCalls, false,                                    \
2786          "counts jvm method invocations")                                  \
2787                                                                            \
2788  notproduct(bool, CountRemovableExceptions, false,                         \
2789          "count exceptions that could be replaced by branches due to "     \
2790          "inlining")                                                       \
2791                                                                            \
2792  notproduct(bool, ICMissHistogram, false,                                  \
2793          "produce histogram of IC misses")                                 \
2794                                                                            \
2795  notproduct(bool, PrintClassStatistics, false,                             \
2796          "prints class statistics at end of run")                          \
2797                                                                            \
2798  notproduct(bool, PrintMethodStatistics, false,                            \
2799          "prints method statistics at end of run")                         \
2800                                                                            \
2801  /* interpreter */                                                         \
2802  develop(bool, ClearInterpreterLocals, false,                              \
2803          "Always clear local variables of interpreter activations upon "   \
2804          "entry")                                                          \
2805                                                                            \
2806  product_pd(bool, RewriteBytecodes,                                        \
2807          "Allow rewriting of bytecodes (bytecodes are not immutable)")     \
2808                                                                            \
2809  product_pd(bool, RewriteFrequentPairs,                                    \
2810          "Rewrite frequently used bytecode pairs into a single bytecode")  \
2811                                                                            \
2812  diagnostic(bool, PrintInterpreter, false,                                 \
2813          "Prints the generated interpreter code")                          \
2814                                                                            \
2815  product(bool, UseInterpreter, true,                                       \
2816          "Use interpreter for non-compiled methods")                       \
2817                                                                            \
2818  develop(bool, UseFastSignatureHandlers, true,                             \
2819          "Use fast signature handlers for native calls")                   \
2820                                                                            \
2821  develop(bool, UseV8InstrsOnly, false,                                     \
2822          "Use SPARC-V8 Compliant instruction subset")                      \
2823                                                                            \
2824  product(bool, UseNiagaraInstrs, false,                                    \
2825          "Use Niagara-efficient instruction subset")                       \
2826                                                                            \
2827  develop(bool, UseCASForSwap, false,                                       \
2828          "Do not use swap instructions, but only CAS (in a loop) on SPARC")\
2829                                                                            \
2830  product(bool, UseLoopCounter, true,                                       \
2831          "Increment invocation counter on backward branch")                \
2832                                                                            \
2833  product(bool, UseFastEmptyMethods, true,                                  \
2834          "Use fast method entry code for empty methods")                   \
2835                                                                            \
2836  product(bool, UseFastAccessorMethods, true,                               \
2837          "Use fast method entry code for accessor methods")                \
2838                                                                            \
2839  product_pd(bool, UseOnStackReplacement,                                   \
2840           "Use on stack replacement, calls runtime if invoc. counter "     \
2841           "overflows in loop")                                             \
2842                                                                            \
2843  notproduct(bool, TraceOnStackReplacement, false,                          \
2844          "Trace on stack replacement")                                     \
2845                                                                            \
2846  develop(bool, PoisonOSREntry, true,                                       \
2847           "Detect abnormal calls to OSR code")                             \
2848                                                                            \
2849  product_pd(bool, PreferInterpreterNativeStubs,                            \
2850          "Use always interpreter stubs for native methods invoked via "    \
2851          "interpreter")                                                    \
2852                                                                            \
2853  develop(bool, CountBytecodes, false,                                      \
2854          "Count number of bytecodes executed")                             \
2855                                                                            \
2856  develop(bool, PrintBytecodeHistogram, false,                              \
2857          "Print histogram of the executed bytecodes")                      \
2858                                                                            \
2859  develop(bool, PrintBytecodePairHistogram, false,                          \
2860          "Print histogram of the executed bytecode pairs")                 \
2861                                                                            \
2862  diagnostic(bool, PrintSignatureHandlers, false,                           \
2863          "Print code generated for native method signature handlers")      \
2864                                                                            \
2865  develop(bool, VerifyOops, false,                                          \
2866          "Do plausibility checks for oops")                                \
2867                                                                            \
2868  develop(bool, CheckUnhandledOops, false,                                  \
2869          "Check for unhandled oops in VM code")                            \
2870                                                                            \
2871  develop(bool, VerifyJNIFields, trueInDebug,                               \
2872          "Verify jfieldIDs for instance fields")                           \
2873                                                                            \
2874  notproduct(bool, VerifyJNIEnvThread, false,                               \
2875          "Verify JNIEnv.thread == Thread::current() when entering VM "     \
2876          "from JNI")                                                       \
2877                                                                            \
2878  develop(bool, VerifyFPU, false,                                           \
2879          "Verify FPU state (check for NaN's, etc.)")                       \
2880                                                                            \
2881  develop(bool, VerifyThread, false,                                        \
2882          "Watch the thread register for corruption (SPARC only)")          \
2883                                                                            \
2884  develop(bool, VerifyActivationFrameSize, false,                           \
2885          "Verify that activation frame didn't become smaller than its "    \
2886          "minimal size")                                                   \
2887                                                                            \
2888  develop(bool, TraceFrequencyInlining, false,                              \
2889          "Trace frequency based inlining")                                 \
2890                                                                            \
2891  notproduct(bool, TraceTypeProfile, false,                                 \
2892          "Trace type profile")                                             \
2893                                                                            \
2894  develop_pd(bool, InlineIntrinsics,                                        \
2895           "Inline intrinsics that can be statically resolved")             \
2896                                                                            \
2897  product_pd(bool, ProfileInterpreter,                                      \
2898           "Profile at the bytecode level during interpretation")           \
2899                                                                            \
2900  develop_pd(bool, ProfileTraps,                                            \
2901          "Profile deoptimization traps at the bytecode level")             \
2902                                                                            \
2903  product(intx, ProfileMaturityPercentage, 20,                              \
2904          "number of method invocations/branches (expressed as % of "       \
2905          "CompileThreshold) before using the method's profile")            \
2906                                                                            \
2907  develop(bool, PrintMethodData, false,                                     \
2908           "Print the results of +ProfileInterpreter at end of run")        \
2909                                                                            \
2910  develop(bool, VerifyDataPointer, trueInDebug,                             \
2911          "Verify the method data pointer during interpreter profiling")    \
2912                                                                            \
2913  develop(bool, VerifyCompiledCode, false,                                  \
2914          "Include miscellaneous runtime verifications in nmethod code; "   \
2915          "default off because it disturbs nmethod size heuristics")        \
2916                                                                            \
2917  notproduct(bool, CrashGCForDumpingJavaThread, false,                      \
2918          "Manually make GC thread crash then dump java stack trace;  "     \
2919          "Test only")                                                      \
2920                                                                            \
2921  /* compilation */                                                         \
2922  product(bool, UseCompiler, true,                                          \
2923          "use compilation")                                                \
2924                                                                            \
2925  develop(bool, TraceCompilationPolicy, false,                              \
2926          "Trace compilation policy")                                       \
2927                                                                            \
2928  develop(bool, TimeCompilationPolicy, false,                               \
2929          "Time the compilation policy")                                    \
2930                                                                            \
2931  product(bool, UseCounterDecay, true,                                      \
2932           "adjust recompilation counters")                                 \
2933                                                                            \
2934  develop(intx, CounterHalfLifeTime,    30,                                 \
2935          "half-life time of invocation counters (in secs)")                \
2936                                                                            \
2937  develop(intx, CounterDecayMinIntervalLength,   500,                       \
2938          "Min. ms. between invocation of CounterDecay")                    \
2939                                                                            \
2940  product(bool, AlwaysCompileLoopMethods, false,                            \
2941          "when using recompilation, never interpret methods "              \
2942          "containing loops")                                               \
2943                                                                            \
2944  product(bool, DontCompileHugeMethods, true,                               \
2945          "don't compile methods > HugeMethodLimit")                        \
2946                                                                            \
2947  /* Bytecode escape analysis estimation. */                                \
2948  product(bool, EstimateArgEscape, true,                                    \
2949          "Analyze bytecodes to estimate escape state of arguments")        \
2950                                                                            \
2951  product(intx, BCEATraceLevel, 0,                                          \
2952          "How much tracing to do of bytecode escape analysis estimates")   \
2953                                                                            \
2954  product(intx, MaxBCEAEstimateLevel, 5,                                    \
2955          "Maximum number of nested calls that are analyzed by BC EA.")     \
2956                                                                            \
2957  product(intx, MaxBCEAEstimateSize, 150,                                   \
2958          "Maximum bytecode size of a method to be analyzed by BC EA.")     \
2959                                                                            \
2960  product(intx,  AllocatePrefetchStyle, 1,                                  \
2961          "0 = no prefetch, "                                               \
2962          "1 = prefetch instructions for each allocation, "                 \
2963          "2 = use TLAB watermark to gate allocation prefetch, "            \
2964          "3 = use BIS instruction on Sparc for allocation prefetch")       \
2965                                                                            \
2966  product(intx,  AllocatePrefetchDistance, -1,                              \
2967          "Distance to prefetch ahead of allocation pointer")               \
2968                                                                            \
2969  product(intx,  AllocatePrefetchLines, 3,                                  \
2970          "Number of lines to prefetch ahead of array allocation pointer")  \
2971                                                                            \
2972  product(intx,  AllocateInstancePrefetchLines, 1,                          \
2973          "Number of lines to prefetch ahead of instance allocation pointer") \
2974                                                                            \
2975  product(intx,  AllocatePrefetchStepSize, 16,                              \
2976          "Step size in bytes of sequential prefetch instructions")         \
2977                                                                            \
2978  product(intx,  AllocatePrefetchInstr, 0,                                  \
2979          "Prefetch instruction to prefetch ahead of allocation pointer")   \
2980                                                                            \
2981  product(intx,  ReadPrefetchInstr, 0,                                      \
2982          "Prefetch instruction to prefetch ahead")                         \
2983                                                                            \
2984  product(uintx,  ArraycopySrcPrefetchDistance, 0,                          \
2985          "Distance to prefetch source array in arracopy")                  \
2986                                                                            \
2987  product(uintx,  ArraycopyDstPrefetchDistance, 0,                          \
2988          "Distance to prefetch destination array in arracopy")             \
2989                                                                            \
2990  /* deoptimization */                                                      \
2991  develop(bool, TraceDeoptimization, false,                                 \
2992          "Trace deoptimization")                                           \
2993                                                                            \
2994  develop(bool, DebugDeoptimization, false,                                 \
2995          "Tracing various information while debugging deoptimization")     \
2996                                                                            \
2997  product(intx, SelfDestructTimer, 0,                                       \
2998          "Will cause VM to terminate after a given time (in minutes) "     \
2999          "(0 means off)")                                                  \
3000                                                                            \
3001  product(intx, MaxJavaStackTraceDepth, 1024,                               \
3002          "Max. no. of lines in the stack trace for Java exceptions "       \
3003          "(0 means all)")                                                  \
3004                                                                            \
3005  NOT_EMBEDDED(diagnostic(intx, GuaranteedSafepointInterval, 1000,          \
3006          "Guarantee a safepoint (at least) every so many milliseconds "    \
3007          "(0 means none)"))                                                \
3008                                                                            \
3009  EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0,               \
3010          "Guarantee a safepoint (at least) every so many milliseconds "    \
3011          "(0 means none)"))                                                \
3012                                                                            \
3013  product(intx, SafepointTimeoutDelay, 10000,                               \
3014          "Delay in milliseconds for option SafepointTimeout")              \
3015                                                                            \
3016  product(intx, NmethodSweepFraction, 16,                                    \
3017          "Number of invocations of sweeper to cover all nmethods")         \
3018                                                                            \
3019  product(intx, NmethodSweepCheckInterval, 5,                               \
3020          "Compilers wake up every n seconds to possibly sweep nmethods")   \
3021                                                                            \
3022  notproduct(bool, LogSweeper, false,                                       \
3023            "Keep a ring buffer of sweeper activity")                       \
3024                                                                            \
3025  notproduct(intx, SweeperLogEntries, 1024,                                 \
3026            "Number of records in the ring buffer of sweeper activity")     \
3027                                                                            \
3028  notproduct(intx, MemProfilingInterval, 500,                               \
3029          "Time between each invocation of the MemProfiler")                \
3030                                                                            \
3031  develop(intx, MallocCatchPtr, -1,                                         \
3032          "Hit breakpoint when mallocing/freeing this pointer")             \
3033                                                                            \
3034  notproduct(intx, AssertRepeat, 1,                                         \
3035          "number of times to evaluate expression in assert "               \
3036          "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \
3037                                                                            \
3038  notproduct(ccstrlist, SuppressErrorAt, "",                                \
3039          "List of assertions (file:line) to muzzle")                       \
3040                                                                            \
3041  notproduct(uintx, HandleAllocationLimit, 1024,                            \
3042          "Threshold for HandleMark allocation when +TraceHandleAllocation "\
3043          "is used")                                                        \
3044                                                                            \
3045  develop(uintx, TotalHandleAllocationLimit, 1024,                          \
3046          "Threshold for total handle allocation when "                     \
3047          "+TraceHandleAllocation is used")                                 \
3048                                                                            \
3049  develop(intx, StackPrintLimit, 100,                                       \
3050          "number of stack frames to print in VM-level stack dump")         \
3051                                                                            \
3052  notproduct(intx, MaxElementPrintSize, 256,                                \
3053          "maximum number of elements to print")                            \
3054                                                                            \
3055  notproduct(intx, MaxSubklassPrintSize, 4,                                 \
3056          "maximum number of subklasses to print when printing klass")      \
3057                                                                            \
3058  product(intx, MaxInlineLevel, 9,                                          \
3059          "maximum number of nested calls that are inlined")                \
3060                                                                            \
3061  product(intx, MaxRecursiveInlineLevel, 1,                                 \
3062          "maximum number of nested recursive calls that are inlined")      \
3063                                                                            \
3064  product_pd(intx, InlineSmallCode,                                         \
3065          "Only inline already compiled methods if their code size is "     \
3066          "less than this")                                                 \
3067                                                                            \
3068  product(intx, MaxInlineSize, 35,                                          \
3069          "maximum bytecode size of a method to be inlined")                \
3070                                                                            \
3071  product_pd(intx, FreqInlineSize,                                          \
3072          "maximum bytecode size of a frequent method to be inlined")       \
3073                                                                            \
3074  product(intx, MaxTrivialSize, 6,                                          \
3075          "maximum bytecode size of a trivial method to be inlined")        \
3076                                                                            \
3077  product(intx, MinInliningThreshold, 250,                                  \
3078          "min. invocation count a method needs to have to be inlined")     \
3079                                                                            \
3080  develop(intx, AlignEntryCode, 4,                                          \
3081          "aligns entry code to specified value (in bytes)")                \
3082                                                                            \
3083  develop(intx, MethodHistogramCutoff, 100,                                 \
3084          "cutoff value for method invoc. histogram (+CountCalls)")         \
3085                                                                            \
3086  develop(intx, ProfilerNumberOfInterpretedMethods, 25,                     \
3087          "# of interpreted methods to show in profile")                    \
3088                                                                            \
3089  develop(intx, ProfilerNumberOfCompiledMethods, 25,                        \
3090          "# of compiled methods to show in profile")                       \
3091                                                                            \
3092  develop(intx, ProfilerNumberOfStubMethods, 25,                            \
3093          "# of stub methods to show in profile")                           \
3094                                                                            \
3095  develop(intx, ProfilerNumberOfRuntimeStubNodes, 25,                       \
3096          "# of runtime stub nodes to show in profile")                     \
3097                                                                            \
3098  product(intx, ProfileIntervalsTicks, 100,                                 \
3099          "# of ticks between printing of interval profile "                \
3100          "(+ProfileIntervals)")                                            \
3101                                                                            \
3102  notproduct(intx, ScavengeALotInterval,     1,                             \
3103          "Interval between which scavenge will occur with +ScavengeALot")  \
3104                                                                            \
3105  notproduct(intx, FullGCALotInterval,     1,                               \
3106          "Interval between which full gc will occur with +FullGCALot")     \
3107                                                                            \
3108  notproduct(intx, FullGCALotStart,     0,                                  \
3109          "For which invocation to start FullGCAlot")                       \
3110                                                                            \
3111  notproduct(intx, FullGCALotDummies,  32*K,                                \
3112          "Dummy object allocated with +FullGCALot, forcing all objects "   \
3113          "to move")                                                        \
3114                                                                            \
3115  develop(intx, DontYieldALotInterval,    10,                               \
3116          "Interval between which yields will be dropped (milliseconds)")   \
3117                                                                            \
3118  develop(intx, MinSleepInterval,     1,                                    \
3119          "Minimum sleep() interval (milliseconds) when "                   \
3120          "ConvertSleepToYield is off (used for SOLARIS)")                  \
3121                                                                            \
3122  product(intx, EventLogLength,  2000,                                      \
3123          "maximum nof events in event log")                                \
3124                                                                            \
3125  develop(intx, ProfilerPCTickThreshold,    15,                             \
3126          "Number of ticks in a PC buckets to be a hotspot")                \
3127                                                                            \
3128  notproduct(intx, DeoptimizeALotInterval,     5,                           \
3129          "Number of exits until DeoptimizeALot kicks in")                  \
3130                                                                            \
3131  notproduct(intx, ZombieALotInterval,     5,                               \
3132          "Number of exits until ZombieALot kicks in")                      \
3133                                                                            \
3134  develop(bool, StressNonEntrant, false,                                    \
3135          "Mark nmethods non-entrant at registration")                      \
3136                                                                            \
3137  diagnostic(intx, MallocVerifyInterval,     0,                             \
3138          "if non-zero, verify C heap after every N calls to "              \
3139          "malloc/realloc/free")                                            \
3140                                                                            \
3141  diagnostic(intx, MallocVerifyStart,     0,                                \
3142          "if non-zero, start verifying C heap after Nth call to "          \
3143          "malloc/realloc/free")                                            \
3144                                                                            \
3145  product(intx, TypeProfileWidth,     2,                                   \
3146          "number of receiver types to record in call/cast profile")        \
3147                                                                            \
3148  develop(intx, BciProfileWidth,      2,                                    \
3149          "number of return bci's to record in ret profile")                \
3150                                                                            \
3151  product(intx, PerMethodRecompilationCutoff, 400,                          \
3152          "After recompiling N times, stay in the interpreter (-1=>'Inf')") \
3153                                                                            \
3154  product(intx, PerBytecodeRecompilationCutoff, 200,                        \
3155          "Per-BCI limit on repeated recompilation (-1=>'Inf')")            \
3156                                                                            \
3157  product(intx, PerMethodTrapLimit,  100,                                   \
3158          "Limit on traps (of one kind) in a method (includes inlines)")    \
3159                                                                            \
3160  product(intx, PerBytecodeTrapLimit,  4,                                   \
3161          "Limit on traps (of one kind) at a particular BCI")               \
3162                                                                            \
3163  develop(intx, FreqCountInvocations,  1,                                   \
3164          "Scaling factor for branch frequencies (deprecated)")             \
3165                                                                            \
3166  develop(intx, InlineFrequencyRatio,    20,                                \
3167          "Ratio of call site execution to caller method invocation")       \
3168                                                                            \
3169  develop_pd(intx, InlineFrequencyCount,                                    \
3170          "Count of call site execution necessary to trigger frequent "     \
3171          "inlining")                                                       \
3172                                                                            \
3173  develop(intx, InlineThrowCount,    50,                                    \
3174          "Force inlining of interpreted methods that throw this often")    \
3175                                                                            \
3176  develop(intx, InlineThrowMaxSize,   200,                                  \
3177          "Force inlining of throwing methods smaller than this")           \
3178                                                                            \
3179  product(intx, AliasLevel,     3,                                          \
3180          "0 for no aliasing, 1 for oop/field/static/array split, "         \
3181          "2 for class split, 3 for unique instances")                      \
3182                                                                            \
3183  develop(bool, VerifyAliases, false,                                       \
3184          "perform extra checks on the results of alias analysis")          \
3185                                                                            \
3186  develop(intx, ProfilerNodeSize,  1024,                                    \
3187          "Size in K to allocate for the Profile Nodes of each thread")     \
3188                                                                            \
3189  develop(intx, V8AtomicOperationUnderLockSpinCount,    50,                 \
3190          "Number of times to spin wait on a v8 atomic operation lock")     \
3191                                                                            \
3192  product(intx, ReadSpinIterations,   100,                                  \
3193          "Number of read attempts before a yield (spin inner loop)")       \
3194                                                                            \
3195  product_pd(intx, PreInflateSpin,                                          \
3196          "Number of times to spin wait before inflation")                  \
3197                                                                            \
3198  product(intx, PreBlockSpin,    10,                                        \
3199          "Number of times to spin in an inflated lock before going to "    \
3200          "an OS lock")                                                     \
3201                                                                            \
3202  /* gc parameters */                                                       \
3203  product(uintx, InitialHeapSize, 0,                                        \
3204          "Initial heap size (in bytes); zero means OldSize + NewSize")     \
3205                                                                            \
3206  product(uintx, MaxHeapSize, ScaleForWordSize(96*M),                       \
3207          "Maximum heap size (in bytes)")                                   \
3208                                                                            \
3209  product(uintx, OldSize, ScaleForWordSize(4*M),                            \
3210          "Initial tenured generation size (in bytes)")                     \
3211                                                                            \
3212  product(uintx, NewSize, ScaleForWordSize(1*M),                            \
3213          "Initial new generation size (in bytes)")                         \
3214                                                                            \
3215  product(uintx, MaxNewSize, max_uintx,                                     \
3216          "Maximum new generation size (in bytes), max_uintx means set "    \
3217          "ergonomically")                                                  \
3218                                                                            \
3219  product(uintx, PretenureSizeThreshold, 0,                                 \
3220          "Maximum size in bytes of objects allocated in DefNew "           \
3221          "generation; zero means no maximum")                              \
3222                                                                            \
3223  product(uintx, TLABSize, 0,                                               \
3224          "Starting TLAB size (in bytes); zero means set ergonomically")    \
3225                                                                            \
3226  product(uintx, MinTLABSize, 2*K,                                          \
3227          "Minimum allowed TLAB size (in bytes)")                           \
3228                                                                            \
3229  product(uintx, TLABAllocationWeight, 35,                                  \
3230          "Allocation averaging weight")                                    \
3231                                                                            \
3232  product(uintx, TLABWasteTargetPercent, 1,                                 \
3233          "Percentage of Eden that can be wasted")                          \
3234                                                                            \
3235  product(uintx, TLABRefillWasteFraction,    64,                            \
3236          "Max TLAB waste at a refill (internal fragmentation)")            \
3237                                                                            \
3238  product(uintx, TLABWasteIncrement,    4,                                  \
3239          "Increment allowed waste at slow allocation")                     \
3240                                                                            \
3241  product(intx, SurvivorRatio, 8,                                           \
3242          "Ratio of eden/survivor space size")                              \
3243                                                                            \
3244  product(intx, NewRatio, 2,                                                \
3245          "Ratio of new/old generation sizes")                              \
3246                                                                            \
3247  product_pd(uintx, NewSizeThreadIncrease,                                  \
3248          "Additional size added to desired new generation size per "       \
3249          "non-daemon thread (in bytes)")                                   \
3250                                                                            \
3251  product_pd(uintx, PermSize,                                               \
3252          "Initial size of permanent generation (in bytes)")                \
3253                                                                            \
3254  product_pd(uintx, MaxPermSize,                                            \
3255          "Maximum size of permanent generation (in bytes)")                \
3256                                                                            \
3257  product(uintx, MinHeapFreeRatio,    40,                                   \
3258          "Min percentage of heap free after GC to avoid expansion")        \
3259                                                                            \
3260  product(uintx, MaxHeapFreeRatio,    70,                                   \
3261          "Max percentage of heap free after GC to avoid shrinking")        \
3262                                                                            \
3263  product(intx, SoftRefLRUPolicyMSPerMB, 1000,                              \
3264          "Number of milliseconds per MB of free space in the heap")        \
3265                                                                            \
3266  product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K),                \
3267          "Min change in heap space due to GC (in bytes)")                  \
3268                                                                            \
3269  product(uintx, MinPermHeapExpansion, ScaleForWordSize(256*K),             \
3270          "Min expansion of permanent heap (in bytes)")                     \
3271                                                                            \
3272  product(uintx, MaxPermHeapExpansion, ScaleForWordSize(4*M),               \
3273          "Max expansion of permanent heap without full GC (in bytes)")     \
3274                                                                            \
3275  product(intx, QueuedAllocationWarningCount, 0,                            \
3276          "Number of times an allocation that queues behind a GC "          \
3277          "will retry before printing a warning")                           \
3278                                                                            \
3279  diagnostic(uintx, VerifyGCStartAt,   0,                                   \
3280          "GC invoke count where +VerifyBefore/AfterGC kicks in")           \
3281                                                                            \
3282  diagnostic(intx, VerifyGCLevel,     0,                                    \
3283          "Generation level at which to start +VerifyBefore/AfterGC")       \
3284                                                                            \
3285  product(intx, MaxTenuringThreshold,    15,                                \
3286          "Maximum value for tenuring threshold")                           \
3287                                                                            \
3288  product(intx, InitialTenuringThreshold,     7,                            \
3289          "Initial value for tenuring threshold")                           \
3290                                                                            \
3291  product(intx, TargetSurvivorRatio,    50,                                 \
3292          "Desired percentage of survivor space used after scavenge")       \
3293                                                                            \
3294  product(uintx, MarkSweepDeadRatio,     5,                                 \
3295          "Percentage (0-100) of the old gen allowed as dead wood."         \
3296          "Serial mark sweep treats this as both the min and max value."    \
3297          "CMS uses this value only if it falls back to mark sweep."        \
3298          "Par compact uses a variable scale based on the density of the"   \
3299          "generation and treats this as the max value when the heap is"    \
3300          "either completely full or completely empty.  Par compact also"   \
3301          "has a smaller default value; see arguments.cpp.")                \
3302                                                                            \
3303  product(uintx, PermMarkSweepDeadRatio,    20,                             \
3304          "Percentage (0-100) of the perm gen allowed as dead wood."        \
3305          "See MarkSweepDeadRatio for collector-specific comments.")        \
3306                                                                            \
3307  product(intx, MarkSweepAlwaysCompactCount,     4,                         \
3308          "How often should we fully compact the heap (ignoring the dead "  \
3309          "space parameters)")                                              \
3310                                                                            \
3311  product(intx, PrintCMSStatistics, 0,                                      \
3312          "Statistics for CMS")                                             \
3313                                                                            \
3314  product(bool, PrintCMSInitiationStatistics, false,                        \
3315          "Statistics for initiating a CMS collection")                     \
3316                                                                            \
3317  product(intx, PrintFLSStatistics, 0,                                      \
3318          "Statistics for CMS' FreeListSpace")                              \
3319                                                                            \
3320  product(intx, PrintFLSCensus, 0,                                          \
3321          "Census for CMS' FreeListSpace")                                  \
3322                                                                            \
3323  develop(uintx, GCExpandToAllocateDelayMillis, 0,                          \
3324          "Delay in ms between expansion and allocation")                   \
3325                                                                            \
3326  product(intx, DeferThrSuspendLoopCount,     4000,                         \
3327          "(Unstable) Number of times to iterate in safepoint loop "        \
3328          " before blocking VM threads ")                                   \
3329                                                                            \
3330  product(intx, DeferPollingPageLoopCount,     -1,                          \
3331          "(Unsafe,Unstable) Number of iterations in safepoint loop "       \
3332          "before changing safepoint polling page to RO ")                  \
3333                                                                            \
3334  product(intx, SafepointSpinBeforeYield, 2000,  "(Unstable)")              \
3335                                                                            \
3336  product(bool, PSChunkLargeArrays, true,                                   \
3337          "true: process large arrays in chunks")                           \
3338                                                                            \
3339  product(uintx, GCDrainStackTargetSize, 64,                                \
3340          "how many entries we'll try to leave on the stack during "        \
3341          "parallel GC")                                                    \
3342                                                                            \
3343  /* stack parameters */                                                    \
3344  product_pd(intx, StackYellowPages,                                        \
3345          "Number of yellow zone (recoverable overflows) pages")            \
3346                                                                            \
3347  product_pd(intx, StackRedPages,                                           \
3348          "Number of red zone (unrecoverable overflows) pages")             \
3349                                                                            \
3350  product_pd(intx, StackShadowPages,                                        \
3351          "Number of shadow zone (for overflow checking) pages"             \
3352          " this should exceed the depth of the VM and native call stack")  \
3353                                                                            \
3354  product_pd(intx, ThreadStackSize,                                         \
3355          "Thread Stack Size (in Kbytes)")                                  \
3356                                                                            \
3357  product_pd(intx, VMThreadStackSize,                                       \
3358          "Non-Java Thread Stack Size (in Kbytes)")                         \
3359                                                                            \
3360  product_pd(intx, CompilerThreadStackSize,                                 \
3361          "Compiler Thread Stack Size (in Kbytes)")                         \
3362                                                                            \
3363  develop_pd(uintx, JVMInvokeMethodSlack,                                   \
3364          "Stack space (bytes) required for JVM_InvokeMethod to complete")  \
3365                                                                            \
3366  product(uintx, ThreadSafetyMargin, 50*M,                                  \
3367          "Thread safety margin is used on fixed-stack LinuxThreads (on "   \
3368          "Linux/x86 only) to prevent heap-stack collision. Set to 0 to "   \
3369          "disable this feature")                                           \
3370                                                                            \
3371  /* code cache parameters */                                               \
3372  develop(uintx, CodeCacheSegmentSize, 64,                                  \
3373          "Code cache segment size (in bytes) - smallest unit of "          \
3374          "allocation")                                                     \
3375                                                                            \
3376  develop_pd(intx, CodeEntryAlignment,                                      \
3377          "Code entry alignment for generated code (in bytes)")             \
3378                                                                            \
3379  product_pd(intx, OptoLoopAlignment,                                       \
3380          "Align inner loops to zero relative to this modulus")             \
3381                                                                            \
3382  product_pd(uintx, InitialCodeCacheSize,                                   \
3383          "Initial code cache size (in bytes)")                             \
3384                                                                            \
3385  product_pd(uintx, ReservedCodeCacheSize,                                  \
3386          "Reserved code cache size (in bytes) - maximum code cache size")  \
3387                                                                            \
3388  product(uintx, CodeCacheMinimumFreeSpace, 500*K,                          \
3389          "When less than X space left, we stop compiling.")                \
3390                                                                            \
3391  product_pd(uintx, CodeCacheExpansionSize,                                 \
3392          "Code cache expansion size (in bytes)")                           \
3393                                                                            \
3394  develop_pd(uintx, CodeCacheMinBlockLength,                                \
3395          "Minimum number of segments in a code cache block.")              \
3396                                                                            \
3397  notproduct(bool, ExitOnFullCodeCache, false,                              \
3398          "Exit the VM if we fill the code cache.")                         \
3399                                                                            \
3400  product(bool, UseCodeCacheFlushing, true,                                 \
3401          "Attempt to clean the code cache before shutting off compiler")   \
3402                                                                            \
3403  product(intx,  MinCodeCacheFlushingInterval, 30,                          \
3404          "Min number of seconds between code cache cleaning sessions")     \
3405                                                                            \
3406  product(uintx,  CodeCacheFlushingMinimumFreeSpace, 1500*K,                \
3407          "When less than X space left, start code cache cleaning")         \
3408                                                                            \
3409  /* interpreter debugging */                                               \
3410  develop(intx, BinarySwitchThreshold, 5,                                   \
3411          "Minimal number of lookupswitch entries for rewriting to binary " \
3412          "switch")                                                         \
3413                                                                            \
3414  develop(intx, StopInterpreterAt, 0,                                       \
3415          "Stops interpreter execution at specified bytecode number")       \
3416                                                                            \
3417  develop(intx, TraceBytecodesAt, 0,                                        \
3418          "Traces bytecodes starting with specified bytecode number")       \
3419                                                                            \
3420  /* compiler interface */                                                  \
3421  develop(intx, CIStart, 0,                                                 \
3422          "the id of the first compilation to permit")                      \
3423                                                                            \
3424  develop(intx, CIStop,    -1,                                              \
3425          "the id of the last compilation to permit")                       \
3426                                                                            \
3427  develop(intx, CIStartOSR,     0,                                          \
3428          "the id of the first osr compilation to permit "                  \
3429          "(CICountOSR must be on)")                                        \
3430                                                                            \
3431  develop(intx, CIStopOSR,    -1,                                           \
3432          "the id of the last osr compilation to permit "                   \
3433          "(CICountOSR must be on)")                                        \
3434                                                                            \
3435  develop(intx, CIBreakAtOSR,    -1,                                        \
3436          "id of osr compilation to break at")                              \
3437                                                                            \
3438  develop(intx, CIBreakAt,    -1,                                           \
3439          "id of compilation to break at")                                  \
3440                                                                            \
3441  product(ccstrlist, CompileOnly, "",                                       \
3442          "List of methods (pkg/class.name) to restrict compilation to")    \
3443                                                                            \
3444  product(ccstr, CompileCommandFile, NULL,                                  \
3445          "Read compiler commands from this file [.hotspot_compiler]")      \
3446                                                                            \
3447  product(ccstrlist, CompileCommand, "",                                    \
3448          "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
3449                                                                            \
3450  product(bool, CICompilerCountPerCPU, false,                               \
3451          "1 compiler thread for log(N CPUs)")                              \
3452                                                                            \
3453  develop(intx, CIFireOOMAt,    -1,                                         \
3454          "Fire OutOfMemoryErrors throughout CI for testing the compiler "  \
3455          "(non-negative value throws OOM after this many CI accesses "     \
3456          "in each compile)")                                               \
3457                                                                            \
3458  develop(intx, CIFireOOMAtDelay, -1,                                       \
3459          "Wait for this many CI accesses to occur in all compiles before " \
3460          "beginning to throw OutOfMemoryErrors in each compile")           \
3461                                                                            \
3462  notproduct(bool, CIObjectFactoryVerify, false,                            \
3463          "enable potentially expensive verification in ciObjectFactory")   \
3464                                                                            \
3465  /* Priorities */                                                          \
3466  product_pd(bool, UseThreadPriorities,  "Use native thread priorities")    \
3467                                                                            \
3468  product(intx, ThreadPriorityPolicy, 0,                                    \
3469          "0 : Normal.                                                     "\
3470          "    VM chooses priorities that are appropriate for normal       "\
3471          "    applications. On Solaris NORM_PRIORITY and above are mapped "\
3472          "    to normal native priority. Java priorities below NORM_PRIORITY"\
3473          "    map to lower native priority values. On Windows applications"\
3474          "    are allowed to use higher native priorities. However, with  "\
3475          "    ThreadPriorityPolicy=0, VM will not use the highest possible"\
3476          "    native priority, THREAD_PRIORITY_TIME_CRITICAL, as it may   "\
3477          "    interfere with system threads. On Linux thread priorities   "\
3478          "    are ignored because the OS does not support static priority "\
3479          "    in SCHED_OTHER scheduling class which is the only choice for"\
3480          "    non-root, non-realtime applications.                        "\
3481          "1 : Aggressive.                                                 "\
3482          "    Java thread priorities map over to the entire range of      "\
3483          "    native thread priorities. Higher Java thread priorities map "\
3484          "    to higher native thread priorities. This policy should be   "\
3485          "    used with care, as sometimes it can cause performance       "\
3486          "    degradation in the application and/or the entire system. On "\
3487          "    Linux this policy requires root privilege.")                 \
3488                                                                            \
3489  product(bool, ThreadPriorityVerbose, false,                               \
3490          "Print priority changes")                                         \
3491                                                                            \
3492  product(intx, DefaultThreadPriority, -1,                                  \
3493          "The native priority at which threads run if not elsewhere "      \
3494          "specified (-1 means no change)")                                 \
3495                                                                            \
3496  product(intx, CompilerThreadPriority, -1,                                 \
3497          "The native priority at which compiler threads should run "       \
3498          "(-1 means no change)")                                           \
3499                                                                            \
3500  product(intx, VMThreadPriority, -1,                                       \
3501          "The native priority at which the VM thread should run "          \
3502          "(-1 means no change)")                                           \
3503                                                                            \
3504  product(bool, CompilerThreadHintNoPreempt, true,                          \
3505          "(Solaris only) Give compiler threads an extra quanta")           \
3506                                                                            \
3507  product(bool, VMThreadHintNoPreempt, false,                               \
3508          "(Solaris only) Give VM thread an extra quanta")                  \
3509                                                                            \
3510  product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3511  product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3512  product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3513  product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3514  product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3515  product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3516  product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3517  product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3518  product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3519  product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \
3520                                                                            \
3521  experimental(bool, UseCriticalJavaThreadPriority, false,                  \
3522          "Java thread priority 10 maps to critical scheduling priority")   \
3523                                                                            \
3524  experimental(bool, UseCriticalCompilerThreadPriority, false,              \
3525          "Compiler thread(s) run at critical scheduling priority")         \
3526                                                                            \
3527  experimental(bool, UseCriticalCMSThreadPriority, false,                   \
3528          "ConcurrentMarkSweep thread runs at critical scheduling priority")\
3529                                                                            \
3530  /* compiler debugging */                                                  \
3531  notproduct(intx, CompileTheWorldStartAt,     1,                           \
3532          "First class to consider when using +CompileTheWorld")            \
3533                                                                            \
3534  notproduct(intx, CompileTheWorldStopAt, max_jint,                         \
3535          "Last class to consider when using +CompileTheWorld")             \
3536                                                                            \
3537  develop(intx, NewCodeParameter,      0,                                   \
3538          "Testing Only: Create a dedicated integer parameter before "      \
3539          "putback")                                                        \
3540                                                                            \
3541  /* new oopmap storage allocation */                                       \
3542  develop(intx, MinOopMapAllocation,     8,                                 \
3543          "Minimum number of OopMap entries in an OopMapSet")               \
3544                                                                            \
3545  /* Background Compilation */                                              \
3546  develop(intx, LongCompileThreshold,     50,                               \
3547          "Used with +TraceLongCompiles")                                   \
3548                                                                            \
3549  product(intx, StarvationMonitorInterval,    200,                          \
3550          "Pause between each check in ms")                                 \
3551                                                                            \
3552  /* recompilation */                                                       \
3553  product_pd(intx, CompileThreshold,                                        \
3554          "number of interpreted method invocations before (re-)compiling") \
3555                                                                            \
3556  product_pd(intx, BackEdgeThreshold,                                       \
3557          "Interpreter Back edge threshold at which an OSR compilation is invoked")\
3558                                                                            \
3559  product(intx, Tier0InvokeNotifyFreqLog, 7,                                \
3560          "Interpreter (tier 0) invocation notification frequency.")        \
3561                                                                            \
3562  product(intx, Tier2InvokeNotifyFreqLog, 11,                               \
3563          "C1 without MDO (tier 2) invocation notification frequency.")     \
3564                                                                            \
3565  product(intx, Tier3InvokeNotifyFreqLog, 10,                               \
3566          "C1 with MDO profiling (tier 3) invocation notification "         \
3567          "frequency.")                                                     \
3568                                                                            \
3569  product(intx, Tier23InlineeNotifyFreqLog, 20,                             \
3570          "Inlinee invocation (tiers 2 and 3) notification frequency")      \
3571                                                                            \
3572  product(intx, Tier0BackedgeNotifyFreqLog, 10,                             \
3573          "Interpreter (tier 0) invocation notification frequency.")        \
3574                                                                            \
3575  product(intx, Tier2BackedgeNotifyFreqLog, 14,                             \
3576          "C1 without MDO (tier 2) invocation notification frequency.")     \
3577                                                                            \
3578  product(intx, Tier3BackedgeNotifyFreqLog, 13,                             \
3579          "C1 with MDO profiling (tier 3) invocation notification "         \
3580          "frequency.")                                                     \
3581                                                                            \
3582  product(intx, Tier2CompileThreshold, 0,                                   \
3583          "threshold at which tier 2 compilation is invoked")               \
3584                                                                            \
3585  product(intx, Tier2BackEdgeThreshold, 0,                                  \
3586          "Back edge threshold at which tier 2 compilation is invoked")     \
3587                                                                            \
3588  product(intx, Tier3InvocationThreshold, 200,                              \
3589          "Compile if number of method invocations crosses this "           \
3590          "threshold")                                                      \
3591                                                                            \
3592  product(intx, Tier3MinInvocationThreshold, 100,                           \
3593          "Minimum invocation to compile at tier 3")                        \
3594                                                                            \
3595  product(intx, Tier3CompileThreshold, 2000,                                \
3596          "Threshold at which tier 3 compilation is invoked (invocation "   \
3597          "minimum must be satisfied.")                                     \
3598                                                                            \
3599  product(intx, Tier3BackEdgeThreshold,  60000,                             \
3600          "Back edge threshold at which tier 3 OSR compilation is invoked") \
3601                                                                            \
3602  product(intx, Tier4InvocationThreshold, 5000,                             \
3603          "Compile if number of method invocations crosses this "           \
3604          "threshold")                                                      \
3605                                                                            \
3606  product(intx, Tier4MinInvocationThreshold, 600,                           \
3607          "Minimum invocation to compile at tier 4")                        \
3608                                                                            \
3609  product(intx, Tier4CompileThreshold, 15000,                               \
3610          "Threshold at which tier 4 compilation is invoked (invocation "   \
3611          "minimum must be satisfied.")                                     \
3612                                                                            \
3613  product(intx, Tier4BackEdgeThreshold, 40000,                              \
3614          "Back edge threshold at which tier 4 OSR compilation is invoked") \
3615                                                                            \
3616  product(intx, Tier3DelayOn, 5,                                            \
3617          "If C2 queue size grows over this amount per compiler thread "    \
3618          "stop compiling at tier 3 and start compiling at tier 2")         \
3619                                                                            \
3620  product(intx, Tier3DelayOff, 2,                                           \
3621          "If C2 queue size is less than this amount per compiler thread "  \
3622          "allow methods compiled at tier 2 transition to tier 3")          \
3623                                                                            \
3624  product(intx, Tier3LoadFeedback, 5,                                       \
3625          "Tier 3 thresholds will increase twofold when C1 queue size "     \
3626          "reaches this amount per compiler thread")                        \
3627                                                                            \
3628  product(intx, Tier4LoadFeedback, 3,                                       \
3629          "Tier 4 thresholds will increase twofold when C2 queue size "     \
3630          "reaches this amount per compiler thread")                        \
3631                                                                            \
3632  product(intx, TieredCompileTaskTimeout, 50,                               \
3633          "Kill compile task if method was not used within "                \
3634          "given timeout in milliseconds")                                  \
3635                                                                            \
3636  product(intx, TieredStopAtLevel, 4,                                       \
3637          "Stop at given compilation level")                                \
3638                                                                            \
3639  product(intx, Tier0ProfilingStartPercentage, 200,                         \
3640          "Start profiling in interpreter if the counters exceed tier 3"    \
3641          "thresholds by the specified percentage")                         \
3642                                                                            \
3643  product(intx, TieredRateUpdateMinTime, 1,                                 \
3644          "Minimum rate sampling interval (in milliseconds)")               \
3645                                                                            \
3646  product(intx, TieredRateUpdateMaxTime, 25,                                \
3647          "Maximum rate sampling interval (in milliseconds)")               \
3648                                                                            \
3649  product_pd(bool, TieredCompilation,                                       \
3650          "Enable tiered compilation")                                      \
3651                                                                            \
3652  product(bool, PrintTieredEvents, false,                                   \
3653          "Print tiered events notifications")                              \
3654                                                                            \
3655  product(bool, StressTieredRuntime, false,                                 \
3656          "Alternate client and server compiler on compile requests")       \
3657                                                                            \
3658  product_pd(intx, OnStackReplacePercentage,                                \
3659          "NON_TIERED number of method invocations/branches (expressed as %"\
3660          "of CompileThreshold) before (re-)compiling OSR code")            \
3661                                                                            \
3662  product(intx, InterpreterProfilePercentage, 33,                           \
3663          "NON_TIERED number of method invocations/branches (expressed as %"\
3664          "of CompileThreshold) before profiling in the interpreter")       \
3665                                                                            \
3666  develop(intx, MaxRecompilationSearchLength,    10,                        \
3667          "max. # frames to inspect searching for recompilee")              \
3668                                                                            \
3669  develop(intx, MaxInterpretedSearchLength,     3,                          \
3670          "max. # interp. frames to skip when searching for recompilee")    \
3671                                                                            \
3672  develop(intx, DesiredMethodLimit,  8000,                                  \
3673          "desired max. method size (in bytecodes) after inlining")         \
3674                                                                            \
3675  develop(intx, HugeMethodLimit,  8000,                                     \
3676          "don't compile methods larger than this if "                      \
3677          "+DontCompileHugeMethods")                                        \
3678                                                                            \
3679  /* New JDK 1.4 reflection implementation */                               \
3680                                                                            \
3681  develop(bool, UseNewReflection, true,                                     \
3682          "Temporary flag for transition to reflection based on dynamic "   \
3683          "bytecode generation in 1.4; can no longer be turned off in 1.4 " \
3684          "JDK, and is unneeded in 1.3 JDK, but marks most places VM "      \
3685          "changes were needed")                                            \
3686                                                                            \
3687  develop(bool, VerifyReflectionBytecodes, false,                           \
3688          "Force verification of 1.4 reflection bytecodes. Does not work "  \
3689          "in situations like that described in 4486457 or for "            \
3690          "constructors generated for serialization, so can not be enabled "\
3691          "in product.")                                                    \
3692                                                                            \
3693  product(bool, ReflectionWrapResolutionErrors, true,                       \
3694          "Temporary flag for transition to AbstractMethodError wrapped "   \
3695          "in InvocationTargetException. See 6531596")                      \
3696                                                                            \
3697                                                                            \
3698  develop(intx, FastSuperclassLimit, 8,                                     \
3699          "Depth of hardwired instanceof accelerator array")                \
3700                                                                            \
3701  /* Properties for Java libraries  */                                      \
3702                                                                            \
3703  product(intx, MaxDirectMemorySize, -1,                                    \
3704          "Maximum total size of NIO direct-buffer allocations")            \
3705                                                                            \
3706  /* temporary developer defined flags  */                                  \
3707                                                                            \
3708  diagnostic(bool, UseNewCode, false,                                       \
3709          "Testing Only: Use the new version while testing")                \
3710                                                                            \
3711  diagnostic(bool, UseNewCode2, false,                                      \
3712          "Testing Only: Use the new version while testing")                \
3713                                                                            \
3714  diagnostic(bool, UseNewCode3, false,                                      \
3715          "Testing Only: Use the new version while testing")                \
3716                                                                            \
3717  /* flags for performance data collection */                               \
3718                                                                            \
3719  product(bool, UsePerfData, falseInEmbedded,                               \
3720          "Flag to disable jvmstat instrumentation for performance testing" \
3721          "and problem isolation purposes.")                                \
3722                                                                            \
3723  product(bool, PerfDataSaveToFile, false,                                  \
3724          "Save PerfData memory to hsperfdata_<pid> file on exit")          \
3725                                                                            \
3726  product(ccstr, PerfDataSaveFile, NULL,                                    \
3727          "Save PerfData memory to the specified absolute pathname,"        \
3728           "%p in the file name if present will be replaced by pid")        \
3729                                                                            \
3730  product(intx, PerfDataSamplingInterval, 50 /*ms*/,                        \
3731          "Data sampling interval in milliseconds")                         \
3732                                                                            \
3733  develop(bool, PerfTraceDataCreation, false,                               \
3734          "Trace creation of Performance Data Entries")                     \
3735                                                                            \
3736  develop(bool, PerfTraceMemOps, false,                                     \
3737          "Trace PerfMemory create/attach/detach calls")                    \
3738                                                                            \
3739  product(bool, PerfDisableSharedMem, false,                                \
3740          "Store performance data in standard memory")                      \
3741                                                                            \
3742  product(intx, PerfDataMemorySize, 32*K,                                   \
3743          "Size of performance data memory region. Will be rounded "        \
3744          "up to a multiple of the native os page size.")                   \
3745                                                                            \
3746  product(intx, PerfMaxStringConstLength, 1024,                             \
3747          "Maximum PerfStringConstant string length before truncation")     \
3748                                                                            \
3749  product(bool, PerfAllowAtExitRegistration, false,                         \
3750          "Allow registration of atexit() methods")                         \
3751                                                                            \
3752  product(bool, PerfBypassFileSystemCheck, false,                           \
3753          "Bypass Win32 file system criteria checks (Windows Only)")        \
3754                                                                            \
3755  product(intx, UnguardOnExecutionViolation, 0,                             \
3756          "Unguard page and retry on no-execute fault (Win32 only)"         \
3757          "0=off, 1=conservative, 2=aggressive")                            \
3758                                                                            \
3759  /* Serviceability Support */                                              \
3760                                                                            \
3761  product(bool, ManagementServer, false,                                    \
3762          "Create JMX Management Server")                                   \
3763                                                                            \
3764  product(bool, DisableAttachMechanism, false,                              \
3765         "Disable mechanism that allows tools to attach to this VM")        \
3766                                                                            \
3767  product(bool, StartAttachListener, false,                                 \
3768          "Always start Attach Listener at VM startup")                     \
3769                                                                            \
3770  manageable(bool, PrintConcurrentLocks, false,                             \
3771          "Print java.util.concurrent locks in thread dump")                \
3772                                                                            \
3773  product(bool, TransmitErrorReport, false,                                 \
3774          "Enable error report transmission on erroneous termination")      \
3775                                                                            \
3776  product(ccstr, ErrorReportServer, NULL,                                   \
3777          "Override built-in error report server address")                  \
3778                                                                            \
3779  /* Shared spaces */                                                       \
3780                                                                            \
3781  product(bool, UseSharedSpaces, true,                                      \
3782          "Use shared spaces in the permanent generation")                  \
3783                                                                            \
3784  product(bool, RequireSharedSpaces, false,                                 \
3785          "Require shared spaces in the permanent generation")              \
3786                                                                            \
3787  product(bool, DumpSharedSpaces, false,                                    \
3788           "Special mode: JVM reads a class list, loads classes, builds "   \
3789            "shared spaces, and dumps the shared spaces to a file to be "   \
3790            "used in future JVM runs.")                                     \
3791                                                                            \
3792  product(bool, PrintSharedSpaces, false,                                   \
3793          "Print usage of shared spaces")                                   \
3794                                                                            \
3795  product(uintx, SharedDummyBlockSize, 512*M,                               \
3796          "Size of dummy block used to shift heap addresses (in bytes)")    \
3797                                                                            \
3798  product(uintx, SharedReadWriteSize,  NOT_LP64(12*M) LP64_ONLY(13*M),      \
3799          "Size of read-write space in permanent generation (in bytes)")    \
3800                                                                            \
3801  product(uintx, SharedReadOnlySize,   10*M,                                \
3802          "Size of read-only space in permanent generation (in bytes)")     \
3803                                                                            \
3804  product(uintx, SharedMiscDataSize, NOT_LP64(4*M) LP64_ONLY(5*M) NOT_PRODUCT(+1*M),       \
3805          "Size of the shared data area adjacent to the heap (in bytes)")   \
3806                                                                            \
3807  product(uintx, SharedMiscCodeSize,    4*M,                                \
3808          "Size of the shared code area adjacent to the heap (in bytes)")   \
3809                                                                            \
3810  diagnostic(bool, SharedOptimizeColdStart, true,                           \
3811          "At dump time, order shared objects to achieve better "           \
3812          "cold startup time.")                                             \
3813                                                                            \
3814  develop(intx, SharedOptimizeColdStartPolicy, 2,                           \
3815          "Reordering policy for SharedOptimizeColdStart "                  \
3816          "0=favor classload-time locality, 1=balanced, "                   \
3817          "2=favor runtime locality")                                       \
3818                                                                            \
3819  diagnostic(bool, SharedSkipVerify, false,                                 \
3820          "Skip assert() and verify() which page-in unwanted shared "       \
3821          "objects. ")                                                      \
3822                                                                            \
3823  diagnostic(bool, EnableInvokeDynamic, true,                               \
3824          "support JSR 292 (method handles, invokedynamic, "                \
3825          "anonymous classes")                                              \
3826                                                                            \
3827  product(bool, AnonymousClasses, false,                                    \
3828          "support sun.misc.Unsafe.defineAnonymousClass (deprecated)")      \
3829                                                                            \
3830  experimental(bool, EnableMethodHandles, false,                            \
3831          "support method handles (deprecated)")                            \
3832                                                                            \
3833  diagnostic(intx, MethodHandlePushLimit, 3,                                \
3834          "number of additional stack slots a method handle may push")      \
3835                                                                            \
3836  diagnostic(bool, PrintMethodHandleStubs, false,                           \
3837          "Print generated stub code for method handles")                   \
3838                                                                            \
3839  develop(bool, TraceMethodHandles, false,                                  \
3840          "trace internal method handle operations")                        \
3841                                                                            \
3842  diagnostic(bool, VerifyMethodHandles, trueInDebug,                        \
3843          "perform extra checks when constructing method handles")          \
3844                                                                            \
3845  diagnostic(bool, OptimizeMethodHandles, true,                             \
3846          "when constructing method handles, try to improve them")          \
3847                                                                            \
3848  develop(bool, StressMethodHandleWalk, false,                              \
3849          "Process all method handles with MethodHandleWalk")               \
3850                                                                            \
3851  experimental(bool, TrustFinalNonStaticFields, false,                      \
3852          "trust final non-static declarations for constant folding")       \
3853                                                                            \
3854  experimental(bool, AllowInvokeGeneric, false,                             \
3855          "accept MethodHandle.invoke and MethodHandle.invokeGeneric "      \
3856          "as equivalent methods")                                          \
3857                                                                            \
3858  develop(bool, TraceInvokeDynamic, false,                                  \
3859          "trace internal invoke dynamic operations")                       \
3860                                                                            \
3861  diagnostic(bool, PauseAtStartup,      false,                              \
3862          "Causes the VM to pause at startup time and wait for the pause "  \
3863          "file to be removed (default: ./vm.paused.<pid>)")                \
3864                                                                            \
3865  diagnostic(ccstr, PauseAtStartupFile, NULL,                               \
3866          "The file to create and for whose removal to await when pausing " \
3867          "at startup. (default: ./vm.paused.<pid>)")                       \
3868                                                                            \
3869  diagnostic(bool, PauseAtExit, false,                                      \
3870          "Pause and wait for keypress on exit if a debugger is attached")  \
3871                                                                            \
3872  product(bool, ExtendedDTraceProbes,    false,                             \
3873          "Enable performance-impacting dtrace probes")                     \
3874                                                                            \
3875  product(bool, DTraceMethodProbes, false,                                  \
3876          "Enable dtrace probes for method-entry and method-exit")          \
3877                                                                            \
3878  product(bool, DTraceAllocProbes, false,                                   \
3879          "Enable dtrace probes for object allocation")                     \
3880                                                                            \
3881  product(bool, DTraceMonitorProbes, false,                                 \
3882          "Enable dtrace probes for monitor events")                        \
3883                                                                            \
3884  product(bool, RelaxAccessControlCheck, false,                             \
3885          "Relax the access control checks in the verifier")                \
3886                                                                            \
3887  diagnostic(bool, PrintDTraceDOF, false,                                   \
3888             "Print the DTrace DOF passed to the system for JSDT probes")   \
3889                                                                            \
3890  product(uintx, StringTableSize, 1009,                                     \
3891          "Number of buckets in the interned String table")                 \
3892                                                                            \
3893  product(bool, UseVMInterruptibleIO, false,                                \
3894          "(Unstable, Solaris-specific) Thread interrupt before or with "   \
3895          "EINTR for I/O operations results in OS_INTRPT. The default value"\
3896          " of this flag is true for JDK 6 and earlier")                    \
3897                                                                            \
3898  diagnostic(bool, WhiteBoxAPI, false,                                      \
3899          "Enable internal testing APIs")                                   \
3900                                                                            \
3901  product(bool, PrintGCCause, true,                                         \
3902          "Include GC cause in GC logging")
3903
3904/*
3905 *  Macros for factoring of globals
3906 */
3907
3908// Interface macros
3909#define DECLARE_PRODUCT_FLAG(type, name, value, doc)    extern "C" type name;
3910#define DECLARE_PD_PRODUCT_FLAG(type, name, doc)        extern "C" type name;
3911#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name;
3912#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
3913#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name;
3914#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name;
3915#ifdef PRODUCT
3916#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)  const type name = value;
3917#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)      const type name = pd_##name;
3918#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)
3919#else
3920#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)  extern "C" type name;
3921#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)      extern "C" type name;
3922#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)  extern "C" type name;
3923#endif
3924// Special LP64 flags, product only needed for now.
3925#ifdef _LP64
3926#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
3927#else
3928#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value;
3929#endif // _LP64
3930
3931// Implementation macros
3932#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc)   type name = value;
3933#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc)       type name = pd_##name;
3934#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value;
3935#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value;
3936#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value;
3937#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value;
3938#ifdef PRODUCT
3939#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) /* flag name is constant */
3940#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)     /* flag name is constant */
3941#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)
3942#else
3943#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value;
3944#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)     type name = pd_##name;
3945#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value;
3946#endif
3947#ifdef _LP64
3948#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc)   type name = value;
3949#else
3950#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */
3951#endif // _LP64
3952
3953RUNTIME_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)
3954
3955RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)
3956
3957// Extensions
3958
3959#include "runtime/globals_ext.hpp"
3960
3961#endif // SHARE_VM_RUNTIME_GLOBALS_HPP
3962