globals.hpp revision 8673:964fb44d9669
160484Sobrien/*
260484Sobrien * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
360484Sobrien * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
460484Sobrien *
560484Sobrien * This code is free software; you can redistribute it and/or modify it
660484Sobrien * under the terms of the GNU General Public License version 2 only, as
760484Sobrien * published by the Free Software Foundation.
860484Sobrien *
960484Sobrien * This code is distributed in the hope that it will be useful, but WITHOUT
1060484Sobrien * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1160484Sobrien * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1260484Sobrien * version 2 for more details (a copy is included in the LICENSE file that
1360484Sobrien * accompanied this code).
1460484Sobrien *
1560484Sobrien * You should have received a copy of the GNU General Public License version
1660484Sobrien * 2 along with this work; if not, write to the Free Software Foundation,
1760484Sobrien * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1860484Sobrien *
1960484Sobrien * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2060484Sobrien * or visit www.oracle.com if you need additional information or have any
2160484Sobrien * questions.
2260484Sobrien *
2360484Sobrien */
2460484Sobrien
2560484Sobrien#ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
2660484Sobrien#define SHARE_VM_RUNTIME_GLOBALS_HPP
2760484Sobrien
2860484Sobrien#include "utilities/debug.hpp"
2960484Sobrien
3060484Sobrien// use this for flags that are true per default in the tiered build
3160484Sobrien// but false in non-tiered builds, and vice versa
3260484Sobrien#ifdef TIERED
3360484Sobrien#define  trueInTiered true
3460484Sobrien#define falseInTiered false
3560484Sobrien#else
3660484Sobrien#define  trueInTiered false
3760484Sobrien#define falseInTiered true
3860484Sobrien#endif
3960484Sobrien
4060484Sobrien#ifdef TARGET_ARCH_x86
4160484Sobrien# include "globals_x86.hpp"
4260484Sobrien#endif
4360484Sobrien#ifdef TARGET_ARCH_sparc
4460484Sobrien# include "globals_sparc.hpp"
4560484Sobrien#endif
4660484Sobrien#ifdef TARGET_ARCH_zero
4760484Sobrien# include "globals_zero.hpp"
4860484Sobrien#endif
4960484Sobrien#ifdef TARGET_ARCH_arm
5060484Sobrien# include "globals_arm.hpp"
5160484Sobrien#endif
5260484Sobrien#ifdef TARGET_ARCH_ppc
5360484Sobrien# include "globals_ppc.hpp"
5460484Sobrien#endif
5560484Sobrien#ifdef TARGET_ARCH_aarch64
5660484Sobrien# include "globals_aarch64.hpp"
5760484Sobrien#endif
5860484Sobrien#ifdef TARGET_OS_FAMILY_linux
5960484Sobrien# include "globals_linux.hpp"
6060484Sobrien#endif
6160484Sobrien#ifdef TARGET_OS_FAMILY_solaris
6260484Sobrien# include "globals_solaris.hpp"
6360484Sobrien#endif
6460484Sobrien#ifdef TARGET_OS_FAMILY_windows
6560484Sobrien# include "globals_windows.hpp"
6660484Sobrien#endif
6760484Sobrien#ifdef TARGET_OS_FAMILY_aix
6860484Sobrien# include "globals_aix.hpp"
6960484Sobrien#endif
7060484Sobrien#ifdef TARGET_OS_FAMILY_bsd
7160484Sobrien# include "globals_bsd.hpp"
7260484Sobrien#endif
7360484Sobrien#ifdef TARGET_OS_ARCH_linux_x86
7460484Sobrien# include "globals_linux_x86.hpp"
7560484Sobrien#endif
7660484Sobrien#ifdef TARGET_OS_ARCH_linux_sparc
7760484Sobrien# include "globals_linux_sparc.hpp"
7860484Sobrien#endif
7960484Sobrien#ifdef TARGET_OS_ARCH_linux_zero
8060484Sobrien# include "globals_linux_zero.hpp"
8160484Sobrien#endif
8260484Sobrien#ifdef TARGET_OS_ARCH_solaris_x86
8360484Sobrien# include "globals_solaris_x86.hpp"
8460484Sobrien#endif
8560484Sobrien#ifdef TARGET_OS_ARCH_solaris_sparc
8660484Sobrien# include "globals_solaris_sparc.hpp"
8760484Sobrien#endif
8860484Sobrien#ifdef TARGET_OS_ARCH_windows_x86
8960484Sobrien# include "globals_windows_x86.hpp"
9060484Sobrien#endif
9160484Sobrien#ifdef TARGET_OS_ARCH_linux_arm
9260484Sobrien# include "globals_linux_arm.hpp"
9360484Sobrien#endif
9460484Sobrien#ifdef TARGET_OS_ARCH_linux_ppc
9560484Sobrien# include "globals_linux_ppc.hpp"
9660484Sobrien#endif
9760484Sobrien#ifdef TARGET_OS_ARCH_linux_aarch64
9860484Sobrien# include "globals_linux_aarch64.hpp"
9960484Sobrien#endif
10060484Sobrien#ifdef TARGET_OS_ARCH_aix_ppc
10160484Sobrien# include "globals_aix_ppc.hpp"
10260484Sobrien#endif
10360484Sobrien#ifdef TARGET_OS_ARCH_bsd_x86
10460484Sobrien# include "globals_bsd_x86.hpp"
10560484Sobrien#endif
10660484Sobrien#ifdef TARGET_OS_ARCH_bsd_zero
10760484Sobrien# include "globals_bsd_zero.hpp"
10860484Sobrien#endif
10960484Sobrien#ifdef COMPILER1
11060484Sobrien#ifdef TARGET_ARCH_x86
11160484Sobrien# include "c1_globals_x86.hpp"
11260484Sobrien#endif
11360484Sobrien#ifdef TARGET_ARCH_sparc
11460484Sobrien# include "c1_globals_sparc.hpp"
11560484Sobrien#endif
11660484Sobrien#ifdef TARGET_ARCH_arm
11760484Sobrien# include "c1_globals_arm.hpp"
11860484Sobrien#endif
11960484Sobrien#ifdef TARGET_ARCH_aarch64
12060484Sobrien# include "c1_globals_aarch64.hpp"
12160484Sobrien#endif
12260484Sobrien#ifdef TARGET_OS_FAMILY_linux
12360484Sobrien# include "c1_globals_linux.hpp"
12460484Sobrien#endif
12560484Sobrien#ifdef TARGET_OS_FAMILY_solaris
12660484Sobrien# include "c1_globals_solaris.hpp"
12760484Sobrien#endif
12860484Sobrien#ifdef TARGET_OS_FAMILY_windows
12960484Sobrien# include "c1_globals_windows.hpp"
13060484Sobrien#endif
13160484Sobrien#ifdef TARGET_OS_FAMILY_aix
13260484Sobrien# include "c1_globals_aix.hpp"
13360484Sobrien#endif
13460484Sobrien#ifdef TARGET_OS_FAMILY_bsd
13560484Sobrien# include "c1_globals_bsd.hpp"
13660484Sobrien#endif
13760484Sobrien#ifdef TARGET_ARCH_ppc
13860484Sobrien# include "c1_globals_ppc.hpp"
13960484Sobrien#endif
14060484Sobrien#endif
14160484Sobrien#ifdef COMPILER2
14260484Sobrien#ifdef TARGET_ARCH_x86
14360484Sobrien# include "c2_globals_x86.hpp"
14460484Sobrien#endif
14560484Sobrien#ifdef TARGET_ARCH_sparc
14660484Sobrien# include "c2_globals_sparc.hpp"
14760484Sobrien#endif
14860484Sobrien#ifdef TARGET_ARCH_arm
14960484Sobrien# include "c2_globals_arm.hpp"
15060484Sobrien#endif
15160484Sobrien#ifdef TARGET_ARCH_ppc
15260484Sobrien# include "c2_globals_ppc.hpp"
15360484Sobrien#endif
15460484Sobrien#ifdef TARGET_ARCH_aarch64
15560484Sobrien# include "c2_globals_aarch64.hpp"
15660484Sobrien#endif
15760484Sobrien#ifdef TARGET_OS_FAMILY_linux
15860484Sobrien# include "c2_globals_linux.hpp"
15960484Sobrien#endif
16060484Sobrien#ifdef TARGET_OS_FAMILY_solaris
16160484Sobrien# include "c2_globals_solaris.hpp"
16260484Sobrien#endif
16360484Sobrien#ifdef TARGET_OS_FAMILY_windows
16460484Sobrien# include "c2_globals_windows.hpp"
16560484Sobrien#endif
16660484Sobrien#ifdef TARGET_OS_FAMILY_aix
16760484Sobrien# include "c2_globals_aix.hpp"
16860484Sobrien#endif
16960484Sobrien#ifdef TARGET_OS_FAMILY_bsd
17060484Sobrien# include "c2_globals_bsd.hpp"
17160484Sobrien#endif
17260484Sobrien#endif
17360484Sobrien#ifdef SHARK
17460484Sobrien#ifdef TARGET_ARCH_zero
17560484Sobrien# include "shark_globals_zero.hpp"
17660484Sobrien#endif
17760484Sobrien#endif
17860484Sobrien
17960484Sobrien#if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK)
18060484Sobriendefine_pd_global(bool, BackgroundCompilation,        false);
18160484Sobriendefine_pd_global(bool, UseTLAB,                      false);
18260484Sobriendefine_pd_global(bool, CICompileOSR,                 false);
18360484Sobriendefine_pd_global(bool, UseTypeProfile,               false);
18460484Sobriendefine_pd_global(bool, UseOnStackReplacement,        false);
18560484Sobriendefine_pd_global(bool, InlineIntrinsics,             false);
18660484Sobriendefine_pd_global(bool, PreferInterpreterNativeStubs, true);
18760484Sobriendefine_pd_global(bool, ProfileInterpreter,           false);
18860484Sobriendefine_pd_global(bool, ProfileTraps,                 false);
18960484Sobriendefine_pd_global(bool, TieredCompilation,            false);
19060484Sobrien
19160484Sobriendefine_pd_global(intx, CompileThreshold,             0);
19260484Sobrien
19360484Sobriendefine_pd_global(intx, OnStackReplacePercentage,     0);
19460484Sobriendefine_pd_global(bool, ResizeTLAB,                   false);
19560484Sobriendefine_pd_global(intx, FreqInlineSize,               0);
19660484Sobriendefine_pd_global(size_t, NewSizeThreadIncrease,      4*K);
19760484Sobriendefine_pd_global(intx, InlineClassNatives,           true);
19860484Sobriendefine_pd_global(intx, InlineUnsafeOps,              true);
19960484Sobriendefine_pd_global(intx, InitialCodeCacheSize,         160*K);
20060484Sobriendefine_pd_global(intx, ReservedCodeCacheSize,        32*M);
20160484Sobriendefine_pd_global(intx, NonProfiledCodeHeapSize,      0);
20260484Sobriendefine_pd_global(intx, ProfiledCodeHeapSize,         0);
20360484Sobriendefine_pd_global(intx, NonNMethodCodeHeapSize,       32*M);
20460484Sobrien
20560484Sobriendefine_pd_global(intx, CodeCacheExpansionSize,       32*K);
20660484Sobriendefine_pd_global(intx, CodeCacheMinBlockLength,      1);
20760484Sobriendefine_pd_global(intx, CodeCacheMinimumUseSpace,     200*K);
20860484Sobriendefine_pd_global(size_t, MetaspaceSize,              ScaleForWordSize(4*M));
20960484Sobriendefine_pd_global(bool, NeverActAsServerClassMachine, true);
21060484Sobriendefine_pd_global(uint64_t,MaxRAM,                    1ULL*G);
21160484Sobrien#define CI_COMPILER_COUNT 0
21260484Sobrien#else
21360484Sobrien
21460484Sobrien#ifdef COMPILER2
21560484Sobrien#define CI_COMPILER_COUNT 2
21660484Sobrien#else
21760484Sobrien#define CI_COMPILER_COUNT 1
21860484Sobrien#endif // COMPILER2
21960484Sobrien
22060484Sobrien#endif // no compilers
22160484Sobrien
22260484Sobrien// string type aliases used only in this file
22360484Sobrientypedef const char* ccstr;
22460484Sobrientypedef const char* ccstrlist;   // represents string arguments which accumulate
22560484Sobrien
22660484Sobrienstruct Flag {
22760484Sobrien  enum Flags {
22860484Sobrien    // value origin
22960484Sobrien    DEFAULT          = 0,
23060484Sobrien    COMMAND_LINE     = 1,
23160484Sobrien    ENVIRON_VAR      = 2,
23260484Sobrien    CONFIG_FILE      = 3,
23360484Sobrien    MANAGEMENT       = 4,
23460484Sobrien    ERGONOMIC        = 5,
23560484Sobrien    ATTACH_ON_DEMAND = 6,
23660484Sobrien    INTERNAL         = 7,
23760484Sobrien
23860484Sobrien    LAST_VALUE_ORIGIN = INTERNAL,
23960484Sobrien    VALUE_ORIGIN_BITS = 4,
24060484Sobrien    VALUE_ORIGIN_MASK = right_n_bits(VALUE_ORIGIN_BITS),
24160484Sobrien
24260484Sobrien    // flag kind
24360484Sobrien    KIND_PRODUCT            = 1 << 4,
24460484Sobrien    KIND_MANAGEABLE         = 1 << 5,
24560484Sobrien    KIND_DIAGNOSTIC         = 1 << 6,
24660484Sobrien    KIND_EXPERIMENTAL       = 1 << 7,
24760484Sobrien    KIND_NOT_PRODUCT        = 1 << 8,
24860484Sobrien    KIND_DEVELOP            = 1 << 9,
24960484Sobrien    KIND_PLATFORM_DEPENDENT = 1 << 10,
25060484Sobrien    KIND_READ_WRITE         = 1 << 11,
25160484Sobrien    KIND_C1                 = 1 << 12,
25260484Sobrien    KIND_C2                 = 1 << 13,
25360484Sobrien    KIND_ARCH               = 1 << 14,
25460484Sobrien    KIND_SHARK              = 1 << 15,
25560484Sobrien    KIND_LP64_PRODUCT       = 1 << 16,
25660484Sobrien    KIND_COMMERCIAL         = 1 << 17,
25760484Sobrien
25860484Sobrien    KIND_MASK = ~VALUE_ORIGIN_MASK
25960484Sobrien  };
26060484Sobrien
26160484Sobrien  enum Error {
26260484Sobrien    // no error
26360484Sobrien    SUCCESS = 0,
26460484Sobrien    // flag name is missing
26560484Sobrien    MISSING_NAME,
26660484Sobrien    // flag value is missing
26760484Sobrien    MISSING_VALUE,
26860484Sobrien    // error parsing the textual form of the value
26960484Sobrien    WRONG_FORMAT,
27060484Sobrien    // flag is not writeable
27160484Sobrien    NON_WRITABLE,
27260484Sobrien    // flag value is outside of its bounds
27360484Sobrien    OUT_OF_BOUNDS,
27460484Sobrien    // flag value violates its constraint
27560484Sobrien    VIOLATES_CONSTRAINT,
27660484Sobrien    // there is no flag with the given name
27760484Sobrien    INVALID_FLAG,
27860484Sobrien    // other, unspecified error related to setting the flag
27960484Sobrien    ERR_OTHER
28060484Sobrien  };
28160484Sobrien
28260484Sobrien  const char* _type;
28360484Sobrien  const char* _name;
28460484Sobrien  void* _addr;
28560484Sobrien  NOT_PRODUCT(const char* _doc;)
28660484Sobrien  Flags _flags;
28760484Sobrien
28860484Sobrien  // points to all Flags static array
28960484Sobrien  static Flag* flags;
29060484Sobrien
29160484Sobrien  // number of flags
29260484Sobrien  static size_t numFlags;
29360484Sobrien
29460484Sobrien  static Flag* find_flag(const char* name) { return find_flag(name, strlen(name), true, true); };
29560484Sobrien  static Flag* find_flag(const char* name, size_t length, bool allow_locked = false, bool return_flag = false);
29660484Sobrien  static Flag* fuzzy_match(const char* name, size_t length, bool allow_locked = false);
29760484Sobrien
29860484Sobrien  void check_writable();
29960484Sobrien
30060484Sobrien  bool is_bool() const;
30160484Sobrien  bool get_bool() const;
30260484Sobrien  void set_bool(bool value);
30360484Sobrien
30460484Sobrien  bool is_int() const;
30560484Sobrien  int get_int() const;
30660484Sobrien  void set_int(int value);
30760484Sobrien
30860484Sobrien  bool is_uint() const;
30960484Sobrien  uint get_uint() const;
31060484Sobrien  void set_uint(uint value);
31160484Sobrien
31260484Sobrien  bool is_intx() const;
31360484Sobrien  intx get_intx() const;
31460484Sobrien  void set_intx(intx value);
31560484Sobrien
31660484Sobrien  bool is_uintx() const;
31760484Sobrien  uintx get_uintx() const;
31860484Sobrien  void set_uintx(uintx value);
31960484Sobrien
32060484Sobrien  bool is_uint64_t() const;
32160484Sobrien  uint64_t get_uint64_t() const;
32260484Sobrien  void set_uint64_t(uint64_t value);
32360484Sobrien
32460484Sobrien  bool is_size_t() const;
32560484Sobrien  size_t get_size_t() const;
32660484Sobrien  void set_size_t(size_t value);
32760484Sobrien
32860484Sobrien  bool is_double() const;
32960484Sobrien  double get_double() const;
33060484Sobrien  void set_double(double value);
33160484Sobrien
33260484Sobrien  bool is_ccstr() const;
33360484Sobrien  bool ccstr_accumulates() const;
33460484Sobrien  ccstr get_ccstr() const;
33560484Sobrien  void set_ccstr(ccstr value);
33660484Sobrien
33760484Sobrien  Flags get_origin();
33860484Sobrien  void set_origin(Flags origin);
33960484Sobrien
34060484Sobrien  bool is_default();
34160484Sobrien  bool is_ergonomic();
34260484Sobrien  bool is_command_line();
34360484Sobrien
34460484Sobrien  bool is_product() const;
34560484Sobrien  bool is_manageable() const;
34660484Sobrien  bool is_diagnostic() const;
34760484Sobrien  bool is_experimental() const;
34860484Sobrien  bool is_notproduct() const;
34960484Sobrien  bool is_develop() const;
35060484Sobrien  bool is_read_write() const;
35160484Sobrien  bool is_commercial() const;
35260484Sobrien
35360484Sobrien  bool is_constant_in_binary() const;
35460484Sobrien
35560484Sobrien  bool is_unlocker() const;
35660484Sobrien  bool is_unlocked() const;
35760484Sobrien  bool is_writeable() const;
35860484Sobrien  bool is_external() const;
35960484Sobrien
36060484Sobrien  bool is_unlocker_ext() const;
36160484Sobrien  bool is_unlocked_ext() const;
36260484Sobrien  bool is_writeable_ext() const;
36360484Sobrien  bool is_external_ext() const;
36460484Sobrien
36560484Sobrien  void unlock_diagnostic();
36660484Sobrien
36760484Sobrien  void get_locked_message(char*, int) const;
36860484Sobrien  void get_locked_message_ext(char*, int) const;
36960484Sobrien
37060484Sobrien  // printRanges will print out flags type, name and range values as expected by -XX:+PrintFlagsRanges
37160484Sobrien  void print_on(outputStream* st, bool withComments = false, bool printRanges = false);
37260484Sobrien  void print_kind(outputStream* st);
37360484Sobrien  void print_as_flag(outputStream* st);
37460484Sobrien
37560484Sobrien  static const char* flag_error_str(Flag::Error error) {
37660484Sobrien    switch (error) {
37760484Sobrien      case Flag::MISSING_NAME: return "MISSING_NAME";
37860484Sobrien      case Flag::MISSING_VALUE: return "MISSING_VALUE";
37960484Sobrien      case Flag::NON_WRITABLE: return "NON_WRITABLE";
38060484Sobrien      case Flag::OUT_OF_BOUNDS: return "OUT_OF_BOUNDS";
38160484Sobrien      case Flag::VIOLATES_CONSTRAINT: return "VIOLATES_CONSTRAINT";
38260484Sobrien      case Flag::INVALID_FLAG: return "INVALID_FLAG";
38360484Sobrien      case Flag::ERR_OTHER: return "ERR_OTHER";
38460484Sobrien      case Flag::SUCCESS: return "SUCCESS";
38560484Sobrien      default: return "NULL";
38660484Sobrien    }
38760484Sobrien  }
38860484Sobrien};
38960484Sobrien
39060484Sobrien// debug flags control various aspects of the VM and are global accessible
39160484Sobrien
39260484Sobrien// use FlagSetting to temporarily change some debug flag
39360484Sobrien// e.g. FlagSetting fs(DebugThisAndThat, true);
39460484Sobrien// restored to previous value upon leaving scope
39560484Sobrienclass FlagSetting {
39660484Sobrien  bool val;
39760484Sobrien  bool* flag;
39860484Sobrien public:
39960484Sobrien  FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; }
40060484Sobrien  ~FlagSetting()                       { *flag = val; }
40160484Sobrien};
40260484Sobrien
40360484Sobrien
40460484Sobrienclass CounterSetting {
40560484Sobrien  intx* counter;
40660484Sobrien public:
40760484Sobrien  CounterSetting(intx* cnt) { counter = cnt; (*counter)++; }
40860484Sobrien  ~CounterSetting()         { (*counter)--; }
40960484Sobrien};
41060484Sobrien
41189857Sobrienclass IntFlagSetting {
41260484Sobrien  int val;
41360484Sobrien  int* flag;
41460484Sobrien public:
41560484Sobrien  IntFlagSetting(int& fl, int newValue) { flag = &fl; val = fl; fl = newValue; }
41660484Sobrien  ~IntFlagSetting()                     { *flag = val; }
41760484Sobrien};
41860484Sobrien
41960484Sobrienclass UIntFlagSetting {
42060484Sobrien  uint val;
42160484Sobrien  uint* flag;
42260484Sobrien public:
42360484Sobrien  UIntFlagSetting(uint& fl, uint newValue) { flag = &fl; val = fl; fl = newValue; }
42460484Sobrien  ~UIntFlagSetting()                       { *flag = val; }
42560484Sobrien};
42660484Sobrien
42760484Sobrienclass UIntXFlagSetting {
42860484Sobrien  uintx val;
42960484Sobrien  uintx* flag;
43060484Sobrien public:
43160484Sobrien  UIntXFlagSetting(uintx& fl, uintx newValue) { flag = &fl; val = fl; fl = newValue; }
43260484Sobrien  ~UIntXFlagSetting()                         { *flag = val; }
43360484Sobrien};
43460484Sobrien
43560484Sobrienclass DoubleFlagSetting {
43660484Sobrien  double val;
43760484Sobrien  double* flag;
43860484Sobrien public:
43960484Sobrien  DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; }
44060484Sobrien  ~DoubleFlagSetting()                           { *flag = val; }
44160484Sobrien};
44260484Sobrien
44360484Sobrienclass SizeTFlagSetting {
44460484Sobrien  size_t val;
44560484Sobrien  size_t* flag;
44660484Sobrien public:
44760484Sobrien  SizeTFlagSetting(size_t& fl, size_t newValue) { flag = &fl; val = fl; fl = newValue; }
44860484Sobrien  ~SizeTFlagSetting()                           { *flag = val; }
44960484Sobrien};
45060484Sobrien
45160484Sobrien
45260484Sobrienclass CommandLineFlags {
45360484Sobrien  static bool _finished_initializing;
45460484Sobrienpublic:
45560484Sobrien  static Flag::Error boolAt(const char* name, size_t len, bool* value, bool allow_locked = false, bool return_flag = false);
45660484Sobrien  static Flag::Error boolAt(const char* name, bool* value, bool allow_locked = false, bool return_flag = false)      { return boolAt(name, strlen(name), value, allow_locked, return_flag); }
45760484Sobrien  static Flag::Error boolAtPut(const char* name, size_t len, bool* value, Flag::Flags origin);
45860484Sobrien  static Flag::Error boolAtPut(const char* name, bool* value, Flag::Flags origin)   { return boolAtPut(name, strlen(name), value, origin); }
45960484Sobrien
46060484Sobrien  static Flag::Error intAt(const char* name, size_t len, int* value, bool allow_locked = false, bool return_flag = false);
46189857Sobrien  static Flag::Error intAt(const char* name, int* value, bool allow_locked = false, bool return_flag = false)      { return intAt(name, strlen(name), value, allow_locked, return_flag); }
46289857Sobrien  static Flag::Error intAtPut(const char* name, size_t len, int* value, Flag::Flags origin);
46389857Sobrien  static Flag::Error intAtPut(const char* name, int* value, Flag::Flags origin)   { return intAtPut(name, strlen(name), value, origin); }
46460484Sobrien
46589857Sobrien  static Flag::Error uintAt(const char* name, size_t len, uint* value, bool allow_locked = false, bool return_flag = false);
46660484Sobrien  static Flag::Error uintAt(const char* name, uint* value, bool allow_locked = false, bool return_flag = false)      { return uintAt(name, strlen(name), value, allow_locked, return_flag); }
46760484Sobrien  static Flag::Error uintAtPut(const char* name, size_t len, uint* value, Flag::Flags origin);
46860484Sobrien  static Flag::Error uintAtPut(const char* name, uint* value, Flag::Flags origin)   { return uintAtPut(name, strlen(name), value, origin); }
46960484Sobrien
47060484Sobrien  static Flag::Error intxAt(const char* name, size_t len, intx* value, bool allow_locked = false, bool return_flag = false);
47160484Sobrien  static Flag::Error intxAt(const char* name, intx* value, bool allow_locked = false, bool return_flag = false)      { return intxAt(name, strlen(name), value, allow_locked, return_flag); }
47260484Sobrien  static Flag::Error intxAtPut(const char* name, size_t len, intx* value, Flag::Flags origin);
47360484Sobrien  static Flag::Error intxAtPut(const char* name, intx* value, Flag::Flags origin)   { return intxAtPut(name, strlen(name), value, origin); }
47460484Sobrien
47560484Sobrien  static Flag::Error uintxAt(const char* name, size_t len, uintx* value, bool allow_locked = false, bool return_flag = false);
47660484Sobrien  static Flag::Error uintxAt(const char* name, uintx* value, bool allow_locked = false, bool return_flag = false)    { return uintxAt(name, strlen(name), value, allow_locked, return_flag); }
47760484Sobrien  static Flag::Error uintxAtPut(const char* name, size_t len, uintx* value, Flag::Flags origin);
47860484Sobrien  static Flag::Error uintxAtPut(const char* name, uintx* value, Flag::Flags origin) { return uintxAtPut(name, strlen(name), value, origin); }
47960484Sobrien
48060484Sobrien  static Flag::Error size_tAt(const char* name, size_t len, size_t* value, bool allow_locked = false, bool return_flag = false);
48160484Sobrien  static Flag::Error size_tAt(const char* name, size_t* value, bool allow_locked = false, bool return_flag = false)    { return size_tAt(name, strlen(name), value, allow_locked, return_flag); }
48260484Sobrien  static Flag::Error size_tAtPut(const char* name, size_t len, size_t* value, Flag::Flags origin);
48360484Sobrien  static Flag::Error size_tAtPut(const char* name, size_t* value, Flag::Flags origin) { return size_tAtPut(name, strlen(name), value, origin); }
48460484Sobrien
48560484Sobrien  static Flag::Error uint64_tAt(const char* name, size_t len, uint64_t* value, bool allow_locked = false, bool return_flag = false);
48660484Sobrien  static Flag::Error uint64_tAt(const char* name, uint64_t* value, bool allow_locked = false, bool return_flag = false) { return uint64_tAt(name, strlen(name), value, allow_locked, return_flag); }
48760484Sobrien  static Flag::Error uint64_tAtPut(const char* name, size_t len, uint64_t* value, Flag::Flags origin);
48860484Sobrien  static Flag::Error uint64_tAtPut(const char* name, uint64_t* value, Flag::Flags origin) { return uint64_tAtPut(name, strlen(name), value, origin); }
48960484Sobrien
49060484Sobrien  static Flag::Error doubleAt(const char* name, size_t len, double* value, bool allow_locked = false, bool return_flag = false);
49160484Sobrien  static Flag::Error doubleAt(const char* name, double* value, bool allow_locked = false, bool return_flag = false)    { return doubleAt(name, strlen(name), value, allow_locked, return_flag); }
49260484Sobrien  static Flag::Error doubleAtPut(const char* name, size_t len, double* value, Flag::Flags origin);
49360484Sobrien  static Flag::Error doubleAtPut(const char* name, double* value, Flag::Flags origin) { return doubleAtPut(name, strlen(name), value, origin); }
49460484Sobrien
49560484Sobrien  static Flag::Error ccstrAt(const char* name, size_t len, ccstr* value, bool allow_locked = false, bool return_flag = false);
49660484Sobrien  static Flag::Error ccstrAt(const char* name, ccstr* value, bool allow_locked = false, bool return_flag = false)    { return ccstrAt(name, strlen(name), value, allow_locked, return_flag); }
49760484Sobrien  // Contract:  Flag will make private copy of the incoming value.
49860484Sobrien  // Outgoing value is always malloc-ed, and caller MUST call free.
49960484Sobrien  static Flag::Error ccstrAtPut(const char* name, size_t len, ccstr* value, Flag::Flags origin);
50060484Sobrien  static Flag::Error ccstrAtPut(const char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); }
50160484Sobrien
50260484Sobrien  // Returns false if name is not a command line flag.
50360484Sobrien  static bool wasSetOnCmdline(const char* name, bool* value);
50460484Sobrien  static void printSetFlags(outputStream* out);
50560484Sobrien
50660484Sobrien  // printRanges will print out flags type, name and range values as expected by -XX:+PrintFlagsRanges
50760484Sobrien  static void printFlags(outputStream* out, bool withComments, bool printRanges = false);
50860484Sobrien
50960484Sobrien  // Returns true if all flags have their final values set (ready for ranges and constraint check)
51060484Sobrien  static bool finishedInitializing() { return _finished_initializing; }
51160484Sobrien
51260484Sobrien  // Check the final values of all flags for ranges and constraints
51360484Sobrien  static bool check_all_ranges_and_constraints();
51460484Sobrien
51560484Sobrien  static void verify() PRODUCT_RETURN;
51660484Sobrien};
51760484Sobrien
51860484Sobrien// use this for flags that are true by default in the debug version but
51960484Sobrien// false in the optimized version, and vice versa
52060484Sobrien#ifdef ASSERT
52160484Sobrien#define trueInDebug  true
52260484Sobrien#define falseInDebug false
52360484Sobrien#else
52460484Sobrien#define trueInDebug  false
52560484Sobrien#define falseInDebug true
52660484Sobrien#endif
52760484Sobrien
52860484Sobrien// use this for flags that are true per default in the product build
52960484Sobrien// but false in development builds, and vice versa
53060484Sobrien#ifdef PRODUCT
53160484Sobrien#define trueInProduct  true
53260484Sobrien#define falseInProduct false
53360484Sobrien#else
53460484Sobrien#define trueInProduct  false
53560484Sobrien#define falseInProduct true
53660484Sobrien#endif
53760484Sobrien
53860484Sobrien#ifdef JAVASE_EMBEDDED
53960484Sobrien#define falseInEmbedded false
54060484Sobrien#else
54160484Sobrien#define falseInEmbedded true
54260484Sobrien#endif
54360484Sobrien
54460484Sobrien// develop flags are settable / visible only during development and are constant in the PRODUCT version
54560484Sobrien// product flags are always settable / visible
54660484Sobrien// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
54760484Sobrien
54860484Sobrien// A flag must be declared with one of the following types:
54960484Sobrien// bool, intx, uintx, size_t, ccstr, double, or uint64_t.
55060484Sobrien// The type "ccstr" is an alias for "const char*" and is used
55160484Sobrien// only in this file, because the macrology requires single-token type names.
55260484Sobrien
55360484Sobrien// Note: Diagnostic options not meant for VM tuning or for product modes.
55460484Sobrien// They are to be used for VM quality assurance or field diagnosis
55560484Sobrien// of VM bugs.  They are hidden so that users will not be encouraged to
55660484Sobrien// try them as if they were VM ordinary execution options.  However, they
55760484Sobrien// are available in the product version of the VM.  Under instruction
55860484Sobrien// from support engineers, VM customers can turn them on to collect
55960484Sobrien// diagnostic information about VM problems.  To use a VM diagnostic
56060484Sobrien// option, you must first specify +UnlockDiagnosticVMOptions.
56160484Sobrien// (This master switch also affects the behavior of -Xprintflags.)
56260484Sobrien//
56360484Sobrien// experimental flags are in support of features that are not
56460484Sobrien//    part of the officially supported product, but are available
56560484Sobrien//    for experimenting with. They could, for example, be performance
56660484Sobrien//    features that may not have undergone full or rigorous QA, but which may
56760484Sobrien//    help performance in some cases and released for experimentation
56860484Sobrien//    by the community of users and developers. This flag also allows one to
56960484Sobrien//    be able to build a fully supported product that nonetheless also
57060484Sobrien//    ships with some unsupported, lightly tested, experimental features.
57160484Sobrien//    Like the UnlockDiagnosticVMOptions flag above, there is a corresponding
57260484Sobrien//    UnlockExperimentalVMOptions flag, which allows the control and
57360484Sobrien//    modification of the experimental flags.
57460484Sobrien//
57560484Sobrien// Nota bene: neither diagnostic nor experimental options should be used casually,
57660484Sobrien//    and they are not supported on production loads, except under explicit
57760484Sobrien//    direction from support engineers.
57860484Sobrien//
57960484Sobrien// manageable flags are writeable external product flags.
58060484Sobrien//    They are dynamically writeable through the JDK management interface
58160484Sobrien//    (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
58260484Sobrien//    These flags are external exported interface (see CCC).  The list of
58360484Sobrien//    manageable flags can be queried programmatically through the management
58460484Sobrien//    interface.
58560484Sobrien//
58660484Sobrien//    A flag can be made as "manageable" only if
58760484Sobrien//    - the flag is defined in a CCC as an external exported interface.
58860484Sobrien//    - the VM implementation supports dynamic setting of the flag.
58960484Sobrien//      This implies that the VM must *always* query the flag variable
59060484Sobrien//      and not reuse state related to the flag state at any given time.
59160484Sobrien//    - you want the flag to be queried programmatically by the customers.
59260484Sobrien//
59360484Sobrien// product_rw flags are writeable internal product flags.
59460484Sobrien//    They are like "manageable" flags but for internal/private use.
59560484Sobrien//    The list of product_rw flags are internal/private flags which
59660484Sobrien//    may be changed/removed in a future release.  It can be set
59760484Sobrien//    through the management interface to get/set value
59860484Sobrien//    when the name of flag is supplied.
59960484Sobrien//
60060484Sobrien//    A flag can be made as "product_rw" only if
60160484Sobrien//    - the VM implementation supports dynamic setting of the flag.
60260484Sobrien//      This implies that the VM must *always* query the flag variable
60360484Sobrien//      and not reuse state related to the flag state at any given time.
60460484Sobrien//
60560484Sobrien// Note that when there is a need to support develop flags to be writeable,
60660484Sobrien// it can be done in the same way as product_rw.
60760484Sobrien//
60860484Sobrien// range is a macro that will expand to min and max arguments for range
60960484Sobrien//    checking code if provided - see commandLineFlagRangeList.hpp
61060484Sobrien//
61160484Sobrien// constraint is a macro that will expand to custom function call
61260484Sobrien//    for constraint checking if provided - see commandLineFlagConstraintList.hpp
61360484Sobrien//
61460484Sobrien
61560484Sobrien#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product, range, constraint) \
61660484Sobrien                                                                            \
61760484Sobrien  lp64_product(bool, UseCompressedOops, false,                              \
61860484Sobrien          "Use 32-bit object references in 64-bit VM. "                     \
61960484Sobrien          "lp64_product means flag is always constant in 32 bit VM")        \
62060484Sobrien                                                                            \
62160484Sobrien  lp64_product(bool, UseCompressedClassPointers, false,                     \
62260484Sobrien          "Use 32-bit class pointers in 64-bit VM. "                        \
62360484Sobrien          "lp64_product means flag is always constant in 32 bit VM")        \
62460484Sobrien                                                                            \
62560484Sobrien  notproduct(bool, CheckCompressedOops, true,                               \
62660484Sobrien          "Generate checks in encoding/decoding code in debug VM")          \
62760484Sobrien                                                                            \
62860484Sobrien  product_pd(size_t, HeapBaseMinAddress,                                    \
62960484Sobrien          "OS specific low limit for heap base address")                    \
63060484Sobrien                                                                            \
63160484Sobrien  product(uintx, HeapSearchSteps, 3 PPC64_ONLY(+17),                        \
63260484Sobrien          "Heap allocation steps through preferred address regions to find" \
63360484Sobrien          " where it can allocate the heap. Number of steps to take per "   \
63460484Sobrien          "region.")                                                        \
63560484Sobrien          range(1, max_uintx)                                               \
63660484Sobrien                                                                            \
63760484Sobrien  diagnostic(bool, PrintCompressedOopsMode, false,                          \
63860484Sobrien          "Print compressed oops base address and encoding mode")           \
63960484Sobrien                                                                            \
64060484Sobrien  lp64_product(intx, ObjectAlignmentInBytes, 8,                             \
64160484Sobrien          "Default object alignment in bytes, 8 is minimum")                \
64260484Sobrien          range(8, 256)                                                     \
64360484Sobrien          constraint(ObjectAlignmentInBytesConstraintFunc)                  \
64460484Sobrien                                                                            \
64560484Sobrien  product(bool, AssumeMP, false,                                            \
64660484Sobrien          "Instruct the VM to assume multiple processors are available")    \
64760484Sobrien                                                                            \
64860484Sobrien  /* UseMembar is theoretically a temp flag used for memory barrier      */ \
64960484Sobrien  /* removal testing.  It was supposed to be removed before FCS but has  */ \
65060484Sobrien  /* been re-added (see 6401008)                                         */ \
65160484Sobrien  product_pd(bool, UseMembar,                                               \
65260484Sobrien          "(Unstable) Issues membars on thread state transitions")          \
65360484Sobrien                                                                            \
65460484Sobrien  develop(bool, CleanChunkPoolAsync, falseInEmbedded,                       \
65560484Sobrien          "Clean the chunk pool asynchronously")                            \
65660484Sobrien                                                                            \
65760484Sobrien  experimental(bool, AlwaysSafeConstructors, false,                         \
65860484Sobrien          "Force safe construction, as if all fields are final.")           \
65960484Sobrien                                                                            \
66060484Sobrien  /* Temporary: See 6948537 */                                              \
66160484Sobrien  experimental(bool, UseMemSetInBOT, true,                                  \
66260484Sobrien          "(Unstable) uses memset in BOT updates in GC code")               \
66360484Sobrien                                                                            \
66460484Sobrien  diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug,                  \
66560484Sobrien          "Enable normal processing of flags relating to field diagnostics")\
66660484Sobrien                                                                            \
66760484Sobrien  experimental(bool, UnlockExperimentalVMOptions, false,                    \
66860484Sobrien          "Enable normal processing of flags relating to experimental "     \
66960484Sobrien          "features")                                                       \
67060484Sobrien                                                                            \
67160484Sobrien  product(bool, JavaMonitorsInStackTrace, true,                             \
67260484Sobrien          "Print information about Java monitor locks when the stacks are"  \
67360484Sobrien          "dumped")                                                         \
67460484Sobrien                                                                            \
67560484Sobrien  product_pd(bool, UseLargePages,                                           \
67660484Sobrien          "Use large page memory")                                          \
67760484Sobrien                                                                            \
67860484Sobrien  product_pd(bool, UseLargePagesIndividualAllocation,                       \
67960484Sobrien          "Allocate large pages individually for better affinity")          \
68060484Sobrien                                                                            \
68160484Sobrien  develop(bool, LargePagesIndividualAllocationInjectError, false,           \
68260484Sobrien          "Fail large pages individual allocation")                         \
68360484Sobrien                                                                            \
68460484Sobrien  product(bool, UseLargePagesInMetaspace, false,                            \
68560484Sobrien          "Use large page memory in metaspace. "                            \
68660484Sobrien          "Only used if UseLargePages is enabled.")                         \
68760484Sobrien                                                                            \
68860484Sobrien  develop(bool, TracePageSizes, false,                                      \
68960484Sobrien          "Trace page size selection and usage")                            \
69060484Sobrien                                                                            \
69160484Sobrien  product(bool, UseNUMA, false,                                             \
69260484Sobrien          "Use NUMA if available")                                          \
69360484Sobrien                                                                            \
69460484Sobrien  product(bool, UseNUMAInterleaving, false,                                 \
69560484Sobrien          "Interleave memory across NUMA nodes if available")               \
69660484Sobrien                                                                            \
69760484Sobrien  product(size_t, NUMAInterleaveGranularity, 2*M,                           \
69860484Sobrien          "Granularity to use for NUMA interleaving on Windows OS")         \
69960484Sobrien                                                                            \
70060484Sobrien  product(bool, ForceNUMA, false,                                           \
70160484Sobrien          "Force NUMA optimizations on single-node/UMA systems")            \
70260484Sobrien                                                                            \
70360484Sobrien  product(uintx, NUMAChunkResizeWeight, 20,                                 \
70460484Sobrien          "Percentage (0-100) used to weight the current sample when "      \
70560484Sobrien          "computing exponentially decaying average for "                   \
70660484Sobrien          "AdaptiveNUMAChunkSizing")                                        \
70760484Sobrien          range(0, 100)                                                     \
70860484Sobrien                                                                            \
70960484Sobrien  product(size_t, NUMASpaceResizeRate, 1*G,                                 \
71060484Sobrien          "Do not reallocate more than this amount per collection")         \
71160484Sobrien                                                                            \
71260484Sobrien  product(bool, UseAdaptiveNUMAChunkSizing, true,                           \
71360484Sobrien          "Enable adaptive chunk sizing for NUMA")                          \
71460484Sobrien                                                                            \
71560484Sobrien  product(bool, NUMAStats, false,                                           \
71660484Sobrien          "Print NUMA stats in detailed heap information")                  \
71760484Sobrien                                                                            \
71860484Sobrien  product(uintx, NUMAPageScanRate, 256,                                     \
71960484Sobrien          "Maximum number of pages to include in the page scan procedure")  \
72060484Sobrien                                                                            \
72160484Sobrien  product_pd(bool, NeedsDeoptSuspend,                                       \
72260484Sobrien          "True for register window machines (sparc/ia64)")                 \
72360484Sobrien                                                                            \
72460484Sobrien  product(intx, UseSSE, 99,                                                 \
72560484Sobrien          "Highest supported SSE instructions set on x86/x64")              \
72660484Sobrien                                                                            \
72760484Sobrien  product(bool, UseAES, false,                                              \
72860484Sobrien          "Control whether AES instructions can be used on x86/x64")        \
72960484Sobrien                                                                            \
73060484Sobrien  product(bool, UseSHA, false,                                              \
73160484Sobrien          "Control whether SHA instructions can be used on SPARC")          \
73260484Sobrien                                                                            \
73360484Sobrien  product(bool, UseGHASHIntrinsics, false,                                  \
73460484Sobrien          "Use intrinsics for GHASH versions of crypto")                    \
73560484Sobrien                                                                            \
73660484Sobrien  product(size_t, LargePageSizeInBytes, 0,                                  \
73760484Sobrien          "Large page size (0 to let VM choose the page size)")             \
73860484Sobrien                                                                            \
73960484Sobrien  product(size_t, LargePageHeapSizeThreshold, 128*M,                        \
74060484Sobrien          "Use large pages if maximum heap is at least this big")           \
74160484Sobrien                                                                            \
74260484Sobrien  product(bool, ForceTimeHighResolution, false,                             \
74360484Sobrien          "Using high time resolution (for Win32 only)")                    \
74460484Sobrien                                                                            \
74560484Sobrien  develop(bool, TraceItables, false,                                        \
74660484Sobrien          "Trace initialization and use of itables")                        \
74760484Sobrien                                                                            \
74860484Sobrien  develop(bool, TracePcPatching, false,                                     \
74960484Sobrien          "Trace usage of frame::patch_pc")                                 \
75060484Sobrien                                                                            \
75160484Sobrien  develop(bool, TraceJumps, false,                                          \
75260484Sobrien          "Trace assembly jumps in thread ring buffer")                     \
75360484Sobrien                                                                            \
75460484Sobrien  develop(bool, TraceRelocator, false,                                      \
75560484Sobrien          "Trace the bytecode relocator")                                   \
75660484Sobrien                                                                            \
75760484Sobrien  develop(bool, TraceLongCompiles, false,                                   \
75860484Sobrien          "Print out every time compilation is longer than "                \
75960484Sobrien          "a given threshold")                                              \
76060484Sobrien                                                                            \
76160484Sobrien  develop(bool, SafepointALot, false,                                       \
76260484Sobrien          "Generate a lot of safepoints. This works with "                  \
76360484Sobrien          "GuaranteedSafepointInterval")                                    \
76460484Sobrien                                                                            \
76560484Sobrien  product_pd(bool, BackgroundCompilation,                                   \
76660484Sobrien          "A thread requesting compilation is not blocked during "          \
76760484Sobrien          "compilation")                                                    \
76860484Sobrien                                                                            \
76960484Sobrien  product(bool, PrintVMQWaitTime, false,                                    \
77060484Sobrien          "Print out the waiting time in VM operation queue")               \
77160484Sobrien                                                                            \
77260484Sobrien  develop(bool, TraceOopMapGeneration, false,                               \
77360484Sobrien          "Show OopMapGeneration")                                          \
77460484Sobrien                                                                            \
77560484Sobrien  product(bool, MethodFlushing, true,                                       \
77660484Sobrien          "Reclamation of zombie and not-entrant methods")                  \
77760484Sobrien                                                                            \
77860484Sobrien  develop(bool, VerifyStack, false,                                         \
77960484Sobrien          "Verify stack of each thread when it is entering a runtime call") \
78060484Sobrien                                                                            \
78160484Sobrien  diagnostic(bool, ForceUnreachable, false,                                 \
78260484Sobrien          "Make all non code cache addresses to be unreachable by "         \
78360484Sobrien          "forcing use of 64bit literal fixups")                            \
78460484Sobrien                                                                            \
78560484Sobrien  notproduct(bool, StressDerivedPointers, false,                            \
78660484Sobrien          "Force scavenge when a derived pointer is detected on stack "     \
78760484Sobrien          "after rtm call")                                                 \
78860484Sobrien                                                                            \
78960484Sobrien  develop(bool, TraceDerivedPointers, false,                                \
79060484Sobrien          "Trace traversal of derived pointers on stack")                   \
79160484Sobrien                                                                            \
79260484Sobrien  notproduct(bool, TraceCodeBlobStacks, false,                              \
79360484Sobrien          "Trace stack-walk of codeblobs")                                  \
79460484Sobrien                                                                            \
79560484Sobrien  product(bool, PrintJNIResolving, false,                                   \
79660484Sobrien          "Used to implement -v:jni")                                       \
79760484Sobrien                                                                            \
79860484Sobrien  notproduct(bool, PrintRewrites, false,                                    \
79960484Sobrien          "Print methods that are being rewritten")                         \
80060484Sobrien                                                                            \
80160484Sobrien  product(bool, UseInlineCaches, true,                                      \
80260484Sobrien          "Use Inline Caches for virtual calls ")                           \
80360484Sobrien                                                                            \
80460484Sobrien  develop(bool, InlineArrayCopy, true,                                      \
80560484Sobrien          "Inline arraycopy native that is known to be part of "            \
80660484Sobrien          "base library DLL")                                               \
80760484Sobrien                                                                            \
80860484Sobrien  develop(bool, InlineObjectHash, true,                                     \
80960484Sobrien          "Inline Object::hashCode() native that is known to be part "      \
81060484Sobrien          "of base library DLL")                                            \
81160484Sobrien                                                                            \
81260484Sobrien  develop(bool, InlineNatives, true,                                        \
81360484Sobrien          "Inline natives that are known to be part of base library DLL")   \
81460484Sobrien                                                                            \
81560484Sobrien  develop(bool, InlineMathNatives, true,                                    \
81660484Sobrien          "Inline SinD, CosD, etc.")                                        \
81760484Sobrien                                                                            \
81860484Sobrien  develop(bool, InlineClassNatives, true,                                   \
81960484Sobrien          "Inline Class.isInstance, etc")                                   \
82060484Sobrien                                                                            \
82160484Sobrien  develop(bool, InlineThreadNatives, true,                                  \
82260484Sobrien          "Inline Thread.currentThread, etc")                               \
82360484Sobrien                                                                            \
82460484Sobrien  develop(bool, InlineUnsafeOps, true,                                      \
82560484Sobrien          "Inline memory ops (native methods) from sun.misc.Unsafe")        \
82660484Sobrien                                                                            \
82760484Sobrien  product(bool, CriticalJNINatives, true,                                   \
82860484Sobrien          "Check for critical JNI entry points")                            \
82960484Sobrien                                                                            \
83060484Sobrien  notproduct(bool, StressCriticalJNINatives, false,                         \
83160484Sobrien          "Exercise register saving code in critical natives")              \
83260484Sobrien                                                                            \
83360484Sobrien  product(bool, UseSSE42Intrinsics, false,                                  \
83460484Sobrien          "SSE4.2 versions of intrinsics")                                  \
83560484Sobrien                                                                            \
83660484Sobrien  product(bool, UseAESIntrinsics, false,                                    \
83760484Sobrien          "Use intrinsics for AES versions of crypto")                      \
83860484Sobrien                                                                            \
83960484Sobrien  product(bool, UseSHA1Intrinsics, false,                                   \
84060484Sobrien          "Use intrinsics for SHA-1 crypto hash function")                  \
84160484Sobrien                                                                            \
84260484Sobrien  product(bool, UseSHA256Intrinsics, false,                                 \
84360484Sobrien          "Use intrinsics for SHA-224 and SHA-256 crypto hash functions")   \
84460484Sobrien                                                                            \
84560484Sobrien  product(bool, UseSHA512Intrinsics, false,                                 \
84660484Sobrien          "Use intrinsics for SHA-384 and SHA-512 crypto hash functions")   \
84760484Sobrien                                                                            \
84860484Sobrien  product(bool, UseCRC32Intrinsics, false,                                  \
84960484Sobrien          "use intrinsics for java.util.zip.CRC32")                         \
85060484Sobrien                                                                            \
85160484Sobrien  product(bool, UseCRC32CIntrinsics, false,                                 \
85260484Sobrien          "use intrinsics for java.util.zip.CRC32C")                        \
85360484Sobrien                                                                            \
85460484Sobrien  develop(bool, TraceCallFixup, false,                                      \
85560484Sobrien          "Trace all call fixups")                                          \
85660484Sobrien                                                                            \
85760484Sobrien  develop(bool, DeoptimizeALot, false,                                      \
85860484Sobrien          "Deoptimize at every exit from the runtime system")               \
85960484Sobrien                                                                            \
86060484Sobrien  notproduct(ccstrlist, DeoptimizeOnlyAt, "",                               \
86160484Sobrien          "A comma separated list of bcis to deoptimize at")                \
86260484Sobrien                                                                            \
86360484Sobrien  product(bool, DeoptimizeRandom, false,                                    \
86460484Sobrien          "Deoptimize random frames on random exit from the runtime system")\
86560484Sobrien                                                                            \
86660484Sobrien  notproduct(bool, ZombieALot, false,                                       \
86760484Sobrien          "Create zombies (non-entrant) at exit from the runtime system")   \
86860484Sobrien                                                                            \
86960484Sobrien  product(bool, UnlinkSymbolsALot, false,                                   \
87060484Sobrien          "Unlink unreferenced symbols from the symbol table at safepoints")\
87160484Sobrien                                                                            \
87260484Sobrien  notproduct(bool, WalkStackALot, false,                                    \
87360484Sobrien          "Trace stack (no print) at every exit from the runtime system")   \
87460484Sobrien                                                                            \
87560484Sobrien  product(bool, Debugging, false,                                           \
87660484Sobrien          "Set when executing debug methods in debug.cpp "                  \
87760484Sobrien          "(to prevent triggering assertions)")                             \
87860484Sobrien                                                                            \
87960484Sobrien  notproduct(bool, StrictSafepointChecks, trueInDebug,                      \
88060484Sobrien          "Enable strict checks that safepoints cannot happen for threads " \
88160484Sobrien          "that use No_Safepoint_Verifier")                                 \
88260484Sobrien                                                                            \
88360484Sobrien  notproduct(bool, VerifyLastFrame, false,                                  \
88460484Sobrien          "Verify oops on last frame on entry to VM")                       \
88560484Sobrien                                                                            \
88660484Sobrien  develop(bool, TraceHandleAllocation, false,                               \
88760484Sobrien          "Print out warnings when suspiciously many handles are allocated")\
88860484Sobrien                                                                            \
88960484Sobrien  product(bool, FailOverToOldVerifier, true,                                \
89060484Sobrien          "Fail over to old verifier when split verifier fails")            \
89160484Sobrien                                                                            \
89260484Sobrien  develop(bool, ShowSafepointMsgs, false,                                   \
89360484Sobrien          "Show message about safepoint synchronization")                   \
89460484Sobrien                                                                            \
89560484Sobrien  product(bool, SafepointTimeout, false,                                    \
89660484Sobrien          "Time out and warn or fail after SafepointTimeoutDelay "          \
89760484Sobrien          "milliseconds if failed to reach safepoint")                      \
89860484Sobrien                                                                            \
89960484Sobrien  develop(bool, DieOnSafepointTimeout, false,                               \
90060484Sobrien          "Die upon failure to reach safepoint (see SafepointTimeout)")     \
90160484Sobrien                                                                            \
90260484Sobrien  /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */      \
90360484Sobrien  /* typically, at most a few retries are needed                    */      \
90460484Sobrien  product(intx, SuspendRetryCount, 50,                                      \
90560484Sobrien          "Maximum retry count for an external suspend request")            \
90660484Sobrien                                                                            \
90760484Sobrien  product(intx, SuspendRetryDelay, 5,                                       \
90860484Sobrien          "Milliseconds to delay per retry (* current_retry_count)")        \
90960484Sobrien                                                                            \
91060484Sobrien  product(bool, AssertOnSuspendWaitFailure, false,                          \
91160484Sobrien          "Assert/Guarantee on external suspend wait failure")              \
91260484Sobrien                                                                            \
91360484Sobrien  product(bool, TraceSuspendWaitFailures, false,                            \
91460484Sobrien          "Trace external suspend wait failures")                           \
91560484Sobrien                                                                            \
91660484Sobrien  product(bool, MaxFDLimit, true,                                           \
91760484Sobrien          "Bump the number of file descriptors to maximum in Solaris")      \
91860484Sobrien                                                                            \
91960484Sobrien  diagnostic(bool, LogEvents, true,                                         \
92060484Sobrien          "Enable the various ring buffer event logs")                      \
92160484Sobrien                                                                            \
92260484Sobrien  diagnostic(uintx, LogEventsBufferEntries, 10,                             \
92360484Sobrien          "Number of ring buffer event logs")                               \
92460484Sobrien          range(1, NOT_LP64(1*K) LP64_ONLY(1*M))                            \
92560484Sobrien                                                                            \
92660484Sobrien  product(bool, BytecodeVerificationRemote, true,                           \
92760484Sobrien          "Enable the Java bytecode verifier for remote classes")           \
92860484Sobrien                                                                            \
92960484Sobrien  product(bool, BytecodeVerificationLocal, false,                           \
93060484Sobrien          "Enable the Java bytecode verifier for local classes")            \
93160484Sobrien                                                                            \
93260484Sobrien  develop(bool, ForceFloatExceptions, trueInDebug,                          \
93360484Sobrien          "Force exceptions on FP stack under/overflow")                    \
93460484Sobrien                                                                            \
93560484Sobrien  develop(bool, VerifyStackAtCalls, false,                                  \
93660484Sobrien          "Verify that the stack pointer is unchanged after calls")         \
93760484Sobrien                                                                            \
93860484Sobrien  develop(bool, TraceJavaAssertions, false,                                 \
93960484Sobrien          "Trace java language assertions")                                 \
94060484Sobrien                                                                            \
94160484Sobrien  notproduct(bool, CheckAssertionStatusDirectives, false,                   \
94260484Sobrien          "Temporary - see javaClasses.cpp")                                \
94360484Sobrien                                                                            \
94460484Sobrien  notproduct(bool, PrintMallocFree, false,                                  \
94560484Sobrien          "Trace calls to C heap malloc/free allocation")                   \
94660484Sobrien                                                                            \
94760484Sobrien  product(bool, PrintOopAddress, false,                                     \
94860484Sobrien          "Always print the location of the oop")                           \
94960484Sobrien                                                                            \
95060484Sobrien  notproduct(bool, VerifyCodeCache, false,                                  \
95160484Sobrien          "Verify code cache on memory allocation/deallocation")            \
95260484Sobrien                                                                            \
95360484Sobrien  develop(bool, ZapDeadCompiledLocals, false,                               \
95460484Sobrien          "Zap dead locals in compiler frames")                             \
95560484Sobrien                                                                            \
95660484Sobrien  notproduct(bool, ZapDeadLocalsOld, false,                                 \
95760484Sobrien          "Zap dead locals (old version, zaps all frames when "             \
95860484Sobrien          "entering the VM")                                                \
95960484Sobrien                                                                            \
96060484Sobrien  notproduct(bool, CheckOopishValues, false,                                \
96160484Sobrien          "Warn if value contains oop (requires ZapDeadLocals)")            \
96260484Sobrien                                                                            \
96360484Sobrien  develop(bool, UseMallocOnly, false,                                       \
96460484Sobrien          "Use only malloc/free for allocation (no resource area/arena)")   \
96560484Sobrien                                                                            \
96660484Sobrien  develop(bool, PrintMalloc, false,                                         \
96760484Sobrien          "Print all malloc/free calls")                                    \
96860484Sobrien                                                                            \
96960484Sobrien  develop(bool, PrintMallocStatistics, false,                               \
97060484Sobrien          "Print malloc/free statistics")                                   \
97160484Sobrien                                                                            \
97260484Sobrien  develop(bool, ZapResourceArea, trueInDebug,                               \
97360484Sobrien          "Zap freed resource/arena space with 0xABABABAB")                 \
97460484Sobrien                                                                            \
97560484Sobrien  notproduct(bool, ZapVMHandleArea, trueInDebug,                            \
97660484Sobrien          "Zap freed VM handle space with 0xBCBCBCBC")                      \
97760484Sobrien                                                                            \
97860484Sobrien  develop(bool, ZapJNIHandleArea, trueInDebug,                              \
97960484Sobrien          "Zap freed JNI handle space with 0xFEFEFEFE")                     \
98060484Sobrien                                                                            \
98160484Sobrien  notproduct(bool, ZapStackSegments, trueInDebug,                           \
98260484Sobrien          "Zap allocated/freed stack segments with 0xFADFADED")             \
98360484Sobrien                                                                            \
98460484Sobrien  develop(bool, ZapUnusedHeapArea, trueInDebug,                             \
98560484Sobrien          "Zap unused heap space with 0xBAADBABE")                          \
98660484Sobrien                                                                            \
98760484Sobrien  develop(bool, TraceZapUnusedHeapArea, false,                              \
98860484Sobrien          "Trace zapping of unused heap space")                             \
98960484Sobrien                                                                            \
99060484Sobrien  develop(bool, CheckZapUnusedHeapArea, false,                              \
99160484Sobrien          "Check zapping of unused heap space")                             \
99260484Sobrien                                                                            \
99360484Sobrien  develop(bool, ZapFillerObjects, trueInDebug,                              \
99460484Sobrien          "Zap filler objects with 0xDEAFBABE")                             \
99560484Sobrien                                                                            \
99660484Sobrien  develop(bool, PrintVMMessages, true,                                      \
99760484Sobrien          "Print VM messages on console")                                   \
99860484Sobrien                                                                            \
99960484Sobrien  product(bool, PrintGCApplicationConcurrentTime, false,                    \
100060484Sobrien          "Print the time the application has been running")                \
100160484Sobrien                                                                            \
100260484Sobrien  product(bool, PrintGCApplicationStoppedTime, false,                       \
100360484Sobrien          "Print the time the application has been stopped")                \
100460484Sobrien                                                                            \
100560484Sobrien  diagnostic(bool, VerboseVerification, false,                              \
100660484Sobrien          "Display detailed verification details")                          \
100760484Sobrien                                                                            \
100860484Sobrien  notproduct(uintx, ErrorHandlerTest, 0,                                    \
100960484Sobrien          "If > 0, provokes an error after VM initialization; the value "   \
101060484Sobrien          "determines which error to provoke. See test_error_handler() "    \
101160484Sobrien          "in debug.cpp.")                                                  \
101260484Sobrien                                                                            \
101360484Sobrien  notproduct(uintx, TestCrashInErrorHandler, 0,                             \
101460484Sobrien          "If > 0, provokes an error inside VM error handler (a secondary " \
101560484Sobrien          "crash). see test_error_handler() in debug.cpp.")                 \
101660484Sobrien                                                                            \
101760484Sobrien  notproduct(bool, TestSafeFetchInErrorHandler, false,                      \
101860484Sobrien          "If true, tests SafeFetch inside error handler.")                 \
101960484Sobrien                                                                            \
102060484Sobrien  develop(bool, Verbose, false,                                             \
102160484Sobrien          "Print additional debugging information from other modes")        \
102260484Sobrien                                                                            \
102360484Sobrien  develop(bool, PrintMiscellaneous, false,                                  \
102460484Sobrien          "Print uncategorized debugging information (requires +Verbose)")  \
102560484Sobrien                                                                            \
102660484Sobrien  develop(bool, WizardMode, false,                                          \
102760484Sobrien          "Print much more debugging information")                          \
102860484Sobrien                                                                            \
102960484Sobrien  product(bool, ShowMessageBoxOnError, false,                               \
103060484Sobrien          "Keep process alive on VM fatal error")                           \
103160484Sobrien                                                                            \
103260484Sobrien  product(bool, CreateCoredumpOnCrash, true,                                \
103360484Sobrien          "Create core/mini dump on VM fatal error")                        \
103460484Sobrien                                                                            \
103560484Sobrien  product(uintx, ErrorLogTimeout, 2 * 60,                                   \
103660484Sobrien          "Timeout, in seconds, to limit the time spent on writing an "     \
103760484Sobrien          "error log in case of a crash.")                                  \
103860484Sobrien                                                                            \
103960484Sobrien  product_pd(bool, UseOSErrorReporting,                                     \
104060484Sobrien          "Let VM fatal error propagate to the OS (ie. WER on Windows)")    \
104160484Sobrien                                                                            \
104260484Sobrien  product(bool, SuppressFatalErrorMessage, false,                           \
104360484Sobrien          "Report NO fatal error message (avoid deadlock)")                 \
104460484Sobrien                                                                            \
104560484Sobrien  product(ccstrlist, OnError, "",                                           \
104660484Sobrien          "Run user-defined commands on fatal error; see VMError.cpp "      \
104760484Sobrien          "for examples")                                                   \
104860484Sobrien                                                                            \
104960484Sobrien  product(ccstrlist, OnOutOfMemoryError, "",                                \
105060484Sobrien          "Run user-defined commands on first java.lang.OutOfMemoryError")  \
105160484Sobrien                                                                            \
105260484Sobrien  manageable(bool, HeapDumpBeforeFullGC, false,                             \
105360484Sobrien          "Dump heap to file before any major stop-the-world GC")           \
105460484Sobrien                                                                            \
105560484Sobrien  manageable(bool, HeapDumpAfterFullGC, false,                              \
105660484Sobrien          "Dump heap to file after any major stop-the-world GC")            \
105760484Sobrien                                                                            \
105860484Sobrien  manageable(bool, HeapDumpOnOutOfMemoryError, false,                       \
105960484Sobrien          "Dump heap to file when java.lang.OutOfMemoryError is thrown")    \
106060484Sobrien                                                                            \
106160484Sobrien  manageable(ccstr, HeapDumpPath, NULL,                                     \
106260484Sobrien          "When HeapDumpOnOutOfMemoryError is on, the path (filename or "   \
106360484Sobrien          "directory) of the dump file (defaults to java_pid<pid>.hprof "   \
106460484Sobrien          "in the working directory)")                                      \
106560484Sobrien                                                                            \
106660484Sobrien  develop(size_t, SegmentedHeapDumpThreshold, 2*G,                          \
106760484Sobrien          "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) "     \
106860484Sobrien          "when the heap usage is larger than this")                        \
106960484Sobrien                                                                            \
107060484Sobrien  develop(size_t, HeapDumpSegmentSize, 1*G,                                 \
107160484Sobrien          "Approximate segment size when generating a segmented heap dump") \
107260484Sobrien                                                                            \
107360484Sobrien  develop(bool, BreakAtWarning, false,                                      \
107460484Sobrien          "Execute breakpoint upon encountering VM warning")                \
107560484Sobrien                                                                            \
107660484Sobrien  develop(bool, TraceVMOperation, false,                                    \
107760484Sobrien          "Trace VM operations")                                            \
107860484Sobrien                                                                            \
107960484Sobrien  develop(bool, UseFakeTimers, false,                                       \
108060484Sobrien          "Tell whether the VM should use system time or a fake timer")     \
108160484Sobrien                                                                            \
108260484Sobrien  product(ccstr, NativeMemoryTracking, "off",                               \
108360484Sobrien          "Native memory tracking options")                                 \
108460484Sobrien                                                                            \
108560484Sobrien  diagnostic(bool, PrintNMTStatistics, false,                               \
108660484Sobrien          "Print native memory tracking summary data if it is on")          \
108760484Sobrien                                                                            \
108860484Sobrien  diagnostic(bool, LogCompilation, false,                                   \
108960484Sobrien          "Log compilation activity in detail to LogFile")                  \
109060484Sobrien                                                                            \
109160484Sobrien  product(bool, PrintCompilation, false,                                    \
109260484Sobrien          "Print compilations")                                             \
109360484Sobrien                                                                            \
109460484Sobrien  diagnostic(bool, TraceNMethodInstalls, false,                             \
109560484Sobrien          "Trace nmethod installation")                                     \
109660484Sobrien                                                                            \
109760484Sobrien  diagnostic(intx, ScavengeRootsInCode, 2,                                  \
109860484Sobrien          "0: do not allow scavengable oops in the code cache; "            \
109960484Sobrien          "1: allow scavenging from the code cache; "                       \
110060484Sobrien          "2: emit as many constants as the compiler can see")              \
110160484Sobrien          range(0, 2)                                                       \
110260484Sobrien                                                                            \
110360484Sobrien  product(bool, AlwaysRestoreFPU, false,                                    \
110460484Sobrien          "Restore the FPU control word after every JNI call (expensive)")  \
110560484Sobrien                                                                            \
110660484Sobrien  product(bool, MemoryMapImage, false,                                      \
110760484Sobrien          "Memory map entire runtime image")                                \
110860484Sobrien                                                                            \
110960484Sobrien  diagnostic(bool, PrintCompilation2, false,                                \
111060484Sobrien          "Print additional statistics per compilation")                    \
111160484Sobrien                                                                            \
111260484Sobrien  diagnostic(bool, PrintAdapterHandlers, false,                             \
111360484Sobrien          "Print code generated for i2c/c2i adapters")                      \
111460484Sobrien                                                                            \
111560484Sobrien  diagnostic(bool, VerifyAdapterCalls, trueInDebug,                         \
111660484Sobrien          "Verify that i2c/c2i adapters are called properly")               \
111760484Sobrien                                                                            \
111860484Sobrien  develop(bool, VerifyAdapterSharing, false,                                \
111960484Sobrien          "Verify that the code for shared adapters is the equivalent")     \
112060484Sobrien                                                                            \
112160484Sobrien  diagnostic(bool, PrintAssembly, false,                                    \
112260484Sobrien          "Print assembly code (using external disassembler.so)")           \
112360484Sobrien                                                                            \
112460484Sobrien  diagnostic(ccstr, PrintAssemblyOptions, NULL,                             \
112560484Sobrien          "Print options string passed to disassembler.so")                 \
112660484Sobrien                                                                            \
112760484Sobrien  diagnostic(bool, PrintNMethods, false,                                    \
112860484Sobrien          "Print assembly code for nmethods when generated")                \
112960484Sobrien                                                                            \
113060484Sobrien  diagnostic(bool, PrintNativeNMethods, false,                              \
113160484Sobrien          "Print assembly code for native nmethods when generated")         \
113260484Sobrien                                                                            \
113360484Sobrien  develop(bool, PrintDebugInfo, false,                                      \
113460484Sobrien          "Print debug information for all nmethods when generated")        \
113560484Sobrien                                                                            \
113660484Sobrien  develop(bool, PrintRelocations, false,                                    \
113760484Sobrien          "Print relocation information for all nmethods when generated")   \
113860484Sobrien                                                                            \
113960484Sobrien  develop(bool, PrintDependencies, false,                                   \
114060484Sobrien          "Print dependency information for all nmethods when generated")   \
114160484Sobrien                                                                            \
114260484Sobrien  develop(bool, PrintExceptionHandlers, false,                              \
114360484Sobrien          "Print exception handler tables for all nmethods when generated") \
114460484Sobrien                                                                            \
114560484Sobrien  develop(bool, StressCompiledExceptionHandlers, false,                     \
114660484Sobrien          "Exercise compiled exception handlers")                           \
114760484Sobrien                                                                            \
114860484Sobrien  develop(bool, InterceptOSException, false,                                \
114960484Sobrien          "Start debugger when an implicit OS (e.g. NULL) "                 \
115060484Sobrien          "exception happens")                                              \
115160484Sobrien                                                                            \
115260484Sobrien  product(bool, PrintCodeCache, false,                                      \
115360484Sobrien          "Print the code cache memory usage when exiting")                 \
115460484Sobrien                                                                            \
115560484Sobrien  develop(bool, PrintCodeCache2, false,                                     \
115660484Sobrien          "Print detailed usage information on the code cache when exiting")\
115760484Sobrien                                                                            \
115860484Sobrien  product(bool, PrintCodeCacheOnCompilation, false,                         \
115960484Sobrien          "Print the code cache memory usage each time a method is "        \
116060484Sobrien          "compiled")                                                       \
116160484Sobrien                                                                            \
116260484Sobrien  diagnostic(bool, PrintStubCode, false,                                    \
116360484Sobrien          "Print generated stub code")                                      \
116460484Sobrien                                                                            \
116560484Sobrien  product(bool, StackTraceInThrowable, true,                                \
116660484Sobrien          "Collect backtrace in throwable when exception happens")          \
116760484Sobrien                                                                            \
116860484Sobrien  product(bool, OmitStackTraceInFastThrow, true,                            \
116960484Sobrien          "Omit backtraces for some 'hot' exceptions in optimized code")    \
117060484Sobrien                                                                            \
117160484Sobrien  product(bool, ProfilerPrintByteCodeStatistics, false,                     \
117260484Sobrien          "Print bytecode statistics when dumping profiler output")         \
117360484Sobrien                                                                            \
117460484Sobrien  product(bool, ProfilerRecordPC, false,                                    \
117560484Sobrien          "Collect ticks for each 16 byte interval of compiled code")       \
117660484Sobrien                                                                            \
117760484Sobrien  product(bool, ProfileVM, false,                                           \
117860484Sobrien          "Profile ticks that fall within VM (either in the VM Thread "     \
117960484Sobrien          "or VM code called through stubs)")                               \
118060484Sobrien                                                                            \
118160484Sobrien  product(bool, ProfileIntervals, false,                                    \
118260484Sobrien          "Print profiles for each interval (see ProfileIntervalsTicks)")   \
118360484Sobrien                                                                            \
118460484Sobrien  notproduct(bool, ProfilerCheckIntervals, false,                           \
118560484Sobrien          "Collect and print information on spacing of profiler ticks")     \
118660484Sobrien                                                                            \
118760484Sobrien  product(bool, PrintWarnings, true,                                        \
118860484Sobrien          "Print JVM warnings to output stream")                            \
118960484Sobrien                                                                            \
119060484Sobrien  notproduct(uintx, WarnOnStalledSpinLock, 0,                               \
119160484Sobrien          "Print warnings for stalled SpinLocks")                           \
119260484Sobrien                                                                            \
119360484Sobrien  product(bool, RegisterFinalizersAtInit, true,                             \
119460484Sobrien          "Register finalizable objects at end of Object.<init> or "        \
119560484Sobrien          "after allocation")                                               \
119660484Sobrien                                                                            \
119760484Sobrien  develop(bool, RegisterReferences, true,                                   \
119860484Sobrien          "Tell whether the VM should register soft/weak/final/phantom "    \
119960484Sobrien          "references")                                                     \
120060484Sobrien                                                                            \
120160484Sobrien  develop(bool, IgnoreRewrites, false,                                      \
120260484Sobrien          "Suppress rewrites of bytecodes in the oopmap generator. "        \
120360484Sobrien          "This is unsafe!")                                                \
120460484Sobrien                                                                            \
120560484Sobrien  develop(bool, PrintCodeCacheExtension, false,                             \
120660484Sobrien          "Print extension of code cache")                                  \
120760484Sobrien                                                                            \
120860484Sobrien  develop(bool, UsePrivilegedStack, true,                                   \
120960484Sobrien          "Enable the security JVM functions")                              \
121060484Sobrien                                                                            \
121160484Sobrien  develop(bool, ProtectionDomainVerification, true,                         \
121260484Sobrien          "Verify protection domain before resolution in system dictionary")\
121360484Sobrien                                                                            \
121460484Sobrien  product(bool, ClassUnloading, true,                                       \
121560484Sobrien          "Do unloading of classes")                                        \
121660484Sobrien                                                                            \
121760484Sobrien  product(bool, ClassUnloadingWithConcurrentMark, true,                     \
121860484Sobrien          "Do unloading of classes with a concurrent marking cycle")        \
121960484Sobrien                                                                            \
122060484Sobrien  develop(bool, DisableStartThread, false,                                  \
122160484Sobrien          "Disable starting of additional Java threads "                    \
122260484Sobrien          "(for debugging only)")                                           \
122360484Sobrien                                                                            \
122460484Sobrien  develop(bool, MemProfiling, false,                                        \
122560484Sobrien          "Write memory usage profiling to log file")                       \
122660484Sobrien                                                                            \
122760484Sobrien  notproduct(bool, PrintSystemDictionaryAtExit, false,                      \
122860484Sobrien          "Print the system dictionary at exit")                            \
122960484Sobrien                                                                            \
123060484Sobrien  experimental(intx, PredictedLoadedClassCount, 0,                          \
123160484Sobrien          "Experimental: Tune loaded class cache starting size")            \
123260484Sobrien                                                                            \
123360484Sobrien  diagnostic(bool, UnsyncloadClass, false,                                  \
123460484Sobrien          "Unstable: VM calls loadClass unsynchronized. Custom "            \
123560484Sobrien          "class loader must call VM synchronized for findClass "           \
123660484Sobrien          "and defineClass.")                                               \
123760484Sobrien                                                                            \
123860484Sobrien  product(bool, AlwaysLockClassLoader, false,                               \
123960484Sobrien          "Require the VM to acquire the class loader lock before calling " \
124060484Sobrien          "loadClass() even for class loaders registering "                 \
124160484Sobrien          "as parallel capable")                                            \
124260484Sobrien                                                                            \
124360484Sobrien  product(bool, AllowParallelDefineClass, false,                            \
124460484Sobrien          "Allow parallel defineClass requests for class loaders "          \
124560484Sobrien          "registering as parallel capable")                                \
124660484Sobrien                                                                            \
124760484Sobrien  product(bool, MustCallLoadClassInternal, false,                           \
124860484Sobrien          "Call loadClassInternal() rather than loadClass()")               \
124960484Sobrien                                                                            \
125060484Sobrien  product_pd(bool, DontYieldALot,                                           \
125160484Sobrien          "Throw away obvious excess yield calls")                          \
125260484Sobrien                                                                            \
125360484Sobrien  product_pd(bool, ConvertSleepToYield,                                     \
125460484Sobrien          "Convert sleep(0) to thread yield "                               \
125560484Sobrien          "(may be off for Solaris to improve GUI)")                        \
125660484Sobrien                                                                            \
125760484Sobrien  product(bool, ConvertYieldToSleep, false,                                 \
125860484Sobrien          "Convert yield to a sleep of MinSleepInterval to simulate Win32 " \
125960484Sobrien          "behavior")                                                       \
126060484Sobrien                                                                            \
126160484Sobrien  develop(bool, UseDetachedThreads, true,                                   \
126260484Sobrien          "Use detached threads that are recycled upon termination "        \
126360484Sobrien          "(for Solaris only)")                                             \
126460484Sobrien                                                                            \
126560484Sobrien  product(bool, UseLWPSynchronization, true,                                \
126660484Sobrien          "Use LWP-based instead of libthread-based synchronization "       \
126760484Sobrien          "(SPARC only)")                                                   \
126860484Sobrien                                                                            \
126960484Sobrien  experimental(ccstr, SyncKnobs, NULL,                                      \
127060484Sobrien               "(Unstable) Various monitor synchronization tunables")       \
127160484Sobrien                                                                            \
127260484Sobrien  experimental(intx, EmitSync, 0,                                           \
127360484Sobrien               "(Unsafe, Unstable) "                                        \
127460484Sobrien               "Control emission of inline sync fast-path code")            \
127560484Sobrien                                                                            \
127660484Sobrien  product(intx, MonitorBound, 0, "Bound Monitor population")                \
127760484Sobrien                                                                            \
127860484Sobrien  product(bool, MonitorInUseLists, false, "Track Monitors for Deflation")   \
127960484Sobrien                                                                            \
128060484Sobrien  experimental(intx, SyncFlags, 0, "(Unsafe, Unstable) "                    \
128160484Sobrien               "Experimental Sync flags")                                   \
128260484Sobrien                                                                            \
128360484Sobrien  experimental(intx, SyncVerbose, 0, "(Unstable)")                          \
128460484Sobrien                                                                            \
128560484Sobrien  experimental(intx, ClearFPUAtPark, 0, "(Unsafe, Unstable)")               \
128660484Sobrien                                                                            \
128760484Sobrien  experimental(intx, hashCode, 5,                                           \
128860484Sobrien               "(Unstable) select hashCode generation algorithm")           \
128960484Sobrien                                                                            \
129060484Sobrien  experimental(intx, WorkAroundNPTLTimedWaitHang, 1,                        \
129160484Sobrien               "(Unstable, Linux-specific) "                                \
129260484Sobrien               "avoid NPTL-FUTEX hang pthread_cond_timedwait")              \
129360484Sobrien                                                                            \
129460484Sobrien  product(bool, FilterSpuriousWakeups, true,                                \
129560484Sobrien          "When true prevents OS-level spurious, or premature, wakeups "    \
129660484Sobrien          "from Object.wait (Ignored for Windows)")                         \
129760484Sobrien                                                                            \
129860484Sobrien  experimental(intx, NativeMonitorTimeout, -1, "(Unstable)")                \
129960484Sobrien                                                                            \
130060484Sobrien  experimental(intx, NativeMonitorFlags, 0, "(Unstable)")                   \
130160484Sobrien                                                                            \
130260484Sobrien  experimental(intx, NativeMonitorSpinLimit, 20, "(Unstable)")              \
130360484Sobrien                                                                            \
130460484Sobrien  develop(bool, UsePthreads, false,                                         \
130560484Sobrien          "Use pthread-based instead of libthread-based synchronization "   \
130660484Sobrien          "(SPARC only)")                                                   \
130760484Sobrien                                                                            \
130860484Sobrien  product(bool, ReduceSignalUsage, false,                                   \
130960484Sobrien          "Reduce the use of OS signals in Java and/or the VM")             \
131060484Sobrien                                                                            \
131160484Sobrien  develop_pd(bool, ShareVtableStubs,                                        \
131260484Sobrien          "Share vtable stubs (smaller code but worse branch prediction")   \
131360484Sobrien                                                                            \
131460484Sobrien  develop(bool, LoadLineNumberTables, true,                                 \
131560484Sobrien          "Tell whether the class file parser loads line number tables")    \
131660484Sobrien                                                                            \
131760484Sobrien  develop(bool, LoadLocalVariableTables, true,                              \
131860484Sobrien          "Tell whether the class file parser loads local variable tables") \
131960484Sobrien                                                                            \
132060484Sobrien  develop(bool, LoadLocalVariableTypeTables, true,                          \
132160484Sobrien          "Tell whether the class file parser loads local variable type"    \
132260484Sobrien          "tables")                                                         \
132360484Sobrien                                                                            \
132460484Sobrien  product(bool, AllowUserSignalHandlers, false,                             \
132560484Sobrien          "Do not complain if the application installs signal handlers "    \
132660484Sobrien          "(Solaris & Linux only)")                                         \
132760484Sobrien                                                                            \
132860484Sobrien  product(bool, UseSignalChaining, true,                                    \
132960484Sobrien          "Use signal-chaining to invoke signal handlers installed "        \
133060484Sobrien          "by the application (Solaris & Linux only)")                      \
133160484Sobrien                                                                            \
133260484Sobrien  product(bool, UseAltSigs, false,                                          \
133360484Sobrien          "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM "      \
133460484Sobrien          "internal signals (Solaris only)")                                \
133560484Sobrien                                                                            \
133660484Sobrien  product(bool, AllowJNIEnvProxy, false,                                    \
133760484Sobrien          "Allow JNIEnv proxies for jdbx")                                  \
133860484Sobrien                                                                            \
133960484Sobrien  product(bool, JNIDetachReleasesMonitors, true,                            \
134060484Sobrien          "JNI DetachCurrentThread releases monitors owned by thread")      \
134160484Sobrien                                                                            \
134260484Sobrien  product(bool, RestoreMXCSROnJNICalls, false,                              \
134360484Sobrien          "Restore MXCSR when returning from JNI calls")                    \
134460484Sobrien                                                                            \
134560484Sobrien  product(bool, CheckJNICalls, false,                                       \
134660484Sobrien          "Verify all arguments to JNI calls")                              \
134760484Sobrien                                                                            \
134860484Sobrien  product(bool, CheckEndorsedAndExtDirs, false,                             \
134960484Sobrien          "Verify the endorsed and extension directories are not used")     \
135060484Sobrien                                                                            \
135160484Sobrien  product(bool, UseFastJNIAccessors, true,                                  \
135260484Sobrien          "Use optimized versions of Get<Primitive>Field")                  \
135360484Sobrien                                                                            \
135460484Sobrien  product(intx, MaxJNILocalCapacity, 65536,                                 \
135560484Sobrien          "Maximum allowable local JNI handle capacity to "                 \
135660484Sobrien          "EnsureLocalCapacity() and PushLocalFrame(), "                    \
135760484Sobrien          "where <= 0 is unlimited, default: 65536")                        \
135860484Sobrien                                                                            \
135960484Sobrien  product(bool, EagerXrunInit, false,                                       \
136060484Sobrien          "Eagerly initialize -Xrun libraries; allows startup profiling, "  \
136160484Sobrien          "but not all -Xrun libraries may support the state of the VM "    \
136260484Sobrien          "at this time")                                                   \
136360484Sobrien                                                                            \
136460484Sobrien  product(bool, PreserveAllAnnotations, false,                              \
136560484Sobrien          "Preserve RuntimeInvisibleAnnotations as well "                   \
136660484Sobrien          "as RuntimeVisibleAnnotations")                                   \
136760484Sobrien                                                                            \
136860484Sobrien  develop(uintx, PreallocatedOutOfMemoryErrorCount, 4,                      \
136960484Sobrien          "Number of OutOfMemoryErrors preallocated with backtrace")        \
137060484Sobrien                                                                            \
137160484Sobrien  product(bool, UseXMMForArrayCopy, false,                                  \
137260484Sobrien          "Use SSE2 MOVQ instruction for Arraycopy")                        \
137360484Sobrien                                                                            \
137460484Sobrien  product(intx, FieldsAllocationStyle, 1,                                   \
137560484Sobrien          "0 - type based with oops first, "                                \
137660484Sobrien          "1 - with oops last, "                                            \
137760484Sobrien          "2 - oops in super and sub classes are together")                 \
137860484Sobrien          range(0, 2)                                                       \
137960484Sobrien                                                                            \
138060484Sobrien  product(bool, CompactFields, true,                                        \
138160484Sobrien          "Allocate nonstatic fields in gaps between previous fields")      \
138260484Sobrien                                                                            \
138360484Sobrien  notproduct(bool, PrintFieldLayout, false,                                 \
138460484Sobrien          "Print field layout for each class")                              \
138560484Sobrien                                                                            \
138660484Sobrien  /* Need to limit the extent of the padding to reasonable size.          */\
138760484Sobrien  /* 8K is well beyond the reasonable HW cache line size, even with       */\
138860484Sobrien  /* aggressive prefetching, while still leaving the room for segregating */\
138960484Sobrien  /* among the distinct pages.                                            */\
139060484Sobrien  product(intx, ContendedPaddingWidth, 128,                                 \
139160484Sobrien          "How many bytes to pad the fields/classes marked @Contended with")\
139260484Sobrien          range(0, 8192)                                                    \
139360484Sobrien          constraint(ContendedPaddingWidthConstraintFunc)                   \
139460484Sobrien                                                                            \
139560484Sobrien  product(bool, EnableContended, true,                                      \
139660484Sobrien          "Enable @Contended annotation support")                           \
139760484Sobrien                                                                            \
139860484Sobrien  product(bool, RestrictContended, true,                                    \
139960484Sobrien          "Restrict @Contended to trusted classes")                         \
140060484Sobrien                                                                            \
140160484Sobrien  product(bool, UseBiasedLocking, true,                                     \
140260484Sobrien          "Enable biased locking in JVM")                                   \
140360484Sobrien                                                                            \
140460484Sobrien  product(intx, BiasedLockingStartupDelay, 4000,                            \
140560484Sobrien          "Number of milliseconds to wait before enabling biased locking")  \
140660484Sobrien                                                                            \
140760484Sobrien  diagnostic(bool, PrintBiasedLockingStatistics, false,                     \
140860484Sobrien          "Print statistics of biased locking in JVM")                      \
140960484Sobrien                                                                            \
141060484Sobrien  product(intx, BiasedLockingBulkRebiasThreshold, 20,                       \
141160484Sobrien          "Threshold of number of revocations per type to try to "          \
141260484Sobrien          "rebias all objects in the heap of that type")                    \
141360484Sobrien                                                                            \
141460484Sobrien  product(intx, BiasedLockingBulkRevokeThreshold, 40,                       \
141560484Sobrien          "Threshold of number of revocations per type to permanently "     \
141660484Sobrien          "revoke biases of all objects in the heap of that type")          \
141760484Sobrien                                                                            \
141860484Sobrien  product(intx, BiasedLockingDecayTime, 25000,                              \
141960484Sobrien          "Decay time (in milliseconds) to re-enable bulk rebiasing of a "  \
142060484Sobrien          "type after previous bulk rebias")                                \
142160484Sobrien                                                                            \
142260484Sobrien  /* tracing */                                                             \
142360484Sobrien                                                                            \
142460484Sobrien  notproduct(bool, TraceRuntimeCalls, false,                                \
142560484Sobrien          "Trace run-time calls")                                           \
142660484Sobrien                                                                            \
142760484Sobrien  develop(bool, TraceJNICalls, false,                                       \
142860484Sobrien          "Trace JNI calls")                                                \
142960484Sobrien                                                                            \
143060484Sobrien  develop(bool, StressRewriter, false,                                      \
143160484Sobrien          "Stress linktime bytecode rewriting")                             \
143260484Sobrien                                                                            \
143360484Sobrien  notproduct(bool, TraceJVMCalls, false,                                    \
143460484Sobrien          "Trace JVM calls")                                                \
143560484Sobrien                                                                            \
143660484Sobrien  product(ccstr, TraceJVMTI, NULL,                                          \
143760484Sobrien          "Trace flags for JVMTI functions and events")                     \
143860484Sobrien                                                                            \
143960484Sobrien  /* This option can change an EMCP method into an obsolete method. */      \
144060484Sobrien  /* This can affect tests that except specific methods to be EMCP. */      \
144160484Sobrien  /* This option should be used with caution.                       */      \
144260484Sobrien  product(bool, StressLdcRewrite, false,                                    \
144360484Sobrien          "Force ldc -> ldc_w rewrite during RedefineClasses")              \
144460484Sobrien                                                                            \
144560484Sobrien  product(intx, TraceRedefineClasses, 0,                                    \
144660484Sobrien          "Trace level for JVMTI RedefineClasses")                          \
144760484Sobrien                                                                            \
144860484Sobrien  /* change to false by default sometime after Mustang */                   \
144960484Sobrien  product(bool, VerifyMergedCPBytecodes, true,                              \
145060484Sobrien          "Verify bytecodes after RedefineClasses constant pool merging")   \
145160484Sobrien                                                                            \
145260484Sobrien  develop(bool, TraceJNIHandleAllocation, false,                            \
145360484Sobrien          "Trace allocation/deallocation of JNI handle blocks")             \
145460484Sobrien                                                                            \
145560484Sobrien  develop(bool, TraceBytecodes, false,                                      \
145660484Sobrien          "Trace bytecode execution")                                       \
145760484Sobrien                                                                            \
145860484Sobrien  develop(bool, TraceClassInitialization, false,                            \
145960484Sobrien          "Trace class initialization")                                     \
146060484Sobrien                                                                            \
146160484Sobrien  product(bool, TraceExceptions, false,                                     \
146260484Sobrien          "Trace exceptions")                                               \
146360484Sobrien                                                                            \
146460484Sobrien  develop(bool, TraceICs, false,                                            \
146560484Sobrien          "Trace inline cache changes")                                     \
146660484Sobrien                                                                            \
146760484Sobrien  notproduct(bool, TraceInvocationCounterOverflow, false,                   \
146860484Sobrien          "Trace method invocation counter overflow")                       \
146960484Sobrien                                                                            \
147060484Sobrien  develop(bool, TraceInlineCacheClearing, false,                            \
147160484Sobrien          "Trace clearing of inline caches in nmethods")                    \
147260484Sobrien                                                                            \
147360484Sobrien  develop(bool, TraceDependencies, false,                                   \
147460484Sobrien          "Trace dependencies")                                             \
147560484Sobrien                                                                            \
147660484Sobrien  develop(bool, VerifyDependencies, trueInDebug,                            \
147760484Sobrien          "Exercise and verify the compilation dependency mechanism")       \
147860484Sobrien                                                                            \
147960484Sobrien  develop(bool, TraceNewOopMapGeneration, false,                            \
148060484Sobrien          "Trace OopMapGeneration")                                         \
148160484Sobrien                                                                            \
148260484Sobrien  develop(bool, TraceNewOopMapGenerationDetailed, false,                    \
148360484Sobrien          "Trace OopMapGeneration: print detailed cell states")             \
148460484Sobrien                                                                            \
148560484Sobrien  develop(bool, TimeOopMap, false,                                          \
148660484Sobrien          "Time calls to GenerateOopMap::compute_map() in sum")             \
148760484Sobrien                                                                            \
148860484Sobrien  develop(bool, TimeOopMap2, false,                                         \
148960484Sobrien          "Time calls to GenerateOopMap::compute_map() individually")       \
149060484Sobrien                                                                            \
149160484Sobrien  develop(bool, TraceMonitorMismatch, false,                                \
149260484Sobrien          "Trace monitor matching failures during OopMapGeneration")        \
149360484Sobrien                                                                            \
149460484Sobrien  develop(bool, TraceOopMapRewrites, false,                                 \
149560484Sobrien          "Trace rewriting of method oops during oop map generation")       \
149660484Sobrien                                                                            \
149760484Sobrien  develop(bool, TraceSafepoint, false,                                      \
149860484Sobrien          "Trace safepoint operations")                                     \
149960484Sobrien                                                                            \
150060484Sobrien  develop(bool, TraceICBuffer, false,                                       \
150160484Sobrien          "Trace usage of IC buffer")                                       \
150260484Sobrien                                                                            \
150360484Sobrien  develop(bool, TraceCompiledIC, false,                                     \
150460484Sobrien          "Trace changes of compiled IC")                                   \
150560484Sobrien                                                                            \
150660484Sobrien  notproduct(bool, TraceZapDeadLocals, false,                               \
150760484Sobrien          "Trace zapping dead locals")                                      \
150860484Sobrien                                                                            \
150960484Sobrien  develop(bool, TraceStartupTime, false,                                    \
151060484Sobrien          "Trace setup time")                                               \
151160484Sobrien                                                                            \
151260484Sobrien  develop(bool, TraceProtectionDomainVerification, false,                   \
151360484Sobrien          "Trace protection domain verification")                           \
151460484Sobrien                                                                            \
151560484Sobrien  develop(bool, TraceClearedExceptions, false,                              \
151660484Sobrien          "Print when an exception is forcibly cleared")                    \
151760484Sobrien                                                                            \
151860484Sobrien  product(bool, TraceClassResolution, false,                                \
151960484Sobrien          "Trace all constant pool resolutions (for debugging)")            \
152060484Sobrien                                                                            \
152160484Sobrien  product(bool, TraceBiasedLocking, false,                                  \
152260484Sobrien          "Trace biased locking in JVM")                                    \
152360484Sobrien                                                                            \
152460484Sobrien  product(bool, TraceMonitorInflation, false,                               \
152560484Sobrien          "Trace monitor inflation in JVM")                                 \
152660484Sobrien                                                                            \
152760484Sobrien  /* gc */                                                                  \
152860484Sobrien                                                                            \
152960484Sobrien  product(bool, UseSerialGC, false,                                         \
153060484Sobrien          "Use the Serial garbage collector")                               \
153160484Sobrien                                                                            \
153260484Sobrien  product(bool, UseG1GC, false,                                             \
153360484Sobrien          "Use the Garbage-First garbage collector")                        \
153460484Sobrien                                                                            \
153560484Sobrien  product(bool, UseParallelGC, false,                                       \
153660484Sobrien          "Use the Parallel Scavenge garbage collector")                    \
153760484Sobrien                                                                            \
153860484Sobrien  product(bool, UseParallelOldGC, false,                                    \
153960484Sobrien          "Use the Parallel Old garbage collector")                         \
154060484Sobrien                                                                            \
154160484Sobrien  product(uintx, HeapMaximumCompactionInterval, 20,                         \
154260484Sobrien          "How often should we maximally compact the heap (not allowing "   \
154360484Sobrien          "any dead space)")                                                \
154460484Sobrien                                                                            \
154560484Sobrien  product(uintx, HeapFirstMaximumCompactionCount, 3,                        \
154660484Sobrien          "The collection count for the first maximum compaction")          \
154760484Sobrien                                                                            \
154860484Sobrien  product(bool, UseMaximumCompactionOnSystemGC, true,                       \
154960484Sobrien          "Use maximum compaction in the Parallel Old garbage collector "   \
155060484Sobrien          "for a system GC")                                                \
155160484Sobrien                                                                            \
155260484Sobrien  product(uintx, ParallelOldDeadWoodLimiterMean, 50,                        \
155360484Sobrien          "The mean used by the parallel compact dead wood "                \
155460484Sobrien          "limiter (a number between 0-100)")                               \
155560484Sobrien          range(0, 100)                                                     \
155660484Sobrien                                                                            \
155760484Sobrien  product(uintx, ParallelOldDeadWoodLimiterStdDev, 80,                      \
155860484Sobrien          "The standard deviation used by the parallel compact dead wood "  \
155960484Sobrien          "limiter (a number between 0-100)")                               \
156060484Sobrien          range(0, 100)                                                     \
156160484Sobrien                                                                            \
156260484Sobrien  product(uint, ParallelGCThreads, 0,                                       \
156360484Sobrien          "Number of parallel threads parallel gc will use")                \
156460484Sobrien                                                                            \
156560484Sobrien  product(bool, UseDynamicNumberOfGCThreads, false,                         \
156660484Sobrien          "Dynamically choose the number of parallel threads "              \
156760484Sobrien          "parallel gc will use")                                           \
156860484Sobrien                                                                            \
156960484Sobrien  diagnostic(bool, ForceDynamicNumberOfGCThreads, false,                    \
157060484Sobrien          "Force dynamic selection of the number of "                       \
157160484Sobrien          "parallel threads parallel gc will use to aid debugging")         \
157260484Sobrien                                                                            \
157360484Sobrien  product(size_t, HeapSizePerGCThread, ScaleForWordSize(64*M),              \
157460484Sobrien          "Size of heap (bytes) per GC thread used in calculating the "     \
157560484Sobrien          "number of GC threads")                                           \
157660484Sobrien          range((uintx)os::vm_page_size(), max_uintx)                       \
157760484Sobrien                                                                            \
157860484Sobrien  product(bool, TraceDynamicGCThreads, false,                               \
157960484Sobrien          "Trace the dynamic GC thread usage")                              \
158060484Sobrien                                                                            \
158160484Sobrien  develop(bool, ParallelOldGCSplitALot, false,                              \
158260484Sobrien          "Provoke splitting (copying data from a young gen space to "      \
158360484Sobrien          "multiple destination spaces)")                                   \
158460484Sobrien                                                                            \
158560484Sobrien  develop(uintx, ParallelOldGCSplitInterval, 3,                             \
158660484Sobrien          "How often to provoke splitting a young gen space")               \
158760484Sobrien          range(0, max_uintx)                                               \
158860484Sobrien                                                                            \
158960484Sobrien  product(uint, ConcGCThreads, 0,                                           \
159060484Sobrien          "Number of threads concurrent gc will use")                       \
159160484Sobrien                                                                            \
159260484Sobrien  product(size_t, YoungPLABSize, 4096,                                      \
159360484Sobrien          "Size of young gen promotion LAB's (in HeapWords)")               \
159460484Sobrien                                                                            \
159560484Sobrien  product(size_t, OldPLABSize, 1024,                                        \
159660484Sobrien          "Size of old gen promotion LAB's (in HeapWords), or Number        \
159760484Sobrien          of blocks to attempt to claim when refilling CMS LAB's")          \
159860484Sobrien                                                                            \
159960484Sobrien  product(uintx, GCTaskTimeStampEntries, 200,                               \
160060484Sobrien          "Number of time stamp entries per gc worker thread")              \
160160484Sobrien          range(1, max_uintx)                                               \
160260484Sobrien                                                                            \
160360484Sobrien  product(bool, AlwaysTenure, false,                                        \
160460484Sobrien          "Always tenure objects in eden (ParallelGC only)")                \
160560484Sobrien                                                                            \
160660484Sobrien  product(bool, NeverTenure, false,                                         \
160760484Sobrien          "Never tenure objects in eden, may tenure on overflow "           \
160860484Sobrien          "(ParallelGC only)")                                              \
160960484Sobrien                                                                            \
161060484Sobrien  product(bool, ScavengeBeforeFullGC, true,                                 \
161160484Sobrien          "Scavenge youngest generation before each full GC.")              \
161260484Sobrien                                                                            \
161360484Sobrien  develop(bool, ScavengeWithObjectsInToSpace, false,                        \
161460484Sobrien          "Allow scavenges to occur when to-space contains objects")        \
161560484Sobrien                                                                            \
161660484Sobrien  product(bool, UseConcMarkSweepGC, false,                                  \
161760484Sobrien          "Use Concurrent Mark-Sweep GC in the old generation")             \
161860484Sobrien                                                                            \
161960484Sobrien  product(bool, ExplicitGCInvokesConcurrent, false,                         \
162060484Sobrien          "A System.gc() request invokes a concurrent collection; "         \
162160484Sobrien          "(effective only when using concurrent collectors)")              \
162260484Sobrien                                                                            \
162360484Sobrien  product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false,        \
162460484Sobrien          "A System.gc() request invokes a concurrent collection and "      \
162560484Sobrien          "also unloads classes during such a concurrent gc cycle "         \
162660484Sobrien          "(effective only when UseConcMarkSweepGC)")                       \
162760484Sobrien                                                                            \
162860484Sobrien  product(bool, GCLockerInvokesConcurrent, false,                           \
162960484Sobrien          "The exit of a JNI critical section necessitating a scavenge, "   \
163060484Sobrien          "also kicks off a background concurrent collection")              \
163160484Sobrien                                                                            \
163260484Sobrien  product(uintx, GCLockerEdenExpansionPercent, 5,                           \
163360484Sobrien          "How much the GC can expand the eden by while the GC locker "     \
163460484Sobrien          "is active (as a percentage)")                                    \
163560484Sobrien          range(0, 100)                                                     \
163660484Sobrien                                                                            \
163760484Sobrien  diagnostic(uintx, GCLockerRetryAllocationCount, 2,                        \
163860484Sobrien          "Number of times to retry allocations when "                      \
163960484Sobrien          "blocked by the GC locker")                                       \
164060484Sobrien                                                                            \
164160484Sobrien  develop(bool, UseCMSAdaptiveFreeLists, true,                              \
164260484Sobrien          "Use adaptive free lists in the CMS generation")                  \
164360484Sobrien                                                                            \
164460484Sobrien  develop(bool, UseAsyncConcMarkSweepGC, true,                              \
164560484Sobrien          "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\
164660484Sobrien                                                                            \
164760484Sobrien  product(bool, UseCMSBestFit, true,                                        \
164860484Sobrien          "Use CMS best fit allocation strategy")                           \
164960484Sobrien                                                                            \
165060484Sobrien  product(bool, UseParNewGC, false,                                         \
165160484Sobrien          "Use parallel threads in the new generation")                     \
165260484Sobrien                                                                            \
165360484Sobrien  product(bool, PrintTaskqueue, false,                                      \
165460484Sobrien          "Print taskqueue statistics for parallel collectors")             \
165560484Sobrien                                                                            \
165660484Sobrien  product(bool, PrintTerminationStats, false,                               \
165760484Sobrien          "Print termination statistics for parallel collectors")           \
165860484Sobrien                                                                            \
165960484Sobrien  product(uintx, ParallelGCBufferWastePct, 10,                              \
166060484Sobrien          "Wasted fraction of parallel allocation buffer")                  \
166160484Sobrien          range(0, 100)                                                     \
166260484Sobrien                                                                            \
166360484Sobrien  product(uintx, TargetPLABWastePct, 10,                                    \
166460484Sobrien          "Target wasted space in last buffer as percent of overall "       \
166560484Sobrien          "allocation")                                                     \
166660484Sobrien          range(1, 100)                                                     \
166760484Sobrien                                                                            \
166860484Sobrien  product(uintx, PLABWeight, 75,                                            \
166960484Sobrien          "Percentage (0-100) used to weight the current sample when "      \
167060484Sobrien          "computing exponentially decaying average for ResizePLAB")        \
167160484Sobrien          range(0, 100)                                                     \
167260484Sobrien                                                                            \
167360484Sobrien  product(bool, ResizePLAB, true,                                           \
167460484Sobrien          "Dynamically resize (survivor space) promotion LAB's")            \
167560484Sobrien                                                                            \
167660484Sobrien  product(bool, PrintPLAB, false,                                           \
167760484Sobrien          "Print (survivor space) promotion LAB's sizing decisions")        \
167860484Sobrien                                                                            \
167960484Sobrien  product(intx, ParGCArrayScanChunk, 50,                                    \
168060484Sobrien          "Scan a subset of object array and push remainder, if array is "  \
168160484Sobrien          "bigger than this")                                               \
168260484Sobrien          range(1, max_intx)                                                \
168360484Sobrien                                                                            \
168460484Sobrien  product(bool, ParGCUseLocalOverflow, false,                               \
168560484Sobrien          "Instead of a global overflow list, use local overflow stacks")   \
168660484Sobrien                                                                            \
168760484Sobrien  product(bool, ParGCTrimOverflow, true,                                    \
168860484Sobrien          "Eagerly trim the local overflow lists "                          \
168960484Sobrien          "(when ParGCUseLocalOverflow)")                                   \
169060484Sobrien                                                                            \
169160484Sobrien  notproduct(bool, ParGCWorkQueueOverflowALot, false,                       \
169260484Sobrien          "Simulate work queue overflow in ParNew")                         \
169360484Sobrien                                                                            \
169460484Sobrien  notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000,                   \
169560484Sobrien          "An `interval' counter that determines how frequently "           \
169660484Sobrien          "we simulate overflow; a smaller number increases frequency")     \
169760484Sobrien                                                                            \
169860484Sobrien  product(uintx, ParGCDesiredObjsFromOverflowList, 20,                      \
169960484Sobrien          "The desired number of objects to claim from the overflow list")  \
170060484Sobrien                                                                            \
170160484Sobrien  diagnostic(uintx, ParGCStridesPerThread, 2,                               \
170260484Sobrien          "The number of strides per worker thread that we divide up the "  \
170360484Sobrien          "card table scanning work into")                                  \
170460484Sobrien          range(1, max_uintx)                                               \
170560484Sobrien                                                                            \
170660484Sobrien  diagnostic(intx, ParGCCardsPerStrideChunk, 256,                           \
170760484Sobrien          "The number of cards in each chunk of the parallel chunks used "  \
170860484Sobrien          "during card table scanning")                                     \
170960484Sobrien          range(1, max_intx)                                                \
171060484Sobrien                                                                            \
171160484Sobrien  product(uintx, OldPLABWeight, 50,                                         \
171260484Sobrien          "Percentage (0-100) used to weight the current sample when "      \
171360484Sobrien          "computing exponentially decaying average for resizing "          \
171460484Sobrien          "OldPLABSize")                                                    \
171560484Sobrien          range(0, 100)                                                     \
171660484Sobrien                                                                            \
171760484Sobrien  product(bool, ResizeOldPLAB, true,                                        \
171860484Sobrien          "Dynamically resize (old gen) promotion LAB's")                   \
171960484Sobrien                                                                            \
172060484Sobrien  product(bool, PrintOldPLAB, false,                                        \
172160484Sobrien          "Print (old gen) promotion LAB's sizing decisions")               \
172260484Sobrien                                                                            \
172360484Sobrien  product(size_t, CMSOldPLABMax, 1024,                                      \
172460484Sobrien          "Maximum size of CMS gen promotion LAB caches per worker "        \
172560484Sobrien          "per block size")                                                 \
172660484Sobrien          range(1, max_uintx)                                               \
172760484Sobrien                                                                            \
172860484Sobrien  product(size_t, CMSOldPLABMin, 16,                                        \
172960484Sobrien          "Minimum size of CMS gen promotion LAB caches per worker "        \
173060484Sobrien          "per block size")                                                 \
173160484Sobrien          range(1, max_uintx)                                               \
173260484Sobrien          constraint(CMSOldPLABMinConstraintFunc)                           \
173360484Sobrien                                                                            \
173460484Sobrien  product(uintx, CMSOldPLABNumRefills, 4,                                   \
173560484Sobrien          "Nominal number of refills of CMS gen promotion LAB cache "       \
173660484Sobrien          "per worker per block size")                                      \
173760484Sobrien          range(1, max_uintx)                                               \
173860484Sobrien                                                                            \
173960484Sobrien  product(bool, CMSOldPLABResizeQuicker, false,                             \
174060484Sobrien          "React on-the-fly during a scavenge to a sudden "                 \
174160484Sobrien          "change in block demand rate")                                    \
174260484Sobrien                                                                            \
174360484Sobrien  product(uintx, CMSOldPLABToleranceFactor, 4,                              \
174460484Sobrien          "The tolerance of the phase-change detector for on-the-fly "      \
174560484Sobrien          "PLAB resizing during a scavenge")                                \
174660484Sobrien          range(1, max_uintx)                                               \
174760484Sobrien                                                                            \
174860484Sobrien  product(uintx, CMSOldPLABReactivityFactor, 2,                             \
174960484Sobrien          "The gain in the feedback loop for on-the-fly PLAB resizing "     \
175060484Sobrien          "during a scavenge")                                              \
175160484Sobrien                                                                            \
175260484Sobrien  product(bool, AlwaysPreTouch, false,                                      \
175360484Sobrien          "Force all freshly committed pages to be pre-touched")            \
175460484Sobrien                                                                            \
175560484Sobrien  product_pd(size_t, CMSYoungGenPerWorker,                                  \
175660484Sobrien          "The maximum size of young gen chosen by default per GC worker "  \
175760484Sobrien          "thread available")                                               \
175860484Sobrien          range(1, max_uintx)                                               \
175960484Sobrien                                                                            \
176060484Sobrien  product(uintx, CMSIncrementalSafetyFactor, 10,                            \
176160484Sobrien          "Percentage (0-100) used to add conservatism when computing the " \
176260484Sobrien          "duty cycle")                                                     \
176360484Sobrien          range(0, 100)                                                     \
176460484Sobrien                                                                            \
176560484Sobrien  product(uintx, CMSExpAvgFactor, 50,                                       \
176660484Sobrien          "Percentage (0-100) used to weight the current sample when "      \
176760484Sobrien          "computing exponential averages for CMS statistics")              \
176860484Sobrien          range(0, 100)                                                     \
176960484Sobrien                                                                            \
177060484Sobrien  product(uintx, CMS_FLSWeight, 75,                                         \
177160484Sobrien          "Percentage (0-100) used to weight the current sample when "      \
177260484Sobrien          "computing exponentially decaying averages for CMS FLS "          \
177360484Sobrien          "statistics")                                                     \
177460484Sobrien          range(0, 100)                                                     \
177560484Sobrien                                                                            \
177660484Sobrien  product(uintx, CMS_FLSPadding, 1,                                         \
177760484Sobrien          "The multiple of deviation from mean to use for buffering "       \
177860484Sobrien          "against volatility in free list demand")                         \
177960484Sobrien                                                                            \
178060484Sobrien  product(uintx, FLSCoalescePolicy, 2,                                      \
178160484Sobrien          "CMS: aggressiveness level for coalescing, increasing "           \
178260484Sobrien          "from 0 to 4")                                                    \
178360484Sobrien          range(0, 4)                                                       \
178460484Sobrien                                                                            \
178560484Sobrien  product(bool, FLSAlwaysCoalesceLarge, false,                              \
178660484Sobrien          "CMS: larger free blocks are always available for coalescing")    \
178760484Sobrien                                                                            \
178860484Sobrien  product(double, FLSLargestBlockCoalesceProximity, 0.99,                   \
178960484Sobrien          "CMS: the smaller the percentage the greater the coalescing "     \
179060484Sobrien          "force")                                                          \
179160484Sobrien                                                                            \
179260484Sobrien  product(double, CMSSmallCoalSurplusPercent, 1.05,                         \
179360484Sobrien          "CMS: the factor by which to inflate estimated demand of small "  \
179460484Sobrien          "block sizes to prevent coalescing with an adjoining block")      \
179560484Sobrien                                                                            \
179660484Sobrien  product(double, CMSLargeCoalSurplusPercent, 0.95,                         \
179760484Sobrien          "CMS: the factor by which to inflate estimated demand of large "  \
179860484Sobrien          "block sizes to prevent coalescing with an adjoining block")      \
179960484Sobrien                                                                            \
180060484Sobrien  product(double, CMSSmallSplitSurplusPercent, 1.10,                        \
180160484Sobrien          "CMS: the factor by which to inflate estimated demand of small "  \
180260484Sobrien          "block sizes to prevent splitting to supply demand for smaller "  \
180360484Sobrien          "blocks")                                                         \
180460484Sobrien                                                                            \
180560484Sobrien  product(double, CMSLargeSplitSurplusPercent, 1.00,                        \
180660484Sobrien          "CMS: the factor by which to inflate estimated demand of large "  \
180760484Sobrien          "block sizes to prevent splitting to supply demand for smaller "  \
180860484Sobrien          "blocks")                                                         \
180960484Sobrien                                                                            \
181060484Sobrien  product(bool, CMSExtrapolateSweep, false,                                 \
181160484Sobrien          "CMS: cushion for block demand during sweep")                     \
181260484Sobrien                                                                            \
181360484Sobrien  product(uintx, CMS_SweepWeight, 75,                                       \
181460484Sobrien          "Percentage (0-100) used to weight the current sample when "      \
181560484Sobrien          "computing exponentially decaying average for inter-sweep "       \
181660484Sobrien          "duration")                                                       \
181760484Sobrien          range(0, 100)                                                     \
181860484Sobrien                                                                            \
181960484Sobrien  product(uintx, CMS_SweepPadding, 1,                                       \
182060484Sobrien          "The multiple of deviation from mean to use for buffering "       \
182160484Sobrien          "against volatility in inter-sweep duration")                     \
182260484Sobrien                                                                            \
182360484Sobrien  product(uintx, CMS_SweepTimerThresholdMillis, 10,                         \
182460484Sobrien          "Skip block flux-rate sampling for an epoch unless inter-sweep "  \
182560484Sobrien          "duration exceeds this threshold in milliseconds")                \
182660484Sobrien                                                                            \
182760484Sobrien  product(bool, CMSClassUnloadingEnabled, true,                             \
182860484Sobrien          "Whether class unloading enabled when using CMS GC")              \
182960484Sobrien                                                                            \
183060484Sobrien  product(uintx, CMSClassUnloadingMaxInterval, 0,                           \
183160484Sobrien          "When CMS class unloading is enabled, the maximum CMS cycle "     \
183260484Sobrien          "count for which classes may not be unloaded")                    \
183360484Sobrien                                                                            \
183460484Sobrien  develop(intx, CMSDictionaryChoice, 0,                                     \
183560484Sobrien          "Use BinaryTreeDictionary as default in the CMS generation")      \
183660484Sobrien                                                                            \
183760484Sobrien  product(uintx, CMSIndexedFreeListReplenish, 4,                            \
183860484Sobrien          "Replenish an indexed free list with this number of chunks")      \
183960484Sobrien                                                                            \
184060484Sobrien  product(bool, CMSReplenishIntermediate, true,                             \
184160484Sobrien          "Replenish all intermediate free-list caches")                    \
184260484Sobrien                                                                            \
184360484Sobrien  product(bool, CMSSplitIndexedFreeListBlocks, true,                        \
184460484Sobrien          "When satisfying batched demand, split blocks from the "          \
184560484Sobrien          "IndexedFreeList whose size is a multiple of requested size")     \
184660484Sobrien                                                                            \
184760484Sobrien  product(bool, CMSLoopWarn, false,                                         \
184860484Sobrien          "Warn in case of excessive CMS looping")                          \
184960484Sobrien                                                                            \
185060484Sobrien  develop(bool, CMSOverflowEarlyRestoration, false,                         \
185160484Sobrien          "Restore preserved marks early")                                  \
185260484Sobrien                                                                            \
185360484Sobrien  product(size_t, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M),             \
185460484Sobrien          "Size of marking stack")                                          \
185560484Sobrien                                                                            \
185660484Sobrien  product(size_t, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M),         \
185760484Sobrien          "Maximum size of marking stack")                                  \
185889857Sobrien          range(1, (max_jint - 1))                                          \
185960484Sobrien                                                                            \
186060484Sobrien  notproduct(bool, CMSMarkStackOverflowALot, false,                         \
186160484Sobrien          "Simulate frequent marking stack / work queue overflow")          \
186260484Sobrien                                                                            \
186360484Sobrien  notproduct(uintx, CMSMarkStackOverflowInterval, 1000,                     \
186460484Sobrien          "An \"interval\" counter that determines how frequently "         \
186560484Sobrien          "to simulate overflow; a smaller number increases frequency")     \
186660484Sobrien                                                                            \
186760484Sobrien  product(uintx, CMSMaxAbortablePrecleanLoops, 0,                           \
186860484Sobrien          "Maximum number of abortable preclean iterations, if > 0")        \
186960484Sobrien                                                                            \
187060484Sobrien  product(intx, CMSMaxAbortablePrecleanTime, 5000,                          \
187160484Sobrien          "Maximum time in abortable preclean (in milliseconds)")           \
187260484Sobrien                                                                            \
187360484Sobrien  product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100,              \
187460484Sobrien          "Nominal minimum work per abortable preclean iteration")          \
187560484Sobrien                                                                            \
187660484Sobrien  manageable(intx, CMSAbortablePrecleanWaitMillis, 100,                     \
187760484Sobrien          "Time that we sleep between iterations when not given "           \
187860484Sobrien          "enough work per iteration")                                      \
187960484Sobrien                                                                            \
188060484Sobrien  product(size_t, CMSRescanMultiple, 32,                                    \
188160484Sobrien          "Size (in cards) of CMS parallel rescan task")                    \
188260484Sobrien          range(1, max_uintx)                                               \
188360484Sobrien                                                                            \
188460484Sobrien  product(size_t, CMSConcMarkMultiple, 32,                                  \
188560484Sobrien          "Size (in cards) of CMS concurrent MT marking task")              \
188660484Sobrien          range(1, max_uintx)                                               \
188760484Sobrien                                                                            \
188860484Sobrien  product(bool, CMSAbortSemantics, false,                                   \
188960484Sobrien          "Whether abort-on-overflow semantics is implemented")             \
189060484Sobrien                                                                            \
189160484Sobrien  product(bool, CMSParallelInitialMarkEnabled, true,                        \
189260484Sobrien          "Use the parallel initial mark.")                                 \
189360484Sobrien                                                                            \
189460484Sobrien  product(bool, CMSParallelRemarkEnabled, true,                             \
189560484Sobrien          "Whether parallel remark enabled (only if ParNewGC)")             \
189660484Sobrien                                                                            \
189760484Sobrien  product(bool, CMSParallelSurvivorRemarkEnabled, true,                     \
189860484Sobrien          "Whether parallel remark of survivor space "                      \
189960484Sobrien          "enabled (effective only if CMSParallelRemarkEnabled)")           \
190060484Sobrien                                                                            \
190160484Sobrien  product(bool, CMSPLABRecordAlways, true,                                  \
190260484Sobrien          "Always record survivor space PLAB boundaries (effective only "   \
190360484Sobrien          "if CMSParallelSurvivorRemarkEnabled)")                           \
190460484Sobrien                                                                            \
190560484Sobrien  product(bool, CMSEdenChunksRecordAlways, true,                            \
190660484Sobrien          "Always record eden chunks used for the parallel initial mark "   \
190760484Sobrien          "or remark of eden")                                              \
190860484Sobrien                                                                            \
190960484Sobrien  product(bool, CMSPrintEdenSurvivorChunks, false,                          \
191060484Sobrien          "Print the eden and the survivor chunks used for the parallel "   \
191160484Sobrien          "initial mark or remark of the eden/survivor spaces")             \
191260484Sobrien                                                                            \
191360484Sobrien  product(bool, CMSConcurrentMTEnabled, true,                               \
191460484Sobrien          "Whether multi-threaded concurrent work enabled "                 \
191560484Sobrien          "(effective only if ParNewGC)")                                   \
191660484Sobrien                                                                            \
191760484Sobrien  product(bool, CMSPrecleaningEnabled, true,                                \
191860484Sobrien          "Whether concurrent precleaning enabled")                         \
191960484Sobrien                                                                            \
192060484Sobrien  product(uintx, CMSPrecleanIter, 3,                                        \
192160484Sobrien          "Maximum number of precleaning iteration passes")                 \
192260484Sobrien          range(0, 9)                                                       \
192360484Sobrien                                                                            \
192460484Sobrien  product(uintx, CMSPrecleanDenominator, 3,                                 \
192560484Sobrien          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \
192660484Sobrien          "ratio")                                                          \
192760484Sobrien          range(1, max_uintx)                                               \
192860484Sobrien          constraint(CMSPrecleanDenominatorConstraintFunc)                  \
192960484Sobrien                                                                            \
193060484Sobrien  product(uintx, CMSPrecleanNumerator, 2,                                   \
193160484Sobrien          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \
193260484Sobrien          "ratio")                                                          \
193360484Sobrien          range(0, max_uintx-1)                                             \
193460484Sobrien          constraint(CMSPrecleanNumeratorConstraintFunc)                    \
193560484Sobrien                                                                            \
193660484Sobrien  product(bool, CMSPrecleanRefLists1, true,                                 \
193760484Sobrien          "Preclean ref lists during (initial) preclean phase")             \
193860484Sobrien                                                                            \
193960484Sobrien  product(bool, CMSPrecleanRefLists2, false,                                \
194060484Sobrien          "Preclean ref lists during abortable preclean phase")             \
194160484Sobrien                                                                            \
194260484Sobrien  product(bool, CMSPrecleanSurvivors1, false,                               \
194360484Sobrien          "Preclean survivors during (initial) preclean phase")             \
194460484Sobrien                                                                            \
194560484Sobrien  product(bool, CMSPrecleanSurvivors2, true,                                \
194660484Sobrien          "Preclean survivors during abortable preclean phase")             \
194760484Sobrien                                                                            \
194860484Sobrien  product(uintx, CMSPrecleanThreshold, 1000,                                \
194960484Sobrien          "Do not iterate again if number of dirty cards is less than this")\
195060484Sobrien          range(100, max_uintx)                                             \
195160484Sobrien                                                                            \
195260484Sobrien  product(bool, CMSCleanOnEnter, true,                                      \
195360484Sobrien          "Clean-on-enter optimization for reducing number of dirty cards") \
195460484Sobrien                                                                            \
195560484Sobrien  product(uintx, CMSRemarkVerifyVariant, 1,                                 \
195660484Sobrien          "Choose variant (1,2) of verification following remark")          \
195760484Sobrien          range(1, 2)                                                       \
195860484Sobrien                                                                            \
195960484Sobrien  product(size_t, CMSScheduleRemarkEdenSizeThreshold, 2*M,                  \
196060484Sobrien          "If Eden size is below this, do not try to schedule remark")      \
196160484Sobrien                                                                            \
196260484Sobrien  product(uintx, CMSScheduleRemarkEdenPenetration, 50,                      \
196360484Sobrien          "The Eden occupancy percentage (0-100) at which "                 \
196460484Sobrien          "to try and schedule remark pause")                               \
196560484Sobrien          range(0, 100)                                                     \
196660484Sobrien                                                                            \
196760484Sobrien  product(uintx, CMSScheduleRemarkSamplingRatio, 5,                         \
196860484Sobrien          "Start sampling eden top at least before young gen "              \
196960484Sobrien          "occupancy reaches 1/<ratio> of the size at which "               \
197060484Sobrien          "we plan to schedule remark")                                     \
197160484Sobrien          range(1, max_uintx)                                               \
197260484Sobrien                                                                            \
197360484Sobrien  product(uintx, CMSSamplingGrain, 16*K,                                    \
197460484Sobrien          "The minimum distance between eden samples for CMS (see above)")  \
197560484Sobrien          range(1, max_uintx)                                               \
197660484Sobrien                                                                            \
197760484Sobrien  product(bool, CMSScavengeBeforeRemark, false,                             \
197860484Sobrien          "Attempt scavenge before the CMS remark step")                    \
197960484Sobrien                                                                            \
198060484Sobrien  develop(bool, CMSTraceSweeper, false,                                     \
198160484Sobrien          "Trace some actions of the CMS sweeper")                          \
198260484Sobrien                                                                            \
198360484Sobrien  product(uintx, CMSWorkQueueDrainThreshold, 10,                            \
198460484Sobrien          "Don't drain below this size per parallel worker/thief")          \
198560484Sobrien                                                                            \
198660484Sobrien  manageable(intx, CMSWaitDuration, 2000,                                   \
198760484Sobrien          "Time in milliseconds that CMS thread waits for young GC")        \
198860484Sobrien                                                                            \
198960484Sobrien  develop(uintx, CMSCheckInterval, 1000,                                    \
199060484Sobrien          "Interval in milliseconds that CMS thread checks if it "          \
199160484Sobrien          "should start a collection cycle")                                \
199260484Sobrien                                                                            \
199360484Sobrien  product(bool, CMSYield, true,                                             \
199460484Sobrien          "Yield between steps of CMS")                                     \
199560484Sobrien                                                                            \
199660484Sobrien  product(size_t, CMSBitMapYieldQuantum, 10*M,                              \
199760484Sobrien          "Bitmap operations should process at most this many bits "        \
199860484Sobrien          "between yields")                                                 \
199960484Sobrien          range(1, max_uintx)                                               \
200060484Sobrien                                                                            \
200160484Sobrien  product(bool, CMSDumpAtPromotionFailure, false,                           \
200260484Sobrien          "Dump useful information about the state of the CMS old "         \
200360484Sobrien          "generation upon a promotion failure")                            \
200460484Sobrien                                                                            \
200560484Sobrien  product(bool, CMSPrintChunksInDump, false,                                \
200660484Sobrien          "In a dump enabled by CMSDumpAtPromotionFailure, include "        \
200760484Sobrien          "more detailed information about the free chunks")                \
200860484Sobrien                                                                            \
200960484Sobrien  product(bool, CMSPrintObjectsInDump, false,                               \
201060484Sobrien          "In a dump enabled by CMSDumpAtPromotionFailure, include "        \
201160484Sobrien          "more detailed information about the allocated objects")          \
201260484Sobrien                                                                            \
201360484Sobrien  diagnostic(bool, FLSVerifyAllHeapReferences, false,                       \
201460484Sobrien          "Verify that all references across the FLS boundary "             \
201560484Sobrien          "are to valid objects")                                           \
201660484Sobrien                                                                            \
201760484Sobrien  diagnostic(bool, FLSVerifyLists, false,                                   \
201860484Sobrien          "Do lots of (expensive) FreeListSpace verification")              \
201960484Sobrien                                                                            \
202060484Sobrien  diagnostic(bool, FLSVerifyIndexTable, false,                              \
202160484Sobrien          "Do lots of (expensive) FLS index table verification")            \
202260484Sobrien                                                                            \
202360484Sobrien  develop(bool, FLSVerifyDictionary, false,                                 \
202460484Sobrien          "Do lots of (expensive) FLS dictionary verification")             \
202560484Sobrien                                                                            \
202660484Sobrien  develop(bool, VerifyBlockOffsetArray, false,                              \
202760484Sobrien          "Do (expensive) block offset array verification")                 \
202860484Sobrien                                                                            \
202960484Sobrien  diagnostic(bool, BlockOffsetArrayUseUnallocatedBlock, false,              \
203060484Sobrien          "Maintain _unallocated_block in BlockOffsetArray "                \
203160484Sobrien          "(currently applicable only to CMS collector)")                   \
203260484Sobrien                                                                            \
203360484Sobrien  develop(bool, TraceCMSState, false,                                       \
203460484Sobrien          "Trace the state of the CMS collection")                          \
203560484Sobrien                                                                            \
203660484Sobrien  product(intx, RefDiscoveryPolicy, 0,                                      \
203760484Sobrien          "Select type of reference discovery policy: "                     \
203860484Sobrien          "reference-based(0) or referent-based(1)")                        \
203960484Sobrien          range(ReferenceProcessor::DiscoveryPolicyMin,                     \
204060484Sobrien                ReferenceProcessor::DiscoveryPolicyMax)                     \
204160484Sobrien                                                                            \
204260484Sobrien  product(bool, ParallelRefProcEnabled, false,                              \
204360484Sobrien          "Enable parallel reference processing whenever possible")         \
204460484Sobrien                                                                            \
204560484Sobrien  product(bool, ParallelRefProcBalancingEnabled, true,                      \
204660484Sobrien          "Enable balancing of reference processing queues")                \
204760484Sobrien                                                                            \
204860484Sobrien  product(uintx, CMSTriggerRatio, 80,                                       \
204960484Sobrien          "Percentage of MinHeapFreeRatio in CMS generation that is "       \
205060484Sobrien          "allocated before a CMS collection cycle commences")              \
205160484Sobrien          range(0, 100)                                                     \
205260484Sobrien                                                                            \
205360484Sobrien  product(uintx, CMSBootstrapOccupancy, 50,                                 \
205460484Sobrien          "Percentage CMS generation occupancy at which to "                \
205560484Sobrien          "initiate CMS collection for bootstrapping collection stats")     \
205660484Sobrien          range(0, 100)                                                     \
205760484Sobrien                                                                            \
205860484Sobrien  product(intx, CMSInitiatingOccupancyFraction, -1,                         \
205960484Sobrien          "Percentage CMS generation occupancy to start a CMS collection "  \
206060484Sobrien          "cycle. A negative value means that CMSTriggerRatio is used")     \
206160484Sobrien          range(min_intx, 100)                                              \
206260484Sobrien                                                                            \
206360484Sobrien  product(uintx, InitiatingHeapOccupancyPercent, 45,                        \
206460484Sobrien          "Percentage of the (entire) heap occupancy to start a "           \
206560484Sobrien          "concurrent GC cycle. It is used by GCs that trigger a "          \
206660484Sobrien          "concurrent GC cycle based on the occupancy of the entire heap, " \
206760484Sobrien          "not just one of the generations (e.g., G1). A value of 0 "       \
206860484Sobrien          "denotes 'do constant GC cycles'.")                               \
206960484Sobrien          range(0, 100)                                                     \
207060484Sobrien                                                                            \
207160484Sobrien  manageable(intx, CMSTriggerInterval, -1,                                  \
207260484Sobrien          "Commence a CMS collection cycle (at least) every so many "       \
207360484Sobrien          "milliseconds (0 permanently, -1 disabled)")                      \
207460484Sobrien          range(-1, max_intx)                                               \
207560484Sobrien                                                                            \
207660484Sobrien  product(bool, UseCMSInitiatingOccupancyOnly, false,                       \
207760484Sobrien          "Only use occupancy as a criterion for starting a CMS collection")\
207860484Sobrien                                                                            \
207960484Sobrien  product(uintx, CMSIsTooFullPercentage, 98,                                \
208060484Sobrien          "An absolute ceiling above which CMS will always consider the "   \
208160484Sobrien          "unloading of classes when class unloading is enabled")           \
208260484Sobrien          range(0, 100)                                                     \
208360484Sobrien                                                                            \
208460484Sobrien  develop(bool, CMSTestInFreeList, false,                                   \
208560484Sobrien          "Check if the coalesced range is already in the "                 \
208660484Sobrien          "free lists as claimed")                                          \
208760484Sobrien                                                                            \
208860484Sobrien  notproduct(bool, CMSVerifyReturnedBytes, false,                           \
208960484Sobrien          "Check that all the garbage collected was returned to the "       \
209060484Sobrien          "free lists")                                                     \
209160484Sobrien                                                                            \
209260484Sobrien  notproduct(bool, ScavengeALot, false,                                     \
209360484Sobrien          "Force scavenge at every Nth exit from the runtime system "       \
209460484Sobrien          "(N=ScavengeALotInterval)")                                       \
209560484Sobrien                                                                            \
209660484Sobrien  develop(bool, FullGCALot, false,                                          \
209760484Sobrien          "Force full gc at every Nth exit from the runtime system "        \
209860484Sobrien          "(N=FullGCALotInterval)")                                         \
209960484Sobrien                                                                            \
210060484Sobrien  notproduct(bool, GCALotAtAllSafepoints, false,                            \
210160484Sobrien          "Enforce ScavengeALot/GCALot at all potential safepoints")        \
210260484Sobrien                                                                            \
210360484Sobrien  product(bool, PrintPromotionFailure, false,                               \
210460484Sobrien          "Print additional diagnostic information following "              \
210560484Sobrien          "promotion failure")                                              \
210660484Sobrien                                                                            \
210760484Sobrien  notproduct(bool, PromotionFailureALot, false,                             \
210860484Sobrien          "Use promotion failure handling on every youngest generation "    \
210960484Sobrien          "collection")                                                     \
211060484Sobrien                                                                            \
211160484Sobrien  develop(uintx, PromotionFailureALotCount, 1000,                           \
211260484Sobrien          "Number of promotion failures occurring at PLAB "     \
211360484Sobrien          "refill attempts (ParNew) or promotion attempts "                 \
211460484Sobrien          "(other young collectors)")                                       \
211560484Sobrien                                                                            \
211660484Sobrien  develop(uintx, PromotionFailureALotInterval, 5,                           \
211760484Sobrien          "Total collections between promotion failures a lot")             \
211860484Sobrien                                                                            \
211960484Sobrien  experimental(uintx, WorkStealingSleepMillis, 1,                           \
212060484Sobrien          "Sleep time when sleep is used for yields")                       \
212160484Sobrien                                                                            \
212260484Sobrien  experimental(uintx, WorkStealingYieldsBeforeSleep, 5000,                  \
212360484Sobrien          "Number of yields before a sleep is done during work stealing")   \
212460484Sobrien                                                                            \
212560484Sobrien  experimental(uintx, WorkStealingHardSpins, 4096,                          \
212660484Sobrien          "Number of iterations in a spin loop between checks on "          \
212760484Sobrien          "time out of hard spin")                                          \
212860484Sobrien                                                                            \
212960484Sobrien  experimental(uintx, WorkStealingSpinToYieldRatio, 10,                     \
213060484Sobrien          "Ratio of hard spins to calls to yield")                          \
213160484Sobrien                                                                            \
213260484Sobrien  develop(uintx, ObjArrayMarkingStride, 512,                                \
213360484Sobrien          "Number of object array elements to push onto the marking stack " \
213460484Sobrien          "before pushing a continuation entry")                            \
213560484Sobrien                                                                            \
213660484Sobrien  develop(bool, MetadataAllocationFailALot, false,                          \
213760484Sobrien          "Fail metadata allocations at intervals controlled by "           \
213860484Sobrien          "MetadataAllocationFailALotInterval")                             \
213960484Sobrien                                                                            \
214060484Sobrien  develop(uintx, MetadataAllocationFailALotInterval, 1000,                  \
214160484Sobrien          "Metadata allocation failure a lot interval")                     \
214260484Sobrien                                                                            \
214360484Sobrien  develop(bool, TraceMetadataChunkAllocation, false,                        \
214460484Sobrien          "Trace chunk metadata allocations")                               \
214560484Sobrien                                                                            \
214660484Sobrien  product(bool, TraceMetadataHumongousAllocation, false,                    \
214760484Sobrien          "Trace humongous metadata allocations")                           \
214860484Sobrien                                                                            \
214960484Sobrien  develop(bool, TraceMetavirtualspaceAllocation, false,                     \
215060484Sobrien          "Trace virtual space metadata allocations")                       \
215160484Sobrien                                                                            \
215260484Sobrien  notproduct(bool, ExecuteInternalVMTests, false,                           \
215360484Sobrien          "Enable execution of internal VM tests")                          \
215460484Sobrien                                                                            \
215560484Sobrien  notproduct(bool, VerboseInternalVMTests, false,                           \
215660484Sobrien          "Turn on logging for internal VM tests.")                         \
215760484Sobrien                                                                            \
215860484Sobrien  product_pd(bool, UseTLAB, "Use thread-local object allocation")           \
215960484Sobrien                                                                            \
216060484Sobrien  product_pd(bool, ResizeTLAB,                                              \
216160484Sobrien          "Dynamically resize TLAB size for threads")                       \
216260484Sobrien                                                                            \
216360484Sobrien  product(bool, ZeroTLAB, false,                                            \
216460484Sobrien          "Zero out the newly created TLAB")                                \
216560484Sobrien                                                                            \
216660484Sobrien  product(bool, FastTLABRefill, true,                                       \
216760484Sobrien          "Use fast TLAB refill code")                                      \
216860484Sobrien                                                                            \
216960484Sobrien  product(bool, PrintTLAB, false,                                           \
217060484Sobrien          "Print various TLAB related information")                         \
217160484Sobrien                                                                            \
217260484Sobrien  product(bool, TLABStats, true,                                            \
217360484Sobrien          "Provide more detailed and expensive TLAB statistics "            \
217460484Sobrien          "(with PrintTLAB)")                                               \
217560484Sobrien                                                                            \
217660484Sobrien  product_pd(bool, NeverActAsServerClassMachine,                            \
217760484Sobrien          "Never act like a server-class machine")                          \
217860484Sobrien                                                                            \
217960484Sobrien  product(bool, AlwaysActAsServerClassMachine, false,                       \
218060484Sobrien          "Always act like a server-class machine")                         \
218160484Sobrien                                                                            \
218260484Sobrien  product_pd(uint64_t, MaxRAM,                                              \
218360484Sobrien          "Real memory size (in bytes) used to set maximum heap size")      \
218460484Sobrien                                                                            \
218560484Sobrien  product(size_t, ErgoHeapSizeLimit, 0,                                     \
218660484Sobrien          "Maximum ergonomically set heap size (in bytes); zero means use " \
218760484Sobrien          "MaxRAM / MaxRAMFraction")                                        \
218860484Sobrien                                                                            \
218960484Sobrien  product(uintx, MaxRAMFraction, 4,                                         \
219060484Sobrien          "Maximum fraction (1/n) of real memory used for maximum heap "    \
219160484Sobrien          "size")                                                           \
219260484Sobrien          range(1, max_uintx)                                               \
219360484Sobrien                                                                            \
219460484Sobrien  product(uintx, DefaultMaxRAMFraction, 4,                                  \
219560484Sobrien          "Maximum fraction (1/n) of real memory used for maximum heap "    \
219660484Sobrien          "size; deprecated: to be renamed to MaxRAMFraction")              \
219760484Sobrien          range(1, max_uintx)                                               \
219860484Sobrien                                                                            \
219960484Sobrien  product(uintx, MinRAMFraction, 2,                                         \
220060484Sobrien          "Minimum fraction (1/n) of real memory used for maximum heap "    \
220160484Sobrien          "size on systems with small physical memory size")                \
220260484Sobrien          range(1, max_uintx)                                               \
220360484Sobrien                                                                            \
220460484Sobrien  product(uintx, InitialRAMFraction, 64,                                    \
220560484Sobrien          "Fraction (1/n) of real memory used for initial heap size")       \
220660484Sobrien          range(1, max_uintx)                                               \
220760484Sobrien                                                                            \
220860484Sobrien  develop(uintx, MaxVirtMemFraction, 2,                                     \
220960484Sobrien          "Maximum fraction (1/n) of virtual memory used for ergonomically "\
221060484Sobrien          "determining maximum heap size")                                  \
221160484Sobrien                                                                            \
221260484Sobrien  product(bool, UseAutoGCSelectPolicy, false,                               \
221360484Sobrien          "Use automatic collection selection policy")                      \
221460484Sobrien                                                                            \
221560484Sobrien  product(uintx, AutoGCSelectPauseMillis, 5000,                             \
221660484Sobrien          "Automatic GC selection pause threshold in milliseconds")         \
221760484Sobrien                                                                            \
221860484Sobrien  product(bool, UseAdaptiveSizePolicy, true,                                \
221960484Sobrien          "Use adaptive generation sizing policies")                        \
222060484Sobrien                                                                            \
222160484Sobrien  product(bool, UsePSAdaptiveSurvivorSizePolicy, true,                      \
222260484Sobrien          "Use adaptive survivor sizing policies")                          \
222360484Sobrien                                                                            \
222460484Sobrien  product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true,     \
222560484Sobrien          "Use adaptive young-old sizing policies at minor collections")    \
222660484Sobrien                                                                            \
222760484Sobrien  product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true,     \
222860484Sobrien          "Use adaptive young-old sizing policies at major collections")    \
222960484Sobrien                                                                            \
223060484Sobrien  product(bool, UseAdaptiveSizePolicyWithSystemGC, false,                   \
223160484Sobrien          "Include statistics from System.gc() for adaptive size policy")   \
223260484Sobrien                                                                            \
223360484Sobrien  product(bool, UseAdaptiveGCBoundary, false,                               \
223460484Sobrien          "Allow young-old boundary to move")                               \
223560484Sobrien                                                                            \
223660484Sobrien  develop(bool, TraceAdaptiveGCBoundary, false,                             \
223760484Sobrien          "Trace young-old boundary moves")                                 \
223860484Sobrien                                                                            \
223960484Sobrien  develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1,             \
224060484Sobrien          "Resize the virtual spaces of the young or old generations")      \
224160484Sobrien                                                                            \
224260484Sobrien  product(uintx, AdaptiveSizeThroughPutPolicy, 0,                           \
224360484Sobrien          "Policy for changing generation size for throughput goals")       \
224460484Sobrien                                                                            \
224560484Sobrien  develop(bool, PSAdjustTenuredGenForMinorPause, false,                     \
224660484Sobrien          "Adjust tenured generation to achieve a minor pause goal")        \
224760484Sobrien                                                                            \
224860484Sobrien  develop(bool, PSAdjustYoungGenForMajorPause, false,                       \
224960484Sobrien          "Adjust young generation to achieve a major pause goal")          \
225060484Sobrien                                                                            \
225160484Sobrien  product(uintx, AdaptiveSizePolicyInitializingSteps, 20,                   \
225260484Sobrien          "Number of steps where heuristics is used before data is used")   \
225360484Sobrien                                                                            \
225460484Sobrien  develop(uintx, AdaptiveSizePolicyReadyThreshold, 5,                       \
225560484Sobrien          "Number of collections before the adaptive sizing is started")    \
225660484Sobrien                                                                            \
225760484Sobrien  product(uintx, AdaptiveSizePolicyOutputInterval, 0,                       \
225860484Sobrien          "Collection interval for printing information; zero means never") \
225960484Sobrien                                                                            \
226060484Sobrien  product(bool, UseAdaptiveSizePolicyFootprintGoal, true,                   \
226160484Sobrien          "Use adaptive minimum footprint as a goal")                       \
226260484Sobrien                                                                            \
226360484Sobrien  product(uintx, AdaptiveSizePolicyWeight, 10,                              \
226460484Sobrien          "Weight given to exponential resizing, between 0 and 100")        \
226560484Sobrien          range(0, 100)                                                     \
226660484Sobrien                                                                            \
226760484Sobrien  product(uintx, AdaptiveTimeWeight,       25,                              \
226860484Sobrien          "Weight given to time in adaptive policy, between 0 and 100")     \
226960484Sobrien          range(0, 100)                                                     \
227060484Sobrien                                                                            \
227160484Sobrien  product(uintx, PausePadding, 1,                                           \
227260484Sobrien          "How much buffer to keep for pause time")                         \
227360484Sobrien                                                                            \
227460484Sobrien  product(uintx, PromotedPadding, 3,                                        \
227560484Sobrien          "How much buffer to keep for promotion failure")                  \
227660484Sobrien                                                                            \
227760484Sobrien  product(uintx, SurvivorPadding, 3,                                        \
227860484Sobrien          "How much buffer to keep for survivor overflow")                  \
227960484Sobrien                                                                            \
228060484Sobrien  product(uintx, ThresholdTolerance, 10,                                    \
228160484Sobrien          "Allowed collection cost difference between generations")         \
228260484Sobrien          range(0, 100)                                                     \
228360484Sobrien                                                                            \
228460484Sobrien  product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50,                \
228560484Sobrien          "If collection costs are within margin, reduce both by full "     \
228660484Sobrien          "delta")                                                          \
228760484Sobrien                                                                            \
228860484Sobrien  product(uintx, YoungGenerationSizeIncrement, 20,                          \
228960484Sobrien          "Adaptive size percentage change in young generation")            \
229060484Sobrien          range(0, 100)                                                     \
229160484Sobrien                                                                            \
229260484Sobrien  product(uintx, YoungGenerationSizeSupplement, 80,                         \
229360484Sobrien          "Supplement to YoungedGenerationSizeIncrement used at startup")   \
229460484Sobrien          range(0, 100)                                                     \
229560484Sobrien                                                                            \
229660484Sobrien  product(uintx, YoungGenerationSizeSupplementDecay, 8,                     \
229760484Sobrien          "Decay factor to YoungedGenerationSizeSupplement")                \
229860484Sobrien          range(1, max_uintx)                                               \
229960484Sobrien                                                                            \
230060484Sobrien  product(uintx, TenuredGenerationSizeIncrement, 20,                        \
230160484Sobrien          "Adaptive size percentage change in tenured generation")          \
230260484Sobrien          range(0, 100)                                                     \
230360484Sobrien                                                                            \
230460484Sobrien  product(uintx, TenuredGenerationSizeSupplement, 80,                       \
230560484Sobrien          "Supplement to TenuredGenerationSizeIncrement used at startup")   \
230660484Sobrien          range(0, 100)                                                     \
230760484Sobrien                                                                            \
230860484Sobrien  product(uintx, TenuredGenerationSizeSupplementDecay, 2,                   \
230960484Sobrien          "Decay factor to TenuredGenerationSizeIncrement")                 \
231060484Sobrien          range(1, max_uintx)                                               \
231160484Sobrien                                                                            \
231260484Sobrien  product(uintx, MaxGCPauseMillis, max_uintx,                               \
231360484Sobrien          "Adaptive size policy maximum GC pause time goal in millisecond, "\
231460484Sobrien          "or (G1 Only) the maximum GC time per MMU time slice")            \
231560484Sobrien                                                                            \
231660484Sobrien  product(uintx, GCPauseIntervalMillis, 0,                                  \
231760484Sobrien          "Time slice for MMU specification")                               \
231860484Sobrien                                                                            \
231960484Sobrien  product(uintx, MaxGCMinorPauseMillis, max_uintx,                          \
232060484Sobrien          "Adaptive size policy maximum GC minor pause time goal "          \
232160484Sobrien          "in millisecond")                                                 \
232260484Sobrien                                                                            \
232360484Sobrien  product(uintx, GCTimeRatio, 99,                                           \
232460484Sobrien          "Adaptive size policy application time to GC time ratio")         \
232560484Sobrien                                                                            \
232660484Sobrien  product(uintx, AdaptiveSizeDecrementScaleFactor, 4,                       \
232760484Sobrien          "Adaptive size scale down factor for shrinking")                  \
232860484Sobrien          range(1, max_uintx)                                               \
232960484Sobrien                                                                            \
233060484Sobrien  product(bool, UseAdaptiveSizeDecayMajorGCCost, true,                      \
233160484Sobrien          "Adaptive size decays the major cost for long major intervals")   \
233260484Sobrien                                                                            \
233360484Sobrien  product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10,                     \
233460484Sobrien          "Time scale over which major costs decay")                        \
233560484Sobrien                                                                            \
233660484Sobrien  product(uintx, MinSurvivorRatio, 3,                                       \
233760484Sobrien          "Minimum ratio of young generation/survivor space size")          \
233860484Sobrien                                                                            \
233960484Sobrien  product(uintx, InitialSurvivorRatio, 8,                                   \
234060484Sobrien          "Initial ratio of young generation/survivor space size")          \
234160484Sobrien                                                                            \
234260484Sobrien  product(size_t, BaseFootPrintEstimate, 256*M,                             \
234360484Sobrien          "Estimate of footprint other than Java Heap")                     \
234460484Sobrien                                                                            \
234560484Sobrien  product(bool, UseGCOverheadLimit, true,                                   \
234660484Sobrien          "Use policy to limit of proportion of time spent in GC "          \
234760484Sobrien          "before an OutOfMemory error is thrown")                          \
234860484Sobrien                                                                            \
234960484Sobrien  product(uintx, GCTimeLimit, 98,                                           \
235060484Sobrien          "Limit of the proportion of time spent in GC before "             \
235160484Sobrien          "an OutOfMemoryError is thrown (used with GCHeapFreeLimit)")      \
235260484Sobrien          range(0, 100)                                                     \
235360484Sobrien                                                                            \
235460484Sobrien  product(uintx, GCHeapFreeLimit, 2,                                        \
235560484Sobrien          "Minimum percentage of free space after a full GC before an "     \
235660484Sobrien          "OutOfMemoryError is thrown (used with GCTimeLimit)")             \
235760484Sobrien          range(0, 100)                                                     \
235860484Sobrien                                                                            \
235960484Sobrien  develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5,                 \
236060484Sobrien          "Number of consecutive collections before gc time limit fires")   \
236160484Sobrien                                                                            \
236260484Sobrien  product(bool, PrintAdaptiveSizePolicy, false,                             \
236360484Sobrien          "Print information about AdaptiveSizePolicy")                     \
236460484Sobrien                                                                            \
236560484Sobrien  product(intx, PrefetchCopyIntervalInBytes, -1,                            \
236660484Sobrien          "How far ahead to prefetch destination area (<= 0 means off)")    \
236760484Sobrien                                                                            \
236860484Sobrien  product(intx, PrefetchScanIntervalInBytes, -1,                            \
236960484Sobrien          "How far ahead to prefetch scan area (<= 0 means off)")           \
237060484Sobrien                                                                            \
237160484Sobrien  product(intx, PrefetchFieldsAhead, -1,                                    \
237260484Sobrien          "How many fields ahead to prefetch in oop scan (<= 0 means off)") \
237360484Sobrien                                                                            \
237460484Sobrien  diagnostic(bool, VerifySilently, false,                                   \
237560484Sobrien          "Do not print the verification progress")                         \
237660484Sobrien                                                                            \
237760484Sobrien  diagnostic(bool, VerifyDuringStartup, false,                              \
237860484Sobrien          "Verify memory system before executing any Java code "            \
237960484Sobrien          "during VM initialization")                                       \
238060484Sobrien                                                                            \
238160484Sobrien  diagnostic(bool, VerifyBeforeExit, trueInDebug,                           \
238289857Sobrien          "Verify system before exiting")                                   \
238389857Sobrien                                                                            \
238489857Sobrien  diagnostic(bool, VerifyBeforeGC, false,                                   \
238560484Sobrien          "Verify memory system before GC")                                 \
238660484Sobrien                                                                            \
238760484Sobrien  diagnostic(bool, VerifyAfterGC, false,                                    \
238860484Sobrien          "Verify memory system after GC")                                  \
238960484Sobrien                                                                            \
239060484Sobrien  diagnostic(bool, VerifyDuringGC, false,                                   \
239160484Sobrien          "Verify memory system during GC (between phases)")                \
239260484Sobrien                                                                            \
239360484Sobrien  diagnostic(bool, GCParallelVerificationEnabled, true,                     \
239460484Sobrien          "Enable parallel memory system verification")                     \
239560484Sobrien                                                                            \
239660484Sobrien  diagnostic(bool, DeferInitialCardMark, false,                             \
239760484Sobrien          "When +ReduceInitialCardMarks, explicitly defer any that "        \
239860484Sobrien          "may arise from new_pre_store_barrier")                           \
239960484Sobrien                                                                            \
240060484Sobrien  product(bool, UseCondCardMark, false,                                     \
240160484Sobrien          "Check for already marked card before updating card table")       \
240260484Sobrien                                                                            \
240360484Sobrien  diagnostic(bool, VerifyRememberedSets, false,                             \
240460484Sobrien          "Verify GC remembered sets")                                      \
240560484Sobrien                                                                            \
240660484Sobrien  diagnostic(bool, VerifyObjectStartArray, true,                            \
240760484Sobrien          "Verify GC object start array if verify before/after")            \
240860484Sobrien                                                                            \
240960484Sobrien  product(bool, DisableExplicitGC, false,                                   \
241060484Sobrien          "Ignore calls to System.gc()")                                    \
241160484Sobrien                                                                            \
241260484Sobrien  notproduct(bool, CheckMemoryInitialization, false,                        \
241360484Sobrien          "Check memory initialization")                                    \
241460484Sobrien                                                                            \
241560484Sobrien  diagnostic(bool, BindCMSThreadToCPU, false,                               \
241660484Sobrien          "Bind CMS Thread to CPU if possible")                             \
241760484Sobrien                                                                            \
241860484Sobrien  diagnostic(uintx, CPUForCMSThread, 0,                                     \
241960484Sobrien          "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \
242060484Sobrien                                                                            \
242160484Sobrien  product(bool, BindGCTaskThreadsToCPUs, false,                             \
242260484Sobrien          "Bind GCTaskThreads to CPUs if possible")                         \
242360484Sobrien                                                                            \
242460484Sobrien  product(bool, UseGCTaskAffinity, false,                                   \
242560484Sobrien          "Use worker affinity when asking for GCTasks")                    \
242660484Sobrien                                                                            \
242760484Sobrien  product(uintx, ProcessDistributionStride, 4,                              \
242860484Sobrien          "Stride through processors when distributing processes")          \
242960484Sobrien                                                                            \
243060484Sobrien  product(uintx, CMSCoordinatorYieldSleepCount, 10,                         \
243160484Sobrien          "Number of times the coordinator GC thread will sleep while "     \
243260484Sobrien          "yielding before giving up and resuming GC")                      \
243360484Sobrien                                                                            \
243460484Sobrien  product(uintx, CMSYieldSleepCount, 0,                                     \
243560484Sobrien          "Number of times a GC thread (minus the coordinator) "            \
243660484Sobrien          "will sleep while yielding before giving up and resuming GC")     \
243760484Sobrien                                                                            \
243860484Sobrien  /* gc tracing */                                                          \
243960484Sobrien  manageable(bool, PrintGC, false,                                          \
244060484Sobrien          "Print message at garbage collection")                            \
244160484Sobrien                                                                            \
244260484Sobrien  manageable(bool, PrintGCDetails, false,                                   \
244360484Sobrien          "Print more details at garbage collection")                       \
244460484Sobrien                                                                            \
244560484Sobrien  manageable(bool, PrintGCDateStamps, false,                                \
244660484Sobrien          "Print date stamps at garbage collection")                        \
244760484Sobrien                                                                            \
244860484Sobrien  manageable(bool, PrintGCTimeStamps, false,                                \
244960484Sobrien          "Print timestamps at garbage collection")                         \
245060484Sobrien                                                                            \
245160484Sobrien  manageable(bool, PrintGCID, true,                                         \
245260484Sobrien          "Print an identifier for each garbage collection")                \
245360484Sobrien                                                                            \
245460484Sobrien  product(bool, PrintGCTaskTimeStamps, false,                               \
245560484Sobrien          "Print timestamps for individual gc worker thread tasks")         \
245660484Sobrien                                                                            \
245760484Sobrien  develop(intx, ConcGCYieldTimeout, 0,                                      \
245860484Sobrien          "If non-zero, assert that GC threads yield within this "          \
245960484Sobrien          "number of milliseconds")                                         \
246060484Sobrien                                                                            \
246160484Sobrien  product(bool, PrintReferenceGC, false,                                    \
246260484Sobrien          "Print times spent handling reference objects during GC "         \
246360484Sobrien          "(enabled only when PrintGCDetails)")                             \
246460484Sobrien                                                                            \
246560484Sobrien  develop(bool, TraceReferenceGC, false,                                    \
246660484Sobrien          "Trace handling of soft/weak/final/phantom references")           \
246760484Sobrien                                                                            \
246860484Sobrien  develop(bool, TraceFinalizerRegistration, false,                          \
246960484Sobrien          "Trace registration of final references")                         \
247060484Sobrien                                                                            \
247160484Sobrien  notproduct(bool, TraceScavenge, false,                                    \
247260484Sobrien          "Trace scavenge")                                                 \
247360484Sobrien                                                                            \
247460484Sobrien  product(bool, IgnoreEmptyClassPaths, false,                               \
247560484Sobrien          "Ignore empty path elements in -classpath")                       \
247660484Sobrien                                                                            \
247760484Sobrien  product(bool, TraceClassPaths, false,                                     \
247860484Sobrien          "Trace processing of class paths")                                \
247960484Sobrien                                                                            \
248060484Sobrien  product_rw(bool, TraceClassLoading, false,                                \
248160484Sobrien          "Trace all classes loaded")                                       \
248260484Sobrien                                                                            \
248360484Sobrien  product(bool, TraceClassLoadingPreorder, false,                           \
248460484Sobrien          "Trace all classes loaded in order referenced (not loaded)")      \
248560484Sobrien                                                                            \
248660484Sobrien  product_rw(bool, TraceClassUnloading, false,                              \
248760484Sobrien          "Trace unloading of classes")                                     \
248860484Sobrien                                                                            \
248960484Sobrien  product_rw(bool, TraceLoaderConstraints, false,                           \
249060484Sobrien          "Trace loader constraints")                                       \
249160484Sobrien                                                                            \
249260484Sobrien  develop(bool, TraceClassLoaderData, false,                                \
249360484Sobrien          "Trace class loader loader_data lifetime")                        \
249460484Sobrien                                                                            \
249560484Sobrien  product(size_t, InitialBootClassLoaderMetaspaceSize,                      \
249660484Sobrien          NOT_LP64(2200*K) LP64_ONLY(4*M),                                  \
249760484Sobrien          "Initial size of the boot class loader data metaspace")           \
249860484Sobrien                                                                            \
249960484Sobrien  product(bool, TraceYoungGenTime, false,                                   \
250060484Sobrien          "Trace accumulated time for young collection")                    \
250160484Sobrien                                                                            \
250260484Sobrien  product(bool, TraceOldGenTime, false,                                     \
250360484Sobrien          "Trace accumulated time for old collection")                      \
250460484Sobrien                                                                            \
250560484Sobrien  product(bool, PrintTenuringDistribution, false,                           \
250660484Sobrien          "Print tenuring age information")                                 \
250760484Sobrien                                                                            \
250860484Sobrien  product_rw(bool, PrintHeapAtGC, false,                                    \
250960484Sobrien          "Print heap layout before and after each GC")                     \
251060484Sobrien                                                                            \
251160484Sobrien  product_rw(bool, PrintHeapAtGCExtended, false,                            \
251260484Sobrien          "Print extended information about the layout of the heap "        \
251360484Sobrien          "when -XX:+PrintHeapAtGC is set")                                 \
251460484Sobrien                                                                            \
251560484Sobrien  product(bool, PrintHeapAtSIGBREAK, true,                                  \
251660484Sobrien          "Print heap layout in response to SIGBREAK")                      \
251760484Sobrien                                                                            \
251860484Sobrien  manageable(bool, PrintClassHistogramBeforeFullGC, false,                  \
251960484Sobrien          "Print a class histogram before any major stop-world GC")         \
252060484Sobrien                                                                            \
252160484Sobrien  manageable(bool, PrintClassHistogramAfterFullGC, false,                   \
252260484Sobrien          "Print a class histogram after any major stop-world GC")          \
252360484Sobrien                                                                            \
252460484Sobrien  manageable(bool, PrintClassHistogram, false,                              \
252560484Sobrien          "Print a histogram of class instances")                           \
252660484Sobrien                                                                            \
252760484Sobrien  develop(bool, TraceWorkGang, false,                                       \
252860484Sobrien          "Trace activities of work gangs")                                 \
252960484Sobrien                                                                            \
253060484Sobrien  product(bool, TraceParallelOldGCTasks, false,                             \
253160484Sobrien          "Trace multithreaded GC activity")                                \
253260484Sobrien                                                                            \
253360484Sobrien  develop(bool, TraceBlockOffsetTable, false,                               \
253460484Sobrien          "Print BlockOffsetTable maps")                                    \
253560484Sobrien                                                                            \
253660484Sobrien  develop(bool, TraceCardTableModRefBS, false,                              \
253760484Sobrien          "Print CardTableModRefBS maps")                                   \
253860484Sobrien                                                                            \
253960484Sobrien  develop(bool, TraceGCTaskManager, false,                                  \
254060484Sobrien          "Trace actions of the GC task manager")                           \
254160484Sobrien                                                                            \
254260484Sobrien  develop(bool, TraceGCTaskQueue, false,                                    \
254360484Sobrien          "Trace actions of the GC task queues")                            \
254460484Sobrien                                                                            \
254560484Sobrien  diagnostic(bool, TraceGCTaskThread, false,                                \
254660484Sobrien          "Trace actions of the GC task threads")                           \
254760484Sobrien                                                                            \
254860484Sobrien  product(bool, PrintParallelOldGCPhaseTimes, false,                        \
254960484Sobrien          "Print the time taken by each phase in ParallelOldGC "            \
255060484Sobrien          "(PrintGCDetails must also be enabled)")                          \
255160484Sobrien                                                                            \
255260484Sobrien  develop(bool, TraceParallelOldGCMarkingPhase, false,                      \
255360484Sobrien          "Trace marking phase in ParallelOldGC")                           \
255460484Sobrien                                                                            \
255560484Sobrien  develop(bool, TraceParallelOldGCSummaryPhase, false,                      \
255660484Sobrien          "Trace summary phase in ParallelOldGC")                           \
255760484Sobrien                                                                            \
255860484Sobrien  develop(bool, TraceParallelOldGCCompactionPhase, false,                   \
255960484Sobrien          "Trace compaction phase in ParallelOldGC")                        \
256060484Sobrien                                                                            \
256160484Sobrien  develop(bool, TraceParallelOldGCDensePrefix, false,                       \
256260484Sobrien          "Trace dense prefix computation for ParallelOldGC")               \
256389857Sobrien                                                                            \
256460484Sobrien  develop(bool, IgnoreLibthreadGPFault, false,                              \
256560484Sobrien          "Suppress workaround for libthread GP fault")                     \
256660484Sobrien                                                                            \
256760484Sobrien  product(bool, PrintJNIGCStalls, false,                                    \
256860484Sobrien          "Print diagnostic message when GC is stalled "                    \
256960484Sobrien          "by JNI critical section")                                        \
257060484Sobrien                                                                            \
257160484Sobrien  experimental(double, ObjectCountCutOffPercent, 0.5,                       \
257260484Sobrien          "The percentage of the used heap that the instances of a class "  \
257360484Sobrien          "must occupy for the class to generate a trace event")            \
257460484Sobrien                                                                            \
257560484Sobrien  /* GC log rotation setting */                                             \
257660484Sobrien                                                                            \
257760484Sobrien  product(bool, UseGCLogFileRotation, false,                                \
257860484Sobrien          "Rotate gclog files (for long running applications). It requires "\
257960484Sobrien          "-Xloggc:<filename>")                                             \
258060484Sobrien                                                                            \
258160484Sobrien  product(uintx, NumberOfGCLogFiles, 0,                                     \
258260484Sobrien          "Number of gclog files in rotation "                              \
258360484Sobrien          "(default: 0, no rotation)")                                      \
258460484Sobrien                                                                            \
258560484Sobrien  product(size_t, GCLogFileSize, 8*K,                                       \
258660484Sobrien          "GC log file size, requires UseGCLogFileRotation. "               \
258760484Sobrien          "Set to 0 to only trigger rotation via jcmd")                     \
258860484Sobrien                                                                            \
258960484Sobrien  /* JVMTI heap profiling */                                                \
259060484Sobrien                                                                            \
259160484Sobrien  diagnostic(bool, TraceJVMTIObjectTagging, false,                          \
259260484Sobrien          "Trace JVMTI object tagging calls")                               \
259360484Sobrien                                                                            \
259460484Sobrien  diagnostic(bool, VerifyBeforeIteration, false,                            \
259560484Sobrien          "Verify memory system before JVMTI iteration")                    \
259660484Sobrien                                                                            \
259760484Sobrien  /* compiler interface */                                                  \
259860484Sobrien                                                                            \
259960484Sobrien  develop(bool, CIPrintCompilerName, false,                                 \
260060484Sobrien          "when CIPrint is active, print the name of the active compiler")  \
260160484Sobrien                                                                            \
260260484Sobrien  diagnostic(bool, CIPrintCompileQueue, false,                              \
260360484Sobrien          "display the contents of the compile queue whenever a "           \
260460484Sobrien          "compilation is enqueued")                                        \
260560484Sobrien                                                                            \
260660484Sobrien  develop(bool, CIPrintRequests, false,                                     \
260760484Sobrien          "display every request for compilation")                          \
260860484Sobrien                                                                            \
260960484Sobrien  product(bool, CITime, false,                                              \
261060484Sobrien          "collect timing information for compilation")                     \
261160484Sobrien                                                                            \
261260484Sobrien  develop(bool, CITimeVerbose, false,                                       \
261360484Sobrien          "be more verbose in compilation timings")                         \
261460484Sobrien                                                                            \
261560484Sobrien  develop(bool, CITimeEach, false,                                          \
261660484Sobrien          "display timing information after each successful compilation")   \
261760484Sobrien                                                                            \
261860484Sobrien  develop(bool, CICountOSR, false,                                          \
261960484Sobrien          "use a separate counter when assigning ids to osr compilations")  \
262060484Sobrien                                                                            \
262160484Sobrien  develop(bool, CICompileNatives, true,                                     \
262260484Sobrien          "compile native methods if supported by the compiler")            \
262360484Sobrien                                                                            \
262460484Sobrien  develop_pd(bool, CICompileOSR,                                            \
262560484Sobrien          "compile on stack replacement methods if supported by the "       \
262660484Sobrien          "compiler")                                                       \
262760484Sobrien                                                                            \
262860484Sobrien  develop(bool, CIPrintMethodCodes, false,                                  \
262960484Sobrien          "print method bytecodes of the compiled code")                    \
263060484Sobrien                                                                            \
263160484Sobrien  develop(bool, CIPrintTypeFlow, false,                                     \
263260484Sobrien          "print the results of ciTypeFlow analysis")                       \
263360484Sobrien                                                                            \
263460484Sobrien  develop(bool, CITraceTypeFlow, false,                                     \
263560484Sobrien          "detailed per-bytecode tracing of ciTypeFlow analysis")           \
263660484Sobrien                                                                            \
263760484Sobrien  develop(intx, OSROnlyBCI, -1,                                             \
263860484Sobrien          "OSR only at this bci.  Negative values mean exclude that bci")   \
263960484Sobrien                                                                            \
264060484Sobrien  /* compiler */                                                            \
264160484Sobrien                                                                            \
264260484Sobrien  /* notice: the max range value here is max_jint, not max_intx  */         \
264360484Sobrien  /* because of overflow issue                                   */         \
264460484Sobrien  product(intx, CICompilerCount, CI_COMPILER_COUNT,                         \
264560484Sobrien          "Number of compiler threads to run")                              \
264660484Sobrien          range((intx)Arguments::get_min_number_of_compiler_threads(),      \
264760484Sobrien                max_jint)                                                   \
264860484Sobrien                                                                            \
264960484Sobrien  product(intx, CompilationPolicyChoice, 0,                                 \
265060484Sobrien          "which compilation policy (0-3)")                                 \
265160484Sobrien          range(0, 3)                                                       \
265260484Sobrien                                                                            \
265360484Sobrien  develop(bool, UseStackBanging, true,                                      \
265460484Sobrien          "use stack banging for stack overflow checks (required for "      \
265560484Sobrien          "proper StackOverflow handling; disable only to measure cost "    \
265660484Sobrien          "of stackbanging)")                                               \
265760484Sobrien                                                                            \
265860484Sobrien  develop(bool, UseStrictFP, true,                                          \
265960484Sobrien          "use strict fp if modifier strictfp is set")                      \
266060484Sobrien                                                                            \
266160484Sobrien  develop(bool, GenerateSynchronizationCode, true,                          \
266260484Sobrien          "generate locking/unlocking code for synchronized methods and "   \
266360484Sobrien          "monitors")                                                       \
266460484Sobrien                                                                            \
266560484Sobrien  develop(bool, GenerateCompilerNullChecks, true,                           \
266660484Sobrien          "Generate explicit null checks for loads/stores/calls")           \
266760484Sobrien                                                                            \
266860484Sobrien  develop(bool, GenerateRangeChecks, true,                                  \
266960484Sobrien          "Generate range checks for array accesses")                       \
267060484Sobrien                                                                            \
267160484Sobrien  develop_pd(bool, ImplicitNullChecks,                                      \
267260484Sobrien          "Generate code for implicit null checks")                         \
267360484Sobrien                                                                            \
267460484Sobrien  product_pd(bool, TrapBasedNullChecks,                                     \
267589857Sobrien          "Generate code for null checks that uses a cmp and trap "         \
267660484Sobrien          "instruction raising SIGTRAP.  This is only used if an access to" \
267760484Sobrien          "null (+offset) will not raise a SIGSEGV, i.e.,"                  \
267860484Sobrien          "ImplicitNullChecks don't work (PPC64).")                         \
267960484Sobrien                                                                            \
268060484Sobrien  product(bool, PrintSafepointStatistics, false,                            \
268160484Sobrien          "Print statistics about safepoint synchronization")               \
268260484Sobrien                                                                            \
268360484Sobrien  product(intx, PrintSafepointStatisticsCount, 300,                         \
268460484Sobrien          "Total number of safepoint statistics collected "                 \
268560484Sobrien          "before printing them out")                                       \
268660484Sobrien                                                                            \
268760484Sobrien  product(intx, PrintSafepointStatisticsTimeout,  -1,                       \
268860484Sobrien          "Print safepoint statistics only when safepoint takes "           \
268960484Sobrien          "more than PrintSafepointSatisticsTimeout in millis")             \
269060484Sobrien                                                                            \
269160484Sobrien  product(bool, TraceSafepointCleanupTime, false,                           \
269260484Sobrien          "Print the break down of clean up tasks performed during "        \
269360484Sobrien          "safepoint")                                                      \
269460484Sobrien                                                                            \
269560484Sobrien  product(bool, Inline, true,                                               \
269660484Sobrien          "Enable inlining")                                                \
269760484Sobrien                                                                            \
269860484Sobrien  product(bool, ClipInlining, true,                                         \
269960484Sobrien          "Clip inlining if aggregate method exceeds DesiredMethodLimit")   \
270060484Sobrien                                                                            \
270160484Sobrien  develop(bool, UseCHA, true,                                               \
270260484Sobrien          "Enable CHA")                                                     \
270360484Sobrien                                                                            \
270460484Sobrien  product(bool, UseTypeProfile, true,                                       \
270560484Sobrien          "Check interpreter profile for historically monomorphic calls")   \
270660484Sobrien                                                                            \
270760484Sobrien  diagnostic(bool, PrintInlining, false,                                    \
270860484Sobrien          "Print inlining optimizations")                                   \
270960484Sobrien                                                                            \
271060484Sobrien  product(bool, UsePopCountInstruction, false,                              \
271160484Sobrien          "Use population count instruction")                               \
271260484Sobrien                                                                            \
271360484Sobrien  develop(bool, EagerInitialization, false,                                 \
271460484Sobrien          "Eagerly initialize classes if possible")                         \
271560484Sobrien                                                                            \
271660484Sobrien  develop(bool, TraceMethodReplacement, false,                              \
271760484Sobrien          "Print when methods are replaced do to recompilation")            \
271860484Sobrien                                                                            \
271960484Sobrien  develop(bool, PrintMethodFlushing, false,                                 \
272060484Sobrien          "Print the nmethods being flushed")                               \
272160484Sobrien                                                                            \
272260484Sobrien  diagnostic(bool, PrintMethodFlushingStatistics, false,                    \
272360484Sobrien          "print statistics about method flushing")                         \
272460484Sobrien                                                                            \
272560484Sobrien  diagnostic(intx, HotMethodDetectionLimit, 100000,                         \
272660484Sobrien          "Number of compiled code invocations after which "                \
272760484Sobrien          "the method is considered as hot by the flusher")                 \
272860484Sobrien                                                                            \
272960484Sobrien  diagnostic(intx, MinPassesBeforeFlush, 10,                                \
273060484Sobrien          "Minimum number of sweeper passes before an nmethod "             \
273160484Sobrien          "can be flushed")                                                 \
273260484Sobrien                                                                            \
273360484Sobrien  product(bool, UseCodeAging, true,                                         \
273460484Sobrien          "Insert counter to detect warm methods")                          \
273560484Sobrien                                                                            \
273660484Sobrien  diagnostic(bool, StressCodeAging, false,                                  \
273760484Sobrien          "Start with counters compiled in")                                \
273860484Sobrien                                                                            \
273960484Sobrien  develop(bool, UseRelocIndex, false,                                       \
274060484Sobrien          "Use an index to speed random access to relocations")             \
274160484Sobrien                                                                            \
274260484Sobrien  develop(bool, StressCodeBuffers, false,                                   \
274360484Sobrien          "Exercise code buffer expansion and other rare state changes")    \
274460484Sobrien                                                                            \
274560484Sobrien  diagnostic(bool, DebugNonSafepoints, trueInDebug,                         \
274660484Sobrien          "Generate extra debugging information for non-safepoints in "     \
274760484Sobrien          "nmethods")                                                       \
274860484Sobrien                                                                            \
274960484Sobrien  product(bool, PrintVMOptions, false,                                      \
275060484Sobrien          "Print flags that appeared on the command line")                  \
275160484Sobrien                                                                            \
275260484Sobrien  product(bool, IgnoreUnrecognizedVMOptions, false,                         \
275360484Sobrien          "Ignore unrecognized VM options")                                 \
275460484Sobrien                                                                            \
275560484Sobrien  product(bool, PrintCommandLineFlags, false,                               \
275660484Sobrien          "Print flags specified on command line or set by ergonomics")     \
275760484Sobrien                                                                            \
275860484Sobrien  product(bool, PrintFlagsInitial, false,                                   \
275960484Sobrien          "Print all VM flags before argument processing and exit VM")      \
276060484Sobrien                                                                            \
276160484Sobrien  product(bool, PrintFlagsFinal, false,                                     \
276260484Sobrien          "Print all VM flags after argument and ergonomic processing")     \
276360484Sobrien                                                                            \
276460484Sobrien  notproduct(bool, PrintFlagsWithComments, false,                           \
276560484Sobrien          "Print all VM flags with default values and descriptions and "    \
276660484Sobrien          "exit")                                                           \
276760484Sobrien                                                                            \
276860484Sobrien  product(bool, PrintFlagsRanges, false,                                    \
276960484Sobrien          "Print VM flags and their ranges and exit VM")                    \
277060484Sobrien                                                                            \
277160484Sobrien  diagnostic(bool, SerializeVMOutput, true,                                 \
277260484Sobrien          "Use a mutex to serialize output to tty and LogFile")             \
277360484Sobrien                                                                            \
277460484Sobrien  diagnostic(bool, DisplayVMOutput, true,                                   \
277560484Sobrien          "Display all VM output on the tty, independently of LogVMOutput") \
277660484Sobrien                                                                            \
277760484Sobrien  diagnostic(bool, LogVMOutput, false,                                      \
277860484Sobrien          "Save VM output to LogFile")                                      \
277960484Sobrien                                                                            \
278060484Sobrien  diagnostic(ccstr, LogFile, NULL,                                          \
278160484Sobrien          "If LogVMOutput or LogCompilation is on, save VM output to "      \
278260484Sobrien          "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\
278360484Sobrien                                                                            \
278460484Sobrien  product(ccstr, ErrorFile, NULL,                                           \
278560484Sobrien          "If an error occurs, save the error data to this file "           \
278660484Sobrien          "[default: ./hs_err_pid%p.log] (%p replaced with pid)")           \
278760484Sobrien                                                                            \
278860484Sobrien  product(bool, DisplayVMOutputToStderr, false,                             \
278960484Sobrien          "If DisplayVMOutput is true, display all VM output to stderr")    \
279060484Sobrien                                                                            \
279160484Sobrien  product(bool, DisplayVMOutputToStdout, false,                             \
279260484Sobrien          "If DisplayVMOutput is true, display all VM output to stdout")    \
279360484Sobrien                                                                            \
279460484Sobrien  product(bool, UseHeavyMonitors, false,                                    \
279560484Sobrien          "use heavyweight instead of lightweight Java monitors")           \
279660484Sobrien                                                                            \
279760484Sobrien  product(bool, PrintStringTableStatistics, false,                          \
279860484Sobrien          "print statistics about the StringTable and SymbolTable")         \
279960484Sobrien                                                                            \
280060484Sobrien  diagnostic(bool, VerifyStringTableAtExit, false,                          \
280160484Sobrien          "verify StringTable contents at exit")                            \
280260484Sobrien                                                                            \
280360484Sobrien  notproduct(bool, PrintSymbolTableSizeHistogram, false,                    \
280460484Sobrien          "print histogram of the symbol table")                            \
280560484Sobrien                                                                            \
280660484Sobrien  notproduct(bool, ExitVMOnVerifyError, false,                              \
280760484Sobrien          "standard exit from VM if bytecode verify error "                 \
280860484Sobrien          "(only in debug mode)")                                           \
280960484Sobrien                                                                            \
281060484Sobrien  notproduct(ccstr, AbortVMOnException, NULL,                               \
281160484Sobrien          "Call fatal if this exception is thrown.  Example: "              \
281260484Sobrien          "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
281360484Sobrien                                                                            \
281460484Sobrien  notproduct(ccstr, AbortVMOnExceptionMessage, NULL,                        \
281560484Sobrien          "Call fatal if the exception pointed by AbortVMOnException "      \
281660484Sobrien          "has this message")                                               \
281760484Sobrien                                                                            \
281860484Sobrien  develop(bool, DebugVtables, false,                                        \
281960484Sobrien          "add debugging code to vtable dispatch")                          \
282060484Sobrien                                                                            \
282160484Sobrien  develop(bool, PrintVtables, false,                                        \
282260484Sobrien          "print vtables when printing klass")                              \
282360484Sobrien                                                                            \
282460484Sobrien  notproduct(bool, PrintVtableStats, false,                                 \
282560484Sobrien          "print vtables stats at end of run")                              \
282660484Sobrien                                                                            \
282760484Sobrien  develop(bool, TraceCreateZombies, false,                                  \
282860484Sobrien          "trace creation of zombie nmethods")                              \
282960484Sobrien                                                                            \
283060484Sobrien  notproduct(bool, IgnoreLockingAssertions, false,                          \
283160484Sobrien          "disable locking assertions (for speed)")                         \
283260484Sobrien                                                                            \
283360484Sobrien  product(bool, RangeCheckElimination, true,                                \
283460484Sobrien          "Eliminate range checks")                                         \
283560484Sobrien                                                                            \
283660484Sobrien  develop_pd(bool, UncommonNullCast,                                        \
283760484Sobrien          "track occurrences of null in casts; adjust compiler tactics")    \
283860484Sobrien                                                                            \
283960484Sobrien  develop(bool, TypeProfileCasts,  true,                                    \
284060484Sobrien          "treat casts like calls for purposes of type profiling")          \
284160484Sobrien                                                                            \
284260484Sobrien  develop(bool, DelayCompilationDuringStartup, true,                        \
284360484Sobrien          "Delay invoking the compiler until main application class is "    \
284460484Sobrien          "loaded")                                                         \
284560484Sobrien                                                                            \
284660484Sobrien  develop(bool, CompileTheWorld, false,                                     \
284760484Sobrien          "Compile all methods in all classes in bootstrap class path "     \
284860484Sobrien          "(stress test)")                                                  \
284960484Sobrien                                                                            \
285060484Sobrien  develop(bool, CompileTheWorldPreloadClasses, true,                        \
285160484Sobrien          "Preload all classes used by a class before start loading")       \
285260484Sobrien                                                                            \
285360484Sobrien  notproduct(intx, CompileTheWorldSafepointInterval, 100,                   \
285460484Sobrien          "Force a safepoint every n compiles so sweeper can keep up")      \
285560484Sobrien                                                                            \
285660484Sobrien  develop(bool, FillDelaySlots, true,                                       \
285760484Sobrien          "Fill delay slots (on SPARC only)")                               \
285860484Sobrien                                                                            \
285960484Sobrien  develop(bool, TimeLivenessAnalysis, false,                                \
286060484Sobrien          "Time computation of bytecode liveness analysis")                 \
286160484Sobrien                                                                            \
286260484Sobrien  develop(bool, TraceLivenessGen, false,                                    \
286360484Sobrien          "Trace the generation of liveness analysis information")          \
286460484Sobrien                                                                            \
286560484Sobrien  notproduct(bool, TraceLivenessQuery, false,                               \
286660484Sobrien          "Trace queries of liveness analysis information")                 \
286760484Sobrien                                                                            \
286860484Sobrien  notproduct(bool, CollectIndexSetStatistics, false,                        \
286960484Sobrien          "Collect information about IndexSets")                            \
287060484Sobrien                                                                            \
287160484Sobrien  develop(bool, UseLoopSafepoints, true,                                    \
287260484Sobrien          "Generate Safepoint nodes in every loop")                         \
287360484Sobrien                                                                            \
287460484Sobrien  develop(intx, FastAllocateSizeLimit, 128*K,                               \
287560484Sobrien          /* Note:  This value is zero mod 1<<13 for a cheap sparc set. */  \
287660484Sobrien          "Inline allocations larger than this in doublewords must go slow")\
287760484Sobrien                                                                            \
287860484Sobrien  product(bool, AggressiveOpts, false,                                      \
287960484Sobrien          "Enable aggressive optimizations - see arguments.cpp")            \
288060484Sobrien                                                                            \
288160484Sobrien  product_pd(uintx, TypeProfileLevel,                                       \
288260484Sobrien          "=XYZ, with Z: Type profiling of arguments at call; "             \
288360484Sobrien                     "Y: Type profiling of return value at call; "          \
288460484Sobrien                     "X: Type profiling of parameters to methods; "         \
288560484Sobrien          "X, Y and Z in 0=off ; 1=jsr292 only; 2=all methods")             \
288660484Sobrien                                                                            \
288760484Sobrien  product(intx, TypeProfileArgsLimit,     2,                                \
288860484Sobrien          "max number of call arguments to consider for type profiling")    \
288960484Sobrien                                                                            \
289060484Sobrien  product(intx, TypeProfileParmsLimit,    2,                                \
289160484Sobrien          "max number of incoming parameters to consider for type profiling"\
289260484Sobrien          ", -1 for all")                                                   \
289360484Sobrien                                                                            \
289460484Sobrien  /* statistics */                                                          \
289560484Sobrien  develop(bool, CountCompiledCalls, false,                                  \
289660484Sobrien          "Count method invocations")                                       \
289760484Sobrien                                                                            \
289860484Sobrien  notproduct(bool, CountRuntimeCalls, false,                                \
289960484Sobrien          "Count VM runtime calls")                                         \
290060484Sobrien                                                                            \
290160484Sobrien  develop(bool, CountJNICalls, false,                                       \
290260484Sobrien          "Count jni method invocations")                                   \
290360484Sobrien                                                                            \
290460484Sobrien  notproduct(bool, CountJVMCalls, false,                                    \
290560484Sobrien          "Count jvm method invocations")                                   \
290660484Sobrien                                                                            \
290760484Sobrien  notproduct(bool, CountRemovableExceptions, false,                         \
290860484Sobrien          "Count exceptions that could be replaced by branches due to "     \
290960484Sobrien          "inlining")                                                       \
291060484Sobrien                                                                            \
291160484Sobrien  notproduct(bool, ICMissHistogram, false,                                  \
291260484Sobrien          "Produce histogram of IC misses")                                 \
291360484Sobrien                                                                            \
291460484Sobrien  notproduct(bool, PrintClassStatistics, false,                             \
291560484Sobrien          "Print class statistics at end of run")                           \
291660484Sobrien                                                                            \
291760484Sobrien  notproduct(bool, PrintMethodStatistics, false,                            \
291860484Sobrien          "Print method statistics at end of run")                          \
291960484Sobrien                                                                            \
292060484Sobrien  /* interpreter */                                                         \
292160484Sobrien  develop(bool, ClearInterpreterLocals, false,                              \
292260484Sobrien          "Always clear local variables of interpreter activations upon "   \
292360484Sobrien          "entry")                                                          \
292460484Sobrien                                                                            \
292560484Sobrien  product_pd(bool, RewriteBytecodes,                                        \
292660484Sobrien          "Allow rewriting of bytecodes (bytecodes are not immutable)")     \
292760484Sobrien                                                                            \
292860484Sobrien  product_pd(bool, RewriteFrequentPairs,                                    \
292960484Sobrien          "Rewrite frequently used bytecode pairs into a single bytecode")  \
293060484Sobrien                                                                            \
293160484Sobrien  diagnostic(bool, PrintInterpreter, false,                                 \
293260484Sobrien          "Print the generated interpreter code")                           \
293360484Sobrien                                                                            \
293460484Sobrien  product(bool, UseInterpreter, true,                                       \
293560484Sobrien          "Use interpreter for non-compiled methods")                       \
293660484Sobrien                                                                            \
293760484Sobrien  develop(bool, UseFastSignatureHandlers, true,                             \
293860484Sobrien          "Use fast signature handlers for native calls")                   \
293960484Sobrien                                                                            \
294060484Sobrien  product(bool, UseLoopCounter, true,                                       \
294160484Sobrien          "Increment invocation counter on backward branch")                \
294260484Sobrien                                                                            \
294360484Sobrien  product_pd(bool, UseOnStackReplacement,                                   \
294460484Sobrien          "Use on stack replacement, calls runtime if invoc. counter "      \
294560484Sobrien          "overflows in loop")                                              \
294660484Sobrien                                                                            \
294760484Sobrien  notproduct(bool, TraceOnStackReplacement, false,                          \
294860484Sobrien          "Trace on stack replacement")                                     \
294960484Sobrien                                                                            \
295060484Sobrien  product_pd(bool, PreferInterpreterNativeStubs,                            \
295160484Sobrien          "Use always interpreter stubs for native methods invoked via "    \
295260484Sobrien          "interpreter")                                                    \
295360484Sobrien                                                                            \
295460484Sobrien  develop(bool, CountBytecodes, false,                                      \
295560484Sobrien          "Count number of bytecodes executed")                             \
295660484Sobrien                                                                            \
295760484Sobrien  develop(bool, PrintBytecodeHistogram, false,                              \
295860484Sobrien          "Print histogram of the executed bytecodes")                      \
295960484Sobrien                                                                            \
296060484Sobrien  develop(bool, PrintBytecodePairHistogram, false,                          \
296160484Sobrien          "Print histogram of the executed bytecode pairs")                 \
296260484Sobrien                                                                            \
296360484Sobrien  diagnostic(bool, PrintSignatureHandlers, false,                           \
296460484Sobrien          "Print code generated for native method signature handlers")      \
296560484Sobrien                                                                            \
296660484Sobrien  develop(bool, VerifyOops, false,                                          \
296760484Sobrien          "Do plausibility checks for oops")                                \
296860484Sobrien                                                                            \
296960484Sobrien  develop(bool, CheckUnhandledOops, false,                                  \
297060484Sobrien          "Check for unhandled oops in VM code")                            \
297160484Sobrien                                                                            \
297260484Sobrien  develop(bool, VerifyJNIFields, trueInDebug,                               \
297360484Sobrien          "Verify jfieldIDs for instance fields")                           \
297460484Sobrien                                                                            \
297560484Sobrien  notproduct(bool, VerifyJNIEnvThread, false,                               \
297660484Sobrien          "Verify JNIEnv.thread == Thread::current() when entering VM "     \
297760484Sobrien          "from JNI")                                                       \
297860484Sobrien                                                                            \
297960484Sobrien  develop(bool, VerifyFPU, false,                                           \
298060484Sobrien          "Verify FPU state (check for NaN's, etc.)")                       \
298160484Sobrien                                                                            \
298260484Sobrien  develop(bool, VerifyThread, false,                                        \
298360484Sobrien          "Watch the thread register for corruption (SPARC only)")          \
298460484Sobrien                                                                            \
298560484Sobrien  develop(bool, VerifyActivationFrameSize, false,                           \
298660484Sobrien          "Verify that activation frame didn't become smaller than its "    \
298760484Sobrien          "minimal size")                                                   \
298860484Sobrien                                                                            \
298960484Sobrien  develop(bool, TraceFrequencyInlining, false,                              \
299060484Sobrien          "Trace frequency based inlining")                                 \
299160484Sobrien                                                                            \
299260484Sobrien  develop_pd(bool, InlineIntrinsics,                                        \
299360484Sobrien          "Inline intrinsics that can be statically resolved")              \
299460484Sobrien                                                                            \
299560484Sobrien  product_pd(bool, ProfileInterpreter,                                      \
299660484Sobrien          "Profile at the bytecode level during interpretation")            \
299760484Sobrien                                                                            \
299860484Sobrien  develop(bool, TraceProfileInterpreter, false,                             \
299960484Sobrien          "Trace profiling at the bytecode level during interpretation. "   \
300060484Sobrien          "This outputs the profiling information collected to improve "    \
300160484Sobrien          "jit compilation.")                                               \
300260484Sobrien                                                                            \
300360484Sobrien  develop_pd(bool, ProfileTraps,                                            \
300460484Sobrien          "Profile deoptimization traps at the bytecode level")             \
300560484Sobrien                                                                            \
300660484Sobrien  product(intx, ProfileMaturityPercentage, 20,                              \
300760484Sobrien          "number of method invocations/branches (expressed as % of "       \
300860484Sobrien          "CompileThreshold) before using the method's profile")            \
300960484Sobrien          range(0, 100)                                                     \
301060484Sobrien                                                                            \
301160484Sobrien  diagnostic(bool, PrintMethodData, false,                                  \
301260484Sobrien          "Print the results of +ProfileInterpreter at end of run")         \
301360484Sobrien                                                                            \
301460484Sobrien  develop(bool, VerifyDataPointer, trueInDebug,                             \
301560484Sobrien          "Verify the method data pointer during interpreter profiling")    \
301660484Sobrien                                                                            \
301760484Sobrien  develop(bool, VerifyCompiledCode, false,                                  \
301860484Sobrien          "Include miscellaneous runtime verifications in nmethod code; "   \
301960484Sobrien          "default off because it disturbs nmethod size heuristics")        \
302060484Sobrien                                                                            \
302160484Sobrien  notproduct(bool, CrashGCForDumpingJavaThread, false,                      \
302260484Sobrien          "Manually make GC thread crash then dump java stack trace;  "     \
302360484Sobrien          "Test only")                                                      \
302460484Sobrien                                                                            \
302560484Sobrien  /* compilation */                                                         \
302660484Sobrien  product(bool, UseCompiler, true,                                          \
302760484Sobrien          "Use Just-In-Time compilation")                                   \
302860484Sobrien                                                                            \
302960484Sobrien  develop(bool, TraceCompilationPolicy, false,                              \
303060484Sobrien          "Trace compilation policy")                                       \
303160484Sobrien                                                                            \
303260484Sobrien  develop(bool, TimeCompilationPolicy, false,                               \
303360484Sobrien          "Time the compilation policy")                                    \
303460484Sobrien                                                                            \
303560484Sobrien  product(bool, UseCounterDecay, true,                                      \
303660484Sobrien          "Adjust recompilation counters")                                  \
303760484Sobrien                                                                            \
303860484Sobrien  develop(intx, CounterHalfLifeTime,    30,                                 \
303960484Sobrien          "Half-life time of invocation counters (in seconds)")             \
304060484Sobrien                                                                            \
304160484Sobrien  develop(intx, CounterDecayMinIntervalLength,   500,                       \
304260484Sobrien          "The minimum interval (in milliseconds) between invocation of "   \
304360484Sobrien          "CounterDecay")                                                   \
304460484Sobrien                                                                            \
304560484Sobrien  product(bool, AlwaysCompileLoopMethods, false,                            \
304660484Sobrien          "When using recompilation, never interpret methods "              \
304760484Sobrien          "containing loops")                                               \
304860484Sobrien                                                                            \
304960484Sobrien  product(bool, DontCompileHugeMethods, true,                               \
305060484Sobrien          "Do not compile methods > HugeMethodLimit")                       \
305160484Sobrien                                                                            \
305260484Sobrien  /* Bytecode escape analysis estimation. */                                \
305360484Sobrien  product(bool, EstimateArgEscape, true,                                    \
305460484Sobrien          "Analyze bytecodes to estimate escape state of arguments")        \
305560484Sobrien                                                                            \
305660484Sobrien  product(intx, BCEATraceLevel, 0,                                          \
305760484Sobrien          "How much tracing to do of bytecode escape analysis estimates")   \
305860484Sobrien                                                                            \
305960484Sobrien  product(intx, MaxBCEAEstimateLevel, 5,                                    \
306060484Sobrien          "Maximum number of nested calls that are analyzed by BC EA")      \
306160484Sobrien                                                                            \
306260484Sobrien  product(intx, MaxBCEAEstimateSize, 150,                                   \
306360484Sobrien          "Maximum bytecode size of a method to be analyzed by BC EA")      \
306460484Sobrien                                                                            \
306560484Sobrien  product(intx,  AllocatePrefetchStyle, 1,                                  \
306660484Sobrien          "0 = no prefetch, "                                               \
306760484Sobrien          "1 = prefetch instructions for each allocation, "                 \
306860484Sobrien          "2 = use TLAB watermark to gate allocation prefetch, "            \
306960484Sobrien          "3 = use BIS instruction on Sparc for allocation prefetch")       \
307060484Sobrien          range(0, 3)                                                       \
307160484Sobrien                                                                            \
307260484Sobrien  product(intx,  AllocatePrefetchDistance, -1,                              \
307360484Sobrien          "Distance to prefetch ahead of allocation pointer")               \
307460484Sobrien                                                                            \
307560484Sobrien  product(intx,  AllocatePrefetchLines, 3,                                  \
307660484Sobrien          "Number of lines to prefetch ahead of array allocation pointer")  \
307760484Sobrien                                                                            \
307860484Sobrien  product(intx,  AllocateInstancePrefetchLines, 1,                          \
307960484Sobrien          "Number of lines to prefetch ahead of instance allocation "       \
308060484Sobrien          "pointer")                                                        \
308160484Sobrien                                                                            \
308260484Sobrien  product(intx,  AllocatePrefetchStepSize, 16,                              \
308360484Sobrien          "Step size in bytes of sequential prefetch instructions")         \
308460484Sobrien                                                                            \
308560484Sobrien  product(intx,  AllocatePrefetchInstr, 0,                                  \
308660484Sobrien          "Prefetch instruction to prefetch ahead of allocation pointer")   \
308760484Sobrien                                                                            \
308860484Sobrien  /* deoptimization */                                                      \
308960484Sobrien  develop(bool, TraceDeoptimization, false,                                 \
309060484Sobrien          "Trace deoptimization")                                           \
309160484Sobrien                                                                            \
309260484Sobrien  develop(bool, DebugDeoptimization, false,                                 \
309360484Sobrien          "Tracing various information while debugging deoptimization")     \
309460484Sobrien                                                                            \
309560484Sobrien  product(intx, SelfDestructTimer, 0,                                       \
309660484Sobrien          "Will cause VM to terminate after a given time (in minutes) "     \
309760484Sobrien          "(0 means off)")                                                  \
309860484Sobrien                                                                            \
309960484Sobrien  product(intx, MaxJavaStackTraceDepth, 1024,                               \
310060484Sobrien          "The maximum number of lines in the stack trace for Java "        \
310160484Sobrien          "exceptions (0 means all)")                                       \
310260484Sobrien                                                                            \
310360484Sobrien  NOT_EMBEDDED(diagnostic(intx, GuaranteedSafepointInterval, 1000,          \
310460484Sobrien          "Guarantee a safepoint (at least) every so many milliseconds "    \
310560484Sobrien          "(0 means none)"))                                                \
310660484Sobrien                                                                            \
310760484Sobrien  EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0,               \
310860484Sobrien          "Guarantee a safepoint (at least) every so many milliseconds "    \
310960484Sobrien          "(0 means none)"))                                                \
311060484Sobrien                                                                            \
311160484Sobrien  product(intx, SafepointTimeoutDelay, 10000,                               \
311260484Sobrien          "Delay in milliseconds for option SafepointTimeout")              \
311360484Sobrien                                                                            \
311460484Sobrien  product(intx, NmethodSweepActivity, 10,                                   \
311560484Sobrien          "Removes cold nmethods from code cache if > 0. Higher values "    \
311660484Sobrien          "result in more aggressive sweeping")                             \
311760484Sobrien          range(0, 2000)                                                    \
311860484Sobrien                                                                            \
311960484Sobrien  notproduct(bool, LogSweeper, false,                                       \
312060484Sobrien          "Keep a ring buffer of sweeper activity")                         \
312160484Sobrien                                                                            \
312260484Sobrien  notproduct(intx, SweeperLogEntries, 1024,                                 \
312360484Sobrien          "Number of records in the ring buffer of sweeper activity")       \
312460484Sobrien                                                                            \
312560484Sobrien  notproduct(intx, MemProfilingInterval, 500,                               \
312660484Sobrien          "Time between each invocation of the MemProfiler")                \
312760484Sobrien                                                                            \
312860484Sobrien  develop(intx, MallocCatchPtr, -1,                                         \
312960484Sobrien          "Hit breakpoint when mallocing/freeing this pointer")             \
313060484Sobrien                                                                            \
313160484Sobrien  notproduct(ccstrlist, SuppressErrorAt, "",                                \
313260484Sobrien          "List of assertions (file:line) to muzzle")                       \
313360484Sobrien                                                                            \
313460484Sobrien  notproduct(size_t, HandleAllocationLimit, 1024,                           \
313560484Sobrien          "Threshold for HandleMark allocation when +TraceHandleAllocation "\
313660484Sobrien          "is used")                                                        \
313760484Sobrien                                                                            \
313860484Sobrien  develop(size_t, TotalHandleAllocationLimit, 1024,                         \
313960484Sobrien          "Threshold for total handle allocation when "                     \
314060484Sobrien          "+TraceHandleAllocation is used")                                 \
314160484Sobrien                                                                            \
314260484Sobrien  develop(intx, StackPrintLimit, 100,                                       \
314360484Sobrien          "number of stack frames to print in VM-level stack dump")         \
314460484Sobrien                                                                            \
314560484Sobrien  notproduct(intx, MaxElementPrintSize, 256,                                \
314660484Sobrien          "maximum number of elements to print")                            \
314760484Sobrien                                                                            \
314860484Sobrien  notproduct(intx, MaxSubklassPrintSize, 4,                                 \
314960484Sobrien          "maximum number of subklasses to print when printing klass")      \
315060484Sobrien                                                                            \
315160484Sobrien  product(intx, MaxInlineLevel, 9,                                          \
315260484Sobrien          "maximum number of nested calls that are inlined")                \
315360484Sobrien                                                                            \
315460484Sobrien  product(intx, MaxRecursiveInlineLevel, 1,                                 \
315560484Sobrien          "maximum number of nested recursive calls that are inlined")      \
315660484Sobrien                                                                            \
315760484Sobrien  develop(intx, MaxForceInlineLevel, 100,                                   \
315860484Sobrien          "maximum number of nested calls that are forced for inlining "    \
315960484Sobrien          "(using CompilerOracle or marked w/ @ForceInline)")               \
316060484Sobrien                                                                            \
316160484Sobrien  product_pd(intx, InlineSmallCode,                                         \
316260484Sobrien          "Only inline already compiled methods if their code size is "     \
316360484Sobrien          "less than this")                                                 \
316460484Sobrien                                                                            \
316560484Sobrien  product(intx, MaxInlineSize, 35,                                          \
316660484Sobrien          "The maximum bytecode size of a method to be inlined")            \
316760484Sobrien                                                                            \
316860484Sobrien  product_pd(intx, FreqInlineSize,                                          \
316960484Sobrien          "The maximum bytecode size of a frequent method to be inlined")   \
317060484Sobrien                                                                            \
317160484Sobrien  product(intx, MaxTrivialSize, 6,                                          \
317260484Sobrien          "The maximum bytecode size of a trivial method to be inlined")    \
317360484Sobrien                                                                            \
317460484Sobrien  product(intx, MinInliningThreshold, 250,                                  \
317560484Sobrien          "The minimum invocation count a method needs to have to be "      \
317660484Sobrien          "inlined")                                                        \
317760484Sobrien                                                                            \
317860484Sobrien  develop(intx, MethodHistogramCutoff, 100,                                 \
317960484Sobrien          "The cutoff value for method invocation histogram (+CountCalls)") \
318060484Sobrien                                                                            \
318160484Sobrien  develop(intx, ProfilerNumberOfInterpretedMethods, 25,                     \
318260484Sobrien          "Number of interpreted methods to show in profile")               \
318360484Sobrien                                                                            \
318460484Sobrien  develop(intx, ProfilerNumberOfCompiledMethods, 25,                        \
318560484Sobrien          "Number of compiled methods to show in profile")                  \
318660484Sobrien                                                                            \
318760484Sobrien  develop(intx, ProfilerNumberOfStubMethods, 25,                            \
318860484Sobrien          "Number of stub methods to show in profile")                      \
318960484Sobrien                                                                            \
319060484Sobrien  develop(intx, ProfilerNumberOfRuntimeStubNodes, 25,                       \
319160484Sobrien          "Number of runtime stub nodes to show in profile")                \
319260484Sobrien                                                                            \
319360484Sobrien  product(intx, ProfileIntervalsTicks, 100,                                 \
319460484Sobrien          "Number of ticks between printing of interval profile "           \
319560484Sobrien          "(+ProfileIntervals)")                                            \
319660484Sobrien                                                                            \
319760484Sobrien  notproduct(intx, ScavengeALotInterval,     1,                             \
319860484Sobrien          "Interval between which scavenge will occur with +ScavengeALot")  \
319960484Sobrien                                                                            \
320060484Sobrien  notproduct(intx, FullGCALotInterval,     1,                               \
320160484Sobrien          "Interval between which full gc will occur with +FullGCALot")     \
320260484Sobrien                                                                            \
320360484Sobrien  notproduct(intx, FullGCALotStart,     0,                                  \
320460484Sobrien          "For which invocation to start FullGCAlot")                       \
320560484Sobrien                                                                            \
320660484Sobrien  notproduct(intx, FullGCALotDummies,  32*K,                                \
320760484Sobrien          "Dummy object allocated with +FullGCALot, forcing all objects "   \
320860484Sobrien          "to move")                                                        \
320960484Sobrien                                                                            \
321060484Sobrien  develop(intx, DontYieldALotInterval,    10,                               \
321160484Sobrien          "Interval between which yields will be dropped (milliseconds)")   \
321260484Sobrien                                                                            \
321360484Sobrien  develop(intx, MinSleepInterval,     1,                                    \
321460484Sobrien          "Minimum sleep() interval (milliseconds) when "                   \
321560484Sobrien          "ConvertSleepToYield is off (used for Solaris)")                  \
321660484Sobrien                                                                            \
321760484Sobrien  develop(intx, ProfilerPCTickThreshold,    15,                             \
321860484Sobrien          "Number of ticks in a PC buckets to be a hotspot")                \
321960484Sobrien                                                                            \
322060484Sobrien  notproduct(intx, DeoptimizeALotInterval,     5,                           \
322160484Sobrien          "Number of exits until DeoptimizeALot kicks in")                  \
322260484Sobrien                                                                            \
322360484Sobrien  notproduct(intx, ZombieALotInterval,     5,                               \
322460484Sobrien          "Number of exits until ZombieALot kicks in")                      \
322560484Sobrien                                                                            \
322660484Sobrien  diagnostic(intx, MallocVerifyInterval,     0,                             \
322760484Sobrien          "If non-zero, verify C heap after every N calls to "              \
322860484Sobrien          "malloc/realloc/free")                                            \
322960484Sobrien                                                                            \
323060484Sobrien  diagnostic(intx, MallocVerifyStart,     0,                                \
323160484Sobrien          "If non-zero, start verifying C heap after Nth call to "          \
323260484Sobrien          "malloc/realloc/free")                                            \
323360484Sobrien                                                                            \
323460484Sobrien  diagnostic(uintx, MallocMaxTestWords,     0,                              \
323560484Sobrien          "If non-zero, maximum number of words that malloc/realloc can "   \
323660484Sobrien          "allocate (for testing only)")                                    \
323760484Sobrien                                                                            \
323860484Sobrien  product(intx, TypeProfileWidth,     2,                                    \
323960484Sobrien          "Number of receiver types to record in call/cast profile")        \
324060484Sobrien                                                                            \
324160484Sobrien  develop(intx, BciProfileWidth,      2,                                    \
324260484Sobrien          "Number of return bci's to record in ret profile")                \
324360484Sobrien                                                                            \
324460484Sobrien  product(intx, PerMethodRecompilationCutoff, 400,                          \
324560484Sobrien          "After recompiling N times, stay in the interpreter (-1=>'Inf')") \
324660484Sobrien          range(-1, max_intx)                                               \
324760484Sobrien                                                                            \
324860484Sobrien  product(intx, PerBytecodeRecompilationCutoff, 200,                        \
324960484Sobrien          "Per-BCI limit on repeated recompilation (-1=>'Inf')")            \
325060484Sobrien          range(-1, max_intx)                                               \
325160484Sobrien                                                                            \
325260484Sobrien  product(intx, PerMethodTrapLimit,  100,                                   \
325360484Sobrien          "Limit on traps (of one kind) in a method (includes inlines)")    \
325460484Sobrien                                                                            \
325560484Sobrien  experimental(intx, PerMethodSpecTrapLimit,  5000,                         \
325660484Sobrien          "Limit on speculative traps (of one kind) in a method "           \
325760484Sobrien          "(includes inlines)")                                             \
325860484Sobrien                                                                            \
325960484Sobrien  product(intx, PerBytecodeTrapLimit,  4,                                   \
326060484Sobrien          "Limit on traps (of one kind) at a particular BCI")               \
326160484Sobrien                                                                            \
326260484Sobrien  experimental(intx, SpecTrapLimitExtraEntries,  3,                         \
326360484Sobrien          "Extra method data trap entries for speculation")                 \
326460484Sobrien                                                                            \
326560484Sobrien  develop(intx, InlineFrequencyRatio,    20,                                \
326660484Sobrien          "Ratio of call site execution to caller method invocation")       \
326760484Sobrien                                                                            \
326860484Sobrien  develop_pd(intx, InlineFrequencyCount,                                    \
326960484Sobrien          "Count of call site execution necessary to trigger frequent "     \
327060484Sobrien          "inlining")                                                       \
327160484Sobrien                                                                            \
327260484Sobrien  develop(intx, InlineThrowCount,    50,                                    \
327360484Sobrien          "Force inlining of interpreted methods that throw this often")    \
327460484Sobrien                                                                            \
327560484Sobrien  develop(intx, InlineThrowMaxSize,   200,                                  \
327660484Sobrien          "Force inlining of throwing methods smaller than this")           \
327760484Sobrien                                                                            \
327860484Sobrien  develop(intx, ProfilerNodeSize,  1024,                                    \
327960484Sobrien          "Size in K to allocate for the Profile Nodes of each thread")     \
328060484Sobrien                                                                            \
328160484Sobrien  product_pd(intx, PreInflateSpin,                                          \
328260484Sobrien          "Number of times to spin wait before inflation")                  \
328360484Sobrien                                                                            \
328460484Sobrien  /* gc parameters */                                                       \
328560484Sobrien  product(size_t, InitialHeapSize, 0,                                       \
328660484Sobrien          "Initial heap size (in bytes); zero means use ergonomics")        \
328760484Sobrien                                                                            \
328860484Sobrien  product(size_t, MaxHeapSize, ScaleForWordSize(96*M),                      \
328960484Sobrien          "Maximum heap size (in bytes)")                                   \
329060484Sobrien                                                                            \
329160484Sobrien  product(size_t, OldSize, ScaleForWordSize(4*M),                           \
329260484Sobrien          "Initial tenured generation size (in bytes)")                     \
329360484Sobrien                                                                            \
329460484Sobrien  product(size_t, NewSize, ScaleForWordSize(1*M),                           \
329560484Sobrien          "Initial new generation size (in bytes)")                         \
329660484Sobrien                                                                            \
329760484Sobrien  product(size_t, MaxNewSize, max_uintx,                                    \
329860484Sobrien          "Maximum new generation size (in bytes), max_uintx means set "    \
329960484Sobrien          "ergonomically")                                                  \
330060484Sobrien                                                                            \
330160484Sobrien  product(size_t, PretenureSizeThreshold, 0,                                \
330260484Sobrien          "Maximum size in bytes of objects allocated in DefNew "           \
330360484Sobrien          "generation; zero means no maximum")                              \
330460484Sobrien                                                                            \
330560484Sobrien  product(size_t, TLABSize, 0,                                              \
330660484Sobrien          "Starting TLAB size (in bytes); zero means set ergonomically")    \
330760484Sobrien                                                                            \
330860484Sobrien  product(size_t, MinTLABSize, 2*K,                                         \
330960484Sobrien          "Minimum allowed TLAB size (in bytes)")                           \
331060484Sobrien          range(1, max_uintx)                                               \
331160484Sobrien                                                                            \
331260484Sobrien  product(uintx, TLABAllocationWeight, 35,                                  \
331360484Sobrien          "Allocation averaging weight")                                    \
331460484Sobrien          range(0, 100)                                                     \
331560484Sobrien                                                                            \
331660484Sobrien  /* Limit the lower bound of this flag to 1 as it is used  */              \
331760484Sobrien  /* in a division expression.                              */              \
331860484Sobrien  product(uintx, TLABWasteTargetPercent, 1,                                 \
331960484Sobrien          "Percentage of Eden that can be wasted")                          \
332060484Sobrien          range(1, 100)                                                     \
332160484Sobrien                                                                            \
332260484Sobrien  product(uintx, TLABRefillWasteFraction,    64,                            \
332360484Sobrien          "Maximum TLAB waste at a refill (internal fragmentation)")        \
332460484Sobrien          range(1, max_uintx)                                               \
332560484Sobrien                                                                            \
332660484Sobrien  product(uintx, TLABWasteIncrement,    4,                                  \
332760484Sobrien          "Increment allowed waste at slow allocation")                     \
332860484Sobrien                                                                            \
332960484Sobrien  product(uintx, SurvivorRatio, 8,                                          \
333060484Sobrien          "Ratio of eden/survivor space size")                              \
333160484Sobrien                                                                            \
333260484Sobrien  product(uintx, NewRatio, 2,                                               \
333360484Sobrien          "Ratio of old/new generation sizes")                              \
333460484Sobrien                                                                            \
333560484Sobrien  product_pd(size_t, NewSizeThreadIncrease,                                 \
333660484Sobrien          "Additional size added to desired new generation size per "       \
333760484Sobrien          "non-daemon thread (in bytes)")                                   \
333860484Sobrien                                                                            \
333960484Sobrien  product_pd(size_t, MetaspaceSize,                                         \
334060484Sobrien          "Initial size of Metaspaces (in bytes)")                          \
334160484Sobrien                                                                            \
334260484Sobrien  product(size_t, MaxMetaspaceSize, max_uintx,                              \
334360484Sobrien          "Maximum size of Metaspaces (in bytes)")                          \
334460484Sobrien                                                                            \
334560484Sobrien  product(size_t, CompressedClassSpaceSize, 1*G,                            \
334660484Sobrien          "Maximum size of class area in Metaspace when compressed "        \
334760484Sobrien          "class pointers are used")                                        \
334860484Sobrien          range(1*M, 3*G)                                                   \
334960484Sobrien                                                                            \
335060484Sobrien  manageable(uintx, MinHeapFreeRatio, 40,                                   \
335160484Sobrien          "The minimum percentage of heap free after GC to avoid expansion."\
335260484Sobrien          " For most GCs this applies to the old generation. In G1 and"     \
335360484Sobrien          " ParallelGC it applies to the whole heap.")                      \
335460484Sobrien          range(0, 100)                                                     \
335560484Sobrien          constraint(MinHeapFreeRatioConstraintFunc)                        \
335660484Sobrien                                                                            \
335760484Sobrien  manageable(uintx, MaxHeapFreeRatio, 70,                                   \
335860484Sobrien          "The maximum percentage of heap free after GC to avoid shrinking."\
335960484Sobrien          " For most GCs this applies to the old generation. In G1 and"     \
336060484Sobrien          " ParallelGC it applies to the whole heap.")                      \
336160484Sobrien          range(0, 100)                                                     \
336260484Sobrien          constraint(MaxHeapFreeRatioConstraintFunc)                        \
336360484Sobrien                                                                            \
336460484Sobrien  product(intx, SoftRefLRUPolicyMSPerMB, 1000,                              \
336560484Sobrien          "Number of milliseconds per MB of free space in the heap")        \
336660484Sobrien                                                                            \
336760484Sobrien  product(size_t, MinHeapDeltaBytes, ScaleForWordSize(128*K),               \
336860484Sobrien          "The minimum change in heap space due to GC (in bytes)")          \
336960484Sobrien                                                                            \
337060484Sobrien  product(size_t, MinMetaspaceExpansion, ScaleForWordSize(256*K),           \
337160484Sobrien          "The minimum expansion of Metaspace (in bytes)")                  \
337260484Sobrien                                                                            \
337360484Sobrien  product(uintx, MaxMetaspaceFreeRatio,    70,                              \
337460484Sobrien          "The maximum percentage of Metaspace free after GC to avoid "     \
337560484Sobrien          "shrinking")                                                      \
337660484Sobrien          range(0, 100)                                                     \
337760484Sobrien          constraint(MaxMetaspaceFreeRatioConstraintFunc)                   \
337860484Sobrien                                                                            \
337960484Sobrien  product(uintx, MinMetaspaceFreeRatio,    40,                              \
338060484Sobrien          "The minimum percentage of Metaspace free after GC to avoid "     \
338160484Sobrien          "expansion")                                                      \
338260484Sobrien          range(0, 99)                                                      \
338360484Sobrien          constraint(MinMetaspaceFreeRatioConstraintFunc)                   \
338460484Sobrien                                                                            \
338560484Sobrien  product(size_t, MaxMetaspaceExpansion, ScaleForWordSize(4*M),             \
338660484Sobrien          "The maximum expansion of Metaspace without full GC (in bytes)")  \
338760484Sobrien                                                                            \
338860484Sobrien  product(uintx, QueuedAllocationWarningCount, 0,                           \
338960484Sobrien          "Number of times an allocation that queues behind a GC "          \
339060484Sobrien          "will retry before printing a warning")                           \
339160484Sobrien                                                                            \
339260484Sobrien  diagnostic(uintx, VerifyGCStartAt,   0,                                   \
339360484Sobrien          "GC invoke count where +VerifyBefore/AfterGC kicks in")           \
339460484Sobrien                                                                            \
339560484Sobrien  diagnostic(intx, VerifyGCLevel,     0,                                    \
339660484Sobrien          "Generation level at which to start +VerifyBefore/AfterGC")       \
339760484Sobrien                                                                            \
339860484Sobrien  product(uintx, MaxTenuringThreshold,    15,                               \
339960484Sobrien          "Maximum value for tenuring threshold")                           \
340060484Sobrien          range(0, markOopDesc::max_age + 1)                                \
340160484Sobrien          constraint(MaxTenuringThresholdConstraintFunc)                    \
340260484Sobrien                                                                            \
340360484Sobrien  product(uintx, InitialTenuringThreshold,    7,                            \
340460484Sobrien          "Initial value for tenuring threshold")                           \
340560484Sobrien          range(0, markOopDesc::max_age + 1)                                \
340660484Sobrien          constraint(InitialTenuringThresholdConstraintFunc)                \
340760484Sobrien                                                                            \
340860484Sobrien  product(uintx, TargetSurvivorRatio,    50,                                \
340960484Sobrien          "Desired percentage of survivor space used after scavenge")       \
341060484Sobrien          range(0, 100)                                                     \
341160484Sobrien                                                                            \
341260484Sobrien  product(uintx, MarkSweepDeadRatio,     5,                                 \
341360484Sobrien          "Percentage (0-100) of the old gen allowed as dead wood. "        \
341460484Sobrien          "Serial mark sweep treats this as both the minimum and maximum "  \
341560484Sobrien          "value. "                                                         \
341660484Sobrien          "CMS uses this value only if it falls back to mark sweep. "       \
341760484Sobrien          "Par compact uses a variable scale based on the density of the "  \
341860484Sobrien          "generation and treats this as the maximum value when the heap "  \
341960484Sobrien          "is either completely full or completely empty.  Par compact "    \
342060484Sobrien          "also has a smaller default value; see arguments.cpp.")           \
342160484Sobrien          range(0, 100)                                                     \
342260484Sobrien                                                                            \
342360484Sobrien  product(uintx, MarkSweepAlwaysCompactCount,     4,                        \
342460484Sobrien          "How often should we fully compact the heap (ignoring the dead "  \
342560484Sobrien          "space parameters)")                                              \
342660484Sobrien          range(1, max_uintx)                                               \
342760484Sobrien                                                                            \
342860484Sobrien  product(intx, PrintCMSStatistics, 0,                                      \
342960484Sobrien          "Statistics for CMS")                                             \
343060484Sobrien                                                                            \
343160484Sobrien  product(bool, PrintCMSInitiationStatistics, false,                        \
343260484Sobrien          "Statistics for initiating a CMS collection")                     \
343360484Sobrien                                                                            \
343460484Sobrien  product(intx, PrintFLSStatistics, 0,                                      \
343560484Sobrien          "Statistics for CMS' FreeListSpace")                              \
343660484Sobrien                                                                            \
343760484Sobrien  product(intx, PrintFLSCensus, 0,                                          \
343860484Sobrien          "Census for CMS' FreeListSpace")                                  \
343960484Sobrien                                                                            \
344060484Sobrien  develop(uintx, GCExpandToAllocateDelayMillis, 0,                          \
344160484Sobrien          "Delay between expansion and allocation (in milliseconds)")       \
344260484Sobrien                                                                            \
344360484Sobrien  develop(uintx, GCWorkerDelayMillis, 0,                                    \
344460484Sobrien          "Delay in scheduling GC workers (in milliseconds)")               \
344560484Sobrien                                                                            \
344660484Sobrien  product(intx, DeferThrSuspendLoopCount,     4000,                         \
344760484Sobrien          "(Unstable) Number of times to iterate in safepoint loop "        \
344860484Sobrien          "before blocking VM threads ")                                    \
344960484Sobrien                                                                            \
345060484Sobrien  product(intx, DeferPollingPageLoopCount,     -1,                          \
345160484Sobrien          "(Unsafe,Unstable) Number of iterations in safepoint loop "       \
345260484Sobrien          "before changing safepoint polling page to RO ")                  \
345360484Sobrien                                                                            \
345460484Sobrien  product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)")               \
345560484Sobrien                                                                            \
345660484Sobrien  product(bool, PSChunkLargeArrays, true,                                   \
345760484Sobrien          "Process large arrays in chunks")                                 \
345860484Sobrien                                                                            \
345960484Sobrien  product(uintx, GCDrainStackTargetSize, 64,                                \
346060484Sobrien          "Number of entries we will try to leave on the stack "            \
346160484Sobrien          "during parallel gc")                                             \
346260484Sobrien                                                                            \
346360484Sobrien  /* stack parameters */                                                    \
346460484Sobrien  product_pd(intx, StackYellowPages,                                        \
346560484Sobrien          "Number of yellow zone (recoverable overflows) pages")            \
346660484Sobrien          range(1, max_intx)                                                \
346760484Sobrien                                                                            \
346860484Sobrien  product_pd(intx, StackRedPages,                                           \
346960484Sobrien          "Number of red zone (unrecoverable overflows) pages")             \
347060484Sobrien          range(1, max_intx)                                                \
347160484Sobrien                                                                            \
347260484Sobrien  /* greater stack shadow pages can't generate instruction to bang stack */ \
347360484Sobrien  product_pd(intx, StackShadowPages,                                        \
347460484Sobrien          "Number of shadow zone (for overflow checking) pages "            \
347560484Sobrien          "this should exceed the depth of the VM and native call stack")   \
347660484Sobrien          range(1, 50)                                                      \
347760484Sobrien                                                                            \
347860484Sobrien  product_pd(intx, ThreadStackSize,                                         \
347960484Sobrien          "Thread Stack Size (in Kbytes)")                                  \
348060484Sobrien                                                                            \
348160484Sobrien  product_pd(intx, VMThreadStackSize,                                       \
348260484Sobrien          "Non-Java Thread Stack Size (in Kbytes)")                         \
348360484Sobrien                                                                            \
348460484Sobrien  product_pd(intx, CompilerThreadStackSize,                                 \
348560484Sobrien          "Compiler Thread Stack Size (in Kbytes)")                         \
348660484Sobrien                                                                            \
348760484Sobrien  develop_pd(size_t, JVMInvokeMethodSlack,                                  \
348860484Sobrien          "Stack space (bytes) required for JVM_InvokeMethod to complete")  \
348960484Sobrien                                                                            \
349060484Sobrien  /* code cache parameters                                    */            \
349160484Sobrien  /* ppc64/tiered compilation has large code-entry alignment. */            \
349260484Sobrien  develop(uintx, CodeCacheSegmentSize, 64 PPC64_ONLY(+64) NOT_PPC64(TIERED_ONLY(+64)),\
349360484Sobrien          "Code cache segment size (in bytes) - smallest unit of "          \
349460484Sobrien          "allocation")                                                     \
349560484Sobrien          range(1, 1024)                                                    \
349660484Sobrien                                                                            \
349760484Sobrien  develop_pd(intx, CodeEntryAlignment,                                      \
349860484Sobrien          "Code entry alignment for generated code (in bytes)")             \
349960484Sobrien                                                                            \
350060484Sobrien  product_pd(intx, OptoLoopAlignment,                                       \
350160484Sobrien          "Align inner loops to zero relative to this modulus")             \
350260484Sobrien                                                                            \
350360484Sobrien  product_pd(uintx, InitialCodeCacheSize,                                   \
350460484Sobrien          "Initial code cache size (in bytes)")                             \
350560484Sobrien                                                                            \
350660484Sobrien  develop_pd(uintx, CodeCacheMinimumUseSpace,                               \
350760484Sobrien          "Minimum code cache size (in bytes) required to start VM.")       \
350860484Sobrien                                                                            \
350960484Sobrien  product(bool, SegmentedCodeCache, false,                                  \
351060484Sobrien          "Use a segmented code cache")                                     \
351160484Sobrien                                                                            \
351260484Sobrien  product_pd(uintx, ReservedCodeCacheSize,                                  \
351360484Sobrien          "Reserved code cache size (in bytes) - maximum code cache size")  \
351460484Sobrien                                                                            \
351560484Sobrien  product_pd(uintx, NonProfiledCodeHeapSize,                                \
351660484Sobrien          "Size of code heap with non-profiled methods (in bytes)")         \
351760484Sobrien                                                                            \
351860484Sobrien  product_pd(uintx, ProfiledCodeHeapSize,                                   \
351960484Sobrien          "Size of code heap with profiled methods (in bytes)")             \
352060484Sobrien                                                                            \
352160484Sobrien  product_pd(uintx, NonNMethodCodeHeapSize,                                 \
352260484Sobrien          "Size of code heap with non-nmethods (in bytes)")                 \
352360484Sobrien                                                                            \
352460484Sobrien  product_pd(uintx, CodeCacheExpansionSize,                                 \
352560484Sobrien          "Code cache expansion size (in bytes)")                           \
352660484Sobrien                                                                            \
352760484Sobrien  develop_pd(uintx, CodeCacheMinBlockLength,                                \
352860484Sobrien          "Minimum number of segments in a code cache block")               \
352960484Sobrien          range(1, 100)                                                     \
353060484Sobrien                                                                            \
353160484Sobrien  notproduct(bool, ExitOnFullCodeCache, false,                              \
353260484Sobrien          "Exit the VM if we fill the code cache")                          \
353360484Sobrien                                                                            \
353460484Sobrien  product(bool, UseCodeCacheFlushing, true,                                 \
353560484Sobrien          "Remove cold/old nmethods from the code cache")                   \
353660484Sobrien                                                                            \
353760484Sobrien  product(uintx, StartAggressiveSweepingAt, 10,                             \
353860484Sobrien          "Start aggressive sweeping if X[%] of the code cache is free."    \
353960484Sobrien          "Segmented code cache: X[%] of the non-profiled heap."            \
354060484Sobrien          "Non-segmented code cache: X[%] of the total code cache")         \
354160484Sobrien          range(0, 100)                                                     \
354260484Sobrien                                                                            \
354360484Sobrien  /* interpreter debugging */                                               \
354460484Sobrien  develop(intx, BinarySwitchThreshold, 5,                                   \
354560484Sobrien          "Minimal number of lookupswitch entries for rewriting to binary " \
354660484Sobrien          "switch")                                                         \
354760484Sobrien                                                                            \
354860484Sobrien  develop(intx, StopInterpreterAt, 0,                                       \
354960484Sobrien          "Stop interpreter execution at specified bytecode number")        \
355060484Sobrien                                                                            \
355160484Sobrien  develop(intx, TraceBytecodesAt, 0,                                        \
355260484Sobrien          "Trace bytecodes starting with specified bytecode number")        \
355360484Sobrien                                                                            \
355460484Sobrien  /* compiler interface */                                                  \
355560484Sobrien  develop(intx, CIStart, 0,                                                 \
355660484Sobrien          "The id of the first compilation to permit")                      \
355760484Sobrien                                                                            \
355860484Sobrien  develop(intx, CIStop, max_jint,                                           \
355960484Sobrien          "The id of the last compilation to permit")                       \
356060484Sobrien                                                                            \
356160484Sobrien  develop(intx, CIStartOSR, 0,                                              \
356260484Sobrien          "The id of the first osr compilation to permit "                  \
356360484Sobrien          "(CICountOSR must be on)")                                        \
356460484Sobrien                                                                            \
356560484Sobrien  develop(intx, CIStopOSR, max_jint,                                        \
356660484Sobrien          "The id of the last osr compilation to permit "                   \
356760484Sobrien          "(CICountOSR must be on)")                                        \
356860484Sobrien                                                                            \
356960484Sobrien  develop(intx, CIBreakAtOSR, -1,                                           \
357060484Sobrien          "The id of osr compilation to break at")                          \
357160484Sobrien                                                                            \
357260484Sobrien  develop(intx, CIBreakAt, -1,                                              \
357360484Sobrien          "The id of compilation to break at")                              \
357460484Sobrien                                                                            \
357560484Sobrien  product(ccstrlist, CompileOnly, "",                                       \
357660484Sobrien          "List of methods (pkg/class.name) to restrict compilation to")    \
357760484Sobrien                                                                            \
357860484Sobrien  product(ccstr, CompileCommandFile, NULL,                                  \
357960484Sobrien          "Read compiler commands from this file [.hotspot_compiler]")      \
358060484Sobrien                                                                            \
358160484Sobrien  product(ccstrlist, CompileCommand, "",                                    \
358260484Sobrien          "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
358360484Sobrien                                                                            \
358460484Sobrien  develop(bool, ReplayCompiles, false,                                      \
358560484Sobrien          "Enable replay of compilations from ReplayDataFile")              \
358660484Sobrien                                                                            \
358760484Sobrien  product(ccstr, ReplayDataFile, NULL,                                      \
358860484Sobrien          "File containing compilation replay information"                  \
358960484Sobrien          "[default: ./replay_pid%p.log] (%p replaced with pid)")           \
359060484Sobrien                                                                            \
359160484Sobrien   product(ccstr, InlineDataFile, NULL,                                     \
359260484Sobrien          "File containing inlining replay information"                     \
359360484Sobrien          "[default: ./inline_pid%p.log] (%p replaced with pid)")           \
359460484Sobrien                                                                            \
359560484Sobrien  develop(intx, ReplaySuppressInitializers, 2,                              \
359660484Sobrien          "Control handling of class initialization during replay: "        \
359760484Sobrien          "0 - don't do anything special; "                                 \
359860484Sobrien          "1 - treat all class initializers as empty; "                     \
359960484Sobrien          "2 - treat class initializers for application classes as empty; " \
360060484Sobrien          "3 - allow all class initializers to run during bootstrap but "   \
360160484Sobrien          "    pretend they are empty after starting replay")               \
360260484Sobrien          range(0, 3)                                                       \
360360484Sobrien                                                                            \
360460484Sobrien  develop(bool, ReplayIgnoreInitErrors, false,                              \
360560484Sobrien          "Ignore exceptions thrown during initialization for replay")      \
360660484Sobrien                                                                            \
360760484Sobrien  product(bool, DumpReplayDataOnError, true,                                \
360860484Sobrien          "Record replay data for crashing compiler threads")               \
360960484Sobrien                                                                            \
361060484Sobrien  product(bool, CICompilerCountPerCPU, false,                               \
361160484Sobrien          "1 compiler thread for log(N CPUs)")                              \
361260484Sobrien                                                                            \
361360484Sobrien  develop(intx, CIFireOOMAt,    -1,                                         \
361460484Sobrien          "Fire OutOfMemoryErrors throughout CI for testing the compiler "  \
361560484Sobrien          "(non-negative value throws OOM after this many CI accesses "     \
361660484Sobrien          "in each compile)")                                               \
361760484Sobrien  notproduct(intx, CICrashAt, -1,                                           \
361860484Sobrien          "id of compilation to trigger assert in compiler thread for "     \
361960484Sobrien          "the purpose of testing, e.g. generation of replay data")         \
362060484Sobrien  notproduct(bool, CIObjectFactoryVerify, false,                            \
362160484Sobrien          "enable potentially expensive verification in ciObjectFactory")   \
362260484Sobrien                                                                            \
362360484Sobrien  /* Priorities */                                                          \
362460484Sobrien  product_pd(bool, UseThreadPriorities,  "Use native thread priorities")    \
362560484Sobrien                                                                            \
362660484Sobrien  product(intx, ThreadPriorityPolicy, 0,                                    \
362760484Sobrien          "0 : Normal.                                                     "\
362860484Sobrien          "    VM chooses priorities that are appropriate for normal       "\
362960484Sobrien          "    applications. On Solaris NORM_PRIORITY and above are mapped "\
363060484Sobrien          "    to normal native priority. Java priorities below "           \
363160484Sobrien          "    NORM_PRIORITY map to lower native priority values. On       "\
363260484Sobrien          "    Windows applications are allowed to use higher native       "\
363360484Sobrien          "    priorities. However, with ThreadPriorityPolicy=0, VM will   "\
363460484Sobrien          "    not use the highest possible native priority,               "\
363560484Sobrien          "    THREAD_PRIORITY_TIME_CRITICAL, as it may interfere with     "\
363660484Sobrien          "    system threads. On Linux thread priorities are ignored      "\
363760484Sobrien          "    because the OS does not support static priority in          "\
363860484Sobrien          "    SCHED_OTHER scheduling class which is the only choice for   "\
363960484Sobrien          "    non-root, non-realtime applications.                        "\
364060484Sobrien          "1 : Aggressive.                                                 "\
364160484Sobrien          "    Java thread priorities map over to the entire range of      "\
364260484Sobrien          "    native thread priorities. Higher Java thread priorities map "\
364360484Sobrien          "    to higher native thread priorities. This policy should be   "\
364460484Sobrien          "    used with care, as sometimes it can cause performance       "\
364560484Sobrien          "    degradation in the application and/or the entire system. On "\
364660484Sobrien          "    Linux this policy requires root privilege.")                 \
364760484Sobrien          range(0, 1)                                                       \
364860484Sobrien                                                                            \
364960484Sobrien  product(bool, ThreadPriorityVerbose, false,                               \
365060484Sobrien          "Print priority changes")                                         \
365160484Sobrien                                                                            \
365260484Sobrien  product(intx, CompilerThreadPriority, -1,                                 \
365360484Sobrien          "The native priority at which compiler threads should run "       \
365460484Sobrien          "(-1 means no change)")                                           \
365560484Sobrien                                                                            \
365660484Sobrien  product(intx, VMThreadPriority, -1,                                       \
365760484Sobrien          "The native priority at which the VM thread should run "          \
365860484Sobrien          "(-1 means no change)")                                           \
365960484Sobrien                                                                            \
366060484Sobrien  product(bool, CompilerThreadHintNoPreempt, true,                          \
366160484Sobrien          "(Solaris only) Give compiler threads an extra quanta")           \
366260484Sobrien                                                                            \
366360484Sobrien  product(bool, VMThreadHintNoPreempt, false,                               \
366460484Sobrien          "(Solaris only) Give VM thread an extra quanta")                  \
366560484Sobrien                                                                            \
366660484Sobrien  product(intx, JavaPriority1_To_OSPriority, -1,                            \
366760484Sobrien          "Map Java priorities to OS priorities")                           \
366860484Sobrien                                                                            \
366960484Sobrien  product(intx, JavaPriority2_To_OSPriority, -1,                            \
367060484Sobrien          "Map Java priorities to OS priorities")                           \
367160484Sobrien                                                                            \
367260484Sobrien  product(intx, JavaPriority3_To_OSPriority, -1,                            \
367360484Sobrien          "Map Java priorities to OS priorities")                           \
367460484Sobrien                                                                            \
367560484Sobrien  product(intx, JavaPriority4_To_OSPriority, -1,                            \
367660484Sobrien          "Map Java priorities to OS priorities")                           \
367760484Sobrien                                                                            \
367860484Sobrien  product(intx, JavaPriority5_To_OSPriority, -1,                            \
367960484Sobrien          "Map Java priorities to OS priorities")                           \
368060484Sobrien                                                                            \
368160484Sobrien  product(intx, JavaPriority6_To_OSPriority, -1,                            \
368260484Sobrien          "Map Java priorities to OS priorities")                           \
368360484Sobrien                                                                            \
368460484Sobrien  product(intx, JavaPriority7_To_OSPriority, -1,                            \
368560484Sobrien          "Map Java priorities to OS priorities")                           \
368660484Sobrien                                                                            \
368760484Sobrien  product(intx, JavaPriority8_To_OSPriority, -1,                            \
368860484Sobrien          "Map Java priorities to OS priorities")                           \
368960484Sobrien                                                                            \
369060484Sobrien  product(intx, JavaPriority9_To_OSPriority, -1,                            \
369160484Sobrien          "Map Java priorities to OS priorities")                           \
369260484Sobrien                                                                            \
369360484Sobrien  product(intx, JavaPriority10_To_OSPriority,-1,                            \
369460484Sobrien          "Map Java priorities to OS priorities")                           \
369560484Sobrien                                                                            \
369660484Sobrien  experimental(bool, UseCriticalJavaThreadPriority, false,                  \
369760484Sobrien          "Java thread priority 10 maps to critical scheduling priority")   \
369860484Sobrien                                                                            \
369960484Sobrien  experimental(bool, UseCriticalCompilerThreadPriority, false,              \
370060484Sobrien          "Compiler thread(s) run at critical scheduling priority")         \
370160484Sobrien                                                                            \
370260484Sobrien  experimental(bool, UseCriticalCMSThreadPriority, false,                   \
370360484Sobrien          "ConcurrentMarkSweep thread runs at critical scheduling priority")\
370460484Sobrien                                                                            \
370560484Sobrien  /* compiler debugging */                                                  \
370660484Sobrien  notproduct(intx, CompileTheWorldStartAt,     1,                           \
370760484Sobrien          "First class to consider when using +CompileTheWorld")            \
370860484Sobrien                                                                            \
370960484Sobrien  notproduct(intx, CompileTheWorldStopAt, max_jint,                         \
371060484Sobrien          "Last class to consider when using +CompileTheWorld")             \
371160484Sobrien                                                                            \
371260484Sobrien  develop(intx, NewCodeParameter,      0,                                   \
371360484Sobrien          "Testing Only: Create a dedicated integer parameter before "      \
371460484Sobrien          "putback")                                                        \
371560484Sobrien                                                                            \
371660484Sobrien  /* new oopmap storage allocation */                                       \
371760484Sobrien  develop(intx, MinOopMapAllocation,     8,                                 \
371860484Sobrien          "Minimum number of OopMap entries in an OopMapSet")               \
371960484Sobrien                                                                            \
372060484Sobrien  /* Background Compilation */                                              \
372160484Sobrien  develop(intx, LongCompileThreshold,     50,                               \
372260484Sobrien          "Used with +TraceLongCompiles")                                   \
372360484Sobrien                                                                            \
372460484Sobrien  product(intx, StarvationMonitorInterval,    200,                          \
372560484Sobrien          "Pause between each check (in milliseconds)")                     \
372660484Sobrien                                                                            \
372760484Sobrien  /* recompilation */                                                       \
372860484Sobrien  product_pd(intx, CompileThreshold,                                        \
372960484Sobrien          "number of interpreted method invocations before (re-)compiling") \
373060484Sobrien                                                                            \
373160484Sobrien  product(double, CompileThresholdScaling, 1.0,                             \
373260484Sobrien          "Factor to control when first compilation happens "               \
373360484Sobrien          "(both with and without tiered compilation): "                    \
373460484Sobrien          "values greater than 1.0 delay counter overflow, "                \
373560484Sobrien          "values between 0 and 1.0 rush counter overflow, "                \
373660484Sobrien          "value of 1.0 leaves compilation thresholds unchanged "           \
373760484Sobrien          "value of 0.0 is equivalent to -Xint. "                           \
373860484Sobrien          ""                                                                \
373960484Sobrien          "Flag can be set as per-method option. "                          \
374060484Sobrien          "If a value is specified for a method, compilation thresholds "   \
374160484Sobrien          "for that method are scaled by both the value of the global flag "\
374260484Sobrien          "and the value of the per-method flag.")                          \
374360484Sobrien                                                                            \
374489857Sobrien  product(intx, Tier0InvokeNotifyFreqLog, 7,                                \
374589857Sobrien          "Interpreter (tier 0) invocation notification frequency")         \
374660484Sobrien                                                                            \
374760484Sobrien  product(intx, Tier2InvokeNotifyFreqLog, 11,                               \
374860484Sobrien          "C1 without MDO (tier 2) invocation notification frequency")      \
374960484Sobrien                                                                            \
375060484Sobrien  product(intx, Tier3InvokeNotifyFreqLog, 10,                               \
375160484Sobrien          "C1 with MDO profiling (tier 3) invocation notification "         \
375260484Sobrien          "frequency")                                                      \
375360484Sobrien                                                                            \
375460484Sobrien  product(intx, Tier23InlineeNotifyFreqLog, 20,                             \
375560484Sobrien          "Inlinee invocation (tiers 2 and 3) notification frequency")      \
375660484Sobrien                                                                            \
375760484Sobrien  product(intx, Tier0BackedgeNotifyFreqLog, 10,                             \
375860484Sobrien          "Interpreter (tier 0) invocation notification frequency")         \
375960484Sobrien                                                                            \
376060484Sobrien  product(intx, Tier2BackedgeNotifyFreqLog, 14,                             \
376160484Sobrien          "C1 without MDO (tier 2) invocation notification frequency")      \
376260484Sobrien                                                                            \
376360484Sobrien  product(intx, Tier3BackedgeNotifyFreqLog, 13,                             \
376460484Sobrien          "C1 with MDO profiling (tier 3) invocation notification "         \
376560484Sobrien          "frequency")                                                      \
376660484Sobrien                                                                            \
376760484Sobrien  product(intx, Tier2CompileThreshold, 0,                                   \
376860484Sobrien          "threshold at which tier 2 compilation is invoked")               \
376960484Sobrien                                                                            \
377060484Sobrien  product(intx, Tier2BackEdgeThreshold, 0,                                  \
377160484Sobrien          "Back edge threshold at which tier 2 compilation is invoked")     \
377260484Sobrien                                                                            \
377360484Sobrien  product(intx, Tier3InvocationThreshold, 200,                              \
377460484Sobrien          "Compile if number of method invocations crosses this "           \
377560484Sobrien          "threshold")                                                      \
377660484Sobrien                                                                            \
377760484Sobrien  product(intx, Tier3MinInvocationThreshold, 100,                           \
377860484Sobrien          "Minimum invocation to compile at tier 3")                        \
377960484Sobrien                                                                            \
378060484Sobrien  product(intx, Tier3CompileThreshold, 2000,                                \
378160484Sobrien          "Threshold at which tier 3 compilation is invoked (invocation "   \
378260484Sobrien          "minimum must be satisfied")                                      \
378360484Sobrien                                                                            \
378460484Sobrien  product(intx, Tier3BackEdgeThreshold,  60000,                             \
378560484Sobrien          "Back edge threshold at which tier 3 OSR compilation is invoked") \
378660484Sobrien                                                                            \
378760484Sobrien  product(intx, Tier4InvocationThreshold, 5000,                             \
378860484Sobrien          "Compile if number of method invocations crosses this "           \
378960484Sobrien          "threshold")                                                      \
379060484Sobrien                                                                            \
379160484Sobrien  product(intx, Tier4MinInvocationThreshold, 600,                           \
379260484Sobrien          "Minimum invocation to compile at tier 4")                        \
379360484Sobrien                                                                            \
379460484Sobrien  product(intx, Tier4CompileThreshold, 15000,                               \
379560484Sobrien          "Threshold at which tier 4 compilation is invoked (invocation "   \
379660484Sobrien          "minimum must be satisfied")                                      \
379760484Sobrien                                                                            \
379860484Sobrien  product(intx, Tier4BackEdgeThreshold, 40000,                              \
379960484Sobrien          "Back edge threshold at which tier 4 OSR compilation is invoked") \
380060484Sobrien                                                                            \
380160484Sobrien  product(intx, Tier3DelayOn, 5,                                            \
380260484Sobrien          "If C2 queue size grows over this amount per compiler thread "    \
380360484Sobrien          "stop compiling at tier 3 and start compiling at tier 2")         \
380460484Sobrien                                                                            \
380560484Sobrien  product(intx, Tier3DelayOff, 2,                                           \
380660484Sobrien          "If C2 queue size is less than this amount per compiler thread "  \
380760484Sobrien          "allow methods compiled at tier 2 transition to tier 3")          \
380860484Sobrien                                                                            \
380960484Sobrien  product(intx, Tier3LoadFeedback, 5,                                       \
381060484Sobrien          "Tier 3 thresholds will increase twofold when C1 queue size "     \
381160484Sobrien          "reaches this amount per compiler thread")                        \
381260484Sobrien                                                                            \
381360484Sobrien  product(intx, Tier4LoadFeedback, 3,                                       \
381460484Sobrien          "Tier 4 thresholds will increase twofold when C2 queue size "     \
381560484Sobrien          "reaches this amount per compiler thread")                        \
381660484Sobrien                                                                            \
381760484Sobrien  product(intx, TieredCompileTaskTimeout, 50,                               \
381860484Sobrien          "Kill compile task if method was not used within "                \
381960484Sobrien          "given timeout in milliseconds")                                  \
382060484Sobrien                                                                            \
382160484Sobrien  product(intx, TieredStopAtLevel, 4,                                       \
382260484Sobrien          "Stop at given compilation level")                                \
382360484Sobrien                                                                            \
382460484Sobrien  product(intx, Tier0ProfilingStartPercentage, 200,                         \
382560484Sobrien          "Start profiling in interpreter if the counters exceed tier 3 "   \
382660484Sobrien          "thresholds by the specified percentage")                         \
382760484Sobrien                                                                            \
382860484Sobrien  product(uintx, IncreaseFirstTierCompileThresholdAt, 50,                   \
382960484Sobrien          "Increase the compile threshold for C1 compilation if the code "  \
383060484Sobrien          "cache is filled by the specified percentage")                    \
383160484Sobrien          range(0, 99)                                                      \
383260484Sobrien                                                                            \
383360484Sobrien  product(intx, TieredRateUpdateMinTime, 1,                                 \
383460484Sobrien          "Minimum rate sampling interval (in milliseconds)")               \
383560484Sobrien                                                                            \
383660484Sobrien  product(intx, TieredRateUpdateMaxTime, 25,                                \
383760484Sobrien          "Maximum rate sampling interval (in milliseconds)")               \
383860484Sobrien                                                                            \
383960484Sobrien  product_pd(bool, TieredCompilation,                                       \
384060484Sobrien          "Enable tiered compilation")                                      \
384160484Sobrien                                                                            \
384260484Sobrien  product(bool, PrintTieredEvents, false,                                   \
384360484Sobrien          "Print tiered events notifications")                              \
384460484Sobrien                                                                            \
384560484Sobrien  product_pd(intx, OnStackReplacePercentage,                                \
384660484Sobrien          "NON_TIERED number of method invocations/branches (expressed as " \
384760484Sobrien          "% of CompileThreshold) before (re-)compiling OSR code")          \
384860484Sobrien                                                                            \
384960484Sobrien  product(intx, InterpreterProfilePercentage, 33,                           \
385060484Sobrien          "NON_TIERED number of method invocations/branches (expressed as " \
385160484Sobrien          "% of CompileThreshold) before profiling in the interpreter")     \
385260484Sobrien          range(0, 100)                                                     \
385360484Sobrien                                                                            \
385460484Sobrien  develop(intx, MaxRecompilationSearchLength,    10,                        \
385560484Sobrien          "The maximum number of frames to inspect when searching for "     \
385660484Sobrien          "recompilee")                                                     \
385760484Sobrien                                                                            \
385860484Sobrien  develop(intx, MaxInterpretedSearchLength,     3,                          \
385960484Sobrien          "The maximum number of interpreted frames to skip when searching "\
386060484Sobrien          "for recompilee")                                                 \
386160484Sobrien                                                                            \
386260484Sobrien  develop(intx, DesiredMethodLimit,  8000,                                  \
386360484Sobrien          "The desired maximum method size (in bytecodes) after inlining")  \
386460484Sobrien                                                                            \
386560484Sobrien  develop(intx, HugeMethodLimit,  8000,                                     \
386660484Sobrien          "Don't compile methods larger than this if "                      \
386760484Sobrien          "+DontCompileHugeMethods")                                        \
386860484Sobrien                                                                            \
386960484Sobrien  /* New JDK 1.4 reflection implementation */                               \
387060484Sobrien                                                                            \
387160484Sobrien  develop(intx, FastSuperclassLimit, 8,                                     \
387260484Sobrien          "Depth of hardwired instanceof accelerator array")                \
387360484Sobrien                                                                            \
387460484Sobrien  /* Properties for Java libraries  */                                      \
387560484Sobrien                                                                            \
387660484Sobrien  product(size_t, MaxDirectMemorySize, 0,                                   \
387760484Sobrien          "Maximum total size of NIO direct-buffer allocations")            \
387860484Sobrien                                                                            \
387960484Sobrien  /* Flags used for temporary code during development  */                   \
388060484Sobrien                                                                            \
388160484Sobrien  diagnostic(bool, UseNewCode, false,                                       \
388260484Sobrien          "Testing Only: Use the new version while testing")                \
388360484Sobrien                                                                            \
388460484Sobrien  diagnostic(bool, UseNewCode2, false,                                      \
388560484Sobrien          "Testing Only: Use the new version while testing")                \
388660484Sobrien                                                                            \
388760484Sobrien  diagnostic(bool, UseNewCode3, false,                                      \
388860484Sobrien          "Testing Only: Use the new version while testing")                \
388960484Sobrien                                                                            \
389060484Sobrien  /* flags for performance data collection */                               \
389160484Sobrien                                                                            \
389260484Sobrien  product(bool, UsePerfData, falseInEmbedded,                               \
389360484Sobrien          "Flag to disable jvmstat instrumentation for performance testing "\
389460484Sobrien          "and problem isolation purposes")                                 \
389560484Sobrien                                                                            \
389660484Sobrien  product(bool, PerfDataSaveToFile, false,                                  \
389760484Sobrien          "Save PerfData memory to hsperfdata_<pid> file on exit")          \
389860484Sobrien                                                                            \
389960484Sobrien  product(ccstr, PerfDataSaveFile, NULL,                                    \
390060484Sobrien          "Save PerfData memory to the specified absolute pathname. "       \
390160484Sobrien          "The string %p in the file name (if present) "                    \
390260484Sobrien          "will be replaced by pid")                                        \
390360484Sobrien                                                                            \
390460484Sobrien  product(intx, PerfDataSamplingInterval, 50,                               \
390560484Sobrien          "Data sampling interval (in milliseconds)")                       \
390660484Sobrien                                                                            \
390760484Sobrien  develop(bool, PerfTraceDataCreation, false,                               \
390860484Sobrien          "Trace creation of Performance Data Entries")                     \
390960484Sobrien                                                                            \
391060484Sobrien  develop(bool, PerfTraceMemOps, false,                                     \
391160484Sobrien          "Trace PerfMemory create/attach/detach calls")                    \
391260484Sobrien                                                                            \
391360484Sobrien  product(bool, PerfDisableSharedMem, false,                                \
391460484Sobrien          "Store performance data in standard memory")                      \
391560484Sobrien                                                                            \
391660484Sobrien  product(intx, PerfDataMemorySize, 32*K,                                   \
391760484Sobrien          "Size of performance data memory region. Will be rounded "        \
391860484Sobrien          "up to a multiple of the native os page size.")                   \
391960484Sobrien                                                                            \
392060484Sobrien  product(intx, PerfMaxStringConstLength, 1024,                             \
392160484Sobrien          "Maximum PerfStringConstant string length before truncation")     \
392260484Sobrien                                                                            \
392360484Sobrien  product(bool, PerfAllowAtExitRegistration, false,                         \
392460484Sobrien          "Allow registration of atexit() methods")                         \
392560484Sobrien                                                                            \
392660484Sobrien  product(bool, PerfBypassFileSystemCheck, false,                           \
392760484Sobrien          "Bypass Win32 file system criteria checks (Windows Only)")        \
392860484Sobrien                                                                            \
392960484Sobrien  product(intx, UnguardOnExecutionViolation, 0,                             \
393060484Sobrien          "Unguard page and retry on no-execute fault (Win32 only) "        \
393160484Sobrien          "0=off, 1=conservative, 2=aggressive")                            \
393260484Sobrien          range(0, 2)                                                       \
393360484Sobrien                                                                            \
393460484Sobrien  /* Serviceability Support */                                              \
393560484Sobrien                                                                            \
393660484Sobrien  product(bool, ManagementServer, false,                                    \
393760484Sobrien          "Create JMX Management Server")                                   \
393860484Sobrien                                                                            \
393960484Sobrien  product(bool, DisableAttachMechanism, false,                              \
394060484Sobrien          "Disable mechanism that allows tools to attach to this VM")       \
394160484Sobrien                                                                            \
394260484Sobrien  product(bool, StartAttachListener, false,                                 \
394360484Sobrien          "Always start Attach Listener at VM startup")                     \
394460484Sobrien                                                                            \
394560484Sobrien  manageable(bool, PrintConcurrentLocks, false,                             \
394660484Sobrien          "Print java.util.concurrent locks in thread dump")                \
394760484Sobrien                                                                            \
394860484Sobrien  product(bool, TransmitErrorReport, false,                                 \
394960484Sobrien          "Enable error report transmission on erroneous termination")      \
395060484Sobrien                                                                            \
395160484Sobrien  product(ccstr, ErrorReportServer, NULL,                                   \
395260484Sobrien          "Override built-in error report server address")                  \
395360484Sobrien                                                                            \
395460484Sobrien  /* Shared spaces */                                                       \
395560484Sobrien                                                                            \
395660484Sobrien  product(bool, UseSharedSpaces, true,                                      \
395760484Sobrien          "Use shared spaces for metadata")                                 \
395860484Sobrien                                                                            \
395960484Sobrien  product(bool, VerifySharedSpaces, false,                                  \
396060484Sobrien          "Verify shared spaces (false for default archive, true for "      \
396160484Sobrien          "archive specified by -XX:SharedArchiveFile)")                    \
396260484Sobrien                                                                            \
396360484Sobrien  product(bool, RequireSharedSpaces, false,                                 \
396460484Sobrien          "Require shared spaces for metadata")                             \
396560484Sobrien                                                                            \
396660484Sobrien  product(bool, DumpSharedSpaces, false,                                    \
396760484Sobrien          "Special mode: JVM reads a class list, loads classes, builds "    \
396860484Sobrien          "shared spaces, and dumps the shared spaces to a file to be "     \
396960484Sobrien          "used in future JVM runs")                                        \
397060484Sobrien                                                                            \
397160484Sobrien  product(bool, PrintSharedSpaces, false,                                   \
397260484Sobrien          "Print usage of shared spaces")                                   \
397360484Sobrien                                                                            \
397460484Sobrien  product(bool, PrintSharedArchiveAndExit, false,                           \
397560484Sobrien          "Print shared archive file contents")                             \
397660484Sobrien                                                                            \
397760484Sobrien  product(bool, PrintSharedDictionary, false,                               \
397860484Sobrien          "If PrintSharedArchiveAndExit is true, also print the shared "    \
397960484Sobrien          "dictionary")                                                     \
398060484Sobrien                                                                            \
398160484Sobrien  product(size_t, SharedReadWriteSize,  NOT_LP64(12*M) LP64_ONLY(16*M),     \
398260484Sobrien          "Size of read-write space for metadata (in bytes)")               \
398360484Sobrien                                                                            \
398460484Sobrien  product(size_t, SharedReadOnlySize,  NOT_LP64(12*M) LP64_ONLY(16*M),      \
398560484Sobrien          "Size of read-only space for metadata (in bytes)")                \
398660484Sobrien                                                                            \
398760484Sobrien  product(uintx, SharedMiscDataSize,    NOT_LP64(2*M) LP64_ONLY(4*M),       \
398860484Sobrien          "Size of the shared miscellaneous data area (in bytes)")          \
398960484Sobrien                                                                            \
399060484Sobrien  product(uintx, SharedMiscCodeSize,    120*K,                              \
399160484Sobrien          "Size of the shared miscellaneous code area (in bytes)")          \
399260484Sobrien                                                                            \
399360484Sobrien  product(uintx, SharedBaseAddress, LP64_ONLY(32*G)                         \
399460484Sobrien          NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)),                           \
399560484Sobrien          "Address to allocate shared memory region for class data")        \
399660484Sobrien                                                                            \
399760484Sobrien  product(uintx, SharedSymbolTableBucketSize, 4,                            \
399860484Sobrien          "Average number of symbols per bucket in shared table")           \
399960484Sobrien                                                                            \
400060484Sobrien  diagnostic(bool, IgnoreUnverifiableClassesDuringDump, false,              \
400160484Sobrien          "Do not quit -Xshare:dump even if we encounter unverifiable "     \
400260484Sobrien          "classes. Just exclude them from the shared dictionary.")         \
400360484Sobrien                                                                            \
400460484Sobrien  diagnostic(bool, PrintMethodHandleStubs, false,                           \
400560484Sobrien          "Print generated stub code for method handles")                   \
400660484Sobrien                                                                            \
400760484Sobrien  develop(bool, TraceMethodHandles, false,                                  \
400860484Sobrien          "trace internal method handle operations")                        \
400960484Sobrien                                                                            \
401060484Sobrien  diagnostic(bool, VerifyMethodHandles, trueInDebug,                        \
401160484Sobrien          "perform extra checks when constructing method handles")          \
401260484Sobrien                                                                            \
401360484Sobrien  diagnostic(bool, ShowHiddenFrames, false,                                 \
401460484Sobrien          "show method handle implementation frames (usually hidden)")      \
401560484Sobrien                                                                            \
401660484Sobrien  experimental(bool, TrustFinalNonStaticFields, false,                      \
401760484Sobrien          "trust final non-static declarations for constant folding")       \
401860484Sobrien                                                                            \
401960484Sobrien  diagnostic(bool, FoldStableValues, true,                                  \
402060484Sobrien          "Optimize loads from stable fields (marked w/ @Stable)")          \
402160484Sobrien                                                                            \
402260484Sobrien  develop(bool, TraceInvokeDynamic, false,                                  \
402360484Sobrien          "trace internal invoke dynamic operations")                       \
402460484Sobrien                                                                            \
402560484Sobrien  diagnostic(bool, PauseAtStartup,      false,                              \
402660484Sobrien          "Causes the VM to pause at startup time and wait for the pause "  \
402760484Sobrien          "file to be removed (default: ./vm.paused.<pid>)")                \
402860484Sobrien                                                                            \
402960484Sobrien  diagnostic(ccstr, PauseAtStartupFile, NULL,                               \
403060484Sobrien          "The file to create and for whose removal to await when pausing " \
403160484Sobrien          "at startup. (default: ./vm.paused.<pid>)")                       \
403260484Sobrien                                                                            \
403360484Sobrien  diagnostic(bool, PauseAtExit, false,                                      \
403460484Sobrien          "Pause and wait for keypress on exit if a debugger is attached")  \
403560484Sobrien                                                                            \
403660484Sobrien  product(bool, ExtendedDTraceProbes,    false,                             \
403760484Sobrien          "Enable performance-impacting dtrace probes")                     \
403860484Sobrien                                                                            \
403960484Sobrien  product(bool, DTraceMethodProbes, false,                                  \
404060484Sobrien          "Enable dtrace probes for method-entry and method-exit")          \
404160484Sobrien                                                                            \
404260484Sobrien  product(bool, DTraceAllocProbes, false,                                   \
404360484Sobrien          "Enable dtrace probes for object allocation")                     \
404460484Sobrien                                                                            \
404560484Sobrien  product(bool, DTraceMonitorProbes, false,                                 \
404660484Sobrien          "Enable dtrace probes for monitor events")                        \
404760484Sobrien                                                                            \
404860484Sobrien  product(bool, RelaxAccessControlCheck, false,                             \
404960484Sobrien          "Relax the access control checks in the verifier")                \
405060484Sobrien                                                                            \
405160484Sobrien  product(uintx, StringTableSize, defaultStringTableSize,                   \
405260484Sobrien          "Number of buckets in the interned String table")                 \
405360484Sobrien          range(minimumStringTableSize, 111*defaultStringTableSize)         \
405460484Sobrien                                                                            \
405560484Sobrien  experimental(uintx, SymbolTableSize, defaultSymbolTableSize,              \
405660484Sobrien          "Number of buckets in the JVM internal Symbol table")             \
405760484Sobrien          range(minimumSymbolTableSize, 111*defaultSymbolTableSize)         \
405860484Sobrien                                                                            \
405960484Sobrien  product(bool, UseStringDeduplication, false,                              \
406060484Sobrien          "Use string deduplication")                                       \
406160484Sobrien                                                                            \
406260484Sobrien  product(bool, PrintStringDeduplicationStatistics, false,                  \
406360484Sobrien          "Print string deduplication statistics")                          \
406460484Sobrien                                                                            \
406560484Sobrien  product(uintx, StringDeduplicationAgeThreshold, 3,                        \
406660484Sobrien          "A string must reach this age (or be promoted to an old region) " \
406760484Sobrien          "to be considered for deduplication")                             \
406860484Sobrien          range(1, markOopDesc::max_age)                                    \
406960484Sobrien                                                                            \
407060484Sobrien  diagnostic(bool, StringDeduplicationResizeALot, false,                    \
407160484Sobrien          "Force table resize every time the table is scanned")             \
407260484Sobrien                                                                            \
407360484Sobrien  diagnostic(bool, StringDeduplicationRehashALot, false,                    \
407460484Sobrien          "Force table rehash every time the table is scanned")             \
407560484Sobrien                                                                            \
407660484Sobrien  develop(bool, TraceDefaultMethods, false,                                 \
407760484Sobrien          "Trace the default method processing steps")                      \
407860484Sobrien                                                                            \
407960484Sobrien  develop(bool, VerifyGenericSignatures, false,                             \
408060484Sobrien          "Abort VM on erroneous or inconsistent generic signatures")       \
408160484Sobrien                                                                            \
408260484Sobrien  diagnostic(bool, WhiteBoxAPI, false,                                      \
408360484Sobrien          "Enable internal testing APIs")                                   \
408460484Sobrien                                                                            \
408560484Sobrien  product(bool, PrintGCCause, true,                                         \
408660484Sobrien          "Include GC cause in GC logging")                                 \
408760484Sobrien                                                                            \
408860484Sobrien  experimental(intx, SurvivorAlignmentInBytes, 0,                           \
408960484Sobrien           "Default survivor space alignment in bytes")                     \
409060484Sobrien           constraint(SurvivorAlignmentInBytesConstraintFunc)               \
409160484Sobrien                                                                            \
409260484Sobrien  product(bool , AllowNonVirtualCalls, false,                               \
409360484Sobrien          "Obey the ACC_SUPER flag and allow invokenonvirtual calls")       \
409460484Sobrien                                                                            \
409560484Sobrien  product(ccstr, DumpLoadedClassList, NULL,                                 \
409660484Sobrien          "Dump the names all loaded classes, that could be stored into "   \
409760484Sobrien          "the CDS archive, in the specified file")                         \
409860484Sobrien                                                                            \
409960484Sobrien  product(ccstr, SharedClassListFile, NULL,                                 \
410060484Sobrien          "Override the default CDS class list")                            \
410160484Sobrien                                                                            \
410260484Sobrien  diagnostic(ccstr, SharedArchiveFile, NULL,                                \
410360484Sobrien          "Override the default location of the CDS archive file")          \
410460484Sobrien                                                                            \
410560484Sobrien  product(ccstr, ExtraSharedClassListFile, NULL,                            \
410660484Sobrien          "Extra classlist for building the CDS archive file")              \
410760484Sobrien                                                                            \
410860484Sobrien  experimental(size_t, ArrayAllocatorMallocLimit,                           \
410960484Sobrien          SOLARIS_ONLY(64*K) NOT_SOLARIS((size_t)-1),                       \
411060484Sobrien          "Allocation less than this value will be allocated "              \
411160484Sobrien          "using malloc. Larger allocations will use mmap.")                \
411260484Sobrien                                                                            \
411360484Sobrien  experimental(bool, AlwaysAtomicAccesses, false,                           \
411460484Sobrien          "Accesses to all variables should always be atomic")              \
411560484Sobrien                                                                            \
411660484Sobrien  product(bool, EnableTracing, false,                                       \
411760484Sobrien          "Enable event-based tracing")                                     \
411860484Sobrien                                                                            \
411960484Sobrien  product(bool, UseLockedTracing, false,                                    \
412060484Sobrien          "Use locked-tracing when doing event-based tracing")              \
412160484Sobrien                                                                            \
412260484Sobrien  diagnostic(bool, UseUnalignedAccesses, false,                             \
412360484Sobrien          "Use unaligned memory accesses in sun.misc.Unsafe")               \
412460484Sobrien                                                                            \
412560484Sobrien  product_pd(bool, PreserveFramePointer,                                    \
412660484Sobrien             "Use the FP register for holding the frame pointer "           \
412760484Sobrien             "and not as a general purpose register.")
412860484Sobrien
412960484Sobrien/*
413060484Sobrien *  Macros for factoring of globals
413160484Sobrien */
413260484Sobrien
413360484Sobrien// Interface macros
413460484Sobrien#define DECLARE_PRODUCT_FLAG(type, name, value, doc)      extern "C" type name;
413560484Sobrien#define DECLARE_PD_PRODUCT_FLAG(type, name, doc)          extern "C" type name;
413660484Sobrien#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc)   extern "C" type name;
413760484Sobrien#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
413860484Sobrien#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc)   extern "C" type name;
413960484Sobrien#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc)   extern "C" type name;
414060484Sobrien#ifdef PRODUCT
414160484Sobrien#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)    extern "C" type CONST_##name; const type name = value;
414260484Sobrien#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)        extern "C" type CONST_##name; const type name = pd_##name;
414360484Sobrien#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)   extern "C" type CONST_##name;
414460484Sobrien#else
414560484Sobrien#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)    extern "C" type name;
414660484Sobrien#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)        extern "C" type name;
414760484Sobrien#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)   extern "C" type name;
414860484Sobrien#endif // PRODUCT
414960484Sobrien// Special LP64 flags, product only needed for now.
415060484Sobrien#ifdef _LP64
415160484Sobrien#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
415260484Sobrien#else
415360484Sobrien#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value;
415460484Sobrien#endif // _LP64
415560484Sobrien
415660484Sobrien// Implementation macros
415760484Sobrien#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc)      type name = value;
415860484Sobrien#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc)          type name = pd_##name;
415960484Sobrien#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc)   type name = value;
416060484Sobrien#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value;
416160484Sobrien#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc)   type name = value;
416260484Sobrien#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc)   type name = value;
416360484Sobrien#ifdef PRODUCT
416460484Sobrien#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc)    type CONST_##name = value;
416560484Sobrien#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)        type CONST_##name = pd_##name;
416660484Sobrien#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)   type CONST_##name = value;
416760484Sobrien#else
416860484Sobrien#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc)    type name = value;
416960484Sobrien#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)        type name = pd_##name;
417060484Sobrien#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)   type name = value;
417160484Sobrien#endif // PRODUCT
417260484Sobrien#ifdef _LP64
417360484Sobrien#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value;
417460484Sobrien#else
417560484Sobrien#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */
417660484Sobrien#endif // _LP64
417760484Sobrien
417860484Sobrien// Only materialize src code for range checking when required, ignore otherwise
417960484Sobrien#define IGNORE_RANGE(a, b)
418060484Sobrien// Only materialize src code for contraint checking when required, ignore otherwise
418160484Sobrien#define IGNORE_CONSTRAINT(func)
418260484Sobrien
418360484SobrienRUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, \
418460484Sobrien              DECLARE_PD_DEVELOPER_FLAG, \
418560484Sobrien              DECLARE_PRODUCT_FLAG, \
418660484Sobrien              DECLARE_PD_PRODUCT_FLAG, \
418760484Sobrien              DECLARE_DIAGNOSTIC_FLAG, \
418860484Sobrien              DECLARE_EXPERIMENTAL_FLAG, \
418960484Sobrien              DECLARE_NOTPRODUCT_FLAG, \
419060484Sobrien              DECLARE_MANAGEABLE_FLAG, \
419160484Sobrien              DECLARE_PRODUCT_RW_FLAG, \
419260484Sobrien              DECLARE_LP64_PRODUCT_FLAG, \
419360484Sobrien              IGNORE_RANGE, \
419460484Sobrien              IGNORE_CONSTRAINT)
419560484Sobrien
419660484SobrienRUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, \
419760484Sobrien                 DECLARE_PD_DEVELOPER_FLAG, \
419860484Sobrien                 DECLARE_PRODUCT_FLAG, \
419960484Sobrien                 DECLARE_PD_PRODUCT_FLAG, \
420060484Sobrien                 DECLARE_DIAGNOSTIC_FLAG, \
420160484Sobrien                 DECLARE_NOTPRODUCT_FLAG, \
420260484Sobrien                 IGNORE_RANGE, \
420360484Sobrien                 IGNORE_CONSTRAINT)
420460484Sobrien
420560484SobrienARCH_FLAGS(DECLARE_DEVELOPER_FLAG, \
420660484Sobrien           DECLARE_PRODUCT_FLAG, \
420760484Sobrien           DECLARE_DIAGNOSTIC_FLAG, \
420860484Sobrien           DECLARE_EXPERIMENTAL_FLAG, \
420960484Sobrien           DECLARE_NOTPRODUCT_FLAG, \
421060484Sobrien           IGNORE_RANGE, \
421160484Sobrien           IGNORE_CONSTRAINT)
421260484Sobrien
421360484Sobrien// Extensions
421460484Sobrien
421560484Sobrien#include "runtime/globals_ext.hpp"
421660484Sobrien
421760484Sobrien#endif // SHARE_VM_RUNTIME_GLOBALS_HPP
421860484Sobrien