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