globals.hpp revision 7227:150cf09d1244
189099Sfjoe/*
289099Sfjoe * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
389099Sfjoe * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489099Sfjoe *
589099Sfjoe * This code is free software; you can redistribute it and/or modify it
689099Sfjoe * under the terms of the GNU General Public License version 2 only, as
789099Sfjoe * published by the Free Software Foundation.
889099Sfjoe *
989099Sfjoe * This code is distributed in the hope that it will be useful, but WITHOUT
1089099Sfjoe * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1189099Sfjoe * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1289099Sfjoe * version 2 for more details (a copy is included in the LICENSE file that
1389099Sfjoe * accompanied this code).
1489099Sfjoe *
1589099Sfjoe * You should have received a copy of the GNU General Public License version
1689099Sfjoe * 2 along with this work; if not, write to the Free Software Foundation,
1789099Sfjoe * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1889099Sfjoe *
1989099Sfjoe * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2089099Sfjoe * or visit www.oracle.com if you need additional information or have any
2189099Sfjoe * questions.
2289099Sfjoe *
2389099Sfjoe */
2489099Sfjoe
2589099Sfjoe#ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
2689099Sfjoe#define SHARE_VM_RUNTIME_GLOBALS_HPP
2789099Sfjoe
2889099Sfjoe#include "utilities/debug.hpp"
2989099Sfjoe
3089099Sfjoe// use this for flags that are true per default in the tiered build
3189099Sfjoe// but false in non-tiered builds, and vice versa
3289099Sfjoe#ifdef TIERED
3389099Sfjoe#define  trueInTiered true
3489099Sfjoe#define falseInTiered false
3589099Sfjoe#else
3689099Sfjoe#define  trueInTiered false
3789099Sfjoe#define falseInTiered true
3889099Sfjoe#endif
3989099Sfjoe
4089099Sfjoe#ifdef TARGET_ARCH_x86
4189099Sfjoe# include "globals_x86.hpp"
4289099Sfjoe#endif
4389099Sfjoe#ifdef TARGET_ARCH_sparc
4489099Sfjoe# include "globals_sparc.hpp"
4589099Sfjoe#endif
4689099Sfjoe#ifdef TARGET_ARCH_zero
4789099Sfjoe# include "globals_zero.hpp"
4889099Sfjoe#endif
4989099Sfjoe#ifdef TARGET_ARCH_arm
5089099Sfjoe# include "globals_arm.hpp"
5189099Sfjoe#endif
5289099Sfjoe#ifdef TARGET_ARCH_ppc
5389099Sfjoe# include "globals_ppc.hpp"
5489099Sfjoe#endif
5589099Sfjoe#ifdef TARGET_OS_FAMILY_linux
5689099Sfjoe# include "globals_linux.hpp"
5789099Sfjoe#endif
5889099Sfjoe#ifdef TARGET_OS_FAMILY_solaris
5989099Sfjoe# include "globals_solaris.hpp"
6089099Sfjoe#endif
6189099Sfjoe#ifdef TARGET_OS_FAMILY_windows
6289099Sfjoe# include "globals_windows.hpp"
6389099Sfjoe#endif
6489099Sfjoe#ifdef TARGET_OS_FAMILY_aix
6589099Sfjoe# include "globals_aix.hpp"
6689099Sfjoe#endif
6789099Sfjoe#ifdef TARGET_OS_FAMILY_bsd
6889099Sfjoe# include "globals_bsd.hpp"
6989099Sfjoe#endif
7089099Sfjoe#ifdef TARGET_OS_ARCH_linux_x86
7189099Sfjoe# include "globals_linux_x86.hpp"
7289099Sfjoe#endif
7389099Sfjoe#ifdef TARGET_OS_ARCH_linux_sparc
7489099Sfjoe# include "globals_linux_sparc.hpp"
7589099Sfjoe#endif
7689099Sfjoe#ifdef TARGET_OS_ARCH_linux_zero
7789099Sfjoe# include "globals_linux_zero.hpp"
7889099Sfjoe#endif
7989099Sfjoe#ifdef TARGET_OS_ARCH_solaris_x86
8089099Sfjoe# include "globals_solaris_x86.hpp"
8189099Sfjoe#endif
8289099Sfjoe#ifdef TARGET_OS_ARCH_solaris_sparc
8389099Sfjoe# include "globals_solaris_sparc.hpp"
8489099Sfjoe#endif
8589099Sfjoe#ifdef TARGET_OS_ARCH_windows_x86
8689099Sfjoe# include "globals_windows_x86.hpp"
8789099Sfjoe#endif
8889099Sfjoe#ifdef TARGET_OS_ARCH_linux_arm
8989099Sfjoe# include "globals_linux_arm.hpp"
9089099Sfjoe#endif
9189099Sfjoe#ifdef TARGET_OS_ARCH_linux_ppc
9289099Sfjoe# include "globals_linux_ppc.hpp"
9389099Sfjoe#endif
9489099Sfjoe#ifdef TARGET_OS_ARCH_aix_ppc
9589099Sfjoe# include "globals_aix_ppc.hpp"
9689099Sfjoe#endif
9789099Sfjoe#ifdef TARGET_OS_ARCH_bsd_x86
9889099Sfjoe# include "globals_bsd_x86.hpp"
9989099Sfjoe#endif
10089099Sfjoe#ifdef TARGET_OS_ARCH_bsd_zero
10189099Sfjoe# include "globals_bsd_zero.hpp"
10289099Sfjoe#endif
10389099Sfjoe#ifdef COMPILER1
10489099Sfjoe#ifdef TARGET_ARCH_x86
10589099Sfjoe# include "c1_globals_x86.hpp"
10689099Sfjoe#endif
10789099Sfjoe#ifdef TARGET_ARCH_sparc
10889099Sfjoe# include "c1_globals_sparc.hpp"
10989099Sfjoe#endif
11089099Sfjoe#ifdef TARGET_ARCH_arm
11189099Sfjoe# include "c1_globals_arm.hpp"
11289099Sfjoe#endif
11389099Sfjoe#ifdef TARGET_ARCH_ppc
11489099Sfjoe# include "c1_globals_ppc.hpp"
11589099Sfjoe#endif
11689099Sfjoe#ifdef TARGET_OS_FAMILY_linux
11789099Sfjoe# include "c1_globals_linux.hpp"
11889099Sfjoe#endif
11989099Sfjoe#ifdef TARGET_OS_FAMILY_solaris
12089099Sfjoe# include "c1_globals_solaris.hpp"
12189099Sfjoe#endif
12289099Sfjoe#ifdef TARGET_OS_FAMILY_windows
12389099Sfjoe# include "c1_globals_windows.hpp"
12489099Sfjoe#endif
12589099Sfjoe#ifdef TARGET_OS_FAMILY_aix
12689099Sfjoe# include "c1_globals_aix.hpp"
12789099Sfjoe#endif
12889099Sfjoe#ifdef TARGET_OS_FAMILY_bsd
12989099Sfjoe# include "c1_globals_bsd.hpp"
13089099Sfjoe#endif
13189099Sfjoe#endif
13289099Sfjoe#ifdef COMPILER2
13389099Sfjoe#ifdef TARGET_ARCH_x86
13489099Sfjoe# include "c2_globals_x86.hpp"
13589099Sfjoe#endif
13689099Sfjoe#ifdef TARGET_ARCH_sparc
13789099Sfjoe# include "c2_globals_sparc.hpp"
13889099Sfjoe#endif
13989099Sfjoe#ifdef TARGET_ARCH_arm
14089099Sfjoe# include "c2_globals_arm.hpp"
14189099Sfjoe#endif
14289099Sfjoe#ifdef TARGET_ARCH_ppc
14389099Sfjoe# include "c2_globals_ppc.hpp"
14489099Sfjoe#endif
14589099Sfjoe#ifdef TARGET_OS_FAMILY_linux
14689099Sfjoe# include "c2_globals_linux.hpp"
14789099Sfjoe#endif
14889099Sfjoe#ifdef TARGET_OS_FAMILY_solaris
14992739Salfred# include "c2_globals_solaris.hpp"
15092739Salfred#endif
15192739Salfred#ifdef TARGET_OS_FAMILY_windows
15292739Salfred# include "c2_globals_windows.hpp"
15392739Salfred#endif
15492739Salfred#ifdef TARGET_OS_FAMILY_aix
15592739Salfred# include "c2_globals_aix.hpp"
15689099Sfjoe#endif
15789099Sfjoe#ifdef TARGET_OS_FAMILY_bsd
15889099Sfjoe# include "c2_globals_bsd.hpp"
15989099Sfjoe#endif
16089099Sfjoe#endif
16189099Sfjoe#ifdef SHARK
16289099Sfjoe#ifdef TARGET_ARCH_zero
16389099Sfjoe# include "shark_globals_zero.hpp"
16489099Sfjoe#endif
16589099Sfjoe#endif
16689099Sfjoe
16789099Sfjoe#if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK)
16889099Sfjoedefine_pd_global(bool, BackgroundCompilation,        false);
16989099Sfjoedefine_pd_global(bool, UseTLAB,                      false);
17089099Sfjoedefine_pd_global(bool, CICompileOSR,                 false);
17189099Sfjoedefine_pd_global(bool, UseTypeProfile,               false);
17289099Sfjoedefine_pd_global(bool, UseOnStackReplacement,        false);
17389099Sfjoedefine_pd_global(bool, InlineIntrinsics,             false);
17489099Sfjoedefine_pd_global(bool, PreferInterpreterNativeStubs, true);
17589099Sfjoedefine_pd_global(bool, ProfileInterpreter,           false);
17689099Sfjoedefine_pd_global(bool, ProfileTraps,                 false);
17789099Sfjoedefine_pd_global(bool, TieredCompilation,            false);
17889099Sfjoe
17989099Sfjoedefine_pd_global(intx, CompileThreshold,             0);
18089099Sfjoe
18189099Sfjoedefine_pd_global(intx, OnStackReplacePercentage,     0);
18289099Sfjoedefine_pd_global(bool, ResizeTLAB,                   false);
18389099Sfjoedefine_pd_global(intx, FreqInlineSize,               0);
18489099Sfjoedefine_pd_global(intx, NewSizeThreadIncrease,        4*K);
18589099Sfjoedefine_pd_global(intx, InlineClassNatives,           true);
18689099Sfjoedefine_pd_global(intx, InlineUnsafeOps,              true);
18789099Sfjoedefine_pd_global(intx, InitialCodeCacheSize,         160*K);
18889099Sfjoedefine_pd_global(intx, ReservedCodeCacheSize,        32*M);
18989099Sfjoedefine_pd_global(intx, NonProfiledCodeHeapSize,      0);
19089099Sfjoedefine_pd_global(intx, ProfiledCodeHeapSize,         0);
19189099Sfjoedefine_pd_global(intx, NonNMethodCodeHeapSize,        32*M);
19289099Sfjoe
19389099Sfjoedefine_pd_global(intx, CodeCacheExpansionSize,       32*K);
19489099Sfjoedefine_pd_global(intx, CodeCacheMinBlockLength,      1);
19589099Sfjoedefine_pd_global(intx, CodeCacheMinimumUseSpace,     200*K);
19689099Sfjoedefine_pd_global(uintx,MetaspaceSize,    ScaleForWordSize(4*M));
19789099Sfjoedefine_pd_global(bool, NeverActAsServerClassMachine, true);
19889099Sfjoedefine_pd_global(uint64_t,MaxRAM,                    1ULL*G);
19989099Sfjoe#define CI_COMPILER_COUNT 0
20089099Sfjoe#else
20189099Sfjoe
20289099Sfjoe#ifdef COMPILER2
20389099Sfjoe#define CI_COMPILER_COUNT 2
20489099Sfjoe#else
20589099Sfjoe#define CI_COMPILER_COUNT 1
20689099Sfjoe#endif // COMPILER2
20789099Sfjoe
20889099Sfjoe#endif // no compilers
20989099Sfjoe
21089099Sfjoe// string type aliases used only in this file
21189099Sfjoetypedef const char* ccstr;
21289099Sfjoetypedef const char* ccstrlist;   // represents string arguments which accumulate
21389099Sfjoe
21489099Sfjoestruct Flag {
21589099Sfjoe  enum Flags {
21689099Sfjoe    // value origin
21789099Sfjoe    DEFAULT          = 0,
21889099Sfjoe    COMMAND_LINE     = 1,
21989099Sfjoe    ENVIRON_VAR      = 2,
22089099Sfjoe    CONFIG_FILE      = 3,
22189099Sfjoe    MANAGEMENT       = 4,
22289099Sfjoe    ERGONOMIC        = 5,
22389099Sfjoe    ATTACH_ON_DEMAND = 6,
22489099Sfjoe    INTERNAL         = 7,
22589099Sfjoe
22689099Sfjoe    LAST_VALUE_ORIGIN = INTERNAL,
22789099Sfjoe    VALUE_ORIGIN_BITS = 4,
22889099Sfjoe    VALUE_ORIGIN_MASK = right_n_bits(VALUE_ORIGIN_BITS),
22989099Sfjoe
23089099Sfjoe    // flag kind
23189099Sfjoe    KIND_PRODUCT            = 1 << 4,
23289099Sfjoe    KIND_MANAGEABLE         = 1 << 5,
23389099Sfjoe    KIND_DIAGNOSTIC         = 1 << 6,
23489099Sfjoe    KIND_EXPERIMENTAL       = 1 << 7,
23589099Sfjoe    KIND_NOT_PRODUCT        = 1 << 8,
23689099Sfjoe    KIND_DEVELOP            = 1 << 9,
23789099Sfjoe    KIND_PLATFORM_DEPENDENT = 1 << 10,
23889099Sfjoe    KIND_READ_WRITE         = 1 << 11,
23989099Sfjoe    KIND_C1                 = 1 << 12,
24089099Sfjoe    KIND_C2                 = 1 << 13,
24189099Sfjoe    KIND_ARCH               = 1 << 14,
24289099Sfjoe    KIND_SHARK              = 1 << 15,
24389099Sfjoe    KIND_LP64_PRODUCT       = 1 << 16,
24489099Sfjoe    KIND_COMMERCIAL         = 1 << 17,
24589099Sfjoe
24689099Sfjoe    KIND_MASK = ~VALUE_ORIGIN_MASK
24789099Sfjoe  };
24889099Sfjoe
24989099Sfjoe  const char* _type;
25089099Sfjoe  const char* _name;
25189099Sfjoe  void* _addr;
25289099Sfjoe  NOT_PRODUCT(const char* _doc;)
25389099Sfjoe  Flags _flags;
25489099Sfjoe
25589099Sfjoe  // points to all Flags static array
25689099Sfjoe  static Flag* flags;
25789099Sfjoe
25889099Sfjoe  // number of flags
25989099Sfjoe  static size_t numFlags;
26089099Sfjoe
26189099Sfjoe  static Flag* find_flag(const char* name, size_t length, bool allow_locked = false, bool return_flag = false);
26289099Sfjoe  static Flag* fuzzy_match(const char* name, size_t length, bool allow_locked = false);
26389099Sfjoe
26489099Sfjoe  void check_writable();
26589099Sfjoe
26689099Sfjoe  bool is_bool() const;
26789099Sfjoe  bool get_bool() const;
26889099Sfjoe  void set_bool(bool value);
26989099Sfjoe
27089099Sfjoe  bool is_intx() const;
27189099Sfjoe  intx get_intx() const;
27289099Sfjoe  void set_intx(intx value);
27389099Sfjoe
27489099Sfjoe  bool is_uintx() const;
27589099Sfjoe  uintx get_uintx() const;
27689099Sfjoe  void set_uintx(uintx value);
27789099Sfjoe
27889099Sfjoe  bool is_uint64_t() const;
27989099Sfjoe  uint64_t get_uint64_t() const;
28089099Sfjoe  void set_uint64_t(uint64_t value);
28189099Sfjoe
28289099Sfjoe  bool is_size_t() const;
28389099Sfjoe  size_t get_size_t() const;
28489099Sfjoe  void set_size_t(size_t value);
28589099Sfjoe
28689099Sfjoe  bool is_double() const;
28789099Sfjoe  double get_double() const;
28889099Sfjoe  void set_double(double value);
28989099Sfjoe
29089099Sfjoe  bool is_ccstr() const;
29189099Sfjoe  bool ccstr_accumulates() const;
29289099Sfjoe  ccstr get_ccstr() const;
29389099Sfjoe  void set_ccstr(ccstr value);
29489099Sfjoe
29589099Sfjoe  Flags get_origin();
29689099Sfjoe  void set_origin(Flags origin);
29789099Sfjoe
29889099Sfjoe  bool is_default();
29989099Sfjoe  bool is_ergonomic();
30089099Sfjoe  bool is_command_line();
30189099Sfjoe
30289099Sfjoe  bool is_product() const;
30389099Sfjoe  bool is_manageable() const;
30489099Sfjoe  bool is_diagnostic() const;
30589099Sfjoe  bool is_experimental() const;
30689099Sfjoe  bool is_notproduct() const;
30789099Sfjoe  bool is_develop() const;
30889099Sfjoe  bool is_read_write() const;
30989099Sfjoe  bool is_commercial() const;
31089099Sfjoe
31189099Sfjoe  bool is_constant_in_binary() const;
31289099Sfjoe
31389099Sfjoe  bool is_unlocker() const;
31489099Sfjoe  bool is_unlocked() const;
31589099Sfjoe  bool is_writeable() const;
31689099Sfjoe  bool is_external() const;
31789099Sfjoe
31889099Sfjoe  bool is_unlocker_ext() const;
31989099Sfjoe  bool is_unlocked_ext() const;
32089099Sfjoe  bool is_writeable_ext() const;
32189099Sfjoe  bool is_external_ext() const;
32289099Sfjoe
32389099Sfjoe  void get_locked_message(char*, int) const;
32489099Sfjoe  void get_locked_message_ext(char*, int) const;
32589099Sfjoe
32689099Sfjoe  void print_on(outputStream* st, bool withComments = false );
32789099Sfjoe  void print_kind(outputStream* st);
32889099Sfjoe  void print_as_flag(outputStream* st);
32989099Sfjoe};
33089099Sfjoe
33189099Sfjoe// debug flags control various aspects of the VM and are global accessible
33289099Sfjoe
33389099Sfjoe// use FlagSetting to temporarily change some debug flag
33489099Sfjoe// e.g. FlagSetting fs(DebugThisAndThat, true);
33589099Sfjoe// restored to previous value upon leaving scope
33689099Sfjoeclass FlagSetting {
33789099Sfjoe  bool val;
33889099Sfjoe  bool* flag;
33992739Salfred public:
34089099Sfjoe  FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; }
34189099Sfjoe  ~FlagSetting()                       { *flag = val; }
34289099Sfjoe};
34389099Sfjoe
34489099Sfjoe
34589099Sfjoeclass CounterSetting {
34689099Sfjoe  intx* counter;
34789099Sfjoe public:
34889099Sfjoe  CounterSetting(intx* cnt) { counter = cnt; (*counter)++; }
349104251Sbrooks  ~CounterSetting()         { (*counter)--; }
35089099Sfjoe};
35189099Sfjoe
35289099Sfjoe
35389099Sfjoeclass UIntFlagSetting {
35489099Sfjoe  uintx val;
35589099Sfjoe  uintx* flag;
35689099Sfjoe public:
35789099Sfjoe  UIntFlagSetting(uintx& fl, uintx newValue) { flag = &fl; val = fl; fl = newValue; }
35889099Sfjoe  ~UIntFlagSetting()                         { *flag = val; }
35989099Sfjoe};
36089099Sfjoe
36189099Sfjoeclass DoubleFlagSetting {
36289099Sfjoe  double val;
36389099Sfjoe  double* flag;
36489099Sfjoe public:
36589099Sfjoe  DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; }
36689099Sfjoe  ~DoubleFlagSetting()                           { *flag = val; }
36789099Sfjoe};
36889099Sfjoe
36989099Sfjoeclass SizeTFlagSetting {
37089099Sfjoe  size_t val;
37189099Sfjoe  size_t* flag;
37289099Sfjoe public:
37389099Sfjoe  SizeTFlagSetting(size_t& fl, size_t newValue) { flag = &fl; val = fl; fl = newValue; }
37489099Sfjoe  ~SizeTFlagSetting()                           { *flag = val; }
37589099Sfjoe};
37689099Sfjoe
37789099Sfjoe
37889099Sfjoeclass CommandLineFlags {
37989099Sfjoe public:
38089099Sfjoe  static bool boolAt(const char* name, size_t len, bool* value);
38189099Sfjoe  static bool boolAt(const char* name, bool* value)      { return boolAt(name, strlen(name), value); }
38289099Sfjoe  static bool boolAtPut(const char* name, size_t len, bool* value, Flag::Flags origin);
38389099Sfjoe  static bool boolAtPut(const char* name, bool* value, Flag::Flags origin)   { return boolAtPut(name, strlen(name), value, origin); }
38489099Sfjoe
38589099Sfjoe  static bool intxAt(const char* name, size_t len, intx* value);
38689099Sfjoe  static bool intxAt(const char* name, intx* value)      { return intxAt(name, strlen(name), value); }
38789099Sfjoe  static bool intxAtPut(const char* name, size_t len, intx* value, Flag::Flags origin);
38889099Sfjoe  static bool intxAtPut(const char* name, intx* value, Flag::Flags origin)   { return intxAtPut(name, strlen(name), value, origin); }
38989099Sfjoe
39089099Sfjoe  static bool uintxAt(const char* name, size_t len, uintx* value);
39189099Sfjoe  static bool uintxAt(const char* name, uintx* value)    { return uintxAt(name, strlen(name), value); }
392104251Sbrooks  static bool uintxAtPut(const char* name, size_t len, uintx* value, Flag::Flags origin);
39389099Sfjoe  static bool uintxAtPut(const char* name, uintx* value, Flag::Flags origin) { return uintxAtPut(name, strlen(name), value, origin); }
39489099Sfjoe
39589099Sfjoe  static bool size_tAt(const char* name, size_t len, size_t* value);
39689099Sfjoe  static bool size_tAt(const char* name, size_t* value)    { return size_tAt(name, strlen(name), value); }
39789099Sfjoe  static bool size_tAtPut(const char* name, size_t len, size_t* value, Flag::Flags origin);
39889099Sfjoe  static bool size_tAtPut(const char* name, size_t* value, Flag::Flags origin) { return size_tAtPut(name, strlen(name), value, origin); }
39989099Sfjoe
40089099Sfjoe  static bool uint64_tAt(const char* name, size_t len, uint64_t* value);
40189099Sfjoe  static bool uint64_tAt(const char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); }
40289099Sfjoe  static bool uint64_tAtPut(const char* name, size_t len, uint64_t* value, Flag::Flags origin);
40389099Sfjoe  static bool uint64_tAtPut(const char* name, uint64_t* value, Flag::Flags origin) { return uint64_tAtPut(name, strlen(name), value, origin); }
404104251Sbrooks
405104251Sbrooks  static bool doubleAt(const char* name, size_t len, double* value);
40689099Sfjoe  static bool doubleAt(const char* name, double* value)    { return doubleAt(name, strlen(name), value); }
40789099Sfjoe  static bool doubleAtPut(const char* name, size_t len, double* value, Flag::Flags origin);
40889099Sfjoe  static bool doubleAtPut(const char* name, double* value, Flag::Flags origin) { return doubleAtPut(name, strlen(name), value, origin); }
40989099Sfjoe
41089099Sfjoe  static bool ccstrAt(const char* name, size_t len, ccstr* value);
41189099Sfjoe  static bool ccstrAt(const char* name, ccstr* value)    { return ccstrAt(name, strlen(name), value); }
41289099Sfjoe  // Contract:  Flag will make private copy of the incoming value.
41389099Sfjoe  // Outgoing value is always malloc-ed, and caller MUST call free.
41489099Sfjoe  static bool ccstrAtPut(const char* name, size_t len, ccstr* value, Flag::Flags origin);
41589099Sfjoe  static bool ccstrAtPut(const char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); }
41689099Sfjoe
41789099Sfjoe  // Returns false if name is not a command line flag.
418104251Sbrooks  static bool wasSetOnCmdline(const char* name, bool* value);
419104251Sbrooks  static void printSetFlags(outputStream* out);
42089099Sfjoe
42189099Sfjoe  static void printFlags(outputStream* out, bool withComments);
42289099Sfjoe
42389099Sfjoe  static void verify() PRODUCT_RETURN;
424104251Sbrooks};
425104251Sbrooks
42689099Sfjoe// use this for flags that are true by default in the debug version but
42789099Sfjoe// false in the optimized version, and vice versa
42889099Sfjoe#ifdef ASSERT
42989099Sfjoe#define trueInDebug  true
43089099Sfjoe#define falseInDebug false
43189099Sfjoe#else
43289099Sfjoe#define trueInDebug  false
43389099Sfjoe#define falseInDebug true
43489099Sfjoe#endif
43589099Sfjoe
43689099Sfjoe// use this for flags that are true per default in the product build
43789099Sfjoe// but false in development builds, and vice versa
43889099Sfjoe#ifdef PRODUCT
43989099Sfjoe#define trueInProduct  true
440104251Sbrooks#define falseInProduct false
441104251Sbrooks#else
44289099Sfjoe#define trueInProduct  false
44389099Sfjoe#define falseInProduct true
44489099Sfjoe#endif
44589099Sfjoe
44689099Sfjoe#ifdef JAVASE_EMBEDDED
44789099Sfjoe#define falseInEmbedded false
44889099Sfjoe#else
44989099Sfjoe#define falseInEmbedded true
45089099Sfjoe#endif
45189099Sfjoe
45289099Sfjoe// develop flags are settable / visible only during development and are constant in the PRODUCT version
45389099Sfjoe// product flags are always settable / visible
45489099Sfjoe// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
45589099Sfjoe
45689099Sfjoe// A flag must be declared with one of the following types:
45789099Sfjoe// bool, intx, uintx, ccstr, double, or uint64_t.
45889099Sfjoe// The type "ccstr" is an alias for "const char*" and is used
45989099Sfjoe// only in this file, because the macrology requires single-token type names.
46089099Sfjoe
46189099Sfjoe// Note: Diagnostic options not meant for VM tuning or for product modes.
46289099Sfjoe// They are to be used for VM quality assurance or field diagnosis
46389099Sfjoe// of VM bugs.  They are hidden so that users will not be encouraged to
46489099Sfjoe// try them as if they were VM ordinary execution options.  However, they
46589099Sfjoe// are available in the product version of the VM.  Under instruction
46689099Sfjoe// from support engineers, VM customers can turn them on to collect
46789099Sfjoe// diagnostic information about VM problems.  To use a VM diagnostic
46889099Sfjoe// option, you must first specify +UnlockDiagnosticVMOptions.
46989099Sfjoe// (This master switch also affects the behavior of -Xprintflags.)
47089099Sfjoe//
47189099Sfjoe// experimental flags are in support of features that are not
47289099Sfjoe//    part of the officially supported product, but are available
47389099Sfjoe//    for experimenting with. They could, for example, be performance
47489099Sfjoe//    features that may not have undergone full or rigorous QA, but which may
47589099Sfjoe//    help performance in some cases and released for experimentation
47689099Sfjoe//    by the community of users and developers. This flag also allows one to
47789099Sfjoe//    be able to build a fully supported product that nonetheless also
47889099Sfjoe//    ships with some unsupported, lightly tested, experimental features.
47989099Sfjoe//    Like the UnlockDiagnosticVMOptions flag above, there is a corresponding
48089099Sfjoe//    UnlockExperimentalVMOptions flag, which allows the control and
48189099Sfjoe//    modification of the experimental flags.
48289099Sfjoe//
48389099Sfjoe// Nota bene: neither diagnostic nor experimental options should be used casually,
48489099Sfjoe//    and they are not supported on production loads, except under explicit
48589099Sfjoe//    direction from support engineers.
48689099Sfjoe//
48789099Sfjoe// manageable flags are writeable external product flags.
48889099Sfjoe//    They are dynamically writeable through the JDK management interface
48989099Sfjoe//    (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
49089099Sfjoe//    These flags are external exported interface (see CCC).  The list of
49189099Sfjoe//    manageable flags can be queried programmatically through the management
49289099Sfjoe//    interface.
49389099Sfjoe//
494104251Sbrooks//    A flag can be made as "manageable" only if
49589099Sfjoe//    - the flag is defined in a CCC as an external exported interface.
49689099Sfjoe//    - the VM implementation supports dynamic setting of the flag.
49789099Sfjoe//      This implies that the VM must *always* query the flag variable
49889099Sfjoe//      and not reuse state related to the flag state at any given time.
49989099Sfjoe//    - you want the flag to be queried programmatically by the customers.
50089099Sfjoe//
50189099Sfjoe// product_rw flags are writeable internal product flags.
50289099Sfjoe//    They are like "manageable" flags but for internal/private use.
50389099Sfjoe//    The list of product_rw flags are internal/private flags which
50489099Sfjoe//    may be changed/removed in a future release.  It can be set
50589099Sfjoe//    through the management interface to get/set value
50689099Sfjoe//    when the name of flag is supplied.
50789099Sfjoe//
50889099Sfjoe//    A flag can be made as "product_rw" only if
50989099Sfjoe//    - the VM implementation supports dynamic setting of the flag.
51089099Sfjoe//      This implies that the VM must *always* query the flag variable
51189099Sfjoe//      and not reuse state related to the flag state at any given time.
51289099Sfjoe//
51389099Sfjoe// Note that when there is a need to support develop flags to be writeable,
51489099Sfjoe// it can be done in the same way as product_rw.
51589099Sfjoe
51689099Sfjoe#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \
51789099Sfjoe                                                                            \
51889099Sfjoe  lp64_product(bool, UseCompressedOops, false,                              \
51989099Sfjoe          "Use 32-bit object references in 64-bit VM. "                     \
52089099Sfjoe          "lp64_product means flag is always constant in 32 bit VM")        \
52189099Sfjoe                                                                            \
522106937Ssam  lp64_product(bool, UseCompressedClassPointers, false,                     \
52389099Sfjoe          "Use 32-bit class pointers in 64-bit VM. "                        \
52489099Sfjoe          "lp64_product means flag is always constant in 32 bit VM")        \
52589099Sfjoe                                                                            \
52689099Sfjoe  notproduct(bool, CheckCompressedOops, true,                               \
527104251Sbrooks          "Generate checks in encoding/decoding code in debug VM")          \
528104251Sbrooks                                                                            \
52989099Sfjoe  product_pd(uintx, HeapBaseMinAddress,                                     \
53089099Sfjoe          "OS specific low limit for heap base address")                    \
53189099Sfjoe                                                                            \
53289099Sfjoe  diagnostic(bool, PrintCompressedOopsMode, false,                          \
53389099Sfjoe          "Print compressed oops base address and encoding mode")           \
53489099Sfjoe                                                                            \
53589099Sfjoe  lp64_product(intx, ObjectAlignmentInBytes, 8,                             \
53689099Sfjoe          "Default object alignment in bytes, 8 is minimum")                \
53789099Sfjoe                                                                            \
53889099Sfjoe  product(bool, AssumeMP, false,                                            \
53989099Sfjoe          "Instruct the VM to assume multiple processors are available")    \
54089099Sfjoe                                                                            \
54189099Sfjoe  /* UseMembar is theoretically a temp flag used for memory barrier         \
54289099Sfjoe   * removal testing.  It was supposed to be removed before FCS but has     \
54389099Sfjoe   * been re-added (see 6401008) */                                         \
54489099Sfjoe  product_pd(bool, UseMembar,                                               \
54589099Sfjoe          "(Unstable) Issues membars on thread state transitions")          \
54689099Sfjoe                                                                            \
54789099Sfjoe  develop(bool, CleanChunkPoolAsync, falseInEmbedded,                       \
54889099Sfjoe          "Clean the chunk pool asynchronously")                            \
54989099Sfjoe                                                                            \
55089099Sfjoe  experimental(bool, AlwaysSafeConstructors, false,                         \
55189099Sfjoe          "Force safe construction, as if all fields are final.")           \
55289099Sfjoe                                                                            \
55389099Sfjoe  /* Temporary: See 6948537 */                                              \
55489099Sfjoe  experimental(bool, UseMemSetInBOT, true,                                  \
55589099Sfjoe          "(Unstable) uses memset in BOT updates in GC code")               \
55689099Sfjoe                                                                            \
55789099Sfjoe  diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug,                  \
55889099Sfjoe          "Enable normal processing of flags relating to field diagnostics")\
55989099Sfjoe                                                                            \
56089099Sfjoe  experimental(bool, UnlockExperimentalVMOptions, false,                    \
56189099Sfjoe          "Enable normal processing of flags relating to experimental "     \
56289099Sfjoe          "features")                                                       \
56389099Sfjoe                                                                            \
56489099Sfjoe  product(bool, JavaMonitorsInStackTrace, true,                             \
56589099Sfjoe          "Print information about Java monitor locks when the stacks are"  \
56689099Sfjoe          "dumped")                                                         \
56789099Sfjoe                                                                            \
56889099Sfjoe  product_pd(bool, UseLargePages,                                           \
56989099Sfjoe          "Use large page memory")                                          \
57089099Sfjoe                                                                            \
57189099Sfjoe  product_pd(bool, UseLargePagesIndividualAllocation,                       \
57289099Sfjoe          "Allocate large pages individually for better affinity")          \
57389099Sfjoe                                                                            \
57489099Sfjoe  develop(bool, LargePagesIndividualAllocationInjectError, false,           \
57589099Sfjoe          "Fail large pages individual allocation")                         \
57689099Sfjoe                                                                            \
57789099Sfjoe  product(bool, UseLargePagesInMetaspace, false,                            \
57889099Sfjoe          "Use large page memory in metaspace. "                            \
57989099Sfjoe          "Only used if UseLargePages is enabled.")                         \
58089099Sfjoe                                                                            \
58189099Sfjoe  develop(bool, TracePageSizes, false,                                      \
58289099Sfjoe          "Trace page size selection and usage")                            \
58389099Sfjoe                                                                            \
58489099Sfjoe  product(bool, UseNUMA, false,                                             \
58589099Sfjoe          "Use NUMA if available")                                          \
58689099Sfjoe                                                                            \
58789099Sfjoe  product(bool, UseNUMAInterleaving, false,                                 \
58889099Sfjoe          "Interleave memory across NUMA nodes if available")               \
58989099Sfjoe                                                                            \
59089099Sfjoe  product(uintx, NUMAInterleaveGranularity, 2*M,                            \
59189099Sfjoe          "Granularity to use for NUMA interleaving on Windows OS")         \
59289099Sfjoe                                                                            \
59389099Sfjoe  product(bool, ForceNUMA, false,                                           \
59489099Sfjoe          "Force NUMA optimizations on single-node/UMA systems")            \
59589099Sfjoe                                                                            \
596104251Sbrooks  product(uintx, NUMAChunkResizeWeight, 20,                                 \
597104251Sbrooks          "Percentage (0-100) used to weight the current sample when "      \
59889099Sfjoe          "computing exponentially decaying average for "                   \
59989099Sfjoe          "AdaptiveNUMAChunkSizing")                                        \
60089099Sfjoe                                                                            \
60189099Sfjoe  product(uintx, NUMASpaceResizeRate, 1*G,                                  \
60289099Sfjoe          "Do not reallocate more than this amount per collection")         \
60389099Sfjoe                                                                            \
60489099Sfjoe  product(bool, UseAdaptiveNUMAChunkSizing, true,                           \
60589099Sfjoe          "Enable adaptive chunk sizing for NUMA")                          \
60689099Sfjoe                                                                            \
60789099Sfjoe  product(bool, NUMAStats, false,                                           \
60889099Sfjoe          "Print NUMA stats in detailed heap information")                  \
60989099Sfjoe                                                                            \
61089099Sfjoe  product(uintx, NUMAPageScanRate, 256,                                     \
61189099Sfjoe          "Maximum number of pages to include in the page scan procedure")  \
61289099Sfjoe                                                                            \
61389099Sfjoe  product_pd(bool, NeedsDeoptSuspend,                                       \
61489099Sfjoe          "True for register window machines (sparc/ia64)")                 \
61589099Sfjoe                                                                            \
61689099Sfjoe  product(intx, UseSSE, 99,                                                 \
61789099Sfjoe          "Highest supported SSE instructions set on x86/x64")              \
61889099Sfjoe                                                                            \
61989099Sfjoe  product(bool, UseAES, false,                                              \
62089099Sfjoe          "Control whether AES instructions can be used on x86/x64")        \
62189099Sfjoe                                                                            \
62289099Sfjoe  product(bool, UseSHA, false,                                              \
62389099Sfjoe          "Control whether SHA instructions can be used on SPARC")          \
62489099Sfjoe                                                                            \
62589099Sfjoe  product(uintx, LargePageSizeInBytes, 0,                                   \
62689099Sfjoe          "Large page size (0 to let VM choose the page size)")             \
62789099Sfjoe                                                                            \
62889099Sfjoe  product(uintx, LargePageHeapSizeThreshold, 128*M,                         \
62989099Sfjoe          "Use large pages if maximum heap is at least this big")           \
63089099Sfjoe                                                                            \
63189099Sfjoe  product(bool, ForceTimeHighResolution, false,                             \
63289099Sfjoe          "Using high time resolution (for Win32 only)")                    \
63389099Sfjoe                                                                            \
63489099Sfjoe  develop(bool, TraceItables, false,                                        \
63589099Sfjoe          "Trace initialization and use of itables")                        \
63689099Sfjoe                                                                            \
63789099Sfjoe  develop(bool, TracePcPatching, false,                                     \
63889099Sfjoe          "Trace usage of frame::patch_pc")                                 \
63989099Sfjoe                                                                            \
64089099Sfjoe  develop(bool, TraceJumps, false,                                          \
64189099Sfjoe          "Trace assembly jumps in thread ring buffer")                     \
64289099Sfjoe                                                                            \
64389099Sfjoe  develop(bool, TraceRelocator, false,                                      \
64489099Sfjoe          "Trace the bytecode relocator")                                   \
64589099Sfjoe                                                                            \
64689099Sfjoe  develop(bool, TraceLongCompiles, false,                                   \
64789099Sfjoe          "Print out every time compilation is longer than "                \
64889099Sfjoe          "a given threshold")                                              \
64989099Sfjoe                                                                            \
65089099Sfjoe  develop(bool, SafepointALot, false,                                       \
65189099Sfjoe          "Generate a lot of safepoints. This works with "                  \
65289099Sfjoe          "GuaranteedSafepointInterval")                                    \
65389099Sfjoe                                                                            \
65489099Sfjoe  product_pd(bool, BackgroundCompilation,                                   \
65589099Sfjoe          "A thread requesting compilation is not blocked during "          \
65689099Sfjoe          "compilation")                                                    \
65789099Sfjoe                                                                            \
65889099Sfjoe  product(bool, PrintVMQWaitTime, false,                                    \
65989099Sfjoe          "Print out the waiting time in VM operation queue")               \
66089099Sfjoe                                                                            \
66189099Sfjoe  develop(bool, NoYieldsInMicrolock, false,                                 \
66289099Sfjoe          "Disable yields in microlock")                                    \
66389099Sfjoe                                                                            \
66489099Sfjoe  develop(bool, TraceOopMapGeneration, false,                               \
66589099Sfjoe          "Show OopMapGeneration")                                          \
66689099Sfjoe                                                                            \
66789099Sfjoe  product(bool, MethodFlushing, true,                                       \
66889099Sfjoe          "Reclamation of zombie and not-entrant methods")                  \
66989099Sfjoe                                                                            \
67089099Sfjoe  develop(bool, VerifyStack, false,                                         \
67189099Sfjoe          "Verify stack of each thread when it is entering a runtime call") \
67289099Sfjoe                                                                            \
67389099Sfjoe  diagnostic(bool, ForceUnreachable, false,                                 \
67489099Sfjoe          "Make all non code cache addresses to be unreachable by "         \
67589099Sfjoe          "forcing use of 64bit literal fixups")                            \
67689099Sfjoe                                                                            \
67789099Sfjoe  notproduct(bool, StressDerivedPointers, false,                            \
67889099Sfjoe          "Force scavenge when a derived pointer is detected on stack "     \
67989099Sfjoe          "after rtm call")                                                 \
68089099Sfjoe                                                                            \
68189099Sfjoe  develop(bool, TraceDerivedPointers, false,                                \
68289099Sfjoe          "Trace traversal of derived pointers on stack")                   \
68389099Sfjoe                                                                            \
68489099Sfjoe  notproduct(bool, TraceCodeBlobStacks, false,                              \
68589099Sfjoe          "Trace stack-walk of codeblobs")                                  \
68689099Sfjoe                                                                            \
68789099Sfjoe  product(bool, PrintJNIResolving, false,                                   \
68889099Sfjoe          "Used to implement -v:jni")                                       \
68989099Sfjoe                                                                            \
69089099Sfjoe  notproduct(bool, PrintRewrites, false,                                    \
69189099Sfjoe          "Print methods that are being rewritten")                         \
69289099Sfjoe                                                                            \
69389099Sfjoe  product(bool, UseInlineCaches, true,                                      \
69489099Sfjoe          "Use Inline Caches for virtual calls ")                           \
69589099Sfjoe                                                                            \
69689099Sfjoe  develop(bool, InlineArrayCopy, true,                                      \
69789099Sfjoe          "Inline arraycopy native that is known to be part of "            \
69889099Sfjoe          "base library DLL")                                               \
69989099Sfjoe                                                                            \
70089099Sfjoe  develop(bool, InlineObjectHash, true,                                     \
70189099Sfjoe          "Inline Object::hashCode() native that is known to be part "      \
70289099Sfjoe          "of base library DLL")                                            \
70389099Sfjoe                                                                            \
70489099Sfjoe  develop(bool, InlineNatives, true,                                        \
70589099Sfjoe          "Inline natives that are known to be part of base library DLL")   \
70689099Sfjoe                                                                            \
70789099Sfjoe  develop(bool, InlineMathNatives, true,                                    \
70889099Sfjoe          "Inline SinD, CosD, etc.")                                        \
70989099Sfjoe                                                                            \
71089099Sfjoe  develop(bool, InlineClassNatives, true,                                   \
71189099Sfjoe          "Inline Class.isInstance, etc")                                   \
71289099Sfjoe                                                                            \
71389099Sfjoe  develop(bool, InlineThreadNatives, true,                                  \
71489099Sfjoe          "Inline Thread.currentThread, etc")                               \
71589099Sfjoe                                                                            \
71689099Sfjoe  develop(bool, InlineUnsafeOps, true,                                      \
71789099Sfjoe          "Inline memory ops (native methods) from sun.misc.Unsafe")        \
71889099Sfjoe                                                                            \
71989099Sfjoe  product(bool, CriticalJNINatives, true,                                   \
72089099Sfjoe          "Check for critical JNI entry points")                            \
72189099Sfjoe                                                                            \
72289099Sfjoe  notproduct(bool, StressCriticalJNINatives, false,                         \
72389099Sfjoe          "Exercise register saving code in critical natives")              \
72489099Sfjoe                                                                            \
72589099Sfjoe  product(bool, UseSSE42Intrinsics, false,                                  \
72689099Sfjoe          "SSE4.2 versions of intrinsics")                                  \
72789099Sfjoe                                                                            \
72889099Sfjoe  product(bool, UseAESIntrinsics, false,                                    \
72989099Sfjoe          "Use intrinsics for AES versions of crypto")                      \
73089099Sfjoe                                                                            \
73189099Sfjoe  product(bool, UseSHA1Intrinsics, false,                                   \
73289099Sfjoe          "Use intrinsics for SHA-1 crypto hash function")                  \
73389099Sfjoe                                                                            \
73489099Sfjoe  product(bool, UseSHA256Intrinsics, false,                                 \
73589099Sfjoe          "Use intrinsics for SHA-224 and SHA-256 crypto hash functions")   \
736104251Sbrooks                                                                            \
73789099Sfjoe  product(bool, UseSHA512Intrinsics, false,                                 \
73889099Sfjoe          "Use intrinsics for SHA-384 and SHA-512 crypto hash functions")   \
73989099Sfjoe                                                                            \
74089099Sfjoe  product(bool, UseCRC32Intrinsics, false,                                  \
74189099Sfjoe          "use intrinsics for java.util.zip.CRC32")                         \
74289099Sfjoe                                                                            \
74389099Sfjoe  develop(bool, TraceCallFixup, false,                                      \
74489099Sfjoe          "Trace all call fixups")                                          \
74589099Sfjoe                                                                            \
74689099Sfjoe  develop(bool, DeoptimizeALot, false,                                      \
74789099Sfjoe          "Deoptimize at every exit from the runtime system")               \
74889099Sfjoe                                                                            \
74989099Sfjoe  notproduct(ccstrlist, DeoptimizeOnlyAt, "",                               \
75089099Sfjoe          "A comma separated list of bcis to deoptimize at")                \
75189099Sfjoe                                                                            \
75289099Sfjoe  product(bool, DeoptimizeRandom, false,                                    \
75389099Sfjoe          "Deoptimize random frames on random exit from the runtime system")\
75489099Sfjoe                                                                            \
75589099Sfjoe  notproduct(bool, ZombieALot, false,                                       \
75689099Sfjoe          "Create zombies (non-entrant) at exit from the runtime system")   \
75789099Sfjoe                                                                            \
75889099Sfjoe  product(bool, UnlinkSymbolsALot, false,                                   \
75989099Sfjoe          "Unlink unreferenced symbols from the symbol table at safepoints")\
76089099Sfjoe                                                                            \
76189099Sfjoe  notproduct(bool, WalkStackALot, false,                                    \
76289099Sfjoe          "Trace stack (no print) at every exit from the runtime system")   \
76389099Sfjoe                                                                            \
76489099Sfjoe  product(bool, Debugging, false,                                           \
76589099Sfjoe          "Set when executing debug methods in debug.cpp "                  \
76689099Sfjoe          "(to prevent triggering assertions)")                             \
76789099Sfjoe                                                                            \
76889099Sfjoe  notproduct(bool, StrictSafepointChecks, trueInDebug,                      \
76989099Sfjoe          "Enable strict checks that safepoints cannot happen for threads " \
77089099Sfjoe          "that use No_Safepoint_Verifier")                                 \
77189099Sfjoe                                                                            \
77289099Sfjoe  notproduct(bool, VerifyLastFrame, false,                                  \
77389099Sfjoe          "Verify oops on last frame on entry to VM")                       \
77489099Sfjoe                                                                            \
77589099Sfjoe  develop(bool, TraceHandleAllocation, false,                               \
77689099Sfjoe          "Print out warnings when suspiciously many handles are allocated")\
77789099Sfjoe                                                                            \
77889099Sfjoe  product(bool, UseCompilerSafepoints, true,                                \
77989099Sfjoe          "Stop at safepoints in compiled code")                            \
78089099Sfjoe                                                                            \
78189099Sfjoe  product(bool, FailOverToOldVerifier, true,                                \
78289099Sfjoe          "Fail over to old verifier when split verifier fails")            \
78389099Sfjoe                                                                            \
78489099Sfjoe  develop(bool, ShowSafepointMsgs, false,                                   \
78589099Sfjoe          "Show message about safepoint synchronization")                   \
78689099Sfjoe                                                                            \
78789099Sfjoe  product(bool, SafepointTimeout, false,                                    \
78889099Sfjoe          "Time out and warn or fail after SafepointTimeoutDelay "          \
78989099Sfjoe          "milliseconds if failed to reach safepoint")                      \
79089099Sfjoe                                                                            \
79189099Sfjoe  develop(bool, DieOnSafepointTimeout, false,                               \
79289099Sfjoe          "Die upon failure to reach safepoint (see SafepointTimeout)")     \
79389099Sfjoe                                                                            \
79489099Sfjoe  /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */      \
79589099Sfjoe  /* typically, at most a few retries are needed */                         \
79689099Sfjoe  product(intx, SuspendRetryCount, 50,                                      \
79789099Sfjoe          "Maximum retry count for an external suspend request")            \
79889099Sfjoe                                                                            \
79989099Sfjoe  product(intx, SuspendRetryDelay, 5,                                       \
800104251Sbrooks          "Milliseconds to delay per retry (* current_retry_count)")        \
801104251Sbrooks                                                                            \
802104251Sbrooks  product(bool, AssertOnSuspendWaitFailure, false,                          \
80389099Sfjoe          "Assert/Guarantee on external suspend wait failure")              \
80489099Sfjoe                                                                            \
80589099Sfjoe  product(bool, TraceSuspendWaitFailures, false,                            \
80689099Sfjoe          "Trace external suspend wait failures")                           \
80789099Sfjoe                                                                            \
80889099Sfjoe  product(bool, MaxFDLimit, true,                                           \
80989099Sfjoe          "Bump the number of file descriptors to maximum in Solaris")      \
81089099Sfjoe                                                                            \
81189099Sfjoe  diagnostic(bool, LogEvents, true,                                         \
812104251Sbrooks          "Enable the various ring buffer event logs")                      \
813104251Sbrooks                                                                            \
81489099Sfjoe  diagnostic(uintx, LogEventsBufferEntries, 10,                             \
81589099Sfjoe          "Number of ring buffer event logs")                               \
81689099Sfjoe                                                                            \
81789099Sfjoe  product(bool, BytecodeVerificationRemote, true,                           \
81889099Sfjoe          "Enable the Java bytecode verifier for remote classes")           \
81989099Sfjoe                                                                            \
82089099Sfjoe  product(bool, BytecodeVerificationLocal, false,                           \
82189099Sfjoe          "Enable the Java bytecode verifier for local classes")            \
82289099Sfjoe                                                                            \
82389099Sfjoe  develop(bool, ForceFloatExceptions, trueInDebug,                          \
82489099Sfjoe          "Force exceptions on FP stack under/overflow")                    \
82589099Sfjoe                                                                            \
82689099Sfjoe  develop(bool, VerifyStackAtCalls, false,                                  \
82789099Sfjoe          "Verify that the stack pointer is unchanged after calls")         \
82889099Sfjoe                                                                            \
82989099Sfjoe  develop(bool, TraceJavaAssertions, false,                                 \
83089099Sfjoe          "Trace java language assertions")                                 \
83189099Sfjoe                                                                            \
83289099Sfjoe  notproduct(bool, CheckAssertionStatusDirectives, false,                   \
83389099Sfjoe          "Temporary - see javaClasses.cpp")                                \
83489099Sfjoe                                                                            \
83589099Sfjoe  notproduct(bool, PrintMallocFree, false,                                  \
83689099Sfjoe          "Trace calls to C heap malloc/free allocation")                   \
83789099Sfjoe                                                                            \
83889099Sfjoe  product(bool, PrintOopAddress, false,                                     \
83989099Sfjoe          "Always print the location of the oop")                           \
84089099Sfjoe                                                                            \
84189099Sfjoe  notproduct(bool, VerifyCodeCache, false,                                  \
84289099Sfjoe          "Verify code cache on memory allocation/deallocation")            \
84389099Sfjoe                                                                            \
84489099Sfjoe  develop(bool, ZapDeadCompiledLocals, false,                               \
84589099Sfjoe          "Zap dead locals in compiler frames")                             \
84689099Sfjoe                                                                            \
84789099Sfjoe  notproduct(bool, ZapDeadLocalsOld, false,                                 \
848104251Sbrooks          "Zap dead locals (old version, zaps all frames when "             \
849104251Sbrooks          "entering the VM")                                                \
85089099Sfjoe                                                                            \
85189099Sfjoe  notproduct(bool, CheckOopishValues, false,                                \
85289099Sfjoe          "Warn if value contains oop (requires ZapDeadLocals)")            \
85389099Sfjoe                                                                            \
85489099Sfjoe  develop(bool, UseMallocOnly, false,                                       \
85589099Sfjoe          "Use only malloc/free for allocation (no resource area/arena)")   \
85689099Sfjoe                                                                            \
85789099Sfjoe  develop(bool, PrintMalloc, false,                                         \
85889099Sfjoe          "Print all malloc/free calls")                                    \
85989099Sfjoe                                                                            \
86089099Sfjoe  develop(bool, PrintMallocStatistics, false,                               \
86189099Sfjoe          "Print malloc/free statistics")                                   \
86289099Sfjoe                                                                            \
86389099Sfjoe  develop(bool, ZapResourceArea, trueInDebug,                               \
86489099Sfjoe          "Zap freed resource/arena space with 0xABABABAB")                 \
86589099Sfjoe                                                                            \
86689099Sfjoe  notproduct(bool, ZapVMHandleArea, trueInDebug,                            \
86789099Sfjoe          "Zap freed VM handle space with 0xBCBCBCBC")                      \
86889099Sfjoe                                                                            \
86989099Sfjoe  develop(bool, ZapJNIHandleArea, trueInDebug,                              \
87089099Sfjoe          "Zap freed JNI handle space with 0xFEFEFEFE")                     \
87189099Sfjoe                                                                            \
87289099Sfjoe  notproduct(bool, ZapStackSegments, trueInDebug,                           \
87389099Sfjoe          "Zap allocated/freed stack segments with 0xFADFADED")             \
87489099Sfjoe                                                                            \
87589099Sfjoe  develop(bool, ZapUnusedHeapArea, trueInDebug,                             \
87689099Sfjoe          "Zap unused heap space with 0xBAADBABE")                          \
87789099Sfjoe                                                                            \
87889099Sfjoe  develop(bool, TraceZapUnusedHeapArea, false,                              \
87989099Sfjoe          "Trace zapping of unused heap space")                             \
88089099Sfjoe                                                                            \
88189099Sfjoe  develop(bool, CheckZapUnusedHeapArea, false,                              \
88289099Sfjoe          "Check zapping of unused heap space")                             \
88389099Sfjoe                                                                            \
88489099Sfjoe  develop(bool, ZapFillerObjects, trueInDebug,                              \
88589099Sfjoe          "Zap filler objects with 0xDEAFBABE")                             \
88689099Sfjoe                                                                            \
88789099Sfjoe  develop(bool, PrintVMMessages, true,                                      \
88889099Sfjoe          "Print VM messages on console")                                   \
88989099Sfjoe                                                                            \
89089099Sfjoe  product(bool, PrintGCApplicationConcurrentTime, false,                    \
89189099Sfjoe          "Print the time the application has been running")                \
89289099Sfjoe                                                                            \
89389099Sfjoe  product(bool, PrintGCApplicationStoppedTime, false,                       \
89489099Sfjoe          "Print the time the application has been stopped")                \
89589099Sfjoe                                                                            \
89689099Sfjoe  diagnostic(bool, VerboseVerification, false,                              \
89789099Sfjoe          "Display detailed verification details")                          \
89889099Sfjoe                                                                            \
89989099Sfjoe  notproduct(uintx, ErrorHandlerTest, 0,                                    \
90089099Sfjoe          "If > 0, provokes an error after VM initialization; the value "   \
90189099Sfjoe          "determines which error to provoke. See test_error_handler() "    \
902104251Sbrooks          "in debug.cpp.")                                                  \
903104251Sbrooks                                                                            \
90489099Sfjoe  develop(bool, Verbose, false,                                             \
90589099Sfjoe          "Print additional debugging information from other modes")        \
90689099Sfjoe                                                                            \
90789099Sfjoe  develop(bool, PrintMiscellaneous, false,                                  \
90889099Sfjoe          "Print uncategorized debugging information (requires +Verbose)")  \
90989099Sfjoe                                                                            \
91089099Sfjoe  develop(bool, WizardMode, false,                                          \
91189099Sfjoe          "Print much more debugging information")                          \
91289099Sfjoe                                                                            \
91389099Sfjoe  product(bool, ShowMessageBoxOnError, false,                               \
91489099Sfjoe          "Keep process alive on VM fatal error")                           \
91589099Sfjoe                                                                            \
91689099Sfjoe  product(bool, CreateMinidumpOnCrash, false,                               \
91789099Sfjoe          "Create minidump on VM fatal error")                              \
91889099Sfjoe                                                                            \
91989099Sfjoe  product_pd(bool, UseOSErrorReporting,                                     \
92089099Sfjoe          "Let VM fatal error propagate to the OS (ie. WER on Windows)")    \
92189099Sfjoe                                                                            \
92289099Sfjoe  product(bool, SuppressFatalErrorMessage, false,                           \
92389099Sfjoe          "Report NO fatal error message (avoid deadlock)")                 \
92489099Sfjoe                                                                            \
92589099Sfjoe  product(ccstrlist, OnError, "",                                           \
92689099Sfjoe          "Run user-defined commands on fatal error; see VMError.cpp "      \
92789099Sfjoe          "for examples")                                                   \
92889099Sfjoe                                                                            \
92989099Sfjoe  product(ccstrlist, OnOutOfMemoryError, "",                                \
93089099Sfjoe          "Run user-defined commands on first java.lang.OutOfMemoryError")  \
93189099Sfjoe                                                                            \
93289099Sfjoe  manageable(bool, HeapDumpBeforeFullGC, false,                             \
93389099Sfjoe          "Dump heap to file before any major stop-the-world GC")           \
93489099Sfjoe                                                                            \
93589099Sfjoe  manageable(bool, HeapDumpAfterFullGC, false,                              \
93689099Sfjoe          "Dump heap to file after any major stop-the-world GC")            \
93789099Sfjoe                                                                            \
938104251Sbrooks  manageable(bool, HeapDumpOnOutOfMemoryError, false,                       \
93989099Sfjoe          "Dump heap to file when java.lang.OutOfMemoryError is thrown")    \
94089099Sfjoe                                                                            \
94189099Sfjoe  manageable(ccstr, HeapDumpPath, NULL,                                     \
94289099Sfjoe          "When HeapDumpOnOutOfMemoryError is on, the path (filename or "   \
94389099Sfjoe          "directory) of the dump file (defaults to java_pid<pid>.hprof "   \
94489099Sfjoe          "in the working directory)")                                      \
94589099Sfjoe                                                                            \
94689099Sfjoe  develop(uintx, SegmentedHeapDumpThreshold, 2*G,                           \
94789099Sfjoe          "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) "     \
94889099Sfjoe          "when the heap usage is larger than this")                        \
94989099Sfjoe                                                                            \
95089099Sfjoe  develop(uintx, HeapDumpSegmentSize, 1*G,                                  \
95189099Sfjoe          "Approximate segment size when generating a segmented heap dump") \
95289099Sfjoe                                                                            \
95389099Sfjoe  develop(bool, BreakAtWarning, false,                                      \
95489099Sfjoe          "Execute breakpoint upon encountering VM warning")                \
95589099Sfjoe                                                                            \
95689099Sfjoe  develop(bool, TraceVMOperation, false,                                    \
95789099Sfjoe          "Trace VM operations")                                            \
95889099Sfjoe                                                                            \
95989099Sfjoe  develop(bool, UseFakeTimers, false,                                       \
96089099Sfjoe          "Tell whether the VM should use system time or a fake timer")     \
96189099Sfjoe                                                                            \
96289099Sfjoe  product(ccstr, NativeMemoryTracking, "off",                               \
963104251Sbrooks          "Native memory tracking options")                                 \
964104251Sbrooks                                                                            \
96589099Sfjoe  diagnostic(bool, PrintNMTStatistics, false,                               \
96689099Sfjoe          "Print native memory tracking summary data if it is on")          \
96789099Sfjoe                                                                            \
96889099Sfjoe  diagnostic(bool, LogCompilation, false,                                   \
96989099Sfjoe          "Log compilation activity in detail to LogFile")                  \
97089099Sfjoe                                                                            \
97189099Sfjoe  product(bool, PrintCompilation, false,                                    \
97289099Sfjoe          "Print compilations")                                             \
97389099Sfjoe                                                                            \
97489099Sfjoe  diagnostic(bool, TraceNMethodInstalls, false,                             \
97589099Sfjoe          "Trace nmethod installation")                                     \
97689099Sfjoe                                                                            \
97789099Sfjoe  diagnostic(intx, ScavengeRootsInCode, 2,                                  \
97889099Sfjoe          "0: do not allow scavengable oops in the code cache; "            \
97989099Sfjoe          "1: allow scavenging from the code cache; "                       \
98089099Sfjoe          "2: emit as many constants as the compiler can see")              \
98189099Sfjoe                                                                            \
98289099Sfjoe  product(bool, AlwaysRestoreFPU, false,                                    \
98389099Sfjoe          "Restore the FPU control word after every JNI call (expensive)")  \
98489099Sfjoe                                                                            \
98589099Sfjoe  diagnostic(bool, PrintCompilation2, false,                                \
98689099Sfjoe          "Print additional statistics per compilation")                    \
98789099Sfjoe                                                                            \
98889099Sfjoe  diagnostic(bool, PrintAdapterHandlers, false,                             \
98989099Sfjoe          "Print code generated for i2c/c2i adapters")                      \
99089099Sfjoe                                                                            \
99189099Sfjoe  diagnostic(bool, VerifyAdapterCalls, trueInDebug,                         \
99289099Sfjoe          "Verify that i2c/c2i adapters are called properly")               \
99389099Sfjoe                                                                            \
99489099Sfjoe  develop(bool, VerifyAdapterSharing, false,                                \
99589099Sfjoe          "Verify that the code for shared adapters is the equivalent")     \
99689099Sfjoe                                                                            \
99789099Sfjoe  diagnostic(bool, PrintAssembly, false,                                    \
99889099Sfjoe          "Print assembly code (using external disassembler.so)")           \
99989099Sfjoe                                                                            \
100089099Sfjoe  diagnostic(ccstr, PrintAssemblyOptions, NULL,                             \
100189099Sfjoe          "Print options string passed to disassembler.so")                 \
100289099Sfjoe                                                                            \
100389099Sfjoe  diagnostic(bool, PrintNMethods, false,                                    \
100489099Sfjoe          "Print assembly code for nmethods when generated")                \
100589099Sfjoe                                                                            \
1006104251Sbrooks  diagnostic(bool, PrintNativeNMethods, false,                              \
100789099Sfjoe          "Print assembly code for native nmethods when generated")         \
100889099Sfjoe                                                                            \
100989099Sfjoe  develop(bool, PrintDebugInfo, false,                                      \
101089099Sfjoe          "Print debug information for all nmethods when generated")        \
101189099Sfjoe                                                                            \
101289099Sfjoe  develop(bool, PrintRelocations, false,                                    \
101389099Sfjoe          "Print relocation information for all nmethods when generated")   \
101489099Sfjoe                                                                            \
101589099Sfjoe  develop(bool, PrintDependencies, false,                                   \
101689099Sfjoe          "Print dependency information for all nmethods when generated")   \
101789099Sfjoe                                                                            \
101889099Sfjoe  develop(bool, PrintExceptionHandlers, false,                              \
101989099Sfjoe          "Print exception handler tables for all nmethods when generated") \
102089099Sfjoe                                                                            \
102189099Sfjoe  develop(bool, StressCompiledExceptionHandlers, false,                     \
102289099Sfjoe          "Exercise compiled exception handlers")                           \
102389099Sfjoe                                                                            \
102489099Sfjoe  develop(bool, InterceptOSException, false,                                \
102589099Sfjoe          "Start debugger when an implicit OS (e.g. NULL) "                 \
102689099Sfjoe          "exception happens")                                              \
102789099Sfjoe                                                                            \
102889099Sfjoe  product(bool, PrintCodeCache, false,                                      \
102989099Sfjoe          "Print the code cache memory usage when exiting")                 \
103089099Sfjoe                                                                            \
103189099Sfjoe  develop(bool, PrintCodeCache2, false,                                     \
103289099Sfjoe          "Print detailed usage information on the code cache when exiting")\
103389099Sfjoe                                                                            \
103489099Sfjoe  product(bool, PrintCodeCacheOnCompilation, false,                         \
103589099Sfjoe          "Print the code cache memory usage each time a method is "        \
103689099Sfjoe          "compiled")                                                       \
103789099Sfjoe                                                                            \
103889099Sfjoe  diagnostic(bool, PrintStubCode, false,                                    \
103989099Sfjoe          "Print generated stub code")                                      \
104089099Sfjoe                                                                            \
104189099Sfjoe  product(bool, StackTraceInThrowable, true,                                \
104289099Sfjoe          "Collect backtrace in throwable when exception happens")          \
104389099Sfjoe                                                                            \
104489099Sfjoe  product(bool, OmitStackTraceInFastThrow, true,                            \
104589099Sfjoe          "Omit backtraces for some 'hot' exceptions in optimized code")    \
104689099Sfjoe                                                                            \
104789099Sfjoe  product(bool, ProfilerPrintByteCodeStatistics, false,                     \
104889099Sfjoe          "Print bytecode statistics when dumping profiler output")         \
104989099Sfjoe                                                                            \
105089099Sfjoe  product(bool, ProfilerRecordPC, false,                                    \
105189099Sfjoe          "Collect ticks for each 16 byte interval of compiled code")       \
1052108470Sschweikh                                                                            \
105389099Sfjoe  product(bool, ProfileVM, false,                                           \
105489099Sfjoe          "Profile ticks that fall within VM (either in the VM Thread "     \
105589099Sfjoe          "or VM code called through stubs)")                               \
105689099Sfjoe                                                                            \
105789099Sfjoe  product(bool, ProfileIntervals, false,                                    \
105889099Sfjoe          "Print profiles for each interval (see ProfileIntervalsTicks)")   \
105989099Sfjoe                                                                            \
106089099Sfjoe  notproduct(bool, ProfilerCheckIntervals, false,                           \
106189099Sfjoe          "Collect and print information on spacing of profiler ticks")     \
106289099Sfjoe                                                                            \
106389099Sfjoe  develop(bool, PrintJVMWarnings, false,                                    \
106489099Sfjoe          "Print warnings for unimplemented JVM functions")                 \
106589099Sfjoe                                                                            \
106689099Sfjoe  product(bool, PrintWarnings, true,                                        \
106789099Sfjoe          "Print JVM warnings to output stream")                            \
1068                                                                            \
1069  notproduct(uintx, WarnOnStalledSpinLock, 0,                               \
1070          "Print warnings for stalled SpinLocks")                           \
1071                                                                            \
1072  product(bool, RegisterFinalizersAtInit, true,                             \
1073          "Register finalizable objects at end of Object.<init> or "        \
1074          "after allocation")                                               \
1075                                                                            \
1076  develop(bool, RegisterReferences, true,                                   \
1077          "Tell whether the VM should register soft/weak/final/phantom "    \
1078          "references")                                                     \
1079                                                                            \
1080  develop(bool, IgnoreRewrites, false,                                      \
1081          "Suppress rewrites of bytecodes in the oopmap generator. "        \
1082          "This is unsafe!")                                                \
1083                                                                            \
1084  develop(bool, PrintCodeCacheExtension, false,                             \
1085          "Print extension of code cache")                                  \
1086                                                                            \
1087  develop(bool, UsePrivilegedStack, true,                                   \
1088          "Enable the security JVM functions")                              \
1089                                                                            \
1090  develop(bool, ProtectionDomainVerification, true,                         \
1091          "Verify protection domain before resolution in system dictionary")\
1092                                                                            \
1093  product(bool, ClassUnloading, true,                                       \
1094          "Do unloading of classes")                                        \
1095                                                                            \
1096  product(bool, ClassUnloadingWithConcurrentMark, true,                     \
1097          "Do unloading of classes with a concurrent marking cycle")        \
1098                                                                            \
1099  develop(bool, DisableStartThread, false,                                  \
1100          "Disable starting of additional Java threads "                    \
1101          "(for debugging only)")                                           \
1102                                                                            \
1103  develop(bool, MemProfiling, false,                                        \
1104          "Write memory usage profiling to log file")                       \
1105                                                                            \
1106  notproduct(bool, PrintSystemDictionaryAtExit, false,                      \
1107          "Print the system dictionary at exit")                            \
1108                                                                            \
1109  experimental(intx, PredictedLoadedClassCount, 0,                          \
1110          "Experimental: Tune loaded class cache starting size")            \
1111                                                                            \
1112  diagnostic(bool, UnsyncloadClass, false,                                  \
1113          "Unstable: VM calls loadClass unsynchronized. Custom "            \
1114          "class loader must call VM synchronized for findClass "           \
1115          "and defineClass.")                                               \
1116                                                                            \
1117  product(bool, AlwaysLockClassLoader, false,                               \
1118          "Require the VM to acquire the class loader lock before calling " \
1119          "loadClass() even for class loaders registering "                 \
1120          "as parallel capable")                                            \
1121                                                                            \
1122  product(bool, AllowParallelDefineClass, false,                            \
1123          "Allow parallel defineClass requests for class loaders "          \
1124          "registering as parallel capable")                                \
1125                                                                            \
1126  product(bool, MustCallLoadClassInternal, false,                           \
1127          "Call loadClassInternal() rather than loadClass()")               \
1128                                                                            \
1129  product_pd(bool, DontYieldALot,                                           \
1130          "Throw away obvious excess yield calls")                          \
1131                                                                            \
1132  product_pd(bool, ConvertSleepToYield,                                     \
1133          "Convert sleep(0) to thread yield "                               \
1134          "(may be off for Solaris to improve GUI)")                        \
1135                                                                            \
1136  product(bool, ConvertYieldToSleep, false,                                 \
1137          "Convert yield to a sleep of MinSleepInterval to simulate Win32 " \
1138          "behavior")                                                       \
1139                                                                            \
1140  product(bool, UseBoundThreads, true,                                      \
1141          "Bind user level threads to kernel threads (for Solaris only)")   \
1142                                                                            \
1143  develop(bool, UseDetachedThreads, true,                                   \
1144          "Use detached threads that are recycled upon termination "        \
1145          "(for Solaris only)")                                             \
1146                                                                            \
1147  product(bool, UseLWPSynchronization, true,                                \
1148          "Use LWP-based instead of libthread-based synchronization "       \
1149          "(SPARC only)")                                                   \
1150                                                                            \
1151  experimental(ccstr, SyncKnobs, NULL,                                      \
1152               "(Unstable) Various monitor synchronization tunables")       \
1153                                                                            \
1154  experimental(intx, EmitSync, 0,                                           \
1155               "(Unsafe, Unstable) "                                        \
1156               "Control emission of inline sync fast-path code")            \
1157                                                                            \
1158  product(intx, MonitorBound, 0, "Bound Monitor population")                \
1159                                                                            \
1160  product(bool, MonitorInUseLists, false, "Track Monitors for Deflation")   \
1161                                                                            \
1162  experimental(intx, SyncFlags, 0, "(Unsafe, Unstable) "                    \
1163               "Experimental Sync flags")                                   \
1164                                                                            \
1165  experimental(intx, SyncVerbose, 0, "(Unstable)")                          \
1166                                                                            \
1167  experimental(intx, ClearFPUAtPark, 0, "(Unsafe, Unstable)")               \
1168                                                                            \
1169  experimental(intx, hashCode, 5,                                           \
1170               "(Unstable) select hashCode generation algorithm")           \
1171                                                                            \
1172  experimental(intx, WorkAroundNPTLTimedWaitHang, 1,                        \
1173               "(Unstable, Linux-specific) "                                \
1174               "avoid NPTL-FUTEX hang pthread_cond_timedwait")              \
1175                                                                            \
1176  product(bool, FilterSpuriousWakeups, true,                                \
1177          "When true prevents OS-level spurious, or premature, wakeups "    \
1178          "from Object.wait (Ignored for Windows)")                         \
1179                                                                            \
1180  product(intx, NativeMonitorTimeout, -1, "(Unstable)")                     \
1181                                                                            \
1182  product(intx, NativeMonitorFlags, 0, "(Unstable)")                        \
1183                                                                            \
1184  product(intx, NativeMonitorSpinLimit, 20, "(Unstable)")                   \
1185                                                                            \
1186  develop(bool, UsePthreads, false,                                         \
1187          "Use pthread-based instead of libthread-based synchronization "   \
1188          "(SPARC only)")                                                   \
1189                                                                            \
1190  product(bool, AdjustConcurrency, false,                                   \
1191          "Call thr_setconcurrency at thread creation time to avoid "       \
1192          "LWP starvation on MP systems (for Solaris Only)")                \
1193                                                                            \
1194  product(bool, ReduceSignalUsage, false,                                   \
1195          "Reduce the use of OS signals in Java and/or the VM")             \
1196                                                                            \
1197  develop_pd(bool, ShareVtableStubs,                                        \
1198          "Share vtable stubs (smaller code but worse branch prediction")   \
1199                                                                            \
1200  develop(bool, LoadLineNumberTables, true,                                 \
1201          "Tell whether the class file parser loads line number tables")    \
1202                                                                            \
1203  develop(bool, LoadLocalVariableTables, true,                              \
1204          "Tell whether the class file parser loads local variable tables") \
1205                                                                            \
1206  develop(bool, LoadLocalVariableTypeTables, true,                          \
1207          "Tell whether the class file parser loads local variable type"    \
1208          "tables")                                                         \
1209                                                                            \
1210  product(bool, AllowUserSignalHandlers, false,                             \
1211          "Do not complain if the application installs signal handlers "    \
1212          "(Solaris & Linux only)")                                         \
1213                                                                            \
1214  product(bool, UseSignalChaining, true,                                    \
1215          "Use signal-chaining to invoke signal handlers installed "        \
1216          "by the application (Solaris & Linux only)")                      \
1217                                                                            \
1218  product(bool, UseAltSigs, false,                                          \
1219          "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM "      \
1220          "internal signals (Solaris only)")                                \
1221                                                                            \
1222  product(bool, AllowJNIEnvProxy, false,                                    \
1223          "Allow JNIEnv proxies for jdbx")                                  \
1224                                                                            \
1225  product(bool, JNIDetachReleasesMonitors, true,                            \
1226          "JNI DetachCurrentThread releases monitors owned by thread")      \
1227                                                                            \
1228  product(bool, RestoreMXCSROnJNICalls, false,                              \
1229          "Restore MXCSR when returning from JNI calls")                    \
1230                                                                            \
1231  product(bool, CheckJNICalls, false,                                       \
1232          "Verify all arguments to JNI calls")                              \
1233                                                                            \
1234  product(bool, UseFastJNIAccessors, true,                                  \
1235          "Use optimized versions of Get<Primitive>Field")                  \
1236                                                                            \
1237  product(intx, MaxJNILocalCapacity, 65536,                                 \
1238          "Maximum allowable local JNI handle capacity to "                 \
1239          "EnsureLocalCapacity() and PushLocalFrame(), "                    \
1240          "where <= 0 is unlimited, default: 65536")                        \
1241                                                                            \
1242  product(bool, EagerXrunInit, false,                                       \
1243          "Eagerly initialize -Xrun libraries; allows startup profiling, "  \
1244          "but not all -Xrun libraries may support the state of the VM "    \
1245          "at this time")                                                   \
1246                                                                            \
1247  product(bool, PreserveAllAnnotations, false,                              \
1248          "Preserve RuntimeInvisibleAnnotations as well "                   \
1249          "as RuntimeVisibleAnnotations")                                   \
1250                                                                            \
1251  develop(uintx, PreallocatedOutOfMemoryErrorCount, 4,                      \
1252          "Number of OutOfMemoryErrors preallocated with backtrace")        \
1253                                                                            \
1254  product(bool, LazyBootClassLoader, true,                                  \
1255          "Enable/disable lazy opening of boot class path entries")         \
1256                                                                            \
1257  product(bool, UseXMMForArrayCopy, false,                                  \
1258          "Use SSE2 MOVQ instruction for Arraycopy")                        \
1259                                                                            \
1260  product(intx, FieldsAllocationStyle, 1,                                   \
1261          "0 - type based with oops first, 1 - with oops last, "            \
1262          "2 - oops in super and sub classes are together")                 \
1263                                                                            \
1264  product(bool, CompactFields, true,                                        \
1265          "Allocate nonstatic fields in gaps between previous fields")      \
1266                                                                            \
1267  notproduct(bool, PrintFieldLayout, false,                                 \
1268          "Print field layout for each class")                              \
1269                                                                            \
1270  product(intx, ContendedPaddingWidth, 128,                                 \
1271          "How many bytes to pad the fields/classes marked @Contended with")\
1272                                                                            \
1273  product(bool, EnableContended, true,                                      \
1274          "Enable @Contended annotation support")                           \
1275                                                                            \
1276  product(bool, RestrictContended, true,                                    \
1277          "Restrict @Contended to trusted classes")                         \
1278                                                                            \
1279  product(bool, UseBiasedLocking, true,                                     \
1280          "Enable biased locking in JVM")                                   \
1281                                                                            \
1282  product(intx, BiasedLockingStartupDelay, 4000,                            \
1283          "Number of milliseconds to wait before enabling biased locking")  \
1284                                                                            \
1285  diagnostic(bool, PrintBiasedLockingStatistics, false,                     \
1286          "Print statistics of biased locking in JVM")                      \
1287                                                                            \
1288  product(intx, BiasedLockingBulkRebiasThreshold, 20,                       \
1289          "Threshold of number of revocations per type to try to "          \
1290          "rebias all objects in the heap of that type")                    \
1291                                                                            \
1292  product(intx, BiasedLockingBulkRevokeThreshold, 40,                       \
1293          "Threshold of number of revocations per type to permanently "     \
1294          "revoke biases of all objects in the heap of that type")          \
1295                                                                            \
1296  product(intx, BiasedLockingDecayTime, 25000,                              \
1297          "Decay time (in milliseconds) to re-enable bulk rebiasing of a "  \
1298          "type after previous bulk rebias")                                \
1299                                                                            \
1300  /* tracing */                                                             \
1301                                                                            \
1302  notproduct(bool, TraceRuntimeCalls, false,                                \
1303          "Trace run-time calls")                                           \
1304                                                                            \
1305  develop(bool, TraceJNICalls, false,                                       \
1306          "Trace JNI calls")                                                \
1307                                                                            \
1308  develop(bool, StressRewriter, false,                                      \
1309          "Stress linktime bytecode rewriting")                             \
1310                                                                            \
1311  notproduct(bool, TraceJVMCalls, false,                                    \
1312          "Trace JVM calls")                                                \
1313                                                                            \
1314  product(ccstr, TraceJVMTI, NULL,                                          \
1315          "Trace flags for JVMTI functions and events")                     \
1316                                                                            \
1317  /* This option can change an EMCP method into an obsolete method. */      \
1318  /* This can affect tests that except specific methods to be EMCP. */      \
1319  /* This option should be used with caution. */                            \
1320  product(bool, StressLdcRewrite, false,                                    \
1321          "Force ldc -> ldc_w rewrite during RedefineClasses")              \
1322                                                                            \
1323  product(intx, TraceRedefineClasses, 0,                                    \
1324          "Trace level for JVMTI RedefineClasses")                          \
1325                                                                            \
1326  develop(bool, StressMethodComparator, false,                              \
1327          "Run the MethodComparator on all loaded methods")                 \
1328                                                                            \
1329  /* change to false by default sometime after Mustang */                   \
1330  product(bool, VerifyMergedCPBytecodes, true,                              \
1331          "Verify bytecodes after RedefineClasses constant pool merging")   \
1332                                                                            \
1333  develop(bool, TraceJNIHandleAllocation, false,                            \
1334          "Trace allocation/deallocation of JNI handle blocks")             \
1335                                                                            \
1336  develop(bool, TraceThreadEvents, false,                                   \
1337          "Trace all thread events")                                        \
1338                                                                            \
1339  develop(bool, TraceBytecodes, false,                                      \
1340          "Trace bytecode execution")                                       \
1341                                                                            \
1342  develop(bool, TraceClassInitialization, false,                            \
1343          "Trace class initialization")                                     \
1344                                                                            \
1345  develop(bool, TraceExceptions, false,                                     \
1346          "Trace exceptions")                                               \
1347                                                                            \
1348  develop(bool, TraceICs, false,                                            \
1349          "Trace inline cache changes")                                     \
1350                                                                            \
1351  notproduct(bool, TraceInvocationCounterOverflow, false,                   \
1352          "Trace method invocation counter overflow")                       \
1353                                                                            \
1354  develop(bool, TraceInlineCacheClearing, false,                            \
1355          "Trace clearing of inline caches in nmethods")                    \
1356                                                                            \
1357  develop(bool, TraceDependencies, false,                                   \
1358          "Trace dependencies")                                             \
1359                                                                            \
1360  develop(bool, VerifyDependencies, trueInDebug,                            \
1361          "Exercise and verify the compilation dependency mechanism")       \
1362                                                                            \
1363  develop(bool, TraceNewOopMapGeneration, false,                            \
1364          "Trace OopMapGeneration")                                         \
1365                                                                            \
1366  develop(bool, TraceNewOopMapGenerationDetailed, false,                    \
1367          "Trace OopMapGeneration: print detailed cell states")             \
1368                                                                            \
1369  develop(bool, TimeOopMap, false,                                          \
1370          "Time calls to GenerateOopMap::compute_map() in sum")             \
1371                                                                            \
1372  develop(bool, TimeOopMap2, false,                                         \
1373          "Time calls to GenerateOopMap::compute_map() individually")       \
1374                                                                            \
1375  develop(bool, TraceMonitorMismatch, false,                                \
1376          "Trace monitor matching failures during OopMapGeneration")        \
1377                                                                            \
1378  develop(bool, TraceOopMapRewrites, false,                                 \
1379          "Trace rewriting of method oops during oop map generation")       \
1380                                                                            \
1381  develop(bool, TraceSafepoint, false,                                      \
1382          "Trace safepoint operations")                                     \
1383                                                                            \
1384  develop(bool, TraceICBuffer, false,                                       \
1385          "Trace usage of IC buffer")                                       \
1386                                                                            \
1387  develop(bool, TraceCompiledIC, false,                                     \
1388          "Trace changes of compiled IC")                                   \
1389                                                                            \
1390  notproduct(bool, TraceZapDeadLocals, false,                               \
1391          "Trace zapping dead locals")                                      \
1392                                                                            \
1393  develop(bool, TraceStartupTime, false,                                    \
1394          "Trace setup time")                                               \
1395                                                                            \
1396  develop(bool, TraceProtectionDomainVerification, false,                   \
1397          "Trace protection domain verification")                           \
1398                                                                            \
1399  develop(bool, TraceClearedExceptions, false,                              \
1400          "Print when an exception is forcibly cleared")                    \
1401                                                                            \
1402  product(bool, TraceClassResolution, false,                                \
1403          "Trace all constant pool resolutions (for debugging)")            \
1404                                                                            \
1405  product(bool, TraceBiasedLocking, false,                                  \
1406          "Trace biased locking in JVM")                                    \
1407                                                                            \
1408  product(bool, TraceMonitorInflation, false,                               \
1409          "Trace monitor inflation in JVM")                                 \
1410                                                                            \
1411  /* gc */                                                                  \
1412                                                                            \
1413  product(bool, UseSerialGC, false,                                         \
1414          "Use the Serial garbage collector")                               \
1415                                                                            \
1416  product(bool, UseG1GC, false,                                             \
1417          "Use the Garbage-First garbage collector")                        \
1418                                                                            \
1419  product(bool, UseParallelGC, false,                                       \
1420          "Use the Parallel Scavenge garbage collector")                    \
1421                                                                            \
1422  product(bool, UseParallelOldGC, false,                                    \
1423          "Use the Parallel Old garbage collector")                         \
1424                                                                            \
1425  product(uintx, HeapMaximumCompactionInterval, 20,                         \
1426          "How often should we maximally compact the heap (not allowing "   \
1427          "any dead space)")                                                \
1428                                                                            \
1429  product(uintx, HeapFirstMaximumCompactionCount, 3,                        \
1430          "The collection count for the first maximum compaction")          \
1431                                                                            \
1432  product(bool, UseMaximumCompactionOnSystemGC, true,                       \
1433          "Use maximum compaction in the Parallel Old garbage collector "   \
1434          "for a system GC")                                                \
1435                                                                            \
1436  product(uintx, ParallelOldDeadWoodLimiterMean, 50,                        \
1437          "The mean used by the parallel compact dead wood "                \
1438          "limiter (a number between 0-100)")                               \
1439                                                                            \
1440  product(uintx, ParallelOldDeadWoodLimiterStdDev, 80,                      \
1441          "The standard deviation used by the parallel compact dead wood "  \
1442          "limiter (a number between 0-100)")                               \
1443                                                                            \
1444  product(uintx, ParallelGCThreads, 0,                                      \
1445          "Number of parallel threads parallel gc will use")                \
1446                                                                            \
1447  product(bool, UseDynamicNumberOfGCThreads, false,                         \
1448          "Dynamically choose the number of parallel threads "              \
1449          "parallel gc will use")                                           \
1450                                                                            \
1451  diagnostic(bool, ForceDynamicNumberOfGCThreads, false,                    \
1452          "Force dynamic selection of the number of "                       \
1453          "parallel threads parallel gc will use to aid debugging")         \
1454                                                                            \
1455  product(uintx, HeapSizePerGCThread, ScaleForWordSize(64*M),               \
1456          "Size of heap (bytes) per GC thread used in calculating the "     \
1457          "number of GC threads")                                           \
1458                                                                            \
1459  product(bool, TraceDynamicGCThreads, false,                               \
1460          "Trace the dynamic GC thread usage")                              \
1461                                                                            \
1462  develop(bool, ParallelOldGCSplitALot, false,                              \
1463          "Provoke splitting (copying data from a young gen space to "      \
1464          "multiple destination spaces)")                                   \
1465                                                                            \
1466  develop(uintx, ParallelOldGCSplitInterval, 3,                             \
1467          "How often to provoke splitting a young gen space")               \
1468                                                                            \
1469  product(uintx, ConcGCThreads, 0,                                          \
1470          "Number of threads concurrent gc will use")                       \
1471                                                                            \
1472  product(uintx, YoungPLABSize, 4096,                                       \
1473          "Size of young gen promotion LAB's (in HeapWords)")               \
1474                                                                            \
1475  product(uintx, OldPLABSize, 1024,                                         \
1476          "Size of old gen promotion LAB's (in HeapWords)")                 \
1477                                                                            \
1478  product(uintx, GCTaskTimeStampEntries, 200,                               \
1479          "Number of time stamp entries per gc worker thread")              \
1480                                                                            \
1481  product(bool, AlwaysTenure, false,                                        \
1482          "Always tenure objects in eden (ParallelGC only)")                \
1483                                                                            \
1484  product(bool, NeverTenure, false,                                         \
1485          "Never tenure objects in eden, may tenure on overflow "           \
1486          "(ParallelGC only)")                                              \
1487                                                                            \
1488  product(bool, ScavengeBeforeFullGC, true,                                 \
1489          "Scavenge youngest generation before each full GC.")              \
1490                                                                            \
1491  develop(bool, ScavengeWithObjectsInToSpace, false,                        \
1492          "Allow scavenges to occur when to-space contains objects")        \
1493                                                                            \
1494  product(bool, UseConcMarkSweepGC, false,                                  \
1495          "Use Concurrent Mark-Sweep GC in the old generation")             \
1496                                                                            \
1497  product(bool, ExplicitGCInvokesConcurrent, false,                         \
1498          "A System.gc() request invokes a concurrent collection; "         \
1499          "(effective only when UseConcMarkSweepGC)")                       \
1500                                                                            \
1501  product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false,        \
1502          "A System.gc() request invokes a concurrent collection and "      \
1503          "also unloads classes during such a concurrent gc cycle "         \
1504          "(effective only when UseConcMarkSweepGC)")                       \
1505                                                                            \
1506  product(bool, GCLockerInvokesConcurrent, false,                           \
1507          "The exit of a JNI critical section necessitating a scavenge, "   \
1508          "also kicks off a background concurrent collection")              \
1509                                                                            \
1510  product(uintx, GCLockerEdenExpansionPercent, 5,                           \
1511          "How much the GC can expand the eden by while the GC locker "     \
1512          "is active (as a percentage)")                                    \
1513                                                                            \
1514  diagnostic(intx, GCLockerRetryAllocationCount, 2,                         \
1515          "Number of times to retry allocations when "                      \
1516          "blocked by the GC locker")                                       \
1517                                                                            \
1518  develop(bool, UseCMSAdaptiveFreeLists, true,                              \
1519          "Use adaptive free lists in the CMS generation")                  \
1520                                                                            \
1521  develop(bool, UseAsyncConcMarkSweepGC, true,                              \
1522          "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\
1523                                                                            \
1524  develop(bool, RotateCMSCollectionTypes, false,                            \
1525          "Rotate the CMS collections among concurrent and STW")            \
1526                                                                            \
1527  product(bool, UseCMSBestFit, true,                                        \
1528          "Use CMS best fit allocation strategy")                           \
1529                                                                            \
1530  product(bool, UseCMSCollectionPassing, true,                              \
1531          "Use passing of collection from background to foreground")        \
1532                                                                            \
1533  product(bool, UseParNewGC, false,                                         \
1534          "Use parallel threads in the new generation")                     \
1535                                                                            \
1536  product(bool, PrintTaskqueue, false,                                      \
1537          "Print taskqueue statistics for parallel collectors")             \
1538                                                                            \
1539  product(bool, PrintTerminationStats, false,                               \
1540          "Print termination statistics for parallel collectors")           \
1541                                                                            \
1542  product(uintx, ParallelGCBufferWastePct, 10,                              \
1543          "Wasted fraction of parallel allocation buffer")                  \
1544                                                                            \
1545  diagnostic(bool, ParallelGCRetainPLAB, false,                             \
1546          "Retain parallel allocation buffers across scavenges; "           \
1547          "it is disabled because this currently conflicts with "           \
1548          "parallel card scanning under certain conditions.")               \
1549                                                                            \
1550  product(uintx, TargetPLABWastePct, 10,                                    \
1551          "Target wasted space in last buffer as percent of overall "       \
1552          "allocation")                                                     \
1553                                                                            \
1554  product(uintx, PLABWeight, 75,                                            \
1555          "Percentage (0-100) used to weight the current sample when "      \
1556          "computing exponentially decaying average for ResizePLAB")        \
1557                                                                            \
1558  product(bool, ResizePLAB, true,                                           \
1559          "Dynamically resize (survivor space) promotion LAB's")            \
1560                                                                            \
1561  product(bool, PrintPLAB, false,                                           \
1562          "Print (survivor space) promotion LAB's sizing decisions")        \
1563                                                                            \
1564  product(intx, ParGCArrayScanChunk, 50,                                    \
1565          "Scan a subset of object array and push remainder, if array is "  \
1566          "bigger than this")                                               \
1567                                                                            \
1568  product(bool, ParGCUseLocalOverflow, false,                               \
1569          "Instead of a global overflow list, use local overflow stacks")   \
1570                                                                            \
1571  product(bool, ParGCTrimOverflow, true,                                    \
1572          "Eagerly trim the local overflow lists "                          \
1573          "(when ParGCUseLocalOverflow)")                                   \
1574                                                                            \
1575  notproduct(bool, ParGCWorkQueueOverflowALot, false,                       \
1576          "Simulate work queue overflow in ParNew")                         \
1577                                                                            \
1578  notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000,                   \
1579          "An `interval' counter that determines how frequently "           \
1580          "we simulate overflow; a smaller number increases frequency")     \
1581                                                                            \
1582  product(uintx, ParGCDesiredObjsFromOverflowList, 20,                      \
1583          "The desired number of objects to claim from the overflow list")  \
1584                                                                            \
1585  diagnostic(uintx, ParGCStridesPerThread, 2,                               \
1586          "The number of strides per worker thread that we divide up the "  \
1587          "card table scanning work into")                                  \
1588                                                                            \
1589  diagnostic(intx, ParGCCardsPerStrideChunk, 256,                           \
1590          "The number of cards in each chunk of the parallel chunks used "  \
1591          "during card table scanning")                                     \
1592                                                                            \
1593  product(uintx, CMSParPromoteBlocksToClaim, 16,                            \
1594          "Number of blocks to attempt to claim when refilling CMS LAB's "  \
1595          "for parallel GC")                                                \
1596                                                                            \
1597  product(uintx, OldPLABWeight, 50,                                         \
1598          "Percentage (0-100) used to weight the current sample when "      \
1599          "computing exponentially decaying average for resizing "          \
1600          "CMSParPromoteBlocksToClaim")                                     \
1601                                                                            \
1602  product(bool, ResizeOldPLAB, true,                                        \
1603          "Dynamically resize (old gen) promotion LAB's")                   \
1604                                                                            \
1605  product(bool, PrintOldPLAB, false,                                        \
1606          "Print (old gen) promotion LAB's sizing decisions")               \
1607                                                                            \
1608  product(uintx, CMSOldPLABMin, 16,                                         \
1609          "Minimum size of CMS gen promotion LAB caches per worker "        \
1610          "per block size")                                                 \
1611                                                                            \
1612  product(uintx, CMSOldPLABMax, 1024,                                       \
1613          "Maximum size of CMS gen promotion LAB caches per worker "        \
1614          "per block size")                                                 \
1615                                                                            \
1616  product(uintx, CMSOldPLABNumRefills, 4,                                   \
1617          "Nominal number of refills of CMS gen promotion LAB cache "       \
1618          "per worker per block size")                                      \
1619                                                                            \
1620  product(bool, CMSOldPLABResizeQuicker, false,                             \
1621          "React on-the-fly during a scavenge to a sudden "                 \
1622          "change in block demand rate")                                    \
1623                                                                            \
1624  product(uintx, CMSOldPLABToleranceFactor, 4,                              \
1625          "The tolerance of the phase-change detector for on-the-fly "      \
1626          "PLAB resizing during a scavenge")                                \
1627                                                                            \
1628  product(uintx, CMSOldPLABReactivityFactor, 2,                             \
1629          "The gain in the feedback loop for on-the-fly PLAB resizing "     \
1630          "during a scavenge")                                              \
1631                                                                            \
1632  product(bool, AlwaysPreTouch, false,                                      \
1633          "Force all freshly committed pages to be pre-touched")            \
1634                                                                            \
1635  product_pd(uintx, CMSYoungGenPerWorker,                                   \
1636          "The maximum size of young gen chosen by default per GC worker "  \
1637          "thread available")                                               \
1638                                                                            \
1639  product(bool, CMSIncrementalMode, false,                                  \
1640          "Whether CMS GC should operate in \"incremental\" mode")          \
1641                                                                            \
1642  product(uintx, CMSIncrementalDutyCycle, 10,                               \
1643          "Percentage (0-100) of CMS incremental mode duty cycle. If "      \
1644          "CMSIncrementalPacing is enabled, then this is just the initial " \
1645          "value.")                                                         \
1646                                                                            \
1647  product(bool, CMSIncrementalPacing, true,                                 \
1648          "Whether the CMS incremental mode duty cycle should be "          \
1649          "automatically adjusted")                                         \
1650                                                                            \
1651  product(uintx, CMSIncrementalDutyCycleMin, 0,                             \
1652          "Minimum percentage (0-100) of the CMS incremental duty cycle "   \
1653          "used when CMSIncrementalPacing is enabled")                      \
1654                                                                            \
1655  product(uintx, CMSIncrementalSafetyFactor, 10,                            \
1656          "Percentage (0-100) used to add conservatism when computing the " \
1657          "duty cycle")                                                     \
1658                                                                            \
1659  product(uintx, CMSIncrementalOffset, 0,                                   \
1660          "Percentage (0-100) by which the CMS incremental mode duty cycle "\
1661          "is shifted to the right within the period between young GCs")    \
1662                                                                            \
1663  product(uintx, CMSExpAvgFactor, 50,                                       \
1664          "Percentage (0-100) used to weight the current sample when "      \
1665          "computing exponential averages for CMS statistics")              \
1666                                                                            \
1667  product(uintx, CMS_FLSWeight, 75,                                         \
1668          "Percentage (0-100) used to weight the current sample when "      \
1669          "computing exponentially decaying averages for CMS FLS "          \
1670          "statistics")                                                     \
1671                                                                            \
1672  product(uintx, CMS_FLSPadding, 1,                                         \
1673          "The multiple of deviation from mean to use for buffering "       \
1674          "against volatility in free list demand")                         \
1675                                                                            \
1676  product(uintx, FLSCoalescePolicy, 2,                                      \
1677          "CMS: aggressiveness level for coalescing, increasing "           \
1678          "from 0 to 4")                                                    \
1679                                                                            \
1680  product(bool, FLSAlwaysCoalesceLarge, false,                              \
1681          "CMS: larger free blocks are always available for coalescing")    \
1682                                                                            \
1683  product(double, FLSLargestBlockCoalesceProximity, 0.99,                   \
1684          "CMS: the smaller the percentage the greater the coalescing "     \
1685          "force")                                                          \
1686                                                                            \
1687  product(double, CMSSmallCoalSurplusPercent, 1.05,                         \
1688          "CMS: the factor by which to inflate estimated demand of small "  \
1689          "block sizes to prevent coalescing with an adjoining block")      \
1690                                                                            \
1691  product(double, CMSLargeCoalSurplusPercent, 0.95,                         \
1692          "CMS: the factor by which to inflate estimated demand of large "  \
1693          "block sizes to prevent coalescing with an adjoining block")      \
1694                                                                            \
1695  product(double, CMSSmallSplitSurplusPercent, 1.10,                        \
1696          "CMS: the factor by which to inflate estimated demand of small "  \
1697          "block sizes to prevent splitting to supply demand for smaller "  \
1698          "blocks")                                                         \
1699                                                                            \
1700  product(double, CMSLargeSplitSurplusPercent, 1.00,                        \
1701          "CMS: the factor by which to inflate estimated demand of large "  \
1702          "block sizes to prevent splitting to supply demand for smaller "  \
1703          "blocks")                                                         \
1704                                                                            \
1705  product(bool, CMSExtrapolateSweep, false,                                 \
1706          "CMS: cushion for block demand during sweep")                     \
1707                                                                            \
1708  product(uintx, CMS_SweepWeight, 75,                                       \
1709          "Percentage (0-100) used to weight the current sample when "      \
1710          "computing exponentially decaying average for inter-sweep "       \
1711          "duration")                                                       \
1712                                                                            \
1713  product(uintx, CMS_SweepPadding, 1,                                       \
1714          "The multiple of deviation from mean to use for buffering "       \
1715          "against volatility in inter-sweep duration")                     \
1716                                                                            \
1717  product(uintx, CMS_SweepTimerThresholdMillis, 10,                         \
1718          "Skip block flux-rate sampling for an epoch unless inter-sweep "  \
1719          "duration exceeds this threshold in milliseconds")                \
1720                                                                            \
1721  develop(bool, CMSTraceIncrementalMode, false,                             \
1722          "Trace CMS incremental mode")                                     \
1723                                                                            \
1724  develop(bool, CMSTraceIncrementalPacing, false,                           \
1725          "Trace CMS incremental mode pacing computation")                  \
1726                                                                            \
1727  develop(bool, CMSTraceThreadState, false,                                 \
1728          "Trace the CMS thread state (enable the trace_state() method)")   \
1729                                                                            \
1730  product(bool, CMSClassUnloadingEnabled, true,                             \
1731          "Whether class unloading enabled when using CMS GC")              \
1732                                                                            \
1733  product(uintx, CMSClassUnloadingMaxInterval, 0,                           \
1734          "When CMS class unloading is enabled, the maximum CMS cycle "     \
1735          "count for which classes may not be unloaded")                    \
1736                                                                            \
1737  product(bool, CMSCompactWhenClearAllSoftRefs, true,                       \
1738          "Compact when asked to collect CMS gen with "                     \
1739          "clear_all_soft_refs()")                                          \
1740                                                                            \
1741  product(bool, UseCMSCompactAtFullCollection, true,                        \
1742          "Use Mark-Sweep-Compact algorithm at full collections")           \
1743                                                                            \
1744  product(uintx, CMSFullGCsBeforeCompaction, 0,                             \
1745          "Number of CMS full collection done before compaction if > 0")    \
1746                                                                            \
1747  develop(intx, CMSDictionaryChoice, 0,                                     \
1748          "Use BinaryTreeDictionary as default in the CMS generation")      \
1749                                                                            \
1750  product(uintx, CMSIndexedFreeListReplenish, 4,                            \
1751          "Replenish an indexed free list with this number of chunks")      \
1752                                                                            \
1753  product(bool, CMSReplenishIntermediate, true,                             \
1754          "Replenish all intermediate free-list caches")                    \
1755                                                                            \
1756  product(bool, CMSSplitIndexedFreeListBlocks, true,                        \
1757          "When satisfying batched demand, split blocks from the "          \
1758          "IndexedFreeList whose size is a multiple of requested size")     \
1759                                                                            \
1760  product(bool, CMSLoopWarn, false,                                         \
1761          "Warn in case of excessive CMS looping")                          \
1762                                                                            \
1763  develop(bool, CMSOverflowEarlyRestoration, false,                         \
1764          "Restore preserved marks early")                                  \
1765                                                                            \
1766  product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M),              \
1767          "Size of marking stack")                                          \
1768                                                                            \
1769  product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M),          \
1770          "Maximum size of marking stack")                                  \
1771                                                                            \
1772  notproduct(bool, CMSMarkStackOverflowALot, false,                         \
1773          "Simulate frequent marking stack / work queue overflow")          \
1774                                                                            \
1775  notproduct(uintx, CMSMarkStackOverflowInterval, 1000,                     \
1776          "An \"interval\" counter that determines how frequently "         \
1777          "to simulate overflow; a smaller number increases frequency")     \
1778                                                                            \
1779  product(uintx, CMSMaxAbortablePrecleanLoops, 0,                           \
1780          "Maximum number of abortable preclean iterations, if > 0")        \
1781                                                                            \
1782  product(intx, CMSMaxAbortablePrecleanTime, 5000,                          \
1783          "Maximum time in abortable preclean (in milliseconds)")           \
1784                                                                            \
1785  product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100,              \
1786          "Nominal minimum work per abortable preclean iteration")          \
1787                                                                            \
1788  manageable(intx, CMSAbortablePrecleanWaitMillis, 100,                     \
1789          "Time that we sleep between iterations when not given "           \
1790          "enough work per iteration")                                      \
1791                                                                            \
1792  product(uintx, CMSRescanMultiple, 32,                                     \
1793          "Size (in cards) of CMS parallel rescan task")                    \
1794                                                                            \
1795  product(uintx, CMSConcMarkMultiple, 32,                                   \
1796          "Size (in cards) of CMS concurrent MT marking task")              \
1797                                                                            \
1798  product(bool, CMSAbortSemantics, false,                                   \
1799          "Whether abort-on-overflow semantics is implemented")             \
1800                                                                            \
1801  product(bool, CMSParallelInitialMarkEnabled, true,                        \
1802          "Use the parallel initial mark.")                                 \
1803                                                                            \
1804  product(bool, CMSParallelRemarkEnabled, true,                             \
1805          "Whether parallel remark enabled (only if ParNewGC)")             \
1806                                                                            \
1807  product(bool, CMSParallelSurvivorRemarkEnabled, true,                     \
1808          "Whether parallel remark of survivor space "                      \
1809          "enabled (effective only if CMSParallelRemarkEnabled)")           \
1810                                                                            \
1811  product(bool, CMSPLABRecordAlways, true,                                  \
1812          "Always record survivor space PLAB boundaries (effective only "   \
1813          "if CMSParallelSurvivorRemarkEnabled)")                           \
1814                                                                            \
1815  product(bool, CMSEdenChunksRecordAlways, true,                            \
1816          "Always record eden chunks used for the parallel initial mark "   \
1817          "or remark of eden")                                              \
1818                                                                            \
1819  product(bool, CMSPrintEdenSurvivorChunks, false,                          \
1820          "Print the eden and the survivor chunks used for the parallel "   \
1821          "initial mark or remark of the eden/survivor spaces")             \
1822                                                                            \
1823  product(bool, CMSConcurrentMTEnabled, true,                               \
1824          "Whether multi-threaded concurrent work enabled "                 \
1825          "(effective only if ParNewGC)")                                   \
1826                                                                            \
1827  product(bool, CMSPrecleaningEnabled, true,                                \
1828          "Whether concurrent precleaning enabled")                         \
1829                                                                            \
1830  product(uintx, CMSPrecleanIter, 3,                                        \
1831          "Maximum number of precleaning iteration passes")                 \
1832                                                                            \
1833  product(uintx, CMSPrecleanNumerator, 2,                                   \
1834          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \
1835          "ratio")                                                          \
1836                                                                            \
1837  product(uintx, CMSPrecleanDenominator, 3,                                 \
1838          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \
1839          "ratio")                                                          \
1840                                                                            \
1841  product(bool, CMSPrecleanRefLists1, true,                                 \
1842          "Preclean ref lists during (initial) preclean phase")             \
1843                                                                            \
1844  product(bool, CMSPrecleanRefLists2, false,                                \
1845          "Preclean ref lists during abortable preclean phase")             \
1846                                                                            \
1847  product(bool, CMSPrecleanSurvivors1, false,                               \
1848          "Preclean survivors during (initial) preclean phase")             \
1849                                                                            \
1850  product(bool, CMSPrecleanSurvivors2, true,                                \
1851          "Preclean survivors during abortable preclean phase")             \
1852                                                                            \
1853  product(uintx, CMSPrecleanThreshold, 1000,                                \
1854          "Do not iterate again if number of dirty cards is less than this")\
1855                                                                            \
1856  product(bool, CMSCleanOnEnter, true,                                      \
1857          "Clean-on-enter optimization for reducing number of dirty cards") \
1858                                                                            \
1859  product(uintx, CMSRemarkVerifyVariant, 1,                                 \
1860          "Choose variant (1,2) of verification following remark")          \
1861                                                                            \
1862  product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M,                   \
1863          "If Eden size is below this, do not try to schedule remark")      \
1864                                                                            \
1865  product(uintx, CMSScheduleRemarkEdenPenetration, 50,                      \
1866          "The Eden occupancy percentage (0-100) at which "                 \
1867          "to try and schedule remark pause")                               \
1868                                                                            \
1869  product(uintx, CMSScheduleRemarkSamplingRatio, 5,                         \
1870          "Start sampling eden top at least before young gen "              \
1871          "occupancy reaches 1/<ratio> of the size at which "               \
1872          "we plan to schedule remark")                                     \
1873                                                                            \
1874  product(uintx, CMSSamplingGrain, 16*K,                                    \
1875          "The minimum distance between eden samples for CMS (see above)")  \
1876                                                                            \
1877  product(bool, CMSScavengeBeforeRemark, false,                             \
1878          "Attempt scavenge before the CMS remark step")                    \
1879                                                                            \
1880  develop(bool, CMSTraceSweeper, false,                                     \
1881          "Trace some actions of the CMS sweeper")                          \
1882                                                                            \
1883  product(uintx, CMSWorkQueueDrainThreshold, 10,                            \
1884          "Don't drain below this size per parallel worker/thief")          \
1885                                                                            \
1886  manageable(intx, CMSWaitDuration, 2000,                                   \
1887          "Time in milliseconds that CMS thread waits for young GC")        \
1888                                                                            \
1889  develop(uintx, CMSCheckInterval, 1000,                                    \
1890          "Interval in milliseconds that CMS thread checks if it "          \
1891          "should start a collection cycle")                                \
1892                                                                            \
1893  product(bool, CMSYield, true,                                             \
1894          "Yield between steps of CMS")                                     \
1895                                                                            \
1896  product(uintx, CMSBitMapYieldQuantum, 10*M,                               \
1897          "Bitmap operations should process at most this many bits "        \
1898          "between yields")                                                 \
1899                                                                            \
1900  product(bool, CMSDumpAtPromotionFailure, false,                           \
1901          "Dump useful information about the state of the CMS old "         \
1902          "generation upon a promotion failure")                            \
1903                                                                            \
1904  product(bool, CMSPrintChunksInDump, false,                                \
1905          "In a dump enabled by CMSDumpAtPromotionFailure, include "        \
1906          "more detailed information about the free chunks")                \
1907                                                                            \
1908  product(bool, CMSPrintObjectsInDump, false,                               \
1909          "In a dump enabled by CMSDumpAtPromotionFailure, include "        \
1910          "more detailed information about the allocated objects")          \
1911                                                                            \
1912  diagnostic(bool, FLSVerifyAllHeapReferences, false,                       \
1913          "Verify that all references across the FLS boundary "             \
1914          "are to valid objects")                                           \
1915                                                                            \
1916  diagnostic(bool, FLSVerifyLists, false,                                   \
1917          "Do lots of (expensive) FreeListSpace verification")              \
1918                                                                            \
1919  diagnostic(bool, FLSVerifyIndexTable, false,                              \
1920          "Do lots of (expensive) FLS index table verification")            \
1921                                                                            \
1922  develop(bool, FLSVerifyDictionary, false,                                 \
1923          "Do lots of (expensive) FLS dictionary verification")             \
1924                                                                            \
1925  develop(bool, VerifyBlockOffsetArray, false,                              \
1926          "Do (expensive) block offset array verification")                 \
1927                                                                            \
1928  diagnostic(bool, BlockOffsetArrayUseUnallocatedBlock, false,              \
1929          "Maintain _unallocated_block in BlockOffsetArray "                \
1930          "(currently applicable only to CMS collector)")                   \
1931                                                                            \
1932  develop(bool, TraceCMSState, false,                                       \
1933          "Trace the state of the CMS collection")                          \
1934                                                                            \
1935  product(intx, RefDiscoveryPolicy, 0,                                      \
1936          "Select type of reference discovery policy: "                     \
1937          "reference-based(0) or referent-based(1)")                        \
1938                                                                            \
1939  product(bool, ParallelRefProcEnabled, false,                              \
1940          "Enable parallel reference processing whenever possible")         \
1941                                                                            \
1942  product(bool, ParallelRefProcBalancingEnabled, true,                      \
1943          "Enable balancing of reference processing queues")                \
1944                                                                            \
1945  product(uintx, CMSTriggerRatio, 80,                                       \
1946          "Percentage of MinHeapFreeRatio in CMS generation that is "       \
1947          "allocated before a CMS collection cycle commences")              \
1948                                                                            \
1949  product(uintx, CMSBootstrapOccupancy, 50,                                 \
1950          "Percentage CMS generation occupancy at which to "                \
1951          "initiate CMS collection for bootstrapping collection stats")     \
1952                                                                            \
1953  product(intx, CMSInitiatingOccupancyFraction, -1,                         \
1954          "Percentage CMS generation occupancy to start a CMS collection "  \
1955          "cycle. A negative value means that CMSTriggerRatio is used")     \
1956                                                                            \
1957  product(uintx, InitiatingHeapOccupancyPercent, 45,                        \
1958          "Percentage of the (entire) heap occupancy to start a "           \
1959          "concurrent GC cycle. It is used by GCs that trigger a "          \
1960          "concurrent GC cycle based on the occupancy of the entire heap, " \
1961          "not just one of the generations (e.g., G1). A value of 0 "       \
1962          "denotes 'do constant GC cycles'.")                               \
1963                                                                            \
1964  manageable(intx, CMSTriggerInterval, -1,                                  \
1965          "Commence a CMS collection cycle (at least) every so many "       \
1966          "milliseconds (0 permanently, -1 disabled)")                      \
1967                                                                            \
1968  product(bool, UseCMSInitiatingOccupancyOnly, false,                       \
1969          "Only use occupancy as a criterion for starting a CMS collection")\
1970                                                                            \
1971  product(uintx, CMSIsTooFullPercentage, 98,                                \
1972          "An absolute ceiling above which CMS will always consider the "   \
1973          "unloading of classes when class unloading is enabled")           \
1974                                                                            \
1975  develop(bool, CMSTestInFreeList, false,                                   \
1976          "Check if the coalesced range is already in the "                 \
1977          "free lists as claimed")                                          \
1978                                                                            \
1979  notproduct(bool, CMSVerifyReturnedBytes, false,                           \
1980          "Check that all the garbage collected was returned to the "       \
1981          "free lists")                                                     \
1982                                                                            \
1983  notproduct(bool, ScavengeALot, false,                                     \
1984          "Force scavenge at every Nth exit from the runtime system "       \
1985          "(N=ScavengeALotInterval)")                                       \
1986                                                                            \
1987  develop(bool, FullGCALot, false,                                          \
1988          "Force full gc at every Nth exit from the runtime system "        \
1989          "(N=FullGCALotInterval)")                                         \
1990                                                                            \
1991  notproduct(bool, GCALotAtAllSafepoints, false,                            \
1992          "Enforce ScavengeALot/GCALot at all potential safepoints")        \
1993                                                                            \
1994  product(bool, PrintPromotionFailure, false,                               \
1995          "Print additional diagnostic information following "              \
1996          "promotion failure")                                              \
1997                                                                            \
1998  notproduct(bool, PromotionFailureALot, false,                             \
1999          "Use promotion failure handling on every youngest generation "    \
2000          "collection")                                                     \
2001                                                                            \
2002  develop(uintx, PromotionFailureALotCount, 1000,                           \
2003          "Number of promotion failures occurring at ParGCAllocBuffer "     \
2004          "refill attempts (ParNew) or promotion attempts "                 \
2005          "(other young collectors)")                                       \
2006                                                                            \
2007  develop(uintx, PromotionFailureALotInterval, 5,                           \
2008          "Total collections between promotion failures a lot")             \
2009                                                                            \
2010  experimental(uintx, WorkStealingSleepMillis, 1,                           \
2011          "Sleep time when sleep is used for yields")                       \
2012                                                                            \
2013  experimental(uintx, WorkStealingYieldsBeforeSleep, 5000,                  \
2014          "Number of yields before a sleep is done during work stealing")   \
2015                                                                            \
2016  experimental(uintx, WorkStealingHardSpins, 4096,                          \
2017          "Number of iterations in a spin loop between checks on "          \
2018          "time out of hard spin")                                          \
2019                                                                            \
2020  experimental(uintx, WorkStealingSpinToYieldRatio, 10,                     \
2021          "Ratio of hard spins to calls to yield")                          \
2022                                                                            \
2023  develop(uintx, ObjArrayMarkingStride, 512,                                \
2024          "Number of object array elements to push onto the marking stack " \
2025          "before pushing a continuation entry")                            \
2026                                                                            \
2027  develop(bool, MetadataAllocationFailALot, false,                          \
2028          "Fail metadata allocations at intervals controlled by "           \
2029          "MetadataAllocationFailALotInterval")                             \
2030                                                                            \
2031  develop(uintx, MetadataAllocationFailALotInterval, 1000,                  \
2032          "Metadata allocation failure a lot interval")                     \
2033                                                                            \
2034  develop(bool, TraceMetadataChunkAllocation, false,                        \
2035          "Trace chunk metadata allocations")                               \
2036                                                                            \
2037  product(bool, TraceMetadataHumongousAllocation, false,                    \
2038          "Trace humongous metadata allocations")                           \
2039                                                                            \
2040  develop(bool, TraceMetavirtualspaceAllocation, false,                     \
2041          "Trace virtual space metadata allocations")                       \
2042                                                                            \
2043  notproduct(bool, ExecuteInternalVMTests, false,                           \
2044          "Enable execution of internal VM tests")                          \
2045                                                                            \
2046  notproduct(bool, VerboseInternalVMTests, false,                           \
2047          "Turn on logging for internal VM tests.")                         \
2048                                                                            \
2049  product_pd(bool, UseTLAB, "Use thread-local object allocation")           \
2050                                                                            \
2051  product_pd(bool, ResizeTLAB,                                              \
2052          "Dynamically resize TLAB size for threads")                       \
2053                                                                            \
2054  product(bool, ZeroTLAB, false,                                            \
2055          "Zero out the newly created TLAB")                                \
2056                                                                            \
2057  product(bool, FastTLABRefill, true,                                       \
2058          "Use fast TLAB refill code")                                      \
2059                                                                            \
2060  product(bool, PrintTLAB, false,                                           \
2061          "Print various TLAB related information")                         \
2062                                                                            \
2063  product(bool, TLABStats, true,                                            \
2064          "Provide more detailed and expensive TLAB statistics "            \
2065          "(with PrintTLAB)")                                               \
2066                                                                            \
2067  EMBEDDED_ONLY(product(bool, LowMemoryProtection, true,                    \
2068          "Enable LowMemoryProtection"))                                    \
2069                                                                            \
2070  product_pd(bool, NeverActAsServerClassMachine,                            \
2071          "Never act like a server-class machine")                          \
2072                                                                            \
2073  product(bool, AlwaysActAsServerClassMachine, false,                       \
2074          "Always act like a server-class machine")                         \
2075                                                                            \
2076  product_pd(uint64_t, MaxRAM,                                              \
2077          "Real memory size (in bytes) used to set maximum heap size")      \
2078                                                                            \
2079  product(uintx, ErgoHeapSizeLimit, 0,                                      \
2080          "Maximum ergonomically set heap size (in bytes); zero means use " \
2081          "MaxRAM / MaxRAMFraction")                                        \
2082                                                                            \
2083  product(uintx, MaxRAMFraction, 4,                                         \
2084          "Maximum fraction (1/n) of real memory used for maximum heap "    \
2085          "size")                                                           \
2086                                                                            \
2087  product(uintx, DefaultMaxRAMFraction, 4,                                  \
2088          "Maximum fraction (1/n) of real memory used for maximum heap "    \
2089          "size; deprecated: to be renamed to MaxRAMFraction")              \
2090                                                                            \
2091  product(uintx, MinRAMFraction, 2,                                         \
2092          "Minimum fraction (1/n) of real memory used for maximum heap "    \
2093          "size on systems with small physical memory size")                \
2094                                                                            \
2095  product(uintx, InitialRAMFraction, 64,                                    \
2096          "Fraction (1/n) of real memory used for initial heap size")       \
2097                                                                            \
2098  develop(uintx, MaxVirtMemFraction, 2,                                     \
2099          "Maximum fraction (1/n) of virtual memory used for ergonomically "\
2100          "determining maximum heap size")                                  \
2101                                                                            \
2102  product(bool, UseAutoGCSelectPolicy, false,                               \
2103          "Use automatic collection selection policy")                      \
2104                                                                            \
2105  product(uintx, AutoGCSelectPauseMillis, 5000,                             \
2106          "Automatic GC selection pause threshold in milliseconds")         \
2107                                                                            \
2108  product(bool, UseAdaptiveSizePolicy, true,                                \
2109          "Use adaptive generation sizing policies")                        \
2110                                                                            \
2111  product(bool, UsePSAdaptiveSurvivorSizePolicy, true,                      \
2112          "Use adaptive survivor sizing policies")                          \
2113                                                                            \
2114  product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true,     \
2115          "Use adaptive young-old sizing policies at minor collections")    \
2116                                                                            \
2117  product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true,     \
2118          "Use adaptive young-old sizing policies at major collections")    \
2119                                                                            \
2120  product(bool, UseAdaptiveSizePolicyWithSystemGC, false,                   \
2121          "Include statistics from System.gc() for adaptive size policy")   \
2122                                                                            \
2123  product(bool, UseAdaptiveGCBoundary, false,                               \
2124          "Allow young-old boundary to move")                               \
2125                                                                            \
2126  develop(bool, TraceAdaptiveGCBoundary, false,                             \
2127          "Trace young-old boundary moves")                                 \
2128                                                                            \
2129  develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1,             \
2130          "Resize the virtual spaces of the young or old generations")      \
2131                                                                            \
2132  product(uintx, AdaptiveSizeThroughPutPolicy, 0,                           \
2133          "Policy for changing generation size for throughput goals")       \
2134                                                                            \
2135  product(uintx, AdaptiveSizePausePolicy, 0,                                \
2136          "Policy for changing generation size for pause goals")            \
2137                                                                            \
2138  develop(bool, PSAdjustTenuredGenForMinorPause, false,                     \
2139          "Adjust tenured generation to achieve a minor pause goal")        \
2140                                                                            \
2141  develop(bool, PSAdjustYoungGenForMajorPause, false,                       \
2142          "Adjust young generation to achieve a major pause goal")          \
2143                                                                            \
2144  product(uintx, AdaptiveSizePolicyInitializingSteps, 20,                   \
2145          "Number of steps where heuristics is used before data is used")   \
2146                                                                            \
2147  develop(uintx, AdaptiveSizePolicyReadyThreshold, 5,                       \
2148          "Number of collections before the adaptive sizing is started")    \
2149                                                                            \
2150  product(uintx, AdaptiveSizePolicyOutputInterval, 0,                       \
2151          "Collection interval for printing information; zero means never") \
2152                                                                            \
2153  product(bool, UseAdaptiveSizePolicyFootprintGoal, true,                   \
2154          "Use adaptive minimum footprint as a goal")                       \
2155                                                                            \
2156  product(uintx, AdaptiveSizePolicyWeight, 10,                              \
2157          "Weight given to exponential resizing, between 0 and 100")        \
2158                                                                            \
2159  product(uintx, AdaptiveTimeWeight,       25,                              \
2160          "Weight given to time in adaptive policy, between 0 and 100")     \
2161                                                                            \
2162  product(uintx, PausePadding, 1,                                           \
2163          "How much buffer to keep for pause time")                         \
2164                                                                            \
2165  product(uintx, PromotedPadding, 3,                                        \
2166          "How much buffer to keep for promotion failure")                  \
2167                                                                            \
2168  product(uintx, SurvivorPadding, 3,                                        \
2169          "How much buffer to keep for survivor overflow")                  \
2170                                                                            \
2171  product(uintx, ThresholdTolerance, 10,                                    \
2172          "Allowed collection cost difference between generations")         \
2173                                                                            \
2174  product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50,                \
2175          "If collection costs are within margin, reduce both by full "     \
2176          "delta")                                                          \
2177                                                                            \
2178  product(uintx, YoungGenerationSizeIncrement, 20,                          \
2179          "Adaptive size percentage change in young generation")            \
2180                                                                            \
2181  product(uintx, YoungGenerationSizeSupplement, 80,                         \
2182          "Supplement to YoungedGenerationSizeIncrement used at startup")   \
2183                                                                            \
2184  product(uintx, YoungGenerationSizeSupplementDecay, 8,                     \
2185          "Decay factor to YoungedGenerationSizeSupplement")                \
2186                                                                            \
2187  product(uintx, TenuredGenerationSizeIncrement, 20,                        \
2188          "Adaptive size percentage change in tenured generation")          \
2189                                                                            \
2190  product(uintx, TenuredGenerationSizeSupplement, 80,                       \
2191          "Supplement to TenuredGenerationSizeIncrement used at startup")   \
2192                                                                            \
2193  product(uintx, TenuredGenerationSizeSupplementDecay, 2,                   \
2194          "Decay factor to TenuredGenerationSizeIncrement")                 \
2195                                                                            \
2196  product(uintx, MaxGCPauseMillis, max_uintx,                               \
2197          "Adaptive size policy maximum GC pause time goal in millisecond, "\
2198          "or (G1 Only) the maximum GC time per MMU time slice")            \
2199                                                                            \
2200  product(uintx, GCPauseIntervalMillis, 0,                                  \
2201          "Time slice for MMU specification")                               \
2202                                                                            \
2203  product(uintx, MaxGCMinorPauseMillis, max_uintx,                          \
2204          "Adaptive size policy maximum GC minor pause time goal "          \
2205          "in millisecond")                                                 \
2206                                                                            \
2207  product(uintx, GCTimeRatio, 99,                                           \
2208          "Adaptive size policy application time to GC time ratio")         \
2209                                                                            \
2210  product(uintx, AdaptiveSizeDecrementScaleFactor, 4,                       \
2211          "Adaptive size scale down factor for shrinking")                  \
2212                                                                            \
2213  product(bool, UseAdaptiveSizeDecayMajorGCCost, true,                      \
2214          "Adaptive size decays the major cost for long major intervals")   \
2215                                                                            \
2216  product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10,                     \
2217          "Time scale over which major costs decay")                        \
2218                                                                            \
2219  product(uintx, MinSurvivorRatio, 3,                                       \
2220          "Minimum ratio of young generation/survivor space size")          \
2221                                                                            \
2222  product(uintx, InitialSurvivorRatio, 8,                                   \
2223          "Initial ratio of young generation/survivor space size")          \
2224                                                                            \
2225  product(uintx, BaseFootPrintEstimate, 256*M,                              \
2226          "Estimate of footprint other than Java Heap")                     \
2227                                                                            \
2228  product(bool, UseGCOverheadLimit, true,                                   \
2229          "Use policy to limit of proportion of time spent in GC "          \
2230          "before an OutOfMemory error is thrown")                          \
2231                                                                            \
2232  product(uintx, GCTimeLimit, 98,                                           \
2233          "Limit of the proportion of time spent in GC before "             \
2234          "an OutOfMemoryError is thrown (used with GCHeapFreeLimit)")      \
2235                                                                            \
2236  product(uintx, GCHeapFreeLimit, 2,                                        \
2237          "Minimum percentage of free space after a full GC before an "     \
2238          "OutOfMemoryError is thrown (used with GCTimeLimit)")             \
2239                                                                            \
2240  develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5,                 \
2241          "Number of consecutive collections before gc time limit fires")   \
2242                                                                            \
2243  product(bool, PrintAdaptiveSizePolicy, false,                             \
2244          "Print information about AdaptiveSizePolicy")                     \
2245                                                                            \
2246  product(intx, PrefetchCopyIntervalInBytes, -1,                            \
2247          "How far ahead to prefetch destination area (<= 0 means off)")    \
2248                                                                            \
2249  product(intx, PrefetchScanIntervalInBytes, -1,                            \
2250          "How far ahead to prefetch scan area (<= 0 means off)")           \
2251                                                                            \
2252  product(intx, PrefetchFieldsAhead, -1,                                    \
2253          "How many fields ahead to prefetch in oop scan (<= 0 means off)") \
2254                                                                            \
2255  diagnostic(bool, VerifySilently, false,                                   \
2256          "Do not print the verification progress")                         \
2257                                                                            \
2258  diagnostic(bool, VerifyDuringStartup, false,                              \
2259          "Verify memory system before executing any Java code "            \
2260          "during VM initialization")                                       \
2261                                                                            \
2262  diagnostic(bool, VerifyBeforeExit, trueInDebug,                           \
2263          "Verify system before exiting")                                   \
2264                                                                            \
2265  diagnostic(bool, VerifyBeforeGC, false,                                   \
2266          "Verify memory system before GC")                                 \
2267                                                                            \
2268  diagnostic(bool, VerifyAfterGC, false,                                    \
2269          "Verify memory system after GC")                                  \
2270                                                                            \
2271  diagnostic(bool, VerifyDuringGC, false,                                   \
2272          "Verify memory system during GC (between phases)")                \
2273                                                                            \
2274  diagnostic(bool, GCParallelVerificationEnabled, true,                     \
2275          "Enable parallel memory system verification")                     \
2276                                                                            \
2277  diagnostic(bool, DeferInitialCardMark, false,                             \
2278          "When +ReduceInitialCardMarks, explicitly defer any that "        \
2279          "may arise from new_pre_store_barrier")                           \
2280                                                                            \
2281  diagnostic(bool, VerifyRememberedSets, false,                             \
2282          "Verify GC remembered sets")                                      \
2283                                                                            \
2284  diagnostic(bool, VerifyObjectStartArray, true,                            \
2285          "Verify GC object start array if verify before/after")            \
2286                                                                            \
2287  product(bool, DisableExplicitGC, false,                                   \
2288          "Ignore calls to System.gc()")                                    \
2289                                                                            \
2290  notproduct(bool, CheckMemoryInitialization, false,                        \
2291          "Check memory initialization")                                    \
2292                                                                            \
2293  diagnostic(bool, BindCMSThreadToCPU, false,                               \
2294          "Bind CMS Thread to CPU if possible")                             \
2295                                                                            \
2296  diagnostic(uintx, CPUForCMSThread, 0,                                     \
2297          "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \
2298                                                                            \
2299  product(bool, BindGCTaskThreadsToCPUs, false,                             \
2300          "Bind GCTaskThreads to CPUs if possible")                         \
2301                                                                            \
2302  product(bool, UseGCTaskAffinity, false,                                   \
2303          "Use worker affinity when asking for GCTasks")                    \
2304                                                                            \
2305  product(uintx, ProcessDistributionStride, 4,                              \
2306          "Stride through processors when distributing processes")          \
2307                                                                            \
2308  product(uintx, CMSCoordinatorYieldSleepCount, 10,                         \
2309          "Number of times the coordinator GC thread will sleep while "     \
2310          "yielding before giving up and resuming GC")                      \
2311                                                                            \
2312  product(uintx, CMSYieldSleepCount, 0,                                     \
2313          "Number of times a GC thread (minus the coordinator) "            \
2314          "will sleep while yielding before giving up and resuming GC")     \
2315                                                                            \
2316  /* gc tracing */                                                          \
2317  manageable(bool, PrintGC, false,                                          \
2318          "Print message at garbage collection")                            \
2319                                                                            \
2320  manageable(bool, PrintGCDetails, false,                                   \
2321          "Print more details at garbage collection")                       \
2322                                                                            \
2323  manageable(bool, PrintGCDateStamps, false,                                \
2324          "Print date stamps at garbage collection")                        \
2325                                                                            \
2326  manageable(bool, PrintGCTimeStamps, false,                                \
2327          "Print timestamps at garbage collection")                         \
2328                                                                            \
2329  manageable(bool, PrintGCID, true,                                         \
2330          "Print an identifier for each garbage collection")                \
2331                                                                            \
2332  product(bool, PrintGCTaskTimeStamps, false,                               \
2333          "Print timestamps for individual gc worker thread tasks")         \
2334                                                                            \
2335  develop(intx, ConcGCYieldTimeout, 0,                                      \
2336          "If non-zero, assert that GC threads yield within this "          \
2337          "number of milliseconds")                                         \
2338                                                                            \
2339  notproduct(bool, TraceMarkSweep, false,                                   \
2340          "Trace mark sweep")                                               \
2341                                                                            \
2342  product(bool, PrintReferenceGC, false,                                    \
2343          "Print times spent handling reference objects during GC "         \
2344          "(enabled only when PrintGCDetails)")                             \
2345                                                                            \
2346  develop(bool, TraceReferenceGC, false,                                    \
2347          "Trace handling of soft/weak/final/phantom references")           \
2348                                                                            \
2349  develop(bool, TraceFinalizerRegistration, false,                          \
2350          "Trace registration of final references")                         \
2351                                                                            \
2352  notproduct(bool, TraceScavenge, false,                                    \
2353          "Trace scavenge")                                                 \
2354                                                                            \
2355  product(bool, IgnoreEmptyClassPaths, false,                               \
2356          "Ignore empty path elements in -classpath")                       \
2357                                                                            \
2358  product(bool, TraceClassPaths, false,                                     \
2359          "Trace processing of class paths")                                \
2360                                                                            \
2361  product_rw(bool, TraceClassLoading, false,                                \
2362          "Trace all classes loaded")                                       \
2363                                                                            \
2364  product(bool, TraceClassLoadingPreorder, false,                           \
2365          "Trace all classes loaded in order referenced (not loaded)")      \
2366                                                                            \
2367  product_rw(bool, TraceClassUnloading, false,                              \
2368          "Trace unloading of classes")                                     \
2369                                                                            \
2370  product_rw(bool, TraceLoaderConstraints, false,                           \
2371          "Trace loader constraints")                                       \
2372                                                                            \
2373  develop(bool, TraceClassLoaderData, false,                                \
2374          "Trace class loader loader_data lifetime")                        \
2375                                                                            \
2376  product(uintx, InitialBootClassLoaderMetaspaceSize,                       \
2377          NOT_LP64(2200*K) LP64_ONLY(4*M),                                  \
2378          "Initial size of the boot class loader data metaspace")           \
2379                                                                            \
2380  product(bool, TraceYoungGenTime, false,                                   \
2381          "Trace accumulated time for young collection")                    \
2382                                                                            \
2383  product(bool, TraceOldGenTime, false,                                     \
2384          "Trace accumulated time for old collection")                      \
2385                                                                            \
2386  product(bool, PrintTenuringDistribution, false,                           \
2387          "Print tenuring age information")                                 \
2388                                                                            \
2389  product_rw(bool, PrintHeapAtGC, false,                                    \
2390          "Print heap layout before and after each GC")                     \
2391                                                                            \
2392  product_rw(bool, PrintHeapAtGCExtended, false,                            \
2393          "Print extended information about the layout of the heap "        \
2394          "when -XX:+PrintHeapAtGC is set")                                 \
2395                                                                            \
2396  product(bool, PrintHeapAtSIGBREAK, true,                                  \
2397          "Print heap layout in response to SIGBREAK")                      \
2398                                                                            \
2399  manageable(bool, PrintClassHistogramBeforeFullGC, false,                  \
2400          "Print a class histogram before any major stop-world GC")         \
2401                                                                            \
2402  manageable(bool, PrintClassHistogramAfterFullGC, false,                   \
2403          "Print a class histogram after any major stop-world GC")          \
2404                                                                            \
2405  manageable(bool, PrintClassHistogram, false,                              \
2406          "Print a histogram of class instances")                           \
2407                                                                            \
2408  develop(bool, TraceWorkGang, false,                                       \
2409          "Trace activities of work gangs")                                 \
2410                                                                            \
2411  product(bool, TraceParallelOldGCTasks, false,                             \
2412          "Trace multithreaded GC activity")                                \
2413                                                                            \
2414  develop(bool, TraceBlockOffsetTable, false,                               \
2415          "Print BlockOffsetTable maps")                                    \
2416                                                                            \
2417  develop(bool, TraceCardTableModRefBS, false,                              \
2418          "Print CardTableModRefBS maps")                                   \
2419                                                                            \
2420  develop(bool, TraceGCTaskManager, false,                                  \
2421          "Trace actions of the GC task manager")                           \
2422                                                                            \
2423  develop(bool, TraceGCTaskQueue, false,                                    \
2424          "Trace actions of the GC task queues")                            \
2425                                                                            \
2426  diagnostic(bool, TraceGCTaskThread, false,                                \
2427          "Trace actions of the GC task threads")                           \
2428                                                                            \
2429  product(bool, PrintParallelOldGCPhaseTimes, false,                        \
2430          "Print the time taken by each phase in ParallelOldGC "            \
2431          "(PrintGCDetails must also be enabled)")                          \
2432                                                                            \
2433  develop(bool, TraceParallelOldGCMarkingPhase, false,                      \
2434          "Trace marking phase in ParallelOldGC")                           \
2435                                                                            \
2436  develop(bool, TraceParallelOldGCSummaryPhase, false,                      \
2437          "Trace summary phase in ParallelOldGC")                           \
2438                                                                            \
2439  develop(bool, TraceParallelOldGCCompactionPhase, false,                   \
2440          "Trace compaction phase in ParallelOldGC")                        \
2441                                                                            \
2442  develop(bool, TraceParallelOldGCDensePrefix, false,                       \
2443          "Trace dense prefix computation for ParallelOldGC")               \
2444                                                                            \
2445  develop(bool, IgnoreLibthreadGPFault, false,                              \
2446          "Suppress workaround for libthread GP fault")                     \
2447                                                                            \
2448  product(bool, PrintJNIGCStalls, false,                                    \
2449          "Print diagnostic message when GC is stalled "                    \
2450          "by JNI critical section")                                        \
2451                                                                            \
2452  experimental(double, ObjectCountCutOffPercent, 0.5,                       \
2453          "The percentage of the used heap that the instances of a class "  \
2454          "must occupy for the class to generate a trace event")            \
2455                                                                            \
2456  /* GC log rotation setting */                                             \
2457                                                                            \
2458  product(bool, UseGCLogFileRotation, false,                                \
2459          "Rotate gclog files (for long running applications). It requires "\
2460          "-Xloggc:<filename>")                                             \
2461                                                                            \
2462  product(uintx, NumberOfGCLogFiles, 0,                                     \
2463          "Number of gclog files in rotation "                              \
2464          "(default: 0, no rotation)")                                      \
2465                                                                            \
2466  product(uintx, GCLogFileSize, 8*K,                                        \
2467          "GC log file size, requires UseGCLogFileRotation. "               \
2468          "Set to 0 to only trigger rotation via jcmd")                     \
2469                                                                            \
2470  /* JVMTI heap profiling */                                                \
2471                                                                            \
2472  diagnostic(bool, TraceJVMTIObjectTagging, false,                          \
2473          "Trace JVMTI object tagging calls")                               \
2474                                                                            \
2475  diagnostic(bool, VerifyBeforeIteration, false,                            \
2476          "Verify memory system before JVMTI iteration")                    \
2477                                                                            \
2478  /* compiler interface */                                                  \
2479                                                                            \
2480  develop(bool, CIPrintCompilerName, false,                                 \
2481          "when CIPrint is active, print the name of the active compiler")  \
2482                                                                            \
2483  diagnostic(bool, CIPrintCompileQueue, false,                              \
2484          "display the contents of the compile queue whenever a "           \
2485          "compilation is enqueued")                                        \
2486                                                                            \
2487  develop(bool, CIPrintRequests, false,                                     \
2488          "display every request for compilation")                          \
2489                                                                            \
2490  product(bool, CITime, false,                                              \
2491          "collect timing information for compilation")                     \
2492                                                                            \
2493  develop(bool, CITimeVerbose, false,                                       \
2494          "be more verbose in compilation timings")                         \
2495                                                                            \
2496  develop(bool, CITimeEach, false,                                          \
2497          "display timing information after each successful compilation")   \
2498                                                                            \
2499  develop(bool, CICountOSR, false,                                          \
2500          "use a separate counter when assigning ids to osr compilations")  \
2501                                                                            \
2502  develop(bool, CICompileNatives, true,                                     \
2503          "compile native methods if supported by the compiler")            \
2504                                                                            \
2505  develop_pd(bool, CICompileOSR,                                            \
2506          "compile on stack replacement methods if supported by the "       \
2507          "compiler")                                                       \
2508                                                                            \
2509  develop(bool, CIPrintMethodCodes, false,                                  \
2510          "print method bytecodes of the compiled code")                    \
2511                                                                            \
2512  develop(bool, CIPrintTypeFlow, false,                                     \
2513          "print the results of ciTypeFlow analysis")                       \
2514                                                                            \
2515  develop(bool, CITraceTypeFlow, false,                                     \
2516          "detailed per-bytecode tracing of ciTypeFlow analysis")           \
2517                                                                            \
2518  develop(intx, OSROnlyBCI, -1,                                             \
2519          "OSR only at this bci.  Negative values mean exclude that bci")   \
2520                                                                            \
2521  /* compiler */                                                            \
2522                                                                            \
2523  product(intx, CICompilerCount, CI_COMPILER_COUNT,                         \
2524          "Number of compiler threads to run")                              \
2525                                                                            \
2526  product(intx, CompilationPolicyChoice, 0,                                 \
2527          "which compilation policy (0/1)")                                 \
2528                                                                            \
2529  develop(bool, UseStackBanging, true,                                      \
2530          "use stack banging for stack overflow checks (required for "      \
2531          "proper StackOverflow handling; disable only to measure cost "    \
2532          "of stackbanging)")                                               \
2533                                                                            \
2534  develop(bool, UseStrictFP, true,                                          \
2535          "use strict fp if modifier strictfp is set")                      \
2536                                                                            \
2537  develop(bool, GenerateSynchronizationCode, true,                          \
2538          "generate locking/unlocking code for synchronized methods and "   \
2539          "monitors")                                                       \
2540                                                                            \
2541  develop(bool, GenerateCompilerNullChecks, true,                           \
2542          "Generate explicit null checks for loads/stores/calls")           \
2543                                                                            \
2544  develop(bool, GenerateRangeChecks, true,                                  \
2545          "Generate range checks for array accesses")                       \
2546                                                                            \
2547  develop_pd(bool, ImplicitNullChecks,                                      \
2548          "Generate code for implicit null checks")                         \
2549                                                                            \
2550  product_pd(bool, TrapBasedNullChecks,                                     \
2551          "Generate code for null checks that uses a cmp and trap "         \
2552          "instruction raising SIGTRAP.  This is only used if an access to" \
2553          "null (+offset) will not raise a SIGSEGV, i.e.,"                  \
2554          "ImplicitNullChecks don't work (PPC64).")                         \
2555                                                                            \
2556  product(bool, PrintSafepointStatistics, false,                            \
2557          "Print statistics about safepoint synchronization")               \
2558                                                                            \
2559  product(intx, PrintSafepointStatisticsCount, 300,                         \
2560          "Total number of safepoint statistics collected "                 \
2561          "before printing them out")                                       \
2562                                                                            \
2563  product(intx, PrintSafepointStatisticsTimeout,  -1,                       \
2564          "Print safepoint statistics only when safepoint takes "           \
2565          "more than PrintSafepointSatisticsTimeout in millis")             \
2566                                                                            \
2567  product(bool, TraceSafepointCleanupTime, false,                           \
2568          "Print the break down of clean up tasks performed during "        \
2569          "safepoint")                                                      \
2570                                                                            \
2571  product(bool, Inline, true,                                               \
2572          "Enable inlining")                                                \
2573                                                                            \
2574  product(bool, ClipInlining, true,                                         \
2575          "Clip inlining if aggregate method exceeds DesiredMethodLimit")   \
2576                                                                            \
2577  develop(bool, UseCHA, true,                                               \
2578          "Enable CHA")                                                     \
2579                                                                            \
2580  product(bool, UseTypeProfile, true,                                       \
2581          "Check interpreter profile for historically monomorphic calls")   \
2582                                                                            \
2583  diagnostic(bool, PrintInlining, false,                                    \
2584          "Print inlining optimizations")                                   \
2585                                                                            \
2586  product(bool, UsePopCountInstruction, false,                              \
2587          "Use population count instruction")                               \
2588                                                                            \
2589  develop(bool, EagerInitialization, false,                                 \
2590          "Eagerly initialize classes if possible")                         \
2591                                                                            \
2592  develop(bool, TraceMethodReplacement, false,                              \
2593          "Print when methods are replaced do to recompilation")            \
2594                                                                            \
2595  develop(bool, PrintMethodFlushing, false,                                 \
2596          "Print the nmethods being flushed")                               \
2597                                                                            \
2598  diagnostic(bool, PrintMethodFlushingStatistics, false,                    \
2599          "print statistics about method flushing")                         \
2600                                                                            \
2601  diagnostic(intx, HotMethodDetectionLimit, 100000,                         \
2602          "Number of compiled code invocations after which "                \
2603          "the method is considered as hot by the flusher")                 \
2604                                                                            \
2605  diagnostic(intx, MinPassesBeforeFlush, 10,                                \
2606          "Minimum number of sweeper passes before an nmethod "             \
2607          "can be flushed")                                                 \
2608                                                                            \
2609  product(bool, UseCodeAging, true,                                         \
2610          "Insert counter to detect warm methods")                          \
2611                                                                            \
2612  diagnostic(bool, StressCodeAging, false,                                  \
2613          "Start with counters compiled in")                                \
2614                                                                            \
2615  develop(bool, UseRelocIndex, false,                                       \
2616          "Use an index to speed random access to relocations")             \
2617                                                                            \
2618  develop(bool, StressCodeBuffers, false,                                   \
2619          "Exercise code buffer expansion and other rare state changes")    \
2620                                                                            \
2621  diagnostic(bool, DebugNonSafepoints, trueInDebug,                         \
2622          "Generate extra debugging information for non-safepoints in "     \
2623          "nmethods")                                                       \
2624                                                                            \
2625  product(bool, PrintVMOptions, false,                                      \
2626          "Print flags that appeared on the command line")                  \
2627                                                                            \
2628  product(bool, IgnoreUnrecognizedVMOptions, false,                         \
2629          "Ignore unrecognized VM options")                                 \
2630                                                                            \
2631  product(bool, PrintCommandLineFlags, false,                               \
2632          "Print flags specified on command line or set by ergonomics")     \
2633                                                                            \
2634  product(bool, PrintFlagsInitial, false,                                   \
2635          "Print all VM flags before argument processing and exit VM")      \
2636                                                                            \
2637  product(bool, PrintFlagsFinal, false,                                     \
2638          "Print all VM flags after argument and ergonomic processing")     \
2639                                                                            \
2640  notproduct(bool, PrintFlagsWithComments, false,                           \
2641          "Print all VM flags with default values and descriptions and "    \
2642          "exit")                                                           \
2643                                                                            \
2644  diagnostic(bool, SerializeVMOutput, true,                                 \
2645          "Use a mutex to serialize output to tty and LogFile")             \
2646                                                                            \
2647  diagnostic(bool, DisplayVMOutput, true,                                   \
2648          "Display all VM output on the tty, independently of LogVMOutput") \
2649                                                                            \
2650  diagnostic(bool, LogVMOutput, false,                                      \
2651          "Save VM output to LogFile")                                      \
2652                                                                            \
2653  diagnostic(ccstr, LogFile, NULL,                                          \
2654          "If LogVMOutput or LogCompilation is on, save VM output to "      \
2655          "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\
2656                                                                            \
2657  product(ccstr, ErrorFile, NULL,                                           \
2658          "If an error occurs, save the error data to this file "           \
2659          "[default: ./hs_err_pid%p.log] (%p replaced with pid)")           \
2660                                                                            \
2661  product(bool, DisplayVMOutputToStderr, false,                             \
2662          "If DisplayVMOutput is true, display all VM output to stderr")    \
2663                                                                            \
2664  product(bool, DisplayVMOutputToStdout, false,                             \
2665          "If DisplayVMOutput is true, display all VM output to stdout")    \
2666                                                                            \
2667  product(bool, UseHeavyMonitors, false,                                    \
2668          "use heavyweight instead of lightweight Java monitors")           \
2669                                                                            \
2670  product(bool, PrintStringTableStatistics, false,                          \
2671          "print statistics about the StringTable and SymbolTable")         \
2672                                                                            \
2673  diagnostic(bool, VerifyStringTableAtExit, false,                          \
2674          "verify StringTable contents at exit")                            \
2675                                                                            \
2676  notproduct(bool, PrintSymbolTableSizeHistogram, false,                    \
2677          "print histogram of the symbol table")                            \
2678                                                                            \
2679  notproduct(bool, ExitVMOnVerifyError, false,                              \
2680          "standard exit from VM if bytecode verify error "                 \
2681          "(only in debug mode)")                                           \
2682                                                                            \
2683  notproduct(ccstr, AbortVMOnException, NULL,                               \
2684          "Call fatal if this exception is thrown.  Example: "              \
2685          "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
2686                                                                            \
2687  notproduct(ccstr, AbortVMOnExceptionMessage, NULL,                        \
2688          "Call fatal if the exception pointed by AbortVMOnException "      \
2689          "has this message")                                               \
2690                                                                            \
2691  develop(bool, DebugVtables, false,                                        \
2692          "add debugging code to vtable dispatch")                          \
2693                                                                            \
2694  develop(bool, PrintVtables, false,                                        \
2695          "print vtables when printing klass")                              \
2696                                                                            \
2697  notproduct(bool, PrintVtableStats, false,                                 \
2698          "print vtables stats at end of run")                              \
2699                                                                            \
2700  develop(bool, TraceCreateZombies, false,                                  \
2701          "trace creation of zombie nmethods")                              \
2702                                                                            \
2703  notproduct(bool, IgnoreLockingAssertions, false,                          \
2704          "disable locking assertions (for speed)")                         \
2705                                                                            \
2706  product(bool, RangeCheckElimination, true,                                \
2707          "Eliminate range checks")                                         \
2708                                                                            \
2709  develop_pd(bool, UncommonNullCast,                                        \
2710          "track occurrences of null in casts; adjust compiler tactics")    \
2711                                                                            \
2712  develop(bool, TypeProfileCasts,  true,                                    \
2713          "treat casts like calls for purposes of type profiling")          \
2714                                                                            \
2715  develop(bool, DelayCompilationDuringStartup, true,                        \
2716          "Delay invoking the compiler until main application class is "    \
2717          "loaded")                                                         \
2718                                                                            \
2719  develop(bool, CompileTheWorld, false,                                     \
2720          "Compile all methods in all classes in bootstrap class path "     \
2721          "(stress test)")                                                  \
2722                                                                            \
2723  develop(bool, CompileTheWorldPreloadClasses, true,                        \
2724          "Preload all classes used by a class before start loading")       \
2725                                                                            \
2726  notproduct(intx, CompileTheWorldSafepointInterval, 100,                   \
2727          "Force a safepoint every n compiles so sweeper can keep up")      \
2728                                                                            \
2729  develop(bool, FillDelaySlots, true,                                       \
2730          "Fill delay slots (on SPARC only)")                               \
2731                                                                            \
2732  develop(bool, TimeLivenessAnalysis, false,                                \
2733          "Time computation of bytecode liveness analysis")                 \
2734                                                                            \
2735  develop(bool, TraceLivenessGen, false,                                    \
2736          "Trace the generation of liveness analysis information")          \
2737                                                                            \
2738  notproduct(bool, TraceLivenessQuery, false,                               \
2739          "Trace queries of liveness analysis information")                 \
2740                                                                            \
2741  notproduct(bool, CollectIndexSetStatistics, false,                        \
2742          "Collect information about IndexSets")                            \
2743                                                                            \
2744  develop(bool, UseLoopSafepoints, true,                                    \
2745          "Generate Safepoint nodes in every loop")                         \
2746                                                                            \
2747  develop(intx, FastAllocateSizeLimit, 128*K,                               \
2748          /* Note:  This value is zero mod 1<<13 for a cheap sparc set. */  \
2749          "Inline allocations larger than this in doublewords must go slow")\
2750                                                                            \
2751  product(bool, AggressiveOpts, false,                                      \
2752          "Enable aggressive optimizations - see arguments.cpp")            \
2753                                                                            \
2754  product_pd(uintx, TypeProfileLevel,                                       \
2755          "=XYZ, with Z: Type profiling of arguments at call; "             \
2756                     "Y: Type profiling of return value at call; "          \
2757                     "X: Type profiling of parameters to methods; "         \
2758          "X, Y and Z in 0=off ; 1=jsr292 only; 2=all methods")             \
2759                                                                            \
2760  product(intx, TypeProfileArgsLimit,     2,                                \
2761          "max number of call arguments to consider for type profiling")    \
2762                                                                            \
2763  product(intx, TypeProfileParmsLimit,    2,                                \
2764          "max number of incoming parameters to consider for type profiling"\
2765          ", -1 for all")                                                   \
2766                                                                            \
2767  /* statistics */                                                          \
2768  develop(bool, CountCompiledCalls, false,                                  \
2769          "Count method invocations")                                       \
2770                                                                            \
2771  notproduct(bool, CountRuntimeCalls, false,                                \
2772          "Count VM runtime calls")                                         \
2773                                                                            \
2774  develop(bool, CountJNICalls, false,                                       \
2775          "Count jni method invocations")                                   \
2776                                                                            \
2777  notproduct(bool, CountJVMCalls, false,                                    \
2778          "Count jvm method invocations")                                   \
2779                                                                            \
2780  notproduct(bool, CountRemovableExceptions, false,                         \
2781          "Count exceptions that could be replaced by branches due to "     \
2782          "inlining")                                                       \
2783                                                                            \
2784  notproduct(bool, ICMissHistogram, false,                                  \
2785          "Produce histogram of IC misses")                                 \
2786                                                                            \
2787  notproduct(bool, PrintClassStatistics, false,                             \
2788          "Print class statistics at end of run")                           \
2789                                                                            \
2790  notproduct(bool, PrintMethodStatistics, false,                            \
2791          "Print method statistics at end of run")                          \
2792                                                                            \
2793  /* interpreter */                                                         \
2794  develop(bool, ClearInterpreterLocals, false,                              \
2795          "Always clear local variables of interpreter activations upon "   \
2796          "entry")                                                          \
2797                                                                            \
2798  product_pd(bool, RewriteBytecodes,                                        \
2799          "Allow rewriting of bytecodes (bytecodes are not immutable)")     \
2800                                                                            \
2801  product_pd(bool, RewriteFrequentPairs,                                    \
2802          "Rewrite frequently used bytecode pairs into a single bytecode")  \
2803                                                                            \
2804  diagnostic(bool, PrintInterpreter, false,                                 \
2805          "Print the generated interpreter code")                           \
2806                                                                            \
2807  product(bool, UseInterpreter, true,                                       \
2808          "Use interpreter for non-compiled methods")                       \
2809                                                                            \
2810  develop(bool, UseFastSignatureHandlers, true,                             \
2811          "Use fast signature handlers for native calls")                   \
2812                                                                            \
2813  product(bool, UseLoopCounter, true,                                       \
2814          "Increment invocation counter on backward branch")                \
2815                                                                            \
2816  product_pd(bool, UseOnStackReplacement,                                   \
2817          "Use on stack replacement, calls runtime if invoc. counter "      \
2818          "overflows in loop")                                              \
2819                                                                            \
2820  notproduct(bool, TraceOnStackReplacement, false,                          \
2821          "Trace on stack replacement")                                     \
2822                                                                            \
2823  product_pd(bool, PreferInterpreterNativeStubs,                            \
2824          "Use always interpreter stubs for native methods invoked via "    \
2825          "interpreter")                                                    \
2826                                                                            \
2827  develop(bool, CountBytecodes, false,                                      \
2828          "Count number of bytecodes executed")                             \
2829                                                                            \
2830  develop(bool, PrintBytecodeHistogram, false,                              \
2831          "Print histogram of the executed bytecodes")                      \
2832                                                                            \
2833  develop(bool, PrintBytecodePairHistogram, false,                          \
2834          "Print histogram of the executed bytecode pairs")                 \
2835                                                                            \
2836  diagnostic(bool, PrintSignatureHandlers, false,                           \
2837          "Print code generated for native method signature handlers")      \
2838                                                                            \
2839  develop(bool, VerifyOops, false,                                          \
2840          "Do plausibility checks for oops")                                \
2841                                                                            \
2842  develop(bool, CheckUnhandledOops, false,                                  \
2843          "Check for unhandled oops in VM code")                            \
2844                                                                            \
2845  develop(bool, VerifyJNIFields, trueInDebug,                               \
2846          "Verify jfieldIDs for instance fields")                           \
2847                                                                            \
2848  notproduct(bool, VerifyJNIEnvThread, false,                               \
2849          "Verify JNIEnv.thread == Thread::current() when entering VM "     \
2850          "from JNI")                                                       \
2851                                                                            \
2852  develop(bool, VerifyFPU, false,                                           \
2853          "Verify FPU state (check for NaN's, etc.)")                       \
2854                                                                            \
2855  develop(bool, VerifyThread, false,                                        \
2856          "Watch the thread register for corruption (SPARC only)")          \
2857                                                                            \
2858  develop(bool, VerifyActivationFrameSize, false,                           \
2859          "Verify that activation frame didn't become smaller than its "    \
2860          "minimal size")                                                   \
2861                                                                            \
2862  develop(bool, TraceFrequencyInlining, false,                              \
2863          "Trace frequency based inlining")                                 \
2864                                                                            \
2865  develop_pd(bool, InlineIntrinsics,                                        \
2866          "Inline intrinsics that can be statically resolved")              \
2867                                                                            \
2868  product_pd(bool, ProfileInterpreter,                                      \
2869          "Profile at the bytecode level during interpretation")            \
2870                                                                            \
2871  develop(bool, TraceProfileInterpreter, false,                             \
2872          "Trace profiling at the bytecode level during interpretation. "   \
2873          "This outputs the profiling information collected to improve "    \
2874          "jit compilation.")                                               \
2875                                                                            \
2876  develop_pd(bool, ProfileTraps,                                            \
2877          "Profile deoptimization traps at the bytecode level")             \
2878                                                                            \
2879  product(intx, ProfileMaturityPercentage, 20,                              \
2880          "number of method invocations/branches (expressed as % of "       \
2881          "CompileThreshold) before using the method's profile")            \
2882                                                                            \
2883  diagnostic(bool, PrintMethodData, false,                                  \
2884          "Print the results of +ProfileInterpreter at end of run")         \
2885                                                                            \
2886  develop(bool, VerifyDataPointer, trueInDebug,                             \
2887          "Verify the method data pointer during interpreter profiling")    \
2888                                                                            \
2889  develop(bool, VerifyCompiledCode, false,                                  \
2890          "Include miscellaneous runtime verifications in nmethod code; "   \
2891          "default off because it disturbs nmethod size heuristics")        \
2892                                                                            \
2893  notproduct(bool, CrashGCForDumpingJavaThread, false,                      \
2894          "Manually make GC thread crash then dump java stack trace;  "     \
2895          "Test only")                                                      \
2896                                                                            \
2897  /* compilation */                                                         \
2898  product(bool, UseCompiler, true,                                          \
2899          "Use Just-In-Time compilation")                                   \
2900                                                                            \
2901  develop(bool, TraceCompilationPolicy, false,                              \
2902          "Trace compilation policy")                                       \
2903                                                                            \
2904  develop(bool, TimeCompilationPolicy, false,                               \
2905          "Time the compilation policy")                                    \
2906                                                                            \
2907  product(bool, UseCounterDecay, true,                                      \
2908          "Adjust recompilation counters")                                  \
2909                                                                            \
2910  develop(intx, CounterHalfLifeTime,    30,                                 \
2911          "Half-life time of invocation counters (in seconds)")             \
2912                                                                            \
2913  develop(intx, CounterDecayMinIntervalLength,   500,                       \
2914          "The minimum interval (in milliseconds) between invocation of "   \
2915          "CounterDecay")                                                   \
2916                                                                            \
2917  product(bool, AlwaysCompileLoopMethods, false,                            \
2918          "When using recompilation, never interpret methods "              \
2919          "containing loops")                                               \
2920                                                                            \
2921  product(bool, DontCompileHugeMethods, true,                               \
2922          "Do not compile methods > HugeMethodLimit")                       \
2923                                                                            \
2924  /* Bytecode escape analysis estimation. */                                \
2925  product(bool, EstimateArgEscape, true,                                    \
2926          "Analyze bytecodes to estimate escape state of arguments")        \
2927                                                                            \
2928  product(intx, BCEATraceLevel, 0,                                          \
2929          "How much tracing to do of bytecode escape analysis estimates")   \
2930                                                                            \
2931  product(intx, MaxBCEAEstimateLevel, 5,                                    \
2932          "Maximum number of nested calls that are analyzed by BC EA")      \
2933                                                                            \
2934  product(intx, MaxBCEAEstimateSize, 150,                                   \
2935          "Maximum bytecode size of a method to be analyzed by BC EA")      \
2936                                                                            \
2937  product(intx,  AllocatePrefetchStyle, 1,                                  \
2938          "0 = no prefetch, "                                               \
2939          "1 = prefetch instructions for each allocation, "                 \
2940          "2 = use TLAB watermark to gate allocation prefetch, "            \
2941          "3 = use BIS instruction on Sparc for allocation prefetch")       \
2942                                                                            \
2943  product(intx,  AllocatePrefetchDistance, -1,                              \
2944          "Distance to prefetch ahead of allocation pointer")               \
2945                                                                            \
2946  product(intx,  AllocatePrefetchLines, 3,                                  \
2947          "Number of lines to prefetch ahead of array allocation pointer")  \
2948                                                                            \
2949  product(intx,  AllocateInstancePrefetchLines, 1,                          \
2950          "Number of lines to prefetch ahead of instance allocation "       \
2951          "pointer")                                                        \
2952                                                                            \
2953  product(intx,  AllocatePrefetchStepSize, 16,                              \
2954          "Step size in bytes of sequential prefetch instructions")         \
2955                                                                            \
2956  product(intx,  AllocatePrefetchInstr, 0,                                  \
2957          "Prefetch instruction to prefetch ahead of allocation pointer")   \
2958                                                                            \
2959  /* deoptimization */                                                      \
2960  develop(bool, TraceDeoptimization, false,                                 \
2961          "Trace deoptimization")                                           \
2962                                                                            \
2963  develop(bool, DebugDeoptimization, false,                                 \
2964          "Tracing various information while debugging deoptimization")     \
2965                                                                            \
2966  product(intx, SelfDestructTimer, 0,                                       \
2967          "Will cause VM to terminate after a given time (in minutes) "     \
2968          "(0 means off)")                                                  \
2969                                                                            \
2970  product(intx, MaxJavaStackTraceDepth, 1024,                               \
2971          "The maximum number of lines in the stack trace for Java "        \
2972          "exceptions (0 means all)")                                       \
2973                                                                            \
2974  NOT_EMBEDDED(diagnostic(intx, GuaranteedSafepointInterval, 1000,          \
2975          "Guarantee a safepoint (at least) every so many milliseconds "    \
2976          "(0 means none)"))                                                \
2977                                                                            \
2978  EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0,               \
2979          "Guarantee a safepoint (at least) every so many milliseconds "    \
2980          "(0 means none)"))                                                \
2981                                                                            \
2982  product(intx, SafepointTimeoutDelay, 10000,                               \
2983          "Delay in milliseconds for option SafepointTimeout")              \
2984                                                                            \
2985  product(intx, NmethodSweepFraction, 16,                                   \
2986          "Number of invocations of sweeper to cover all nmethods")         \
2987                                                                            \
2988  product(intx, NmethodSweepCheckInterval, 5,                               \
2989          "Compilers wake up every n seconds to possibly sweep nmethods")   \
2990                                                                            \
2991  product(intx, NmethodSweepActivity, 10,                                   \
2992          "Removes cold nmethods from code cache if > 0. Higher values "    \
2993          "result in more aggressive sweeping")                             \
2994                                                                            \
2995  notproduct(bool, LogSweeper, false,                                       \
2996          "Keep a ring buffer of sweeper activity")                         \
2997                                                                            \
2998  notproduct(intx, SweeperLogEntries, 1024,                                 \
2999          "Number of records in the ring buffer of sweeper activity")       \
3000                                                                            \
3001  notproduct(intx, MemProfilingInterval, 500,                               \
3002          "Time between each invocation of the MemProfiler")                \
3003                                                                            \
3004  develop(intx, MallocCatchPtr, -1,                                         \
3005          "Hit breakpoint when mallocing/freeing this pointer")             \
3006                                                                            \
3007  notproduct(intx, AssertRepeat, 1,                                         \
3008          "number of times to evaluate expression in assert "               \
3009          "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \
3010                                                                            \
3011  notproduct(ccstrlist, SuppressErrorAt, "",                                \
3012          "List of assertions (file:line) to muzzle")                       \
3013                                                                            \
3014  notproduct(uintx, HandleAllocationLimit, 1024,                            \
3015          "Threshold for HandleMark allocation when +TraceHandleAllocation "\
3016          "is used")                                                        \
3017                                                                            \
3018  develop(uintx, TotalHandleAllocationLimit, 1024,                          \
3019          "Threshold for total handle allocation when "                     \
3020          "+TraceHandleAllocation is used")                                 \
3021                                                                            \
3022  develop(intx, StackPrintLimit, 100,                                       \
3023          "number of stack frames to print in VM-level stack dump")         \
3024                                                                            \
3025  notproduct(intx, MaxElementPrintSize, 256,                                \
3026          "maximum number of elements to print")                            \
3027                                                                            \
3028  notproduct(intx, MaxSubklassPrintSize, 4,                                 \
3029          "maximum number of subklasses to print when printing klass")      \
3030                                                                            \
3031  product(intx, MaxInlineLevel, 9,                                          \
3032          "maximum number of nested calls that are inlined")                \
3033                                                                            \
3034  product(intx, MaxRecursiveInlineLevel, 1,                                 \
3035          "maximum number of nested recursive calls that are inlined")      \
3036                                                                            \
3037  develop(intx, MaxForceInlineLevel, 100,                                   \
3038          "maximum number of nested calls that are forced for inlining "    \
3039          "(using CompilerOracle or marked w/ @ForceInline)")               \
3040                                                                            \
3041  product_pd(intx, InlineSmallCode,                                         \
3042          "Only inline already compiled methods if their code size is "     \
3043          "less than this")                                                 \
3044                                                                            \
3045  product(intx, MaxInlineSize, 35,                                          \
3046          "The maximum bytecode size of a method to be inlined")            \
3047                                                                            \
3048  product_pd(intx, FreqInlineSize,                                          \
3049          "The maximum bytecode size of a frequent method to be inlined")   \
3050                                                                            \
3051  product(intx, MaxTrivialSize, 6,                                          \
3052          "The maximum bytecode size of a trivial method to be inlined")    \
3053                                                                            \
3054  product(intx, MinInliningThreshold, 250,                                  \
3055          "The minimum invocation count a method needs to have to be "      \
3056          "inlined")                                                        \
3057                                                                            \
3058  develop(intx, MethodHistogramCutoff, 100,                                 \
3059          "The cutoff value for method invocation histogram (+CountCalls)") \
3060                                                                            \
3061  develop(intx, ProfilerNumberOfInterpretedMethods, 25,                     \
3062          "Number of interpreted methods to show in profile")               \
3063                                                                            \
3064  develop(intx, ProfilerNumberOfCompiledMethods, 25,                        \
3065          "Number of compiled methods to show in profile")                  \
3066                                                                            \
3067  develop(intx, ProfilerNumberOfStubMethods, 25,                            \
3068          "Number of stub methods to show in profile")                      \
3069                                                                            \
3070  develop(intx, ProfilerNumberOfRuntimeStubNodes, 25,                       \
3071          "Number of runtime stub nodes to show in profile")                \
3072                                                                            \
3073  product(intx, ProfileIntervalsTicks, 100,                                 \
3074          "Number of ticks between printing of interval profile "           \
3075          "(+ProfileIntervals)")                                            \
3076                                                                            \
3077  notproduct(intx, ScavengeALotInterval,     1,                             \
3078          "Interval between which scavenge will occur with +ScavengeALot")  \
3079                                                                            \
3080  notproduct(intx, FullGCALotInterval,     1,                               \
3081          "Interval between which full gc will occur with +FullGCALot")     \
3082                                                                            \
3083  notproduct(intx, FullGCALotStart,     0,                                  \
3084          "For which invocation to start FullGCAlot")                       \
3085                                                                            \
3086  notproduct(intx, FullGCALotDummies,  32*K,                                \
3087          "Dummy object allocated with +FullGCALot, forcing all objects "   \
3088          "to move")                                                        \
3089                                                                            \
3090  develop(intx, DontYieldALotInterval,    10,                               \
3091          "Interval between which yields will be dropped (milliseconds)")   \
3092                                                                            \
3093  develop(intx, MinSleepInterval,     1,                                    \
3094          "Minimum sleep() interval (milliseconds) when "                   \
3095          "ConvertSleepToYield is off (used for Solaris)")                  \
3096                                                                            \
3097  develop(intx, ProfilerPCTickThreshold,    15,                             \
3098          "Number of ticks in a PC buckets to be a hotspot")                \
3099                                                                            \
3100  notproduct(intx, DeoptimizeALotInterval,     5,                           \
3101          "Number of exits until DeoptimizeALot kicks in")                  \
3102                                                                            \
3103  notproduct(intx, ZombieALotInterval,     5,                               \
3104          "Number of exits until ZombieALot kicks in")                      \
3105                                                                            \
3106  diagnostic(intx, MallocVerifyInterval,     0,                             \
3107          "If non-zero, verify C heap after every N calls to "              \
3108          "malloc/realloc/free")                                            \
3109                                                                            \
3110  diagnostic(intx, MallocVerifyStart,     0,                                \
3111          "If non-zero, start verifying C heap after Nth call to "          \
3112          "malloc/realloc/free")                                            \
3113                                                                            \
3114  diagnostic(uintx, MallocMaxTestWords,     0,                              \
3115          "If non-zero, maximum number of words that malloc/realloc can "   \
3116          "allocate (for testing only)")                                    \
3117                                                                            \
3118  product(intx, TypeProfileWidth,     2,                                    \
3119          "Number of receiver types to record in call/cast profile")        \
3120                                                                            \
3121  develop(intx, BciProfileWidth,      2,                                    \
3122          "Number of return bci's to record in ret profile")                \
3123                                                                            \
3124  product(intx, PerMethodRecompilationCutoff, 400,                          \
3125          "After recompiling N times, stay in the interpreter (-1=>'Inf')") \
3126                                                                            \
3127  product(intx, PerBytecodeRecompilationCutoff, 200,                        \
3128          "Per-BCI limit on repeated recompilation (-1=>'Inf')")            \
3129                                                                            \
3130  product(intx, PerMethodTrapLimit,  100,                                   \
3131          "Limit on traps (of one kind) in a method (includes inlines)")    \
3132                                                                            \
3133  experimental(intx, PerMethodSpecTrapLimit,  5000,                         \
3134          "Limit on speculative traps (of one kind) in a method (includes inlines)") \
3135                                                                            \
3136  product(intx, PerBytecodeTrapLimit,  4,                                   \
3137          "Limit on traps (of one kind) at a particular BCI")               \
3138                                                                            \
3139  experimental(intx, SpecTrapLimitExtraEntries,  3,                         \
3140          "Extra method data trap entries for speculation")                 \
3141                                                                            \
3142  develop(intx, InlineFrequencyRatio,    20,                                \
3143          "Ratio of call site execution to caller method invocation")       \
3144                                                                            \
3145  develop_pd(intx, InlineFrequencyCount,                                    \
3146          "Count of call site execution necessary to trigger frequent "     \
3147          "inlining")                                                       \
3148                                                                            \
3149  develop(intx, InlineThrowCount,    50,                                    \
3150          "Force inlining of interpreted methods that throw this often")    \
3151                                                                            \
3152  develop(intx, InlineThrowMaxSize,   200,                                  \
3153          "Force inlining of throwing methods smaller than this")           \
3154                                                                            \
3155  develop(intx, ProfilerNodeSize,  1024,                                    \
3156          "Size in K to allocate for the Profile Nodes of each thread")     \
3157                                                                            \
3158  product_pd(intx, PreInflateSpin,                                          \
3159          "Number of times to spin wait before inflation")                  \
3160                                                                            \
3161  /* gc parameters */                                                       \
3162  product(uintx, InitialHeapSize, 0,                                        \
3163          "Initial heap size (in bytes); zero means use ergonomics")        \
3164                                                                            \
3165  product(uintx, MaxHeapSize, ScaleForWordSize(96*M),                       \
3166          "Maximum heap size (in bytes)")                                   \
3167                                                                            \
3168  product(uintx, OldSize, ScaleForWordSize(4*M),                            \
3169          "Initial tenured generation size (in bytes)")                     \
3170                                                                            \
3171  product(uintx, NewSize, ScaleForWordSize(1*M),                            \
3172          "Initial new generation size (in bytes)")                         \
3173                                                                            \
3174  product(uintx, MaxNewSize, max_uintx,                                     \
3175          "Maximum new generation size (in bytes), max_uintx means set "    \
3176          "ergonomically")                                                  \
3177                                                                            \
3178  product(uintx, PretenureSizeThreshold, 0,                                 \
3179          "Maximum size in bytes of objects allocated in DefNew "           \
3180          "generation; zero means no maximum")                              \
3181                                                                            \
3182  product(uintx, TLABSize, 0,                                               \
3183          "Starting TLAB size (in bytes); zero means set ergonomically")    \
3184                                                                            \
3185  product(uintx, MinTLABSize, 2*K,                                          \
3186          "Minimum allowed TLAB size (in bytes)")                           \
3187                                                                            \
3188  product(uintx, TLABAllocationWeight, 35,                                  \
3189          "Allocation averaging weight")                                    \
3190                                                                            \
3191  product(uintx, TLABWasteTargetPercent, 1,                                 \
3192          "Percentage of Eden that can be wasted")                          \
3193                                                                            \
3194  product(uintx, TLABRefillWasteFraction,    64,                            \
3195          "Maximum TLAB waste at a refill (internal fragmentation)")        \
3196                                                                            \
3197  product(uintx, TLABWasteIncrement,    4,                                  \
3198          "Increment allowed waste at slow allocation")                     \
3199                                                                            \
3200  product(uintx, SurvivorRatio, 8,                                          \
3201          "Ratio of eden/survivor space size")                              \
3202                                                                            \
3203  product(uintx, NewRatio, 2,                                               \
3204          "Ratio of old/new generation sizes")                              \
3205                                                                            \
3206  product_pd(uintx, NewSizeThreadIncrease,                                  \
3207          "Additional size added to desired new generation size per "       \
3208          "non-daemon thread (in bytes)")                                   \
3209                                                                            \
3210  product_pd(uintx, MetaspaceSize,                                          \
3211          "Initial size of Metaspaces (in bytes)")                          \
3212                                                                            \
3213  product(uintx, MaxMetaspaceSize, max_uintx,                               \
3214          "Maximum size of Metaspaces (in bytes)")                          \
3215                                                                            \
3216  product(uintx, CompressedClassSpaceSize, 1*G,                             \
3217          "Maximum size of class area in Metaspace when compressed "        \
3218          "class pointers are used")                                        \
3219                                                                            \
3220  manageable(uintx, MinHeapFreeRatio, 40,                                   \
3221          "The minimum percentage of heap free after GC to avoid expansion."\
3222          " For most GCs this applies to the old generation. In G1 and"     \
3223          " ParallelGC it applies to the whole heap.")                      \
3224                                                                            \
3225  manageable(uintx, MaxHeapFreeRatio, 70,                                   \
3226          "The maximum percentage of heap free after GC to avoid shrinking."\
3227          " For most GCs this applies to the old generation. In G1 and"     \
3228          " ParallelGC it applies to the whole heap.")                      \
3229                                                                            \
3230  product(intx, SoftRefLRUPolicyMSPerMB, 1000,                              \
3231          "Number of milliseconds per MB of free space in the heap")        \
3232                                                                            \
3233  product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K),                \
3234          "The minimum change in heap space due to GC (in bytes)")          \
3235                                                                            \
3236  product(uintx, MinMetaspaceExpansion, ScaleForWordSize(256*K),            \
3237          "The minimum expansion of Metaspace (in bytes)")                  \
3238                                                                            \
3239  product(uintx, MinMetaspaceFreeRatio,    40,                              \
3240          "The minimum percentage of Metaspace free after GC to avoid "     \
3241          "expansion")                                                      \
3242                                                                            \
3243  product(uintx, MaxMetaspaceFreeRatio,    70,                              \
3244          "The maximum percentage of Metaspace free after GC to avoid "     \
3245          "shrinking")                                                      \
3246                                                                            \
3247  product(uintx, MaxMetaspaceExpansion, ScaleForWordSize(4*M),              \
3248          "The maximum expansion of Metaspace without full GC (in bytes)")  \
3249                                                                            \
3250  product(uintx, QueuedAllocationWarningCount, 0,                           \
3251          "Number of times an allocation that queues behind a GC "          \
3252          "will retry before printing a warning")                           \
3253                                                                            \
3254  diagnostic(uintx, VerifyGCStartAt,   0,                                   \
3255          "GC invoke count where +VerifyBefore/AfterGC kicks in")           \
3256                                                                            \
3257  diagnostic(intx, VerifyGCLevel,     0,                                    \
3258          "Generation level at which to start +VerifyBefore/AfterGC")       \
3259                                                                            \
3260  product(uintx, MaxTenuringThreshold,    15,                               \
3261          "Maximum value for tenuring threshold")                           \
3262                                                                            \
3263  product(uintx, InitialTenuringThreshold,    7,                            \
3264          "Initial value for tenuring threshold")                           \
3265                                                                            \
3266  product(uintx, TargetSurvivorRatio,    50,                                \
3267          "Desired percentage of survivor space used after scavenge")       \
3268                                                                            \
3269  product(uintx, MarkSweepDeadRatio,     5,                                 \
3270          "Percentage (0-100) of the old gen allowed as dead wood. "        \
3271          "Serial mark sweep treats this as both the minimum and maximum "  \
3272          "value. "                                                         \
3273          "CMS uses this value only if it falls back to mark sweep. "       \
3274          "Par compact uses a variable scale based on the density of the "  \
3275          "generation and treats this as the maximum value when the heap "  \
3276          "is either completely full or completely empty.  Par compact "    \
3277          "also has a smaller default value; see arguments.cpp.")           \
3278                                                                            \
3279  product(uintx, MarkSweepAlwaysCompactCount,     4,                        \
3280          "How often should we fully compact the heap (ignoring the dead "  \
3281          "space parameters)")                                              \
3282                                                                            \
3283  product(intx, PrintCMSStatistics, 0,                                      \
3284          "Statistics for CMS")                                             \
3285                                                                            \
3286  product(bool, PrintCMSInitiationStatistics, false,                        \
3287          "Statistics for initiating a CMS collection")                     \
3288                                                                            \
3289  product(intx, PrintFLSStatistics, 0,                                      \
3290          "Statistics for CMS' FreeListSpace")                              \
3291                                                                            \
3292  product(intx, PrintFLSCensus, 0,                                          \
3293          "Census for CMS' FreeListSpace")                                  \
3294                                                                            \
3295  develop(uintx, GCExpandToAllocateDelayMillis, 0,                          \
3296          "Delay between expansion and allocation (in milliseconds)")       \
3297                                                                            \
3298  develop(uintx, GCWorkerDelayMillis, 0,                                    \
3299          "Delay in scheduling GC workers (in milliseconds)")               \
3300                                                                            \
3301  product(intx, DeferThrSuspendLoopCount,     4000,                         \
3302          "(Unstable) Number of times to iterate in safepoint loop "        \
3303          "before blocking VM threads ")                                    \
3304                                                                            \
3305  product(intx, DeferPollingPageLoopCount,     -1,                          \
3306          "(Unsafe,Unstable) Number of iterations in safepoint loop "       \
3307          "before changing safepoint polling page to RO ")                  \
3308                                                                            \
3309  product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)")               \
3310                                                                            \
3311  product(bool, PSChunkLargeArrays, true,                                   \
3312          "Process large arrays in chunks")                                 \
3313                                                                            \
3314  product(uintx, GCDrainStackTargetSize, 64,                                \
3315          "Number of entries we will try to leave on the stack "            \
3316          "during parallel gc")                                             \
3317                                                                            \
3318  /* stack parameters */                                                    \
3319  product_pd(intx, StackYellowPages,                                        \
3320          "Number of yellow zone (recoverable overflows) pages")            \
3321                                                                            \
3322  product_pd(intx, StackRedPages,                                           \
3323          "Number of red zone (unrecoverable overflows) pages")             \
3324                                                                            \
3325  product_pd(intx, StackShadowPages,                                        \
3326          "Number of shadow zone (for overflow checking) pages "            \
3327          "this should exceed the depth of the VM and native call stack")   \
3328                                                                            \
3329  product_pd(intx, ThreadStackSize,                                         \
3330          "Thread Stack Size (in Kbytes)")                                  \
3331                                                                            \
3332  product_pd(intx, VMThreadStackSize,                                       \
3333          "Non-Java Thread Stack Size (in Kbytes)")                         \
3334                                                                            \
3335  product_pd(intx, CompilerThreadStackSize,                                 \
3336          "Compiler Thread Stack Size (in Kbytes)")                         \
3337                                                                            \
3338  develop_pd(uintx, JVMInvokeMethodSlack,                                   \
3339          "Stack space (bytes) required for JVM_InvokeMethod to complete")  \
3340                                                                            \
3341  product(uintx, ThreadSafetyMargin, 50*M,                                  \
3342          "Thread safety margin is used on fixed-stack LinuxThreads (on "   \
3343          "Linux/x86 only) to prevent heap-stack collision. Set to 0 to "   \
3344          "disable this feature")                                           \
3345                                                                            \
3346  /* code cache parameters */                                               \
3347  /* ppc64/tiered compilation has large code-entry alignment. */            \
3348  develop(uintx, CodeCacheSegmentSize, 64 PPC64_ONLY(+64) NOT_PPC64(TIERED_ONLY(+64)),\
3349          "Code cache segment size (in bytes) - smallest unit of "          \
3350          "allocation")                                                     \
3351                                                                            \
3352  develop_pd(intx, CodeEntryAlignment,                                      \
3353          "Code entry alignment for generated code (in bytes)")             \
3354                                                                            \
3355  product_pd(intx, OptoLoopAlignment,                                       \
3356          "Align inner loops to zero relative to this modulus")             \
3357                                                                            \
3358  product_pd(uintx, InitialCodeCacheSize,                                   \
3359          "Initial code cache size (in bytes)")                             \
3360                                                                            \
3361  develop_pd(uintx, CodeCacheMinimumUseSpace,                               \
3362          "Minimum code cache size (in bytes) required to start VM.")       \
3363                                                                            \
3364  product(bool, SegmentedCodeCache, false,                                  \
3365          "Use a segmented code cache")                                     \
3366                                                                            \
3367  product_pd(uintx, ReservedCodeCacheSize,                                  \
3368          "Reserved code cache size (in bytes) - maximum code cache size")  \
3369                                                                            \
3370  product_pd(uintx, NonProfiledCodeHeapSize,                                \
3371          "Size of code heap with non-profiled methods (in bytes)")         \
3372                                                                            \
3373  product_pd(uintx, ProfiledCodeHeapSize,                                   \
3374          "Size of code heap with profiled methods (in bytes)")             \
3375                                                                            \
3376  product_pd(uintx, NonNMethodCodeHeapSize,                                 \
3377          "Size of code heap with non-nmethods (in bytes)")                 \
3378                                                                            \
3379  product(uintx, CodeCacheMinimumFreeSpace, 500*K,                          \
3380          "When less than X space left, we stop compiling")                 \
3381                                                                            \
3382  product_pd(uintx, CodeCacheExpansionSize,                                 \
3383          "Code cache expansion size (in bytes)")                           \
3384                                                                            \
3385  develop_pd(uintx, CodeCacheMinBlockLength,                                \
3386          "Minimum number of segments in a code cache block")               \
3387                                                                            \
3388  notproduct(bool, ExitOnFullCodeCache, false,                              \
3389          "Exit the VM if we fill the code cache")                          \
3390                                                                            \
3391  product(bool, UseCodeCacheFlushing, true,                                 \
3392          "Remove cold/old nmethods from the code cache")                   \
3393                                                                            \
3394  /* interpreter debugging */                                               \
3395  develop(intx, BinarySwitchThreshold, 5,                                   \
3396          "Minimal number of lookupswitch entries for rewriting to binary " \
3397          "switch")                                                         \
3398                                                                            \
3399  develop(intx, StopInterpreterAt, 0,                                       \
3400          "Stop interpreter execution at specified bytecode number")        \
3401                                                                            \
3402  develop(intx, TraceBytecodesAt, 0,                                        \
3403          "Trace bytecodes starting with specified bytecode number")        \
3404                                                                            \
3405  /* compiler interface */                                                  \
3406  develop(intx, CIStart, 0,                                                 \
3407          "The id of the first compilation to permit")                      \
3408                                                                            \
3409  develop(intx, CIStop, max_jint,                                           \
3410          "The id of the last compilation to permit")                       \
3411                                                                            \
3412  develop(intx, CIStartOSR, 0,                                              \
3413          "The id of the first osr compilation to permit "                  \
3414          "(CICountOSR must be on)")                                        \
3415                                                                            \
3416  develop(intx, CIStopOSR, max_jint,                                        \
3417          "The id of the last osr compilation to permit "                   \
3418          "(CICountOSR must be on)")                                        \
3419                                                                            \
3420  develop(intx, CIBreakAtOSR, -1,                                           \
3421          "The id of osr compilation to break at")                          \
3422                                                                            \
3423  develop(intx, CIBreakAt, -1,                                              \
3424          "The id of compilation to break at")                              \
3425                                                                            \
3426  product(ccstrlist, CompileOnly, "",                                       \
3427          "List of methods (pkg/class.name) to restrict compilation to")    \
3428                                                                            \
3429  product(ccstr, CompileCommandFile, NULL,                                  \
3430          "Read compiler commands from this file [.hotspot_compiler]")      \
3431                                                                            \
3432  product(ccstrlist, CompileCommand, "",                                    \
3433          "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
3434                                                                            \
3435  develop(bool, ReplayCompiles, false,                                      \
3436          "Enable replay of compilations from ReplayDataFile")              \
3437                                                                            \
3438  product(ccstr, ReplayDataFile, NULL,                                      \
3439          "File containing compilation replay information"                  \
3440          "[default: ./replay_pid%p.log] (%p replaced with pid)")           \
3441                                                                            \
3442   product(ccstr, InlineDataFile, NULL,                                     \
3443          "File containing inlining replay information"                     \
3444          "[default: ./inline_pid%p.log] (%p replaced with pid)")           \
3445                                                                            \
3446  develop(intx, ReplaySuppressInitializers, 2,                              \
3447          "Control handling of class initialization during replay: "        \
3448          "0 - don't do anything special; "                                 \
3449          "1 - treat all class initializers as empty; "                     \
3450          "2 - treat class initializers for application classes as empty; " \
3451          "3 - allow all class initializers to run during bootstrap but "   \
3452          "    pretend they are empty after starting replay")               \
3453                                                                            \
3454  develop(bool, ReplayIgnoreInitErrors, false,                              \
3455          "Ignore exceptions thrown during initialization for replay")      \
3456                                                                            \
3457  product(bool, DumpReplayDataOnError, true,                                \
3458          "Record replay data for crashing compiler threads")               \
3459                                                                            \
3460  product(bool, CICompilerCountPerCPU, false,                               \
3461          "1 compiler thread for log(N CPUs)")                              \
3462                                                                            \
3463  develop(intx, CIFireOOMAt,    -1,                                         \
3464          "Fire OutOfMemoryErrors throughout CI for testing the compiler "  \
3465          "(non-negative value throws OOM after this many CI accesses "     \
3466          "in each compile)")                                               \
3467  notproduct(intx, CICrashAt, -1,                                           \
3468          "id of compilation to trigger assert in compiler thread for "     \
3469          "the purpose of testing, e.g. generation of replay data")         \
3470  notproduct(bool, CIObjectFactoryVerify, false,                            \
3471          "enable potentially expensive verification in ciObjectFactory")   \
3472                                                                            \
3473  /* Priorities */                                                          \
3474  product_pd(bool, UseThreadPriorities,  "Use native thread priorities")    \
3475                                                                            \
3476  product(intx, ThreadPriorityPolicy, 0,                                    \
3477          "0 : Normal.                                                     "\
3478          "    VM chooses priorities that are appropriate for normal       "\
3479          "    applications. On Solaris NORM_PRIORITY and above are mapped "\
3480          "    to normal native priority. Java priorities below "           \
3481          "    NORM_PRIORITY map to lower native priority values. On       "\
3482          "    Windows applications are allowed to use higher native       "\
3483          "    priorities. However, with ThreadPriorityPolicy=0, VM will   "\
3484          "    not use the highest possible native priority,               "\
3485          "    THREAD_PRIORITY_TIME_CRITICAL, as it may interfere with     "\
3486          "    system threads. On Linux thread priorities are ignored      "\
3487          "    because the OS does not support static priority in          "\
3488          "    SCHED_OTHER scheduling class which is the only choice for   "\
3489          "    non-root, non-realtime applications.                        "\
3490          "1 : Aggressive.                                                 "\
3491          "    Java thread priorities map over to the entire range of      "\
3492          "    native thread priorities. Higher Java thread priorities map "\
3493          "    to higher native thread priorities. This policy should be   "\
3494          "    used with care, as sometimes it can cause performance       "\
3495          "    degradation in the application and/or the entire system. On "\
3496          "    Linux this policy requires root privilege.")                 \
3497                                                                            \
3498  product(bool, ThreadPriorityVerbose, false,                               \
3499          "Print priority changes")                                         \
3500                                                                            \
3501  product(intx, DefaultThreadPriority, -1,                                  \
3502          "The native priority at which threads run if not elsewhere "      \
3503          "specified (-1 means no change)")                                 \
3504                                                                            \
3505  product(intx, CompilerThreadPriority, -1,                                 \
3506          "The native priority at which compiler threads should run "       \
3507          "(-1 means no change)")                                           \
3508                                                                            \
3509  product(intx, VMThreadPriority, -1,                                       \
3510          "The native priority at which the VM thread should run "          \
3511          "(-1 means no change)")                                           \
3512                                                                            \
3513  product(bool, CompilerThreadHintNoPreempt, true,                          \
3514          "(Solaris only) Give compiler threads an extra quanta")           \
3515                                                                            \
3516  product(bool, VMThreadHintNoPreempt, false,                               \
3517          "(Solaris only) Give VM thread an extra quanta")                  \
3518                                                                            \
3519  product(intx, JavaPriority1_To_OSPriority, -1,                            \
3520          "Map Java priorities to OS priorities")                           \
3521                                                                            \
3522  product(intx, JavaPriority2_To_OSPriority, -1,                            \
3523          "Map Java priorities to OS priorities")                           \
3524                                                                            \
3525  product(intx, JavaPriority3_To_OSPriority, -1,                            \
3526          "Map Java priorities to OS priorities")                           \
3527                                                                            \
3528  product(intx, JavaPriority4_To_OSPriority, -1,                            \
3529          "Map Java priorities to OS priorities")                           \
3530                                                                            \
3531  product(intx, JavaPriority5_To_OSPriority, -1,                            \
3532          "Map Java priorities to OS priorities")                           \
3533                                                                            \
3534  product(intx, JavaPriority6_To_OSPriority, -1,                            \
3535          "Map Java priorities to OS priorities")                           \
3536                                                                            \
3537  product(intx, JavaPriority7_To_OSPriority, -1,                            \
3538          "Map Java priorities to OS priorities")                           \
3539                                                                            \
3540  product(intx, JavaPriority8_To_OSPriority, -1,                            \
3541          "Map Java priorities to OS priorities")                           \
3542                                                                            \
3543  product(intx, JavaPriority9_To_OSPriority, -1,                            \
3544          "Map Java priorities to OS priorities")                           \
3545                                                                            \
3546  product(intx, JavaPriority10_To_OSPriority,-1,                            \
3547          "Map Java priorities to OS priorities")                           \
3548                                                                            \
3549  experimental(bool, UseCriticalJavaThreadPriority, false,                  \
3550          "Java thread priority 10 maps to critical scheduling priority")   \
3551                                                                            \
3552  experimental(bool, UseCriticalCompilerThreadPriority, false,              \
3553          "Compiler thread(s) run at critical scheduling priority")         \
3554                                                                            \
3555  experimental(bool, UseCriticalCMSThreadPriority, false,                   \
3556          "ConcurrentMarkSweep thread runs at critical scheduling priority")\
3557                                                                            \
3558  /* compiler debugging */                                                  \
3559  notproduct(intx, CompileTheWorldStartAt,     1,                           \
3560          "First class to consider when using +CompileTheWorld")            \
3561                                                                            \
3562  notproduct(intx, CompileTheWorldStopAt, max_jint,                         \
3563          "Last class to consider when using +CompileTheWorld")             \
3564                                                                            \
3565  develop(intx, NewCodeParameter,      0,                                   \
3566          "Testing Only: Create a dedicated integer parameter before "      \
3567          "putback")                                                        \
3568                                                                            \
3569  /* new oopmap storage allocation */                                       \
3570  develop(intx, MinOopMapAllocation,     8,                                 \
3571          "Minimum number of OopMap entries in an OopMapSet")               \
3572                                                                            \
3573  /* Background Compilation */                                              \
3574  develop(intx, LongCompileThreshold,     50,                               \
3575          "Used with +TraceLongCompiles")                                   \
3576                                                                            \
3577  product(intx, StarvationMonitorInterval,    200,                          \
3578          "Pause between each check (in milliseconds)")                     \
3579                                                                            \
3580  /* recompilation */                                                       \
3581  product_pd(intx, CompileThreshold,                                        \
3582          "number of interpreted method invocations before (re-)compiling") \
3583                                                                            \
3584  product(double, CompileThresholdScaling, 1.0,                             \
3585          "Factor to control when first compilation happens "               \
3586          "(both with and without tiered compilation)")                     \
3587                                                                            \
3588  product(intx, Tier0InvokeNotifyFreqLog, 7,                                \
3589          "Interpreter (tier 0) invocation notification frequency")         \
3590                                                                            \
3591  product(intx, Tier2InvokeNotifyFreqLog, 11,                               \
3592          "C1 without MDO (tier 2) invocation notification frequency")      \
3593                                                                            \
3594  product(intx, Tier3InvokeNotifyFreqLog, 10,                               \
3595          "C1 with MDO profiling (tier 3) invocation notification "         \
3596          "frequency")                                                      \
3597                                                                            \
3598  product(intx, Tier23InlineeNotifyFreqLog, 20,                             \
3599          "Inlinee invocation (tiers 2 and 3) notification frequency")      \
3600                                                                            \
3601  product(intx, Tier0BackedgeNotifyFreqLog, 10,                             \
3602          "Interpreter (tier 0) invocation notification frequency")         \
3603                                                                            \
3604  product(intx, Tier2BackedgeNotifyFreqLog, 14,                             \
3605          "C1 without MDO (tier 2) invocation notification frequency")      \
3606                                                                            \
3607  product(intx, Tier3BackedgeNotifyFreqLog, 13,                             \
3608          "C1 with MDO profiling (tier 3) invocation notification "         \
3609          "frequency")                                                      \
3610                                                                            \
3611  product(intx, Tier2CompileThreshold, 0,                                   \
3612          "threshold at which tier 2 compilation is invoked")               \
3613                                                                            \
3614  product(intx, Tier2BackEdgeThreshold, 0,                                  \
3615          "Back edge threshold at which tier 2 compilation is invoked")     \
3616                                                                            \
3617  product(intx, Tier3InvocationThreshold, 200,                              \
3618          "Compile if number of method invocations crosses this "           \
3619          "threshold")                                                      \
3620                                                                            \
3621  product(intx, Tier3MinInvocationThreshold, 100,                           \
3622          "Minimum invocation to compile at tier 3")                        \
3623                                                                            \
3624  product(intx, Tier3CompileThreshold, 2000,                                \
3625          "Threshold at which tier 3 compilation is invoked (invocation "   \
3626          "minimum must be satisfied")                                      \
3627                                                                            \
3628  product(intx, Tier3BackEdgeThreshold,  60000,                             \
3629          "Back edge threshold at which tier 3 OSR compilation is invoked") \
3630                                                                            \
3631  product(intx, Tier4InvocationThreshold, 5000,                             \
3632          "Compile if number of method invocations crosses this "           \
3633          "threshold")                                                      \
3634                                                                            \
3635  product(intx, Tier4MinInvocationThreshold, 600,                           \
3636          "Minimum invocation to compile at tier 4")                        \
3637                                                                            \
3638  product(intx, Tier4CompileThreshold, 15000,                               \
3639          "Threshold at which tier 4 compilation is invoked (invocation "   \
3640          "minimum must be satisfied")                                      \
3641                                                                            \
3642  product(intx, Tier4BackEdgeThreshold, 40000,                              \
3643          "Back edge threshold at which tier 4 OSR compilation is invoked") \
3644                                                                            \
3645  product(intx, Tier3DelayOn, 5,                                            \
3646          "If C2 queue size grows over this amount per compiler thread "    \
3647          "stop compiling at tier 3 and start compiling at tier 2")         \
3648                                                                            \
3649  product(intx, Tier3DelayOff, 2,                                           \
3650          "If C2 queue size is less than this amount per compiler thread "  \
3651          "allow methods compiled at tier 2 transition to tier 3")          \
3652                                                                            \
3653  product(intx, Tier3LoadFeedback, 5,                                       \
3654          "Tier 3 thresholds will increase twofold when C1 queue size "     \
3655          "reaches this amount per compiler thread")                        \
3656                                                                            \
3657  product(intx, Tier4LoadFeedback, 3,                                       \
3658          "Tier 4 thresholds will increase twofold when C2 queue size "     \
3659          "reaches this amount per compiler thread")                        \
3660                                                                            \
3661  product(intx, TieredCompileTaskTimeout, 50,                               \
3662          "Kill compile task if method was not used within "                \
3663          "given timeout in milliseconds")                                  \
3664                                                                            \
3665  product(intx, TieredStopAtLevel, 4,                                       \
3666          "Stop at given compilation level")                                \
3667                                                                            \
3668  product(intx, Tier0ProfilingStartPercentage, 200,                         \
3669          "Start profiling in interpreter if the counters exceed tier 3 "   \
3670          "thresholds by the specified percentage")                         \
3671                                                                            \
3672  product(uintx, IncreaseFirstTierCompileThresholdAt, 50,                   \
3673          "Increase the compile threshold for C1 compilation if the code "  \
3674          "cache is filled by the specified percentage")                    \
3675                                                                            \
3676  product(intx, TieredRateUpdateMinTime, 1,                                 \
3677          "Minimum rate sampling interval (in milliseconds)")               \
3678                                                                            \
3679  product(intx, TieredRateUpdateMaxTime, 25,                                \
3680          "Maximum rate sampling interval (in milliseconds)")               \
3681                                                                            \
3682  product_pd(bool, TieredCompilation,                                       \
3683          "Enable tiered compilation")                                      \
3684                                                                            \
3685  product(bool, PrintTieredEvents, false,                                   \
3686          "Print tiered events notifications")                              \
3687                                                                            \
3688  product_pd(intx, OnStackReplacePercentage,                                \
3689          "NON_TIERED number of method invocations/branches (expressed as " \
3690          "% of CompileThreshold) before (re-)compiling OSR code")          \
3691                                                                            \
3692  product(intx, InterpreterProfilePercentage, 33,                           \
3693          "NON_TIERED number of method invocations/branches (expressed as " \
3694          "% of CompileThreshold) before profiling in the interpreter")     \
3695                                                                            \
3696  develop(intx, MaxRecompilationSearchLength,    10,                        \
3697          "The maximum number of frames to inspect when searching for "     \
3698          "recompilee")                                                     \
3699                                                                            \
3700  develop(intx, MaxInterpretedSearchLength,     3,                          \
3701          "The maximum number of interpreted frames to skip when searching "\
3702          "for recompilee")                                                 \
3703                                                                            \
3704  develop(intx, DesiredMethodLimit,  8000,                                  \
3705          "The desired maximum method size (in bytecodes) after inlining")  \
3706                                                                            \
3707  develop(intx, HugeMethodLimit,  8000,                                     \
3708          "Don't compile methods larger than this if "                      \
3709          "+DontCompileHugeMethods")                                        \
3710                                                                            \
3711  /* New JDK 1.4 reflection implementation */                               \
3712                                                                            \
3713  develop(intx, FastSuperclassLimit, 8,                                     \
3714          "Depth of hardwired instanceof accelerator array")                \
3715                                                                            \
3716  /* Properties for Java libraries  */                                      \
3717                                                                            \
3718  product(uintx, MaxDirectMemorySize, 0,                                    \
3719          "Maximum total size of NIO direct-buffer allocations")            \
3720                                                                            \
3721  /* Flags used for temporary code during development  */                   \
3722                                                                            \
3723  diagnostic(bool, UseNewCode, false,                                       \
3724          "Testing Only: Use the new version while testing")                \
3725                                                                            \
3726  diagnostic(bool, UseNewCode2, false,                                      \
3727          "Testing Only: Use the new version while testing")                \
3728                                                                            \
3729  diagnostic(bool, UseNewCode3, false,                                      \
3730          "Testing Only: Use the new version while testing")                \
3731                                                                            \
3732  /* flags for performance data collection */                               \
3733                                                                            \
3734  product(bool, UsePerfData, falseInEmbedded,                               \
3735          "Flag to disable jvmstat instrumentation for performance testing "\
3736          "and problem isolation purposes")                                 \
3737                                                                            \
3738  product(bool, PerfDataSaveToFile, false,                                  \
3739          "Save PerfData memory to hsperfdata_<pid> file on exit")          \
3740                                                                            \
3741  product(ccstr, PerfDataSaveFile, NULL,                                    \
3742          "Save PerfData memory to the specified absolute pathname. "       \
3743          "The string %p in the file name (if present) "                    \
3744          "will be replaced by pid")                                        \
3745                                                                            \
3746  product(intx, PerfDataSamplingInterval, 50,                               \
3747          "Data sampling interval (in milliseconds)")                       \
3748                                                                            \
3749  develop(bool, PerfTraceDataCreation, false,                               \
3750          "Trace creation of Performance Data Entries")                     \
3751                                                                            \
3752  develop(bool, PerfTraceMemOps, false,                                     \
3753          "Trace PerfMemory create/attach/detach calls")                    \
3754                                                                            \
3755  product(bool, PerfDisableSharedMem, false,                                \
3756          "Store performance data in standard memory")                      \
3757                                                                            \
3758  product(intx, PerfDataMemorySize, 32*K,                                   \
3759          "Size of performance data memory region. Will be rounded "        \
3760          "up to a multiple of the native os page size.")                   \
3761                                                                            \
3762  product(intx, PerfMaxStringConstLength, 1024,                             \
3763          "Maximum PerfStringConstant string length before truncation")     \
3764                                                                            \
3765  product(bool, PerfAllowAtExitRegistration, false,                         \
3766          "Allow registration of atexit() methods")                         \
3767                                                                            \
3768  product(bool, PerfBypassFileSystemCheck, false,                           \
3769          "Bypass Win32 file system criteria checks (Windows Only)")        \
3770                                                                            \
3771  product(intx, UnguardOnExecutionViolation, 0,                             \
3772          "Unguard page and retry on no-execute fault (Win32 only) "        \
3773          "0=off, 1=conservative, 2=aggressive")                            \
3774                                                                            \
3775  /* Serviceability Support */                                              \
3776                                                                            \
3777  product(bool, ManagementServer, false,                                    \
3778          "Create JMX Management Server")                                   \
3779                                                                            \
3780  product(bool, DisableAttachMechanism, false,                              \
3781          "Disable mechanism that allows tools to attach to this VM")       \
3782                                                                            \
3783  product(bool, StartAttachListener, false,                                 \
3784          "Always start Attach Listener at VM startup")                     \
3785                                                                            \
3786  manageable(bool, PrintConcurrentLocks, false,                             \
3787          "Print java.util.concurrent locks in thread dump")                \
3788                                                                            \
3789  product(bool, TransmitErrorReport, false,                                 \
3790          "Enable error report transmission on erroneous termination")      \
3791                                                                            \
3792  product(ccstr, ErrorReportServer, NULL,                                   \
3793          "Override built-in error report server address")                  \
3794                                                                            \
3795  /* Shared spaces */                                                       \
3796                                                                            \
3797  product(bool, UseSharedSpaces, true,                                      \
3798          "Use shared spaces for metadata")                                 \
3799                                                                            \
3800  product(bool, RequireSharedSpaces, false,                                 \
3801          "Require shared spaces for metadata")                             \
3802                                                                            \
3803  product(bool, DumpSharedSpaces, false,                                    \
3804          "Special mode: JVM reads a class list, loads classes, builds "    \
3805          "shared spaces, and dumps the shared spaces to a file to be "     \
3806          "used in future JVM runs")                                        \
3807                                                                            \
3808  product(bool, PrintSharedSpaces, false,                                   \
3809          "Print usage of shared spaces")                                   \
3810                                                                            \
3811  product(bool, PrintSharedArchiveAndExit, false,                           \
3812          "Print shared archive file contents")                             \
3813                                                                            \
3814  product(bool, PrintSharedDictionary, false,                               \
3815          "If PrintSharedArchiveAndExit is true, also print the shared "    \
3816          "dictionary")                                                     \
3817                                                                            \
3818  product(uintx, SharedReadWriteSize,  NOT_LP64(12*M) LP64_ONLY(16*M),      \
3819          "Size of read-write space for metadata (in bytes)")               \
3820                                                                            \
3821  product(uintx, SharedReadOnlySize,  NOT_LP64(12*M) LP64_ONLY(16*M),       \
3822          "Size of read-only space for metadata (in bytes)")                \
3823                                                                            \
3824  product(uintx, SharedMiscDataSize,    NOT_LP64(2*M) LP64_ONLY(4*M),       \
3825          "Size of the shared miscellaneous data area (in bytes)")          \
3826                                                                            \
3827  product(uintx, SharedMiscCodeSize,    120*K,                              \
3828          "Size of the shared miscellaneous code area (in bytes)")          \
3829                                                                            \
3830  product(uintx, SharedBaseAddress, LP64_ONLY(32*G)                         \
3831          NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)),                           \
3832          "Address to allocate shared memory region for class data")        \
3833                                                                            \
3834  diagnostic(bool, IgnoreUnverifiableClassesDuringDump, false,              \
3835          "Do not quit -Xshare:dump even if we encounter unverifiable "     \
3836          "classes. Just exclude them from the shared dictionary.")         \
3837                                                                            \
3838  diagnostic(bool, PrintMethodHandleStubs, false,                           \
3839          "Print generated stub code for method handles")                   \
3840                                                                            \
3841  develop(bool, TraceMethodHandles, false,                                  \
3842          "trace internal method handle operations")                        \
3843                                                                            \
3844  diagnostic(bool, VerifyMethodHandles, trueInDebug,                        \
3845          "perform extra checks when constructing method handles")          \
3846                                                                            \
3847  diagnostic(bool, ShowHiddenFrames, false,                                 \
3848          "show method handle implementation frames (usually hidden)")      \
3849                                                                            \
3850  experimental(bool, TrustFinalNonStaticFields, false,                      \
3851          "trust final non-static declarations for constant folding")       \
3852                                                                            \
3853  diagnostic(bool, FoldStableValues, true,                                  \
3854          "Optimize loads from stable fields (marked w/ @Stable)")          \
3855                                                                            \
3856  develop(bool, TraceInvokeDynamic, false,                                  \
3857          "trace internal invoke dynamic operations")                       \
3858                                                                            \
3859  diagnostic(bool, PauseAtStartup,      false,                              \
3860          "Causes the VM to pause at startup time and wait for the pause "  \
3861          "file to be removed (default: ./vm.paused.<pid>)")                \
3862                                                                            \
3863  diagnostic(ccstr, PauseAtStartupFile, NULL,                               \
3864          "The file to create and for whose removal to await when pausing " \
3865          "at startup. (default: ./vm.paused.<pid>)")                       \
3866                                                                            \
3867  diagnostic(bool, PauseAtExit, false,                                      \
3868          "Pause and wait for keypress on exit if a debugger is attached")  \
3869                                                                            \
3870  product(bool, ExtendedDTraceProbes,    false,                             \
3871          "Enable performance-impacting dtrace probes")                     \
3872                                                                            \
3873  product(bool, DTraceMethodProbes, false,                                  \
3874          "Enable dtrace probes for method-entry and method-exit")          \
3875                                                                            \
3876  product(bool, DTraceAllocProbes, false,                                   \
3877          "Enable dtrace probes for object allocation")                     \
3878                                                                            \
3879  product(bool, DTraceMonitorProbes, false,                                 \
3880          "Enable dtrace probes for monitor events")                        \
3881                                                                            \
3882  product(bool, RelaxAccessControlCheck, false,                             \
3883          "Relax the access control checks in the verifier")                \
3884                                                                            \
3885  diagnostic(bool, PrintDTraceDOF, false,                                   \
3886          "Print the DTrace DOF passed to the system for JSDT probes")      \
3887                                                                            \
3888  product(uintx, StringTableSize, defaultStringTableSize,                   \
3889          "Number of buckets in the interned String table")                 \
3890                                                                            \
3891  experimental(uintx, SymbolTableSize, defaultSymbolTableSize,              \
3892          "Number of buckets in the JVM internal Symbol table")             \
3893                                                                            \
3894  product(bool, UseStringDeduplication, false,                              \
3895          "Use string deduplication")                                       \
3896                                                                            \
3897  product(bool, PrintStringDeduplicationStatistics, false,                  \
3898          "Print string deduplication statistics")                          \
3899                                                                            \
3900  product(uintx, StringDeduplicationAgeThreshold, 3,                        \
3901          "A string must reach this age (or be promoted to an old region) " \
3902          "to be considered for deduplication")                             \
3903                                                                            \
3904  diagnostic(bool, StringDeduplicationResizeALot, false,                    \
3905          "Force table resize every time the table is scanned")             \
3906                                                                            \
3907  diagnostic(bool, StringDeduplicationRehashALot, false,                    \
3908          "Force table rehash every time the table is scanned")             \
3909                                                                            \
3910  develop(bool, TraceDefaultMethods, false,                                 \
3911          "Trace the default method processing steps")                      \
3912                                                                            \
3913  develop(bool, VerifyGenericSignatures, false,                             \
3914          "Abort VM on erroneous or inconsistent generic signatures")       \
3915                                                                            \
3916  diagnostic(bool, WhiteBoxAPI, false,                                      \
3917          "Enable internal testing APIs")                                   \
3918                                                                            \
3919  product(bool, PrintGCCause, true,                                         \
3920          "Include GC cause in GC logging")                                 \
3921                                                                            \
3922  experimental(intx, SurvivorAlignmentInBytes, 0,                           \
3923           "Default survivor space alignment in bytes")                     \
3924                                                                            \
3925  product(bool , AllowNonVirtualCalls, false,                               \
3926          "Obey the ACC_SUPER flag and allow invokenonvirtual calls")       \
3927                                                                            \
3928  product(ccstr, DumpLoadedClassList, NULL,                                 \
3929          "Dump the names all loaded classes, that could be stored into "   \
3930          "the CDS archive, in the specified file")                         \
3931                                                                            \
3932  product(ccstr, SharedClassListFile, NULL,                                 \
3933          "Override the default CDS class list")                            \
3934                                                                            \
3935  diagnostic(ccstr, SharedArchiveFile, NULL,                                \
3936          "Override the default location of the CDS archive file")          \
3937                                                                            \
3938  product(ccstr, ExtraSharedClassListFile, NULL,                            \
3939          "Extra classlist for building the CDS archive file")              \
3940                                                                            \
3941  experimental(size_t, ArrayAllocatorMallocLimit,                           \
3942          SOLARIS_ONLY(64*K) NOT_SOLARIS((size_t)-1),                       \
3943          "Allocation less than this value will be allocated "              \
3944          "using malloc. Larger allocations will use mmap.")                \
3945                                                                            \
3946  experimental(bool, AlwaysAtomicAccesses, false,                           \
3947          "Accesses to all variables should always be atomic")              \
3948                                                                            \
3949  product(bool, EnableTracing, false,                                       \
3950          "Enable event-based tracing")                                     \
3951                                                                            \
3952  product(bool, UseLockedTracing, false,                                    \
3953          "Use locked-tracing when doing event-based tracing")
3954
3955/*
3956 *  Macros for factoring of globals
3957 */
3958
3959// Interface macros
3960#define DECLARE_PRODUCT_FLAG(type, name, value, doc)      extern "C" type name;
3961#define DECLARE_PD_PRODUCT_FLAG(type, name, doc)          extern "C" type name;
3962#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc)   extern "C" type name;
3963#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
3964#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc)   extern "C" type name;
3965#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc)   extern "C" type name;
3966#ifdef PRODUCT
3967#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)    extern "C" type CONST_##name; const type name = value;
3968#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)        extern "C" type CONST_##name; const type name = pd_##name;
3969#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)   extern "C" type CONST_##name;
3970#else
3971#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)    extern "C" type name;
3972#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)        extern "C" type name;
3973#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)   extern "C" type name;
3974#endif
3975// Special LP64 flags, product only needed for now.
3976#ifdef _LP64
3977#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
3978#else
3979#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value;
3980#endif // _LP64
3981
3982// Implementation macros
3983#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc)      type name = value;
3984#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc)          type name = pd_##name;
3985#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc)   type name = value;
3986#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value;
3987#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc)   type name = value;
3988#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc)   type name = value;
3989#ifdef PRODUCT
3990#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc)    type CONST_##name = value;
3991#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)        type CONST_##name = pd_##name;
3992#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)   type CONST_##name = value;
3993#else
3994#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc)    type name = value;
3995#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)        type name = pd_##name;
3996#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)   type name = value;
3997#endif
3998#ifdef _LP64
3999#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value;
4000#else
4001#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */
4002#endif // _LP64
4003
4004RUNTIME_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)
4005
4006RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)
4007
4008ARCH_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG)
4009
4010// Extensions
4011
4012#include "runtime/globals_ext.hpp"
4013
4014#endif // SHARE_VM_RUNTIME_GLOBALS_HPP
4015