globals.hpp revision 5093:740e263c80c6
176195Sbrian/*
276195Sbrian * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
376358Sbrian * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
476358Sbrian *
576358Sbrian * This code is free software; you can redistribute it and/or modify it
676195Sbrian * under the terms of the GNU General Public License version 2 only, as
776195Sbrian * published by the Free Software Foundation.
876195Sbrian *
976195Sbrian * This code is distributed in the hope that it will be useful, but WITHOUT
1076195Sbrian * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1176195Sbrian * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1276195Sbrian * version 2 for more details (a copy is included in the LICENSE file that
1376195Sbrian * accompanied this code).
1476195Sbrian *
1576195Sbrian * You should have received a copy of the GNU General Public License version
1676195Sbrian * 2 along with this work; if not, write to the Free Software Foundation,
1776195Sbrian * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1876195Sbrian *
1976195Sbrian * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2076195Sbrian * or visit www.oracle.com if you need additional information or have any
2176195Sbrian * questions.
2276195Sbrian *
2376195Sbrian */
2476195Sbrian
2576195Sbrian#ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
2676195Sbrian#define SHARE_VM_RUNTIME_GLOBALS_HPP
2776195Sbrian
2876195Sbrian#include "utilities/debug.hpp"
2976195Sbrian
3076195Sbrian// use this for flags that are true per default in the tiered build
3176195Sbrian// but false in non-tiered builds, and vice versa
3276195Sbrian#ifdef TIERED
3376195Sbrian#define  trueInTiered true
3476195Sbrian#define falseInTiered false
3576195Sbrian#else
3676195Sbrian#define  trueInTiered false
3776195Sbrian#define falseInTiered true
3890684Sbde#endif
3990684Sbde
4076195Sbrian#ifdef TARGET_ARCH_x86
4176195Sbrian# include "globals_x86.hpp"
4276195Sbrian#endif
4376195Sbrian#ifdef TARGET_ARCH_sparc
4476195Sbrian# include "globals_sparc.hpp"
4576195Sbrian#endif
4676195Sbrian#ifdef TARGET_ARCH_zero
4776195Sbrian# include "globals_zero.hpp"
48129879Sphk#endif
4976195Sbrian#ifdef TARGET_ARCH_arm
5076195Sbrian# include "globals_arm.hpp"
5176195Sbrian#endif
5276195Sbrian#ifdef TARGET_ARCH_ppc
5376195Sbrian# include "globals_ppc.hpp"
5476195Sbrian#endif
5576195Sbrian#ifdef TARGET_OS_FAMILY_linux
5676848Sbrian# include "globals_linux.hpp"
5776853Sbrian#endif
5876853Sbrian#ifdef TARGET_OS_FAMILY_solaris
5976853Sbrian# include "globals_solaris.hpp"
6076853Sbrian#endif
6176195Sbrian#ifdef TARGET_OS_FAMILY_windows
6276195Sbrian# include "globals_windows.hpp"
6376195Sbrian#endif
6476195Sbrian#ifdef TARGET_OS_FAMILY_bsd
6576195Sbrian# include "globals_bsd.hpp"
6676195Sbrian#endif
6776195Sbrian#ifdef TARGET_OS_ARCH_linux_x86
6876195Sbrian# include "globals_linux_x86.hpp"
6976195Sbrian#endif
7076195Sbrian#ifdef TARGET_OS_ARCH_linux_sparc
7176195Sbrian# include "globals_linux_sparc.hpp"
7276195Sbrian#endif
7376195Sbrian#ifdef TARGET_OS_ARCH_linux_zero
7476195Sbrian# include "globals_linux_zero.hpp"
7576195Sbrian#endif
7676195Sbrian#ifdef TARGET_OS_ARCH_solaris_x86
7776195Sbrian# include "globals_solaris_x86.hpp"
7876195Sbrian#endif
7976195Sbrian#ifdef TARGET_OS_ARCH_solaris_sparc
8076195Sbrian# include "globals_solaris_sparc.hpp"
8176195Sbrian#endif
8276195Sbrian#ifdef TARGET_OS_ARCH_windows_x86
8376195Sbrian# include "globals_windows_x86.hpp"
8476195Sbrian#endif
8576195Sbrian#ifdef TARGET_OS_ARCH_linux_arm
8676195Sbrian# include "globals_linux_arm.hpp"
8776195Sbrian#endif
8876195Sbrian#ifdef TARGET_OS_ARCH_linux_ppc
8976195Sbrian# include "globals_linux_ppc.hpp"
9076195Sbrian#endif
9176195Sbrian#ifdef TARGET_OS_ARCH_bsd_x86
9276195Sbrian# include "globals_bsd_x86.hpp"
9376195Sbrian#endif
9476195Sbrian#ifdef TARGET_OS_ARCH_bsd_zero
9576195Sbrian# include "globals_bsd_zero.hpp"
9676195Sbrian#endif
9776195Sbrian#ifdef COMPILER1
9876195Sbrian#ifdef TARGET_ARCH_x86
9976195Sbrian# include "c1_globals_x86.hpp"
10076195Sbrian#endif
10176195Sbrian#ifdef TARGET_ARCH_sparc
10276195Sbrian# include "c1_globals_sparc.hpp"
10376195Sbrian#endif
10476195Sbrian#ifdef TARGET_ARCH_arm
10576195Sbrian# include "c1_globals_arm.hpp"
10676195Sbrian#endif
10776195Sbrian#ifdef TARGET_ARCH_ppc
10889062Smsmith# include "c1_globals_ppc.hpp"
10991445Speter#endif
11076195Sbrian#ifdef TARGET_OS_FAMILY_linux
11176195Sbrian# include "c1_globals_linux.hpp"
11276195Sbrian#endif
11376195Sbrian#ifdef TARGET_OS_FAMILY_solaris
11476195Sbrian# include "c1_globals_solaris.hpp"
11576195Sbrian#endif
11676195Sbrian#ifdef TARGET_OS_FAMILY_windows
11776195Sbrian# include "c1_globals_windows.hpp"
11876195Sbrian#endif
11976195Sbrian#ifdef TARGET_OS_FAMILY_bsd
12076195Sbrian# include "c1_globals_bsd.hpp"
12176195Sbrian#endif
12276195Sbrian#endif
12376195Sbrian#ifdef COMPILER2
12476195Sbrian#ifdef TARGET_ARCH_x86
12576195Sbrian# include "c2_globals_x86.hpp"
12676195Sbrian#endif
12776195Sbrian#ifdef TARGET_ARCH_sparc
12876195Sbrian# include "c2_globals_sparc.hpp"
12976195Sbrian#endif
13076195Sbrian#ifdef TARGET_ARCH_arm
13176195Sbrian# include "c2_globals_arm.hpp"
13276195Sbrian#endif
13376195Sbrian#ifdef TARGET_OS_FAMILY_linux
13476195Sbrian# include "c2_globals_linux.hpp"
13576195Sbrian#endif
13676195Sbrian#ifdef TARGET_OS_FAMILY_solaris
13776195Sbrian# include "c2_globals_solaris.hpp"
13876195Sbrian#endif
13976195Sbrian#ifdef TARGET_OS_FAMILY_windows
14076195Sbrian# include "c2_globals_windows.hpp"
14176195Sbrian#endif
14276195Sbrian#ifdef TARGET_OS_FAMILY_bsd
14376195Sbrian# include "c2_globals_bsd.hpp"
14476195Sbrian#endif
14576195Sbrian#endif
146126080Sphk#ifdef SHARK
147111815Sphk#ifdef TARGET_ARCH_zero
148111815Sphk# include "shark_globals_zero.hpp"
149111815Sphk#endif
150111815Sphk#endif
151111815Sphk
152111815Sphk#if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK)
153126080Sphkdefine_pd_global(bool, BackgroundCompilation,        false);
15476195Sbriandefine_pd_global(bool, UseTLAB,                      false);
15576195Sbriandefine_pd_global(bool, CICompileOSR,                 false);
15676195Sbriandefine_pd_global(bool, UseTypeProfile,               false);
15776195Sbriandefine_pd_global(bool, UseOnStackReplacement,        false);
15876195Sbriandefine_pd_global(bool, InlineIntrinsics,             false);
15976195Sbriandefine_pd_global(bool, PreferInterpreterNativeStubs, true);
16076195Sbriandefine_pd_global(bool, ProfileInterpreter,           false);
16176195Sbriandefine_pd_global(bool, ProfileTraps,                 false);
16276195Sbriandefine_pd_global(bool, TieredCompilation,            false);
16376195Sbrian
16476195Sbriandefine_pd_global(intx, CompileThreshold,             0);
16576195Sbriandefine_pd_global(intx, BackEdgeThreshold,            0);
16676195Sbrian
16776195Sbriandefine_pd_global(intx, OnStackReplacePercentage,     0);
16876195Sbriandefine_pd_global(bool, ResizeTLAB,                   false);
16976195Sbriandefine_pd_global(intx, FreqInlineSize,               0);
17076195Sbriandefine_pd_global(intx, InlineSmallCode,              0);
17176195Sbriandefine_pd_global(intx, NewSizeThreadIncrease,        4*K);
17276195Sbriandefine_pd_global(intx, InlineClassNatives,           true);
17376195Sbriandefine_pd_global(intx, InlineUnsafeOps,              true);
17476195Sbriandefine_pd_global(intx, InitialCodeCacheSize,         160*K);
17576195Sbriandefine_pd_global(intx, ReservedCodeCacheSize,        32*M);
17676195Sbriandefine_pd_global(intx, CodeCacheExpansionSize,       32*K);
17776195Sbriandefine_pd_global(intx, CodeCacheMinBlockLength,      1);
17876195Sbriandefine_pd_global(intx, CodeCacheMinimumUseSpace,     200*K);
17976195Sbriandefine_pd_global(uintx,MetaspaceSize,    ScaleForWordSize(4*M));
18076195Sbriandefine_pd_global(bool, NeverActAsServerClassMachine, true);
18176195Sbriandefine_pd_global(uint64_t,MaxRAM,                    1ULL*G);
18276195Sbrian#define CI_COMPILER_COUNT 0
18376195Sbrian#else
18476195Sbrian
18576195Sbrian#ifdef COMPILER2
18676195Sbrian#define CI_COMPILER_COUNT 2
18776195Sbrian#else
18876195Sbrian#define CI_COMPILER_COUNT 1
18976195Sbrian#endif // COMPILER2
19076195Sbrian
19176195Sbrian#endif // no compilers
19276195Sbrian
19376195Sbrian// string type aliases used only in this file
19476195Sbriantypedef const char* ccstr;
19576195Sbriantypedef const char* ccstrlist;   // represents string arguments which accumulate
19676195Sbrian
19776195Sbrianenum FlagValueOrigin {
19876195Sbrian  DEFAULT          = 0,
19976195Sbrian  COMMAND_LINE     = 1,
20076195Sbrian  ENVIRON_VAR      = 2,
20176195Sbrian  CONFIG_FILE      = 3,
20276195Sbrian  MANAGEMENT       = 4,
20376195Sbrian  ERGONOMIC        = 5,
20476195Sbrian  ATTACH_ON_DEMAND = 6,
20576195Sbrian  INTERNAL         = 99
20676195Sbrian};
20776195Sbrian
20876195Sbrianstruct Flag {
20976195Sbrian  const char *type;
21076195Sbrian  const char *name;
21176195Sbrian  void*       addr;
21276195Sbrian
21376195Sbrian  NOT_PRODUCT(const char *doc;)
21476195Sbrian
21576195Sbrian  const char *kind;
21676195Sbrian  FlagValueOrigin origin;
21776195Sbrian
21894358Sbrian  // points to all Flags static array
21994361Sbrian  static Flag *flags;
22094340Sbrian
22194340Sbrian  // number of flags
22294361Sbrian  static size_t numFlags;
22394340Sbrian
22494361Sbrian  static Flag* find_flag(const char* name, size_t length, bool allow_locked = false);
22594340Sbrian  static Flag* fuzzy_match(const char* name, size_t length, bool allow_locked = false);
22694340Sbrian
22776195Sbrian  bool is_bool() const        { return strcmp(type, "bool") == 0; }
22876195Sbrian  bool get_bool() const       { return *((bool*) addr); }
22976195Sbrian  void set_bool(bool value)   { *((bool*) addr) = value; }
23076195Sbrian
23176195Sbrian  bool is_intx()  const       { return strcmp(type, "intx")  == 0; }
23276195Sbrian  intx get_intx() const       { return *((intx*) addr); }
23376195Sbrian  void set_intx(intx value)   { *((intx*) addr) = value; }
23476195Sbrian
23576195Sbrian  bool is_uintx() const       { return strcmp(type, "uintx") == 0; }
23676195Sbrian  uintx get_uintx() const     { return *((uintx*) addr); }
23776195Sbrian  void set_uintx(uintx value) { *((uintx*) addr) = value; }
23876195Sbrian
23976195Sbrian  bool is_uint64_t() const          { return strcmp(type, "uint64_t") == 0; }
24076195Sbrian  uint64_t get_uint64_t() const     { return *((uint64_t*) addr); }
24176195Sbrian  void set_uint64_t(uint64_t value) { *((uint64_t*) addr) = value; }
24276195Sbrian
24376195Sbrian  bool is_double() const        { return strcmp(type, "double") == 0; }
24476195Sbrian  double get_double() const     { return *((double*) addr); }
24576195Sbrian  void set_double(double value) { *((double*) addr) = value; }
24676195Sbrian
24776195Sbrian  bool is_ccstr() const          { return strcmp(type, "ccstr") == 0 || strcmp(type, "ccstrlist") == 0; }
24876195Sbrian  bool ccstr_accumulates() const { return strcmp(type, "ccstrlist") == 0; }
24976195Sbrian  ccstr get_ccstr() const     { return *((ccstr*) addr); }
25076195Sbrian  void set_ccstr(ccstr value) { *((ccstr*) addr) = value; }
25176195Sbrian
25276195Sbrian  bool is_unlocker() const;
25376195Sbrian  bool is_unlocked() const;
25476195Sbrian  bool is_writeable() const;
25576195Sbrian  bool is_external() const;
25676195Sbrian
25776195Sbrian  bool is_unlocker_ext() const;
25876195Sbrian  bool is_unlocked_ext() const;
25976195Sbrian  bool is_writeable_ext() const;
26076195Sbrian  bool is_external_ext() const;
26176195Sbrian
26276195Sbrian  void get_locked_message(char*, int) const;
26376195Sbrian  void get_locked_message_ext(char*, int) const;
26476195Sbrian
26576195Sbrian  void print_on(outputStream* st, bool withComments = false );
26676195Sbrian  void print_as_flag(outputStream* st);
26776195Sbrian};
26876195Sbrian
26976195Sbrian// debug flags control various aspects of the VM and are global accessible
27076195Sbrian
27176195Sbrian// use FlagSetting to temporarily change some debug flag
27276195Sbrian// e.g. FlagSetting fs(DebugThisAndThat, true);
27376195Sbrian// restored to previous value upon leaving scope
27476195Sbrianclass FlagSetting {
27576195Sbrian  bool val;
27676195Sbrian  bool* flag;
27776195Sbrian public:
27876195Sbrian  FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; }
27976195Sbrian  ~FlagSetting()                       { *flag = val; }
28076195Sbrian};
28176195Sbrian
28276195Sbrian
28376195Sbrianclass CounterSetting {
28476195Sbrian  intx* counter;
28576195Sbrian public:
28676195Sbrian  CounterSetting(intx* cnt) { counter = cnt; (*counter)++; }
28776195Sbrian  ~CounterSetting()         { (*counter)--; }
28876195Sbrian};
28976195Sbrian
29076195Sbrian
29176195Sbrianclass UIntFlagSetting {
29276195Sbrian  uintx val;
29376195Sbrian  uintx* flag;
29476195Sbrian public:
29576195Sbrian  UIntFlagSetting(uintx& fl, uintx newValue) { flag = &fl; val = fl; fl = newValue; }
29676195Sbrian  ~UIntFlagSetting()                         { *flag = val; }
29776195Sbrian};
29876195Sbrian
29976195Sbrian
30076195Sbrianclass DoubleFlagSetting {
30176195Sbrian  double val;
30276195Sbrian  double* flag;
30376195Sbrian public:
30494323Sbrian  DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; }
30576195Sbrian  ~DoubleFlagSetting()                           { *flag = val; }
30676195Sbrian};
30776195Sbrian
30876195Sbrian
30994323Sbrianclass CommandLineFlags {
31076195Sbrian public:
31194949Sbrian  static bool boolAt(char* name, size_t len, bool* value);
31294323Sbrian  static bool boolAt(char* name, bool* value)      { return boolAt(name, strlen(name), value); }
31394323Sbrian  static bool boolAtPut(char* name, size_t len, bool* value, FlagValueOrigin origin);
31476195Sbrian  static bool boolAtPut(char* name, bool* value, FlagValueOrigin origin)   { return boolAtPut(name, strlen(name), value, origin); }
31576195Sbrian
31694361Sbrian  static bool intxAt(char* name, size_t len, intx* value);
31776195Sbrian  static bool intxAt(char* name, intx* value)      { return intxAt(name, strlen(name), value); }
31876195Sbrian  static bool intxAtPut(char* name, size_t len, intx* value, FlagValueOrigin origin);
31976195Sbrian  static bool intxAtPut(char* name, intx* value, FlagValueOrigin origin)   { return intxAtPut(name, strlen(name), value, origin); }
32076195Sbrian
32176195Sbrian  static bool uintxAt(char* name, size_t len, uintx* value);
32276195Sbrian  static bool uintxAt(char* name, uintx* value)    { return uintxAt(name, strlen(name), value); }
32376195Sbrian  static bool uintxAtPut(char* name, size_t len, uintx* value, FlagValueOrigin origin);
32476195Sbrian  static bool uintxAtPut(char* name, uintx* value, FlagValueOrigin origin) { return uintxAtPut(name, strlen(name), value, origin); }
32576195Sbrian
32676195Sbrian  static bool uint64_tAt(char* name, size_t len, uint64_t* value);
32776195Sbrian  static bool uint64_tAt(char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); }
32876195Sbrian  static bool uint64_tAtPut(char* name, size_t len, uint64_t* value, FlagValueOrigin origin);
32976195Sbrian  static bool uint64_tAtPut(char* name, uint64_t* value, FlagValueOrigin origin) { return uint64_tAtPut(name, strlen(name), value, origin); }
33076195Sbrian
33176195Sbrian  static bool doubleAt(char* name, size_t len, double* value);
33276195Sbrian  static bool doubleAt(char* name, double* value)    { return doubleAt(name, strlen(name), value); }
33376195Sbrian  static bool doubleAtPut(char* name, size_t len, double* value, FlagValueOrigin origin);
33476195Sbrian  static bool doubleAtPut(char* name, double* value, FlagValueOrigin origin) { return doubleAtPut(name, strlen(name), value, origin); }
33576195Sbrian
33676195Sbrian  static bool ccstrAt(char* name, size_t len, ccstr* value);
33776195Sbrian  static bool ccstrAt(char* name, ccstr* value)    { return ccstrAt(name, strlen(name), value); }
33876195Sbrian  static bool ccstrAtPut(char* name, size_t len, ccstr* value, FlagValueOrigin origin);
33976195Sbrian  static bool ccstrAtPut(char* name, ccstr* value, FlagValueOrigin origin) { return ccstrAtPut(name, strlen(name), value, origin); }
34076195Sbrian
34176195Sbrian  // Returns false if name is not a command line flag.
34276195Sbrian  static bool wasSetOnCmdline(const char* name, bool* value);
34376195Sbrian  static void printSetFlags(outputStream* out);
34476195Sbrian
34576195Sbrian  static void printFlags(outputStream* out, bool withComments);
34676195Sbrian
34776195Sbrian  static void verify() PRODUCT_RETURN;
34876195Sbrian};
34976195Sbrian
35076195Sbrian// use this for flags that are true by default in the debug version but
35176195Sbrian// false in the optimized version, and vice versa
35276195Sbrian#ifdef ASSERT
35376195Sbrian#define trueInDebug  true
35494323Sbrian#define falseInDebug false
35576195Sbrian#else
35676195Sbrian#define trueInDebug  false
35776195Sbrian#define falseInDebug true
35876195Sbrian#endif
35976195Sbrian
36076195Sbrian// use this for flags that are true per default in the product build
36176195Sbrian// but false in development builds, and vice versa
36276195Sbrian#ifdef PRODUCT
36376195Sbrian#define trueInProduct  true
36476195Sbrian#define falseInProduct false
36594323Sbrian#else
36676195Sbrian#define trueInProduct  false
36794949Sbrian#define falseInProduct true
36876195Sbrian#endif
36976195Sbrian
37076195Sbrian#ifdef JAVASE_EMBEDDED
37176195Sbrian#define falseInEmbedded false
37294361Sbrian#else
37376195Sbrian#define falseInEmbedded true
37476195Sbrian#endif
37576195Sbrian
37676195Sbrian// develop flags are settable / visible only during development and are constant in the PRODUCT version
37776195Sbrian// product flags are always settable / visible
37894949Sbrian// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
37976195Sbrian
38076195Sbrian// A flag must be declared with one of the following types:
38176195Sbrian// bool, intx, uintx, ccstr.
38276195Sbrian// The type "ccstr" is an alias for "const char*" and is used
38376195Sbrian// only in this file, because the macrology requires single-token type names.
38494361Sbrian
38576195Sbrian// Note: Diagnostic options not meant for VM tuning or for product modes.
38676195Sbrian// They are to be used for VM quality assurance or field diagnosis
38776195Sbrian// of VM bugs.  They are hidden so that users will not be encouraged to
38876195Sbrian// try them as if they were VM ordinary execution options.  However, they
38976195Sbrian// are available in the product version of the VM.  Under instruction
39076195Sbrian// from support engineers, VM customers can turn them on to collect
39176195Sbrian// diagnostic information about VM problems.  To use a VM diagnostic
39276195Sbrian// option, you must first specify +UnlockDiagnosticVMOptions.
39376195Sbrian// (This master switch also affects the behavior of -Xprintflags.)
39476195Sbrian//
39576195Sbrian// experimental flags are in support of features that are not
39676195Sbrian//    part of the officially supported product, but are available
39776195Sbrian//    for experimenting with. They could, for example, be performance
39876195Sbrian//    features that may not have undergone full or rigorous QA, but which may
39976195Sbrian//    help performance in some cases and released for experimentation
40076195Sbrian//    by the community of users and developers. This flag also allows one to
40176195Sbrian//    be able to build a fully supported product that nonetheless also
40276195Sbrian//    ships with some unsupported, lightly tested, experimental features.
40376195Sbrian//    Like the UnlockDiagnosticVMOptions flag above, there is a corresponding
40476195Sbrian//    UnlockExperimentalVMOptions flag, which allows the control and
40576195Sbrian//    modification of the experimental flags.
40676195Sbrian//
40776195Sbrian// Nota bene: neither diagnostic nor experimental options should be used casually,
40876195Sbrian//    and they are not supported on production loads, except under explicit
40976195Sbrian//    direction from support engineers.
41076195Sbrian//
41176195Sbrian// manageable flags are writeable external product flags.
41276195Sbrian//    They are dynamically writeable through the JDK management interface
41376195Sbrian//    (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
41476195Sbrian//    These flags are external exported interface (see CCC).  The list of
41576195Sbrian//    manageable flags can be queried programmatically through the management
41676195Sbrian//    interface.
41776195Sbrian//
41894949Sbrian//    A flag can be made as "manageable" only if
41976195Sbrian//    - the flag is defined in a CCC as an external exported interface.
42076195Sbrian//    - the VM implementation supports dynamic setting of the flag.
42176195Sbrian//      This implies that the VM must *always* query the flag variable
42276195Sbrian//      and not reuse state related to the flag state at any given time.
42376195Sbrian//    - you want the flag to be queried programmatically by the customers.
42494361Sbrian//
42576195Sbrian// product_rw flags are writeable internal product flags.
42676195Sbrian//    They are like "manageable" flags but for internal/private use.
42776195Sbrian//    The list of product_rw flags are internal/private flags which
42876195Sbrian//    may be changed/removed in a future release.  It can be set
42976195Sbrian//    through the management interface to get/set value
43076195Sbrian//    when the name of flag is supplied.
43176195Sbrian//
43276195Sbrian//    A flag can be made as "product_rw" only if
43376195Sbrian//    - the VM implementation supports dynamic setting of the flag.
43476195Sbrian//      This implies that the VM must *always* query the flag variable
43576195Sbrian//      and not reuse state related to the flag state at any given time.
43676195Sbrian//
43776195Sbrian// Note that when there is a need to support develop flags to be writeable,
43876195Sbrian// it can be done in the same way as product_rw.
43976195Sbrian
44076195Sbrian#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \
44176195Sbrian                                                                            \
44276195Sbrian  lp64_product(bool, UseCompressedOops, false,                              \
44376195Sbrian            "Use 32-bit object references in 64-bit VM  "                   \
44476195Sbrian            "lp64_product means flag is always constant in 32 bit VM")      \
44576195Sbrian                                                                            \
44676195Sbrian  lp64_product(bool, UseCompressedKlassPointers, false,                     \
44776195Sbrian            "Use 32-bit klass pointers in 64-bit VM  "                      \
44876195Sbrian            "lp64_product means flag is always constant in 32 bit VM")      \
44976195Sbrian                                                                            \
45076195Sbrian  notproduct(bool, CheckCompressedOops, true,                               \
45176195Sbrian            "generate checks in encoding/decoding code in debug VM")        \
45276195Sbrian                                                                            \
45376195Sbrian  product_pd(uintx, HeapBaseMinAddress,                                     \
45476195Sbrian            "OS specific low limit for heap base address")                  \
45576195Sbrian                                                                            \
45676195Sbrian  diagnostic(bool, PrintCompressedOopsMode, false,                          \
45776195Sbrian            "Print compressed oops base address and encoding mode")         \
45876195Sbrian                                                                            \
45976195Sbrian  lp64_product(intx, ObjectAlignmentInBytes, 8,                             \
46076195Sbrian          "Default object alignment in bytes, 8 is minimum")                \
46176195Sbrian                                                                            \
46276195Sbrian  product(bool, AssumeMP, false,                                            \
46376195Sbrian          "Instruct the VM to assume multiple processors are available")    \
46476195Sbrian                                                                            \
46576195Sbrian  /* UseMembar is theoretically a temp flag used for memory barrier         \
46676195Sbrian   * removal testing.  It was supposed to be removed before FCS but has     \
46776195Sbrian   * been re-added (see 6401008) */                                         \
46876195Sbrian  product_pd(bool, UseMembar,                                               \
46976195Sbrian          "(Unstable) Issues membars on thread state transitions")          \
47076195Sbrian                                                                            \
47176195Sbrian  /* Temp PPC Flag to allow disabling the use of lwsync on ppc platforms    \
47276195Sbrian   * that don't support it.  This will be replaced by processor detection   \
47376195Sbrian   * logic.                                                                 \
47476195Sbrian   */                                                                       \
47576195Sbrian  product(bool, UsePPCLWSYNC, true,                                         \
47676195Sbrian          "Use lwsync instruction if true, else use slower sync")           \
47776195Sbrian                                                                            \
47876195Sbrian  develop(bool, CleanChunkPoolAsync, falseInEmbedded,                       \
47976195Sbrian          "Whether to clean the chunk pool asynchronously")                 \
48076195Sbrian                                                                            \
48176195Sbrian  /* Temporary: See 6948537 */                                              \
48276195Sbrian  experimental(bool, UseMemSetInBOT, true,                                  \
48376195Sbrian          "(Unstable) uses memset in BOT updates in GC code")               \
48476195Sbrian                                                                            \
48576195Sbrian  diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug,                  \
48676195Sbrian          "Enable normal processing of flags relating to field diagnostics")\
48776195Sbrian                                                                            \
48876195Sbrian  experimental(bool, UnlockExperimentalVMOptions, false,                    \
48976195Sbrian          "Enable normal processing of flags relating to experimental features")\
49076195Sbrian                                                                            \
49176195Sbrian  product(bool, JavaMonitorsInStackTrace, true,                             \
49276195Sbrian          "Print info. about Java monitor locks when the stacks are dumped")\
49376195Sbrian                                                                            \
49476195Sbrian  product_pd(bool, UseLargePages,                                           \
49576195Sbrian          "Use large page memory")                                          \
49676195Sbrian                                                                            \
49776195Sbrian  product_pd(bool, UseLargePagesIndividualAllocation,                       \
49876195Sbrian          "Allocate large pages individually for better affinity")          \
49976195Sbrian                                                                            \
50076195Sbrian  develop(bool, LargePagesIndividualAllocationInjectError, false,           \
50176195Sbrian          "Fail large pages individual allocation")                         \
50276195Sbrian                                                                            \
50394949Sbrian  develop(bool, TracePageSizes, false,                                      \
50476195Sbrian          "Trace page size selection and usage.")                           \
50576195Sbrian                                                                            \
50676195Sbrian  product(bool, UseNUMA, false,                                             \
50776195Sbrian          "Use NUMA if available")                                          \
50876195Sbrian                                                                            \
50976195Sbrian  product(bool, UseNUMAInterleaving, false,                                 \
51094361Sbrian          "Interleave memory across NUMA nodes if available")               \
51176195Sbrian                                                                            \
51276195Sbrian  product(uintx, NUMAInterleaveGranularity, 2*M,                            \
51376195Sbrian          "Granularity to use for NUMA interleaving on Windows OS")         \
51476195Sbrian                                                                            \
51576195Sbrian  product(bool, ForceNUMA, false,                                           \
51676195Sbrian          "Force NUMA optimizations on single-node/UMA systems")            \
51776195Sbrian                                                                            \
51876195Sbrian  product(uintx, NUMAChunkResizeWeight, 20,                                 \
51976195Sbrian          "Percentage (0-100) used to weigh the current sample when "      \
52076195Sbrian          "computing exponentially decaying average for "                   \
52176195Sbrian          "AdaptiveNUMAChunkSizing")                                        \
52276195Sbrian                                                                            \
52376195Sbrian  product(uintx, NUMASpaceResizeRate, 1*G,                                  \
52476195Sbrian          "Do not reallocate more that this amount per collection")         \
52576195Sbrian                                                                            \
52676195Sbrian  product(bool, UseAdaptiveNUMAChunkSizing, true,                           \
52776195Sbrian          "Enable adaptive chunk sizing for NUMA")                          \
52876195Sbrian                                                                            \
52976195Sbrian  product(bool, NUMAStats, false,                                           \
53076195Sbrian          "Print NUMA stats in detailed heap information")                  \
53176195Sbrian                                                                            \
53276195Sbrian  product(uintx, NUMAPageScanRate, 256,                                     \
53376195Sbrian          "Maximum number of pages to include in the page scan procedure")  \
53476195Sbrian                                                                            \
53576195Sbrian  product_pd(bool, NeedsDeoptSuspend,                                       \
53676195Sbrian          "True for register window machines (sparc/ia64)")                 \
53776195Sbrian                                                                            \
53876195Sbrian  product(intx, UseSSE, 99,                                                 \
53976195Sbrian          "Highest supported SSE instructions set on x86/x64")              \
54076195Sbrian                                                                            \
54176195Sbrian  product(bool, UseAES, false,                                               \
54277004Sbrian          "Control whether AES instructions can be used on x86/x64")        \
543111119Simp                                                                            \
54476195Sbrian  product(uintx, LargePageSizeInBytes, 0,                                   \
54576195Sbrian          "Large page size (0 to let VM choose the page size")              \
54676195Sbrian                                                                            \
54777004Sbrian  product(uintx, LargePageHeapSizeThreshold, 128*M,                         \
548111119Simp          "Use large pages if max heap is at least this big")               \
54976195Sbrian                                                                            \
55076195Sbrian  product(bool, ForceTimeHighResolution, false,                             \
55176195Sbrian          "Using high time resolution(For Win32 only)")                     \
55276195Sbrian                                                                            \
55376195Sbrian  develop(bool, TraceItables, false,                                        \
55476195Sbrian          "Trace initialization and use of itables")                        \
55576195Sbrian                                                                            \
55676195Sbrian  develop(bool, TracePcPatching, false,                                     \
55776195Sbrian          "Trace usage of frame::patch_pc")                                 \
55876195Sbrian                                                                            \
55976195Sbrian  develop(bool, TraceJumps, false,                                          \
56076195Sbrian          "Trace assembly jumps in thread ring buffer")                     \
56176195Sbrian                                                                            \
56276195Sbrian  develop(bool, TraceRelocator, false,                                      \
56376195Sbrian          "Trace the bytecode relocator")                                   \
56476195Sbrian                                                                            \
56576195Sbrian  develop(bool, TraceLongCompiles, false,                                   \
56676195Sbrian          "Print out every time compilation is longer than "                \
56776195Sbrian          "a given threashold")                                             \
56876195Sbrian                                                                            \
56976195Sbrian  develop(bool, SafepointALot, false,                                       \
57076195Sbrian          "Generates a lot of safepoints. Works with "                      \
57176195Sbrian          "GuaranteedSafepointInterval")                                    \
57276195Sbrian                                                                            \
57376195Sbrian  product_pd(bool, BackgroundCompilation,                                   \
57476195Sbrian          "A thread requesting compilation is not blocked during "          \
57576195Sbrian          "compilation")                                                    \
57676195Sbrian                                                                            \
57776195Sbrian  product(bool, PrintVMQWaitTime, false,                                    \
57876195Sbrian          "Prints out the waiting time in VM operation queue")              \
57976195Sbrian                                                                            \
58076195Sbrian  develop(bool, NoYieldsInMicrolock, false,                                 \
58176195Sbrian          "Disable yields in microlock")                                    \
58276195Sbrian                                                                            \
58376195Sbrian  develop(bool, TraceOopMapGeneration, false,                               \
58476195Sbrian          "Shows oopmap generation")                                        \
58576195Sbrian                                                                            \
58676195Sbrian  product(bool, MethodFlushing, true,                                       \
58776195Sbrian          "Reclamation of zombie and not-entrant methods")                  \
58876195Sbrian                                                                            \
58976195Sbrian  develop(bool, VerifyStack, false,                                         \
59076195Sbrian          "Verify stack of each thread when it is entering a runtime call") \
59176195Sbrian                                                                            \
59276195Sbrian  diagnostic(bool, ForceUnreachable, false,                                 \
59376195Sbrian          "Make all non code cache addresses to be unreachable with forcing use of 64bit literal fixups") \
59476195Sbrian                                                                            \
59576195Sbrian  notproduct(bool, StressDerivedPointers, false,                            \
59676195Sbrian          "Force scavenge when a derived pointers is detected on stack "    \
59776195Sbrian          "after rtm call")                                                 \
59876195Sbrian                                                                            \
59976195Sbrian  develop(bool, TraceDerivedPointers, false,                                \
60076195Sbrian          "Trace traversal of derived pointers on stack")                   \
60176195Sbrian                                                                            \
60276195Sbrian  notproduct(bool, TraceCodeBlobStacks, false,                              \
60376195Sbrian          "Trace stack-walk of codeblobs")                                  \
60476195Sbrian                                                                            \
60576195Sbrian  product(bool, PrintJNIResolving, false,                                   \
60676195Sbrian          "Used to implement -v:jni")                                       \
60776195Sbrian                                                                            \
60876195Sbrian  notproduct(bool, PrintRewrites, false,                                    \
60976195Sbrian          "Print methods that are being rewritten")                         \
61076195Sbrian                                                                            \
61176195Sbrian  product(bool, UseInlineCaches, true,                                      \
61276195Sbrian          "Use Inline Caches for virtual calls ")                           \
61376195Sbrian                                                                            \
61476195Sbrian  develop(bool, InlineArrayCopy, true,                                      \
61576195Sbrian          "inline arraycopy native that is known to be part of "            \
61676195Sbrian          "base library DLL")                                               \
61776195Sbrian                                                                            \
61876195Sbrian  develop(bool, InlineObjectHash, true,                                     \
61976195Sbrian          "inline Object::hashCode() native that is known to be part "      \
62076195Sbrian          "of base library DLL")                                            \
62176195Sbrian                                                                            \
62276195Sbrian  develop(bool, InlineNatives, true,                                        \
62376195Sbrian          "inline natives that are known to be part of base library DLL")   \
62476195Sbrian                                                                            \
62576195Sbrian  develop(bool, InlineMathNatives, true,                                    \
62676195Sbrian          "inline SinD, CosD, etc.")                                        \
62776195Sbrian                                                                            \
62876195Sbrian  develop(bool, InlineClassNatives, true,                                   \
62976195Sbrian          "inline Class.isInstance, etc")                                   \
63076195Sbrian                                                                            \
63176195Sbrian  develop(bool, InlineThreadNatives, true,                                  \
63276195Sbrian          "inline Thread.currentThread, etc")                               \
63376195Sbrian                                                                            \
63476195Sbrian  develop(bool, InlineUnsafeOps, true,                                      \
63576195Sbrian          "inline memory ops (native methods) from sun.misc.Unsafe")        \
63676195Sbrian                                                                            \
63776195Sbrian  product(bool, CriticalJNINatives, true,                                   \
63876195Sbrian          "check for critical JNI entry points")                            \
63976195Sbrian                                                                            \
64076195Sbrian  notproduct(bool, StressCriticalJNINatives, false,                         \
64176195Sbrian            "Exercise register saving code in critical natives")            \
64276195Sbrian                                                                            \
64376195Sbrian  product(bool, UseSSE42Intrinsics, false,                                  \
64476195Sbrian          "SSE4.2 versions of intrinsics")                                  \
64576195Sbrian                                                                            \
64676195Sbrian  product(bool, UseAESIntrinsics, false,                                    \
64776195Sbrian          "use intrinsics for AES versions of crypto")                      \
64876195Sbrian                                                                            \
64976195Sbrian  product(bool, UseCRC32Intrinsics, false,                                  \
65076195Sbrian          "use intrinsics for java.util.zip.CRC32")                         \
65176195Sbrian                                                                            \
65276195Sbrian  develop(bool, TraceCallFixup, false,                                      \
65376195Sbrian          "traces all call fixups")                                         \
65476195Sbrian                                                                            \
65576195Sbrian  develop(bool, DeoptimizeALot, false,                                      \
65676195Sbrian          "deoptimize at every exit from the runtime system")               \
65776195Sbrian                                                                            \
65876195Sbrian  notproduct(ccstrlist, DeoptimizeOnlyAt, "",                               \
65976195Sbrian          "a comma separated list of bcis to deoptimize at")                \
66076195Sbrian                                                                            \
66178496Sbrian  product(bool, DeoptimizeRandom, false,                                    \
66276195Sbrian          "deoptimize random frames on random exit from the runtime system")\
66378496Sbrian                                                                            \
66476195Sbrian  notproduct(bool, ZombieALot, false,                                       \
66576195Sbrian          "creates zombies (non-entrant) at exit from the runt. system")    \
66676195Sbrian                                                                            \
66776195Sbrian  product(bool, UnlinkSymbolsALot, false,                                   \
66876195Sbrian          "unlink unreferenced symbols from the symbol table at safepoints")\
66976195Sbrian                                                                            \
67076195Sbrian  notproduct(bool, WalkStackALot, false,                                    \
67176195Sbrian          "trace stack (no print) at every exit from the runtime system")   \
67276195Sbrian                                                                            \
67376195Sbrian  product(bool, Debugging, false,                                           \
67476195Sbrian          "set when executing debug methods in debug.ccp "                  \
67576195Sbrian          "(to prevent triggering assertions)")                             \
67676195Sbrian                                                                            \
67776195Sbrian  notproduct(bool, StrictSafepointChecks, trueInDebug,                      \
67876195Sbrian          "Enable strict checks that safepoints cannot happen for threads " \
67976195Sbrian          "that used No_Safepoint_Verifier")                                \
68076195Sbrian                                                                            \
68176195Sbrian  notproduct(bool, VerifyLastFrame, false,                                  \
68276195Sbrian          "Verify oops on last frame on entry to VM")                       \
68376195Sbrian                                                                            \
68476195Sbrian  develop(bool, TraceHandleAllocation, false,                               \
68576195Sbrian          "Prints out warnings when suspicious many handles are allocated") \
68676195Sbrian                                                                            \
68776195Sbrian  product(bool, UseCompilerSafepoints, true,                                \
68876195Sbrian          "Stop at safepoints in compiled code")                            \
68976195Sbrian                                                                            \
69076195Sbrian  product(bool, FailOverToOldVerifier, true,                                \
69176195Sbrian          "fail over to old verifier when split verifier fails")            \
69276195Sbrian                                                                            \
69376195Sbrian  develop(bool, ShowSafepointMsgs, false,                                   \
69476195Sbrian          "Show msg. about safepoint synch.")                               \
69576195Sbrian                                                                            \
69676195Sbrian  product(bool, SafepointTimeout, false,                                    \
69776195Sbrian          "Time out and warn or fail after SafepointTimeoutDelay "          \
69876195Sbrian          "milliseconds if failed to reach safepoint")                      \
69976195Sbrian                                                                            \
70076195Sbrian  develop(bool, DieOnSafepointTimeout, false,                               \
70176195Sbrian          "Die upon failure to reach safepoint (see SafepointTimeout)")     \
70276195Sbrian                                                                            \
70376195Sbrian  /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */      \
70476195Sbrian  /* typically, at most a few retries are needed */                         \
70576195Sbrian  product(intx, SuspendRetryCount, 50,                                      \
70676195Sbrian          "Maximum retry count for an external suspend request")            \
70776195Sbrian                                                                            \
70876195Sbrian  product(intx, SuspendRetryDelay, 5,                                       \
70976195Sbrian          "Milliseconds to delay per retry (* current_retry_count)")        \
710104094Sphk                                                                            \
71183366Sjulian  product(bool, AssertOnSuspendWaitFailure, false,                          \
71276195Sbrian          "Assert/Guarantee on external suspend wait failure")              \
71376195Sbrian                                                                            \
71476195Sbrian  product(bool, TraceSuspendWaitFailures, false,                            \
71576195Sbrian          "Trace external suspend wait failures")                           \
71676195Sbrian                                                                            \
71776195Sbrian  product(bool, MaxFDLimit, true,                                           \
71876195Sbrian          "Bump the number of file descriptors to max in solaris.")         \
71976195Sbrian                                                                            \
72076195Sbrian  diagnostic(bool, LogEvents, true,                                         \
72176195Sbrian             "Enable the various ring buffer event logs")                   \
72276195Sbrian                                                                            \
72376195Sbrian  diagnostic(uintx, LogEventsBufferEntries, 10,                             \
72476195Sbrian             "Enable the various ring buffer event logs")                   \
72576195Sbrian                                                                            \
72676195Sbrian  product(bool, BytecodeVerificationRemote, true,                           \
72776195Sbrian          "Enables the Java bytecode verifier for remote classes")          \
72876195Sbrian                                                                            \
72976195Sbrian  product(bool, BytecodeVerificationLocal, false,                           \
73076195Sbrian          "Enables the Java bytecode verifier for local classes")           \
73176195Sbrian                                                                            \
73276195Sbrian  develop(bool, ForceFloatExceptions, trueInDebug,                          \
73376195Sbrian          "Force exceptions on FP stack under/overflow")                    \
73476195Sbrian                                                                            \
73576195Sbrian  develop(bool, VerifyStackAtCalls, false,                                  \
73676195Sbrian          "Verify that the stack pointer is unchanged after calls")         \
73776195Sbrian                                                                            \
73876195Sbrian  develop(bool, TraceJavaAssertions, false,                                 \
73976195Sbrian          "Trace java language assertions")                                 \
74076195Sbrian                                                                            \
74176195Sbrian  notproduct(bool, CheckAssertionStatusDirectives, false,                   \
74276195Sbrian          "temporary - see javaClasses.cpp")                                \
74376195Sbrian                                                                            \
74476195Sbrian  notproduct(bool, PrintMallocFree, false,                                  \
74576195Sbrian          "Trace calls to C heap malloc/free allocation")                   \
74676195Sbrian                                                                            \
74776195Sbrian  product(bool, PrintOopAddress, false,                                     \
74876195Sbrian          "Always print the location of the oop")                           \
74976195Sbrian                                                                            \
75076195Sbrian  notproduct(bool, VerifyCodeCacheOften, false,                             \
75176195Sbrian          "Verify compiled-code cache often")                               \
75276195Sbrian                                                                            \
75376195Sbrian  develop(bool, ZapDeadCompiledLocals, false,                               \
75476195Sbrian          "Zap dead locals in compiler frames")                             \
75576195Sbrian                                                                            \
75676195Sbrian  notproduct(bool, ZapDeadLocalsOld, false,                                 \
75776195Sbrian          "Zap dead locals (old version, zaps all frames when "             \
75876195Sbrian          "entering the VM")                                                \
75976195Sbrian                                                                            \
76076195Sbrian  notproduct(bool, CheckOopishValues, false,                                \
76176195Sbrian          "Warn if value contains oop ( requires ZapDeadLocals)")           \
76276195Sbrian                                                                            \
76376195Sbrian  develop(bool, UseMallocOnly, false,                                       \
76476195Sbrian          "use only malloc/free for allocation (no resource area/arena)")   \
76576195Sbrian                                                                            \
76676195Sbrian  develop(bool, PrintMalloc, false,                                         \
76776195Sbrian          "print all malloc/free calls")                                    \
76876195Sbrian                                                                            \
76976195Sbrian  develop(bool, PrintMallocStatistics, false,                               \
77076195Sbrian          "print malloc/free statistics")                                   \
77176195Sbrian                                                                            \
77276195Sbrian  develop(bool, ZapResourceArea, trueInDebug,                               \
77376195Sbrian          "Zap freed resource/arena space with 0xABABABAB")                 \
77476195Sbrian                                                                            \
77576195Sbrian  notproduct(bool, ZapVMHandleArea, trueInDebug,                            \
77676195Sbrian          "Zap freed VM handle space with 0xBCBCBCBC")                      \
77776195Sbrian                                                                            \
77876195Sbrian  develop(bool, ZapJNIHandleArea, trueInDebug,                              \
77976195Sbrian          "Zap freed JNI handle space with 0xFEFEFEFE")                     \
78076195Sbrian                                                                            \
78176195Sbrian  notproduct(bool, ZapStackSegments, trueInDebug,                           \
78276195Sbrian             "Zap allocated/freed Stack segments with 0xFADFADED")          \
78376195Sbrian                                                                            \
78476195Sbrian  develop(bool, ZapUnusedHeapArea, trueInDebug,                             \
78576195Sbrian          "Zap unused heap space with 0xBAADBABE")                          \
78676195Sbrian                                                                            \
78776195Sbrian  develop(bool, TraceZapUnusedHeapArea, false,                              \
78876195Sbrian          "Trace zapping of unused heap space")                             \
78993593Sjhb                                                                            \
79076195Sbrian  develop(bool, CheckZapUnusedHeapArea, false,                              \
79176195Sbrian          "Check zapping of unused heap space")                             \
79276195Sbrian                                                                            \
79376195Sbrian  develop(bool, ZapFillerObjects, trueInDebug,                              \
79476195Sbrian          "Zap filler objects with 0xDEAFBABE")                             \
79576195Sbrian                                                                            \
79676195Sbrian  develop(bool, PrintVMMessages, true,                                      \
79776195Sbrian          "Print vm messages on console")                                   \
79876195Sbrian                                                                            \
79976195Sbrian  product(bool, PrintGCApplicationConcurrentTime, false,                    \
80076195Sbrian          "Print the time the application has been running")                \
80176195Sbrian                                                                            \
80276195Sbrian  product(bool, PrintGCApplicationStoppedTime, false,                       \
80376195Sbrian          "Print the time the application has been stopped")                \
80476195Sbrian                                                                            \
80576195Sbrian  diagnostic(bool, VerboseVerification, false,                              \
80676195Sbrian             "Display detailed verification details")                       \
80776195Sbrian                                                                            \
80876195Sbrian  notproduct(uintx, ErrorHandlerTest, 0,                                    \
80976195Sbrian          "If > 0, provokes an error after VM initialization; the value"    \
81076195Sbrian          "determines which error to provoke.  See test_error_handler()"    \
81176195Sbrian          "in debug.cpp.")                                                  \
81278496Sbrian                                                                            \
81376195Sbrian  develop(bool, Verbose, false,                                             \
81478496Sbrian          "Prints additional debugging information from other modes")       \
81578496Sbrian                                                                            \
81678496Sbrian  develop(bool, PrintMiscellaneous, false,                                  \
81778496Sbrian          "Prints uncategorized debugging information (requires +Verbose)") \
81878496Sbrian                                                                            \
81978496Sbrian  develop(bool, WizardMode, false,                                          \
82078496Sbrian          "Prints much more debugging information")                         \
82176195Sbrian                                                                            \
82276195Sbrian  product(bool, ShowMessageBoxOnError, false,                               \
82376195Sbrian          "Keep process alive on VM fatal error")                           \
82476195Sbrian                                                                            \
82576195Sbrian  product(bool, CreateMinidumpOnCrash, false,                               \
82676195Sbrian          "Create minidump on VM fatal error")                              \
82776195Sbrian                                                                            \
82876195Sbrian  product_pd(bool, UseOSErrorReporting,                                     \
82976195Sbrian          "Let VM fatal error propagate to the OS (ie. WER on Windows)")    \
83076195Sbrian                                                                            \
83176195Sbrian  product(bool, SuppressFatalErrorMessage, false,                           \
83276195Sbrian          "Do NO Fatal Error report [Avoid deadlock]")                      \
83376195Sbrian                                                                            \
83478496Sbrian  product(ccstrlist, OnError, "",                                           \
835130077Sphk          "Run user-defined commands on fatal error; see VMError.cpp "      \
83676195Sbrian          "for examples")                                                   \
83776195Sbrian                                                                            \
83876195Sbrian  product(ccstrlist, OnOutOfMemoryError, "",                                \
83976195Sbrian          "Run user-defined commands on first java.lang.OutOfMemoryError")  \
84076195Sbrian                                                                            \
84176195Sbrian  manageable(bool, HeapDumpBeforeFullGC, false,                             \
84276195Sbrian          "Dump heap to file before any major stop-world GC")               \
84376195Sbrian                                                                            \
84476195Sbrian  manageable(bool, HeapDumpAfterFullGC, false,                              \
84576195Sbrian          "Dump heap to file after any major stop-world GC")                \
84676195Sbrian                                                                            \
84776195Sbrian  manageable(bool, HeapDumpOnOutOfMemoryError, false,                       \
84876195Sbrian          "Dump heap to file when java.lang.OutOfMemoryError is thrown")    \
84976195Sbrian                                                                            \
85076195Sbrian  manageable(ccstr, HeapDumpPath, NULL,                                     \
85176195Sbrian          "When HeapDumpOnOutOfMemoryError is on, the path (filename or"    \
852130077Sphk          "directory) of the dump file (defaults to java_pid<pid>.hprof"    \
85376195Sbrian          "in the working directory)")                                      \
85476195Sbrian                                                                            \
85576195Sbrian  develop(uintx, SegmentedHeapDumpThreshold, 2*G,                           \
85676195Sbrian          "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) "     \
85776195Sbrian          "when the heap usage is larger than this")                        \
85876195Sbrian                                                                            \
85976195Sbrian  develop(uintx, HeapDumpSegmentSize, 1*G,                                  \
86076195Sbrian          "Approximate segment size when generating a segmented heap dump") \
86176195Sbrian                                                                            \
86276195Sbrian  develop(bool, BreakAtWarning, false,                                      \
86376195Sbrian          "Execute breakpoint upon encountering VM warning")                \
86476195Sbrian                                                                            \
86576195Sbrian  develop(bool, TraceVMOperation, false,                                    \
86676195Sbrian          "Trace vm operations")                                            \
86776195Sbrian                                                                            \
86876195Sbrian  develop(bool, UseFakeTimers, false,                                       \
86976195Sbrian          "Tells whether the VM should use system time or a fake timer")    \
87076195Sbrian                                                                            \
87176195Sbrian  product(ccstr, NativeMemoryTracking, "off",                               \
87276195Sbrian          "Native memory tracking options")                                 \
87376195Sbrian                                                                            \
87476195Sbrian  diagnostic(bool, PrintNMTStatistics, false,                               \
875104094Sphk          "Print native memory tracking summary data if it is on")          \
87683366Sjulian                                                                            \
87776195Sbrian  diagnostic(bool, AutoShutdownNMT, true,                                   \
87876195Sbrian          "Automatically shutdown native memory tracking under stress "     \
87976195Sbrian          "situation. When set to false, native memory tracking tries to "  \
88076195Sbrian          "stay alive at the expense of JVM performance")                   \
88176195Sbrian                                                                            \
88276195Sbrian  diagnostic(bool, LogCompilation, false,                                   \
88376195Sbrian          "Log compilation activity in detail to hotspot.log or LogFile")   \
88476195Sbrian                                                                            \
88576195Sbrian  product(bool, PrintCompilation, false,                                    \
88676195Sbrian          "Print compilations")                                             \
88776195Sbrian                                                                            \
88876195Sbrian  diagnostic(bool, TraceNMethodInstalls, false,                             \
88976195Sbrian             "Trace nmethod intallation")                                   \
89076195Sbrian                                                                            \
89176195Sbrian  diagnostic(intx, ScavengeRootsInCode, 2,                                  \
89276195Sbrian             "0: do not allow scavengable oops in the code cache; "         \
89376195Sbrian             "1: allow scavenging from the code cache; "                    \
89476195Sbrian             "2: emit as many constants as the compiler can see")           \
89576195Sbrian                                                                            \
89676195Sbrian  product(bool, AlwaysRestoreFPU, false,                                    \
89776195Sbrian          "Restore the FPU control word after every JNI call (expensive)")  \
89876195Sbrian                                                                            \
89976195Sbrian  diagnostic(bool, PrintCompilation2, false,                                \
90076195Sbrian          "Print additional statistics per compilation")                    \
90176195Sbrian                                                                            \
90276195Sbrian  diagnostic(bool, PrintAdapterHandlers, false,                             \
903130077Sphk          "Print code generated for i2c/c2i adapters")                      \
90476195Sbrian                                                                            \
90576195Sbrian  diagnostic(bool, VerifyAdapterCalls, trueInDebug,                         \
90676195Sbrian          "Verify that i2c/c2i adapters are called properly")               \
90776195Sbrian                                                                            \
90876195Sbrian  develop(bool, VerifyAdapterSharing, false,                                \
90976195Sbrian          "Verify that the code for shared adapters is the equivalent")     \
91076195Sbrian                                                                            \
91176195Sbrian  diagnostic(bool, PrintAssembly, false,                                    \
91276195Sbrian          "Print assembly code (using external disassembler.so)")           \
91376195Sbrian                                                                            \
91476195Sbrian  diagnostic(ccstr, PrintAssemblyOptions, NULL,                             \
91576195Sbrian          "Options string passed to disassembler.so")                       \
91676195Sbrian                                                                            \
91776195Sbrian  diagnostic(bool, PrintNMethods, false,                                    \
91876195Sbrian          "Print assembly code for nmethods when generated")                \
91976195Sbrian                                                                            \
92076195Sbrian  diagnostic(bool, PrintNativeNMethods, false,                              \
92176195Sbrian          "Print assembly code for native nmethods when generated")         \
92276195Sbrian                                                                            \
92376195Sbrian  develop(bool, PrintDebugInfo, false,                                      \
92476195Sbrian          "Print debug information for all nmethods when generated")        \
92576195Sbrian                                                                            \
92676195Sbrian  develop(bool, PrintRelocations, false,                                    \
92776195Sbrian          "Print relocation information for all nmethods when generated")   \
92876195Sbrian                                                                            \
92976195Sbrian  develop(bool, PrintDependencies, false,                                   \
93076195Sbrian          "Print dependency information for all nmethods when generated")   \
93176195Sbrian                                                                            \
93276195Sbrian  develop(bool, PrintExceptionHandlers, false,                              \
93376195Sbrian          "Print exception handler tables for all nmethods when generated") \
93476195Sbrian                                                                            \
93576195Sbrian  develop(bool, StressCompiledExceptionHandlers, false,                     \
93676195Sbrian         "Exercise compiled exception handlers")                            \
93778496Sbrian                                                                            \
93876195Sbrian  develop(bool, InterceptOSException, false,                                \
93976195Sbrian          "Starts debugger when an implicit OS (e.g., NULL) "               \
94076195Sbrian          "exception happens")                                              \
94176195Sbrian                                                                            \
94276195Sbrian  product(bool, PrintCodeCache, false,                                      \
94376195Sbrian          "Print the code cache memory usage when exiting")                 \
94476195Sbrian                                                                            \
94576195Sbrian  develop(bool, PrintCodeCache2, false,                                     \
94676195Sbrian          "Print detailed usage info on the code cache when exiting")       \
94776195Sbrian                                                                            \
94876195Sbrian  product(bool, PrintCodeCacheOnCompilation, false,                         \
94976195Sbrian          "Print the code cache memory usage each time a method is compiled") \
95076195Sbrian                                                                            \
95176195Sbrian  diagnostic(bool, PrintStubCode, false,                                    \
95276195Sbrian          "Print generated stub code")                                      \
95376195Sbrian                                                                            \
954104094Sphk  product(bool, StackTraceInThrowable, true,                                \
95576195Sbrian          "Collect backtrace in throwable when exception happens")          \
95676195Sbrian                                                                            \
95776195Sbrian  product(bool, OmitStackTraceInFastThrow, true,                            \
95876195Sbrian          "Omit backtraces for some 'hot' exceptions in optimized code")    \
95976195Sbrian                                                                            \
96076195Sbrian  product(bool, ProfilerPrintByteCodeStatistics, false,                     \
96176195Sbrian          "Prints byte code statictics when dumping profiler output")       \
96276195Sbrian                                                                            \
96376195Sbrian  product(bool, ProfilerRecordPC, false,                                    \
96476195Sbrian          "Collects tick for each 16 byte interval of compiled code")       \
96576195Sbrian                                                                            \
96676195Sbrian  product(bool, ProfileVM, false,                                           \
96776195Sbrian          "Profiles ticks that fall within VM (either in the VM Thread "    \
96876195Sbrian          "or VM code called through stubs)")                               \
96976195Sbrian                                                                            \
97076195Sbrian  product(bool, ProfileIntervals, false,                                    \
97176195Sbrian          "Prints profiles for each interval (see ProfileIntervalsTicks)")  \
97276195Sbrian                                                                            \
973130077Sphk  notproduct(bool, ProfilerCheckIntervals, false,                           \
97476195Sbrian          "Collect and print info on spacing of profiler ticks")            \
97576195Sbrian                                                                            \
97676195Sbrian  develop(bool, PrintJVMWarnings, false,                                    \
97776195Sbrian          "Prints warnings for unimplemented JVM functions")                \
97876195Sbrian                                                                            \
97976195Sbrian  product(bool, PrintWarnings, true,                                        \
980104094Sphk          "Prints JVM warnings to output stream")                           \
98176195Sbrian                                                                            \
98276195Sbrian  notproduct(uintx, WarnOnStalledSpinLock, 0,                               \
98376195Sbrian          "Prints warnings for stalled SpinLocks")                          \
98476195Sbrian                                                                            \
98576195Sbrian  product(bool, RegisterFinalizersAtInit, true,                             \
98676195Sbrian          "Register finalizable objects at end of Object.<init> or "        \
98776195Sbrian          "after allocation")                                               \
98876195Sbrian                                                                            \
98976195Sbrian  develop(bool, RegisterReferences, true,                                   \
99076195Sbrian          "Tells whether the VM should register soft/weak/final/phantom "   \
99176195Sbrian          "references")                                                     \
99276195Sbrian                                                                            \
99376195Sbrian  develop(bool, IgnoreRewrites, false,                                      \
99476195Sbrian          "Supress rewrites of bytecodes in the oopmap generator. "         \
99576195Sbrian          "This is unsafe!")                                                \
99676195Sbrian                                                                            \
99776195Sbrian  develop(bool, PrintCodeCacheExtension, false,                             \
99876195Sbrian          "Print extension of code cache")                                  \
999130077Sphk                                                                            \
100076195Sbrian  develop(bool, UsePrivilegedStack, true,                                   \
100176195Sbrian          "Enable the security JVM functions")                              \
100276195Sbrian                                                                            \
100376195Sbrian  develop(bool, ProtectionDomainVerification, true,                         \
100476195Sbrian          "Verifies protection domain before resolution in system "         \
100576195Sbrian          "dictionary")                                                     \
100676195Sbrian                                                                            \
100776195Sbrian  product(bool, ClassUnloading, true,                                       \
100876195Sbrian          "Do unloading of classes")                                        \
100976195Sbrian                                                                            \
101076195Sbrian  develop(bool, DisableStartThread, false,                                  \
101176195Sbrian          "Disable starting of additional Java threads "                    \
101276195Sbrian          "(for debugging only)")                                           \
101376195Sbrian                                                                            \
101476195Sbrian  develop(bool, MemProfiling, false,                                        \
101576195Sbrian          "Write memory usage profiling to log file")                       \
101676195Sbrian                                                                            \
101776195Sbrian  notproduct(bool, PrintSystemDictionaryAtExit, false,                      \
101876195Sbrian          "Prints the system dictionary at exit")                           \
101976195Sbrian                                                                            \
102076195Sbrian  experimental(intx, PredictedLoadedClassCount, 0,                          \
102176195Sbrian          "Experimental: Tune loaded class cache starting size.")           \
102276195Sbrian                                                                            \
102378414Sbrian  diagnostic(bool, UnsyncloadClass, false,                                  \
102476195Sbrian          "Unstable: VM calls loadClass unsynchronized. Custom "            \
102576195Sbrian          "class loader  must call VM synchronized for findClass "          \
102676195Sbrian          "and defineClass.")                                               \
102776195Sbrian                                                                            \
102876195Sbrian  product(bool, AlwaysLockClassLoader, false,                               \
102976195Sbrian          "Require the VM to acquire the class loader lock before calling " \
103078414Sbrian          "loadClass() even for class loaders registering "                 \
1031111119Simp          "as parallel capable")                                            \
103278414Sbrian                                                                            \
103394321Sbrian  product(bool, AllowParallelDefineClass, false,                            \
103494321Sbrian          "Allow parallel defineClass requests for class loaders "          \
103594321Sbrian          "registering as parallel capable")                                \
103694321Sbrian                                                                            \
103794321Sbrian  product(bool, MustCallLoadClassInternal, false,                           \
103894321Sbrian          "Call loadClassInternal() rather than loadClass()")               \
103994321Sbrian                                                                            \
104094321Sbrian  product_pd(bool, DontYieldALot,                                           \
104176195Sbrian          "Throw away obvious excess yield calls (for SOLARIS only)")       \
104276195Sbrian                                                                            \
104376195Sbrian  product_pd(bool, ConvertSleepToYield,                                     \
104476195Sbrian          "Converts sleep(0) to thread yield "                              \
1045111119Simp          "(may be off for SOLARIS to improve GUI)")                        \
104678414Sbrian                                                                            \
104776195Sbrian  product(bool, ConvertYieldToSleep, false,                                 \
104876195Sbrian          "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\
104976195Sbrian          "behavior (SOLARIS only)")                                        \
105076195Sbrian                                                                            \
105176195Sbrian  product(bool, UseBoundThreads, true,                                      \
105276195Sbrian          "Bind user level threads to kernel threads (for SOLARIS only)")   \
105376195Sbrian                                                                            \
105476195Sbrian  develop(bool, UseDetachedThreads, true,                                   \
105576195Sbrian          "Use detached threads that are recycled upon termination "        \
105676195Sbrian          "(for SOLARIS only)")                                             \
105776195Sbrian                                                                            \
105876195Sbrian  product(bool, UseLWPSynchronization, true,                                \
105976195Sbrian          "Use LWP-based instead of libthread-based synchronization "       \
106076195Sbrian          "(SPARC only)")                                                   \
1061111119Simp                                                                            \
106276195Sbrian  product(ccstr, SyncKnobs, NULL,                                           \
106376195Sbrian          "(Unstable) Various monitor synchronization tunables")            \
106476195Sbrian                                                                            \
106576195Sbrian  product(intx, EmitSync, 0,                                                \
106676195Sbrian          "(Unsafe,Unstable) "                                              \
1067111119Simp          " Controls emission of inline sync fast-path code")               \
106876195Sbrian                                                                            \
106976195Sbrian  product(intx, MonitorBound, 0, "Bound Monitor population")                \
107076195Sbrian                                                                            \
107176195Sbrian  product(bool, MonitorInUseLists, false, "Track Monitors for Deflation")   \
107276195Sbrian                                                                            \
1073111119Simp  product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \
107476195Sbrian                                                                            \
107576195Sbrian  product(intx, SyncVerbose, 0, "(Unstable)" )                              \
107676195Sbrian                                                                            \
107776195Sbrian  product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" )                    \
107876195Sbrian                                                                            \
107976195Sbrian  product(intx, hashCode, 5,                                                \
108076195Sbrian         "(Unstable) select hashCode generation algorithm" )                \
108176195Sbrian                                                                            \
108276195Sbrian  product(intx, WorkAroundNPTLTimedWaitHang, 1,                             \
108383366Sjulian         "(Unstable, Linux-specific)"                                       \
108476195Sbrian         " avoid NPTL-FUTEX hang pthread_cond_timedwait" )                  \
108576195Sbrian                                                                            \
108676195Sbrian  product(bool, FilterSpuriousWakeups, true,                                \
108776195Sbrian          "Prevent spurious or premature wakeups from object.wait "         \
108876195Sbrian          "(Solaris only)")                                                 \
108976195Sbrian                                                                            \
109076195Sbrian  product(intx, NativeMonitorTimeout, -1, "(Unstable)" )                    \
109176195Sbrian  product(intx, NativeMonitorFlags, 0, "(Unstable)" )                       \
109276195Sbrian  product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" )                  \
109376195Sbrian                                                                            \
109476195Sbrian  develop(bool, UsePthreads, false,                                         \
109576195Sbrian          "Use pthread-based instead of libthread-based synchronization "   \
109676195Sbrian          "(SPARC only)")                                                   \
109776195Sbrian                                                                            \
109876195Sbrian  product(bool, AdjustConcurrency, false,                                   \
109976195Sbrian          "call thr_setconcurrency at thread create time to avoid "         \
110076195Sbrian          "LWP starvation on MP systems (For Solaris Only)")                \
110176195Sbrian                                                                            \
110276195Sbrian  product(bool, ReduceSignalUsage, false,                                   \
110376195Sbrian          "Reduce the use of OS signals in Java and/or the VM")             \
110476195Sbrian                                                                            \
110576195Sbrian  develop_pd(bool, ShareVtableStubs,                                        \
110676195Sbrian          "Share vtable stubs (smaller code but worse branch prediction")   \
110776195Sbrian                                                                            \
110876195Sbrian  develop(bool, LoadLineNumberTables, true,                                 \
110976195Sbrian          "Tells whether the class file parser loads line number tables")   \
111076195Sbrian                                                                            \
111176195Sbrian  develop(bool, LoadLocalVariableTables, true,                              \
111276195Sbrian          "Tells whether the class file parser loads local variable tables")\
111376195Sbrian                                                                            \
111476195Sbrian  develop(bool, LoadLocalVariableTypeTables, true,                          \
111576195Sbrian          "Tells whether the class file parser loads local variable type tables")\
111676195Sbrian                                                                            \
111776195Sbrian  product(bool, AllowUserSignalHandlers, false,                             \
111876195Sbrian          "Do not complain if the application installs signal handlers "    \
111976195Sbrian          "(Solaris & Linux only)")                                         \
112076195Sbrian                                                                            \
112176705Sbrian  product(bool, UseSignalChaining, true,                                    \
112276195Sbrian          "Use signal-chaining to invoke signal handlers installed "        \
112376195Sbrian          "by the application (Solaris & Linux only)")                      \
112476195Sbrian                                                                            \
112576195Sbrian  product(bool, UseAltSigs, false,                                          \
112676195Sbrian          "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM "      \
112776195Sbrian          "internal signals (Solaris only)")                                \
112876195Sbrian                                                                            \
112976195Sbrian  product(bool, AllowJNIEnvProxy, false,                                    \
113076195Sbrian          "Allow JNIEnv proxies for jdbx")                                  \
113176195Sbrian                                                                            \
113276195Sbrian  product(bool, JNIDetachReleasesMonitors, true,                            \
113376195Sbrian          "JNI DetachCurrentThread releases monitors owned by thread")      \
113476195Sbrian                                                                            \
113576195Sbrian  product(bool, RestoreMXCSROnJNICalls, false,                              \
113676195Sbrian          "Restore MXCSR when returning from JNI calls")                    \
113776195Sbrian                                                                            \
113876195Sbrian  product(bool, CheckJNICalls, false,                                       \
113976195Sbrian          "Verify all arguments to JNI calls")                              \
114076195Sbrian                                                                            \
114176195Sbrian  product(bool, UseFastJNIAccessors, true,                                  \
114276195Sbrian          "Use optimized versions of Get<Primitive>Field")                  \
114376195Sbrian                                                                            \
114476195Sbrian  product(bool, EagerXrunInit, false,                                       \
114576195Sbrian          "Eagerly initialize -Xrun libraries; allows startup profiling, "  \
114676195Sbrian          " but not all -Xrun libraries may support the state of the VM at this time") \
114776195Sbrian                                                                            \
114876195Sbrian  product(bool, PreserveAllAnnotations, false,                              \
114976195Sbrian          "Preserve RuntimeInvisibleAnnotations as well as RuntimeVisibleAnnotations") \
115076195Sbrian                                                                            \
115176195Sbrian  develop(uintx, PreallocatedOutOfMemoryErrorCount, 4,                      \
115276195Sbrian          "Number of OutOfMemoryErrors preallocated with backtrace")        \
115376195Sbrian                                                                            \
115476195Sbrian  product(bool, LazyBootClassLoader, true,                                  \
115576195Sbrian          "Enable/disable lazy opening of boot class path entries")         \
115676195Sbrian                                                                            \
115793593Sjhb  product(bool, UseXMMForArrayCopy, false,                                  \
115876195Sbrian          "Use SSE2 MOVQ instruction for Arraycopy")                        \
115976195Sbrian                                                                            \
116076195Sbrian  product(intx, FieldsAllocationStyle, 1,                                   \
116178496Sbrian          "0 - type based with oops first, 1 - with oops last, "            \
116276195Sbrian          "2 - oops in super and sub classes are together")                 \
116376195Sbrian                                                                            \
116476195Sbrian  product(bool, CompactFields, true,                                        \
116578496Sbrian          "Allocate nonstatic fields in gaps between previous fields")      \
116676195Sbrian                                                                            \
116776195Sbrian  notproduct(bool, PrintFieldLayout, false,                                 \
116876195Sbrian          "Print field layout for each class")                              \
116976195Sbrian                                                                            \
117078496Sbrian  product(intx, ContendedPaddingWidth, 128,                                 \
117176195Sbrian          "How many bytes to pad the fields/classes marked @Contended with")\
117276195Sbrian                                                                            \
117376195Sbrian  product(bool, EnableContended, true,                                      \
117478496Sbrian          "Enable @Contended annotation support")                           \
117578496Sbrian                                                                            \
117678496Sbrian  product(bool, RestrictContended, true,                                    \
117778496Sbrian          "Restrict @Contended to trusted classes")                         \
117878496Sbrian                                                                            \
117978496Sbrian  product(bool, UseBiasedLocking, true,                                     \
118078496Sbrian          "Enable biased locking in JVM")                                   \
118178496Sbrian                                                                            \
118278496Sbrian  product(intx, BiasedLockingStartupDelay, 4000,                            \
118378496Sbrian          "Number of milliseconds to wait before enabling biased locking")  \
118478496Sbrian                                                                            \
118578496Sbrian  diagnostic(bool, PrintBiasedLockingStatistics, false,                     \
118678496Sbrian          "Print statistics of biased locking in JVM")                      \
118778496Sbrian                                                                            \
118878496Sbrian  product(intx, BiasedLockingBulkRebiasThreshold, 20,                       \
118978496Sbrian          "Threshold of number of revocations per type to try to "          \
119078496Sbrian          "rebias all objects in the heap of that type")                    \
119178496Sbrian                                                                            \
119278496Sbrian  product(intx, BiasedLockingBulkRevokeThreshold, 40,                       \
119378496Sbrian          "Threshold of number of revocations per type to permanently "     \
119478496Sbrian          "revoke biases of all objects in the heap of that type")          \
119578496Sbrian                                                                            \
119678496Sbrian  product(intx, BiasedLockingDecayTime, 25000,                              \
119778496Sbrian          "Decay time (in milliseconds) to re-enable bulk rebiasing of a "  \
119878496Sbrian          "type after previous bulk rebias")                                \
119978496Sbrian                                                                            \
120078496Sbrian  /* tracing */                                                             \
120178496Sbrian                                                                            \
120278496Sbrian  notproduct(bool, TraceRuntimeCalls, false,                                \
120378496Sbrian          "Trace run-time calls")                                           \
120478496Sbrian                                                                            \
120578496Sbrian  develop(bool, TraceJNICalls, false,                                       \
120678496Sbrian          "Trace JNI calls")                                                \
120778496Sbrian                                                                            \
120878496Sbrian  notproduct(bool, TraceJVMCalls, false,                                    \
120978496Sbrian          "Trace JVM calls")                                                \
121078496Sbrian                                                                            \
121178496Sbrian  product(ccstr, TraceJVMTI, NULL,                                          \
121278496Sbrian          "Trace flags for JVMTI functions and events")                     \
121378496Sbrian                                                                            \
121478496Sbrian  /* This option can change an EMCP method into an obsolete method. */      \
121576195Sbrian  /* This can affect tests that except specific methods to be EMCP. */      \
121676195Sbrian  /* This option should be used with caution. */                            \
121776195Sbrian  product(bool, StressLdcRewrite, false,                                    \
121876195Sbrian          "Force ldc -> ldc_w rewrite during RedefineClasses")              \
121978496Sbrian                                                                            \
122078496Sbrian  product(intx, TraceRedefineClasses, 0,                                    \
122178496Sbrian          "Trace level for JVMTI RedefineClasses")                          \
122278496Sbrian                                                                            \
122378496Sbrian  develop(bool, StressMethodComparator, false,                              \
122478496Sbrian          "run the MethodComparator on all loaded methods")                 \
122578496Sbrian                                                                            \
122678496Sbrian  /* change to false by default sometime after Mustang */                   \
122778496Sbrian  product(bool, VerifyMergedCPBytecodes, true,                              \
122878496Sbrian          "Verify bytecodes after RedefineClasses constant pool merging")   \
122978496Sbrian                                                                            \
123078496Sbrian  develop(bool, TraceJNIHandleAllocation, false,                            \
123178496Sbrian          "Trace allocation/deallocation of JNI handle blocks")             \
123278496Sbrian                                                                            \
123378496Sbrian  develop(bool, TraceThreadEvents, false,                                   \
123478496Sbrian          "Trace all thread events")                                        \
123578496Sbrian                                                                            \
123678496Sbrian  develop(bool, TraceBytecodes, false,                                      \
123778496Sbrian          "Trace bytecode execution")                                       \
123878496Sbrian                                                                            \
123978496Sbrian  develop(bool, TraceClassInitialization, false,                            \
124078496Sbrian          "Trace class initialization")                                     \
124178496Sbrian                                                                            \
124276195Sbrian  develop(bool, TraceExceptions, false,                                     \
124376195Sbrian          "Trace exceptions")                                               \
124476195Sbrian                                                                            \
124576195Sbrian  develop(bool, TraceICs, false,                                            \
124676195Sbrian          "Trace inline cache changes")                                     \
124776195Sbrian                                                                            \
124876195Sbrian  notproduct(bool, TraceInvocationCounterOverflow, false,                   \
124976195Sbrian          "Trace method invocation counter overflow")                       \
125076195Sbrian                                                                            \
125176195Sbrian  develop(bool, TraceInlineCacheClearing, false,                            \
125276195Sbrian          "Trace clearing of inline caches in nmethods")                    \
125376195Sbrian                                                                            \
125476195Sbrian  develop(bool, TraceDependencies, false,                                   \
125576195Sbrian          "Trace dependencies")                                             \
125676195Sbrian                                                                            \
125776195Sbrian  develop(bool, VerifyDependencies, trueInDebug,                            \
125876195Sbrian         "Exercise and verify the compilation dependency mechanism")        \
125976195Sbrian                                                                            \
126076195Sbrian  develop(bool, TraceNewOopMapGeneration, false,                            \
126176195Sbrian          "Trace OopMapGeneration")                                         \
126276195Sbrian                                                                            \
126376195Sbrian  develop(bool, TraceNewOopMapGenerationDetailed, false,                    \
126476195Sbrian          "Trace OopMapGeneration: print detailed cell states")             \
126576195Sbrian                                                                            \
126676195Sbrian  develop(bool, TimeOopMap, false,                                          \
126776195Sbrian          "Time calls to GenerateOopMap::compute_map() in sum")             \
126876195Sbrian                                                                            \
126976195Sbrian  develop(bool, TimeOopMap2, false,                                         \
127076195Sbrian          "Time calls to GenerateOopMap::compute_map() individually")       \
127176195Sbrian                                                                            \
127276195Sbrian  develop(bool, TraceMonitorMismatch, false,                                \
127376195Sbrian          "Trace monitor matching failures during OopMapGeneration")        \
127476195Sbrian                                                                            \
127576195Sbrian  develop(bool, TraceOopMapRewrites, false,                                 \
127676195Sbrian          "Trace rewritting of method oops during oop map generation")      \
127776195Sbrian                                                                            \
1278130057Sphk  develop(bool, TraceSafepoint, false,                                      \
127976195Sbrian          "Trace safepoint operations")                                     \
128076195Sbrian                                                                            \
1281130057Sphk  develop(bool, TraceICBuffer, false,                                       \
1282130057Sphk          "Trace usage of IC buffer")                                       \
128376195Sbrian                                                                            \
128476195Sbrian  develop(bool, TraceCompiledIC, false,                                     \
128576195Sbrian          "Trace changes of compiled IC")                                   \
128676195Sbrian                                                                            \
128776195Sbrian  notproduct(bool, TraceZapDeadLocals, false,                               \
128876195Sbrian          "Trace zapping dead locals")                                      \
128976195Sbrian                                                                            \
129076195Sbrian  develop(bool, TraceStartupTime, false,                                    \
129176195Sbrian          "Trace setup time")                                               \
129283861Sbrian                                                                            \
129376195Sbrian  develop(bool, TraceProtectionDomainVerification, false,                   \
129476195Sbrian          "Trace protection domain verifcation")                            \
129583861Sbrian                                                                            \
129676195Sbrian  develop(bool, TraceClearedExceptions, false,                              \
129776195Sbrian          "Prints when an exception is forcibly cleared")                   \
129876195Sbrian                                                                            \
129976195Sbrian  product(bool, TraceClassResolution, false,                                \
130076195Sbrian          "Trace all constant pool resolutions (for debugging)")            \
130176195Sbrian                                                                            \
130276195Sbrian  product(bool, TraceBiasedLocking, false,                                  \
130376195Sbrian          "Trace biased locking in JVM")                                    \
130476195Sbrian                                                                            \
130576195Sbrian  product(bool, TraceMonitorInflation, false,                               \
130676195Sbrian          "Trace monitor inflation in JVM")                                 \
130776195Sbrian                                                                            \
130876195Sbrian  /* gc */                                                                  \
130976195Sbrian                                                                            \
131076195Sbrian  product(bool, UseSerialGC, false,                                         \
131176195Sbrian          "Use the serial garbage collector")                               \
131276195Sbrian                                                                            \
131376195Sbrian  product(bool, UseG1GC, false,                                             \
131476195Sbrian          "Use the Garbage-First garbage collector")                        \
131576195Sbrian                                                                            \
131676195Sbrian  product(bool, UseParallelGC, false,                                       \
131776195Sbrian          "Use the Parallel Scavenge garbage collector")                    \
131876195Sbrian                                                                            \
131993593Sjhb  product(bool, UseParallelOldGC, false,                                    \
132076195Sbrian          "Use the Parallel Old garbage collector")                         \
132176195Sbrian                                                                            \
132276195Sbrian  product(uintx, HeapMaximumCompactionInterval, 20,                         \
132376195Sbrian          "How often should we maximally compact the heap (not allowing "   \
132476195Sbrian          "any dead space)")                                                \
132576195Sbrian                                                                            \
132676195Sbrian  product(uintx, HeapFirstMaximumCompactionCount, 3,                        \
132776195Sbrian          "The collection count for the first maximum compaction")          \
132876195Sbrian                                                                            \
132976195Sbrian  product(bool, UseMaximumCompactionOnSystemGC, true,                       \
133076195Sbrian          "In the Parallel Old garbage collector maximum compaction for "   \
133176195Sbrian          "a system GC")                                                    \
133276195Sbrian                                                                            \
133376195Sbrian  product(uintx, ParallelOldDeadWoodLimiterMean, 50,                        \
133476195Sbrian          "The mean used by the par compact dead wood"                      \
133576195Sbrian          "limiter (a number between 0-100).")                              \
133676195Sbrian                                                                            \
133776195Sbrian  product(uintx, ParallelOldDeadWoodLimiterStdDev, 80,                      \
133876195Sbrian          "The standard deviation used by the par compact dead wood"        \
133976195Sbrian          "limiter (a number between 0-100).")                              \
134076195Sbrian                                                                            \
134176195Sbrian  product(uintx, ParallelGCThreads, 0,                                      \
134276195Sbrian          "Number of parallel threads parallel gc will use")                \
134376195Sbrian                                                                            \
134476195Sbrian  product(bool, UseDynamicNumberOfGCThreads, false,                         \
134576195Sbrian          "Dynamically choose the number of parallel threads "              \
134676195Sbrian          "parallel gc will use")                                           \
134776195Sbrian                                                                            \
134876195Sbrian  diagnostic(bool, ForceDynamicNumberOfGCThreads, false,                    \
134976195Sbrian          "Force dynamic selection of the number of"                        \
135076195Sbrian          "parallel threads parallel gc will use to aid debugging")         \
135176195Sbrian                                                                            \
135276195Sbrian  product(uintx, HeapSizePerGCThread, ScaleForWordSize(64*M),               \
135376195Sbrian          "Size of heap (bytes) per GC thread used in calculating the "     \
135476195Sbrian          "number of GC threads")                                           \
135576195Sbrian                                                                            \
135676195Sbrian  product(bool, TraceDynamicGCThreads, false,                               \
135776195Sbrian          "Trace the dynamic GC thread usage")                              \
135876195Sbrian                                                                            \
135976195Sbrian  develop(bool, ParallelOldGCSplitALot, false,                              \
136076195Sbrian          "Provoke splitting (copying data from a young gen space to"       \
136176195Sbrian          "multiple destination spaces)")                                   \
136276195Sbrian                                                                            \
136376195Sbrian  develop(uintx, ParallelOldGCSplitInterval, 3,                             \
136476195Sbrian          "How often to provoke splitting a young gen space")               \
136576195Sbrian                                                                            \
136676195Sbrian  product(uintx, ConcGCThreads, 0,                                          \
136776195Sbrian          "Number of threads concurrent gc will use")                       \
136876195Sbrian                                                                            \
136976195Sbrian  product(uintx, YoungPLABSize, 4096,                                       \
137076195Sbrian          "Size of young gen promotion labs (in HeapWords)")                \
137176195Sbrian                                                                            \
137276195Sbrian  product(uintx, OldPLABSize, 1024,                                         \
137376195Sbrian          "Size of old gen promotion labs (in HeapWords)")                  \
137476195Sbrian                                                                            \
137576195Sbrian  product(uintx, GCTaskTimeStampEntries, 200,                               \
137676195Sbrian          "Number of time stamp entries per gc worker thread")              \
137776195Sbrian                                                                            \
137876195Sbrian  product(bool, AlwaysTenure, false,                                        \
137976195Sbrian          "Always tenure objects in eden. (ParallelGC only)")               \
138076195Sbrian                                                                            \
138176195Sbrian  product(bool, NeverTenure, false,                                         \
138276195Sbrian          "Never tenure objects in eden, May tenure on overflow "           \
138376195Sbrian          "(ParallelGC only)")                                              \
138476195Sbrian                                                                            \
138576195Sbrian  product(bool, ScavengeBeforeFullGC, true,                                 \
138676195Sbrian          "Scavenge youngest generation before each full GC, "              \
138776195Sbrian          "used with UseParallelGC")                                        \
138876195Sbrian                                                                            \
138976195Sbrian  develop(bool, ScavengeWithObjectsInToSpace, false,                        \
139076195Sbrian          "Allow scavenges to occur when to_space contains objects.")       \
139176195Sbrian                                                                            \
139276195Sbrian  product(bool, UseConcMarkSweepGC, false,                                  \
139376195Sbrian          "Use Concurrent Mark-Sweep GC in the old generation")             \
139476195Sbrian                                                                            \
139576195Sbrian  product(bool, ExplicitGCInvokesConcurrent, false,                         \
139676195Sbrian          "A System.gc() request invokes a concurrent collection;"          \
139776195Sbrian          " (effective only when UseConcMarkSweepGC)")                      \
139876195Sbrian                                                                            \
139976195Sbrian  product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false,        \
140076195Sbrian          "A System.gc() request invokes a concurrent collection and "      \
140176195Sbrian          "also unloads classes during such a concurrent gc cycle "         \
140276195Sbrian          "(effective only when UseConcMarkSweepGC)")                       \
140376195Sbrian                                                                            \
140476195Sbrian  product(bool, GCLockerInvokesConcurrent, false,                           \
140576195Sbrian          "The exit of a JNI CS necessitating a scavenge also"              \
140676195Sbrian          " kicks off a bkgrd concurrent collection")                       \
140776195Sbrian                                                                            \
140876195Sbrian  product(uintx, GCLockerEdenExpansionPercent, 5,                           \
140976195Sbrian          "How much the GC can expand the eden by while the GC locker  "    \
141076195Sbrian          "is active (as a percentage)")                                    \
141176195Sbrian                                                                            \
141276195Sbrian  diagnostic(intx, GCLockerRetryAllocationCount, 2,                         \
141376195Sbrian          "Number of times to retry allocations when"                       \
141476195Sbrian          " blocked by the GC locker")                                      \
141576195Sbrian                                                                            \
141676195Sbrian  develop(bool, UseCMSAdaptiveFreeLists, true,                              \
141776195Sbrian          "Use Adaptive Free Lists in the CMS generation")                  \
141876195Sbrian                                                                            \
141976195Sbrian  develop(bool, UseAsyncConcMarkSweepGC, true,                              \
142076195Sbrian          "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\
142176195Sbrian                                                                            \
142276195Sbrian  develop(bool, RotateCMSCollectionTypes, false,                            \
142376195Sbrian          "Rotate the CMS collections among concurrent and STW")            \
142476195Sbrian                                                                            \
142576195Sbrian  product(bool, UseCMSBestFit, true,                                        \
142676195Sbrian          "Use CMS best fit allocation strategy")                           \
142776195Sbrian                                                                            \
142876195Sbrian  product(bool, UseCMSCollectionPassing, true,                              \
142976195Sbrian          "Use passing of collection from background to foreground")        \
143076195Sbrian                                                                            \
143176195Sbrian  product(bool, UseParNewGC, false,                                         \
143276195Sbrian          "Use parallel threads in the new generation.")                    \
143376195Sbrian                                                                            \
143476195Sbrian  product(bool, ParallelGCVerbose, false,                                   \
143576195Sbrian          "Verbose output for parallel GC.")                                \
143676195Sbrian                                                                            \
143778496Sbrian  product(uintx, ParallelGCBufferWastePct, 10,                              \
143876195Sbrian          "Wasted fraction of parallel allocation buffer.")                 \
143978496Sbrian                                                                            \
144076195Sbrian  diagnostic(bool, ParallelGCRetainPLAB, false,                             \
144176195Sbrian             "Retain parallel allocation buffers across scavenges; "        \
144276195Sbrian             " -- disabled because this currently conflicts with "          \
144376195Sbrian             " parallel card scanning under certain conditions ")           \
144476195Sbrian                                                                            \
144576195Sbrian  product(uintx, TargetPLABWastePct, 10,                                    \
144676195Sbrian          "Target wasted space in last buffer as percent of overall "       \
144776195Sbrian          "allocation")                                                     \
144876195Sbrian                                                                            \
144976195Sbrian  product(uintx, PLABWeight, 75,                                            \
145076195Sbrian          "Percentage (0-100) used to weight the current sample when"       \
145176195Sbrian          "computing exponentially decaying average for ResizePLAB.")       \
145276195Sbrian                                                                            \
145376195Sbrian  product(bool, ResizePLAB, true,                                           \
145476195Sbrian          "Dynamically resize (survivor space) promotion labs")             \
145576195Sbrian                                                                            \
145676195Sbrian  product(bool, PrintPLAB, false,                                           \
145776195Sbrian          "Print (survivor space) promotion labs sizing decisions")         \
145876195Sbrian                                                                            \
145976195Sbrian  product(intx, ParGCArrayScanChunk, 50,                                    \
146076195Sbrian          "Scan a subset and push remainder, if array is bigger than this") \
146176195Sbrian                                                                            \
146276195Sbrian  product(bool, ParGCUseLocalOverflow, false,                               \
146376195Sbrian          "Instead of a global overflow list, use local overflow stacks")   \
146476195Sbrian                                                                            \
146576195Sbrian  product(bool, ParGCTrimOverflow, true,                                    \
146676195Sbrian          "Eagerly trim the local overflow lists (when ParGCUseLocalOverflow") \
146776195Sbrian                                                                            \
146876195Sbrian  notproduct(bool, ParGCWorkQueueOverflowALot, false,                       \
146976195Sbrian          "Whether we should simulate work queue overflow in ParNew")       \
147076195Sbrian                                                                            \
147176195Sbrian  notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000,                   \
147276195Sbrian          "An `interval' counter that determines how frequently "           \
147376195Sbrian          "we simulate overflow; a smaller number increases frequency")     \
147476195Sbrian                                                                            \
147576195Sbrian  product(uintx, ParGCDesiredObjsFromOverflowList, 20,                      \
147676195Sbrian          "The desired number of objects to claim from the overflow list")  \
147776195Sbrian                                                                            \
147876195Sbrian  diagnostic(uintx, ParGCStridesPerThread, 2,                               \
147976195Sbrian          "The number of strides per worker thread that we divide up the "  \
148076195Sbrian          "card table scanning work into")                                  \
148176195Sbrian                                                                            \
148276327Sbrian  diagnostic(intx, ParGCCardsPerStrideChunk, 256,                           \
148376195Sbrian          "The number of cards in each chunk of the parallel chunks used "  \
148476195Sbrian          "during card table scanning")                                     \
148576195Sbrian                                                                            \
148676195Sbrian  product(uintx, CMSParPromoteBlocksToClaim, 16,                            \
148776195Sbrian          "Number of blocks to attempt to claim when refilling CMS LAB for "\
148876195Sbrian          "parallel GC.")                                                   \
148976195Sbrian                                                                            \
149076195Sbrian  product(uintx, OldPLABWeight, 50,                                         \
149176195Sbrian          "Percentage (0-100) used to weight the current sample when"       \
149276195Sbrian          "computing exponentially decaying average for resizing CMSParPromoteBlocksToClaim.") \
149376195Sbrian                                                                            \
149476195Sbrian  product(bool, ResizeOldPLAB, true,                                        \
149576195Sbrian          "Dynamically resize (old gen) promotion labs")                    \
149676195Sbrian                                                                            \
149776195Sbrian  product(bool, PrintOldPLAB, false,                                        \
149876195Sbrian          "Print (old gen) promotion labs sizing decisions")                \
149976195Sbrian                                                                            \
150076195Sbrian  product(uintx, CMSOldPLABMin, 16,                                         \
150176195Sbrian          "Min size of CMS gen promotion lab caches per worker per blksize")\
150276195Sbrian                                                                            \
150376195Sbrian  product(uintx, CMSOldPLABMax, 1024,                                       \
150476195Sbrian          "Max size of CMS gen promotion lab caches per worker per blksize")\
150576195Sbrian                                                                            \
150676195Sbrian  product(uintx, CMSOldPLABNumRefills, 4,                                   \
150776195Sbrian          "Nominal number of refills of CMS gen promotion lab cache"        \
150876195Sbrian          " per worker per block size")                                     \
150976195Sbrian                                                                            \
151076195Sbrian  product(bool, CMSOldPLABResizeQuicker, false,                             \
151176195Sbrian          "Whether to react on-the-fly during a scavenge to a sudden"       \
151276195Sbrian          " change in block demand rate")                                   \
151376195Sbrian                                                                            \
151476195Sbrian  product(uintx, CMSOldPLABToleranceFactor, 4,                              \
151576195Sbrian          "The tolerance of the phase-change detector for on-the-fly"       \
151676195Sbrian          " PLAB resizing during a scavenge")                               \
151776195Sbrian                                                                            \
151876195Sbrian  product(uintx, CMSOldPLABReactivityFactor, 2,                             \
151976195Sbrian          "The gain in the feedback loop for on-the-fly PLAB resizing"      \
152076195Sbrian          " during a scavenge")                                             \
152176195Sbrian                                                                            \
152276195Sbrian  product(bool, AlwaysPreTouch, false,                                      \
152376195Sbrian          "It forces all freshly committed pages to be pre-touched.")       \
152476195Sbrian                                                                            \
152576195Sbrian  product_pd(uintx, CMSYoungGenPerWorker,                                   \
152676195Sbrian          "The maximum size of young gen chosen by default per GC worker "  \
152776195Sbrian          "thread available")                                               \
152876195Sbrian                                                                            \
152976195Sbrian  product(bool, CMSIncrementalMode, false,                                  \
153076195Sbrian          "Whether CMS GC should operate in \"incremental\" mode")          \
153176195Sbrian                                                                            \
153276195Sbrian  product(uintx, CMSIncrementalDutyCycle, 10,                               \
153376195Sbrian          "CMS incremental mode duty cycle (a percentage, 0-100).  If"      \
153476195Sbrian          "CMSIncrementalPacing is enabled, then this is just the initial"  \
153576195Sbrian          "value")                                                          \
153676195Sbrian                                                                            \
153776195Sbrian  product(bool, CMSIncrementalPacing, true,                                 \
153876195Sbrian          "Whether the CMS incremental mode duty cycle should be "          \
153976195Sbrian          "automatically adjusted")                                         \
154076195Sbrian                                                                            \
154176195Sbrian  product(uintx, CMSIncrementalDutyCycleMin, 0,                             \
154276195Sbrian          "Lower bound on the duty cycle when CMSIncrementalPacing is "     \
154376195Sbrian          "enabled (a percentage, 0-100)")                                  \
154476195Sbrian                                                                            \
154576195Sbrian  product(uintx, CMSIncrementalSafetyFactor, 10,                            \
154676195Sbrian          "Percentage (0-100) used to add conservatism when computing the " \
154776195Sbrian          "duty cycle")                                                     \
154876195Sbrian                                                                            \
154976195Sbrian  product(uintx, CMSIncrementalOffset, 0,                                   \
155076195Sbrian          "Percentage (0-100) by which the CMS incremental mode duty cycle" \
155176195Sbrian          " is shifted to the right within the period between young GCs")   \
155276195Sbrian                                                                            \
155376195Sbrian  product(uintx, CMSExpAvgFactor, 50,                                       \
155476195Sbrian          "Percentage (0-100) used to weight the current sample when"       \
155576195Sbrian          "computing exponential averages for CMS statistics.")             \
155676195Sbrian                                                                            \
155776195Sbrian  product(uintx, CMS_FLSWeight, 75,                                         \
155876195Sbrian          "Percentage (0-100) used to weight the current sample when"       \
155976195Sbrian          "computing exponentially decating averages for CMS FLS statistics.") \
156076195Sbrian                                                                            \
156176195Sbrian  product(uintx, CMS_FLSPadding, 1,                                         \
156276195Sbrian          "The multiple of deviation from mean to use for buffering"        \
156376195Sbrian          "against volatility in free list demand.")                        \
156476195Sbrian                                                                            \
156576195Sbrian  product(uintx, FLSCoalescePolicy, 2,                                      \
156676195Sbrian          "CMS: Aggression level for coalescing, increasing from 0 to 4")   \
156776195Sbrian                                                                            \
156876195Sbrian  product(bool, FLSAlwaysCoalesceLarge, false,                              \
156976195Sbrian          "CMS: Larger free blocks are always available for coalescing")    \
157076195Sbrian                                                                            \
157176195Sbrian  product(double, FLSLargestBlockCoalesceProximity, 0.99,                   \
157276195Sbrian          "CMS: the smaller the percentage the greater the coalition force")\
157376195Sbrian                                                                            \
157476195Sbrian  product(double, CMSSmallCoalSurplusPercent, 1.05,                         \
157576195Sbrian          "CMS: the factor by which to inflate estimated demand of small"   \
157676195Sbrian          " block sizes to prevent coalescing with an adjoining block")     \
157776195Sbrian                                                                            \
157876195Sbrian  product(double, CMSLargeCoalSurplusPercent, 0.95,                         \
157976195Sbrian          "CMS: the factor by which to inflate estimated demand of large"   \
158076195Sbrian          " block sizes to prevent coalescing with an adjoining block")     \
158176195Sbrian                                                                            \
158276195Sbrian  product(double, CMSSmallSplitSurplusPercent, 1.10,                        \
158376195Sbrian          "CMS: the factor by which to inflate estimated demand of small"   \
158476195Sbrian          " block sizes to prevent splitting to supply demand for smaller"  \
158576195Sbrian          " blocks")                                                        \
158676195Sbrian                                                                            \
158776195Sbrian  product(double, CMSLargeSplitSurplusPercent, 1.00,                        \
158876195Sbrian          "CMS: the factor by which to inflate estimated demand of large"   \
158976195Sbrian          " block sizes to prevent splitting to supply demand for smaller"  \
159076195Sbrian          " blocks")                                                        \
159176195Sbrian                                                                            \
159276195Sbrian  product(bool, CMSExtrapolateSweep, false,                                 \
159376195Sbrian          "CMS: cushion for block demand during sweep")                     \
159476195Sbrian                                                                            \
159576195Sbrian  product(uintx, CMS_SweepWeight, 75,                                       \
159676195Sbrian          "Percentage (0-100) used to weight the current sample when "      \
159776195Sbrian          "computing exponentially decaying average for inter-sweep "       \
159876195Sbrian          "duration")                                                       \
159976195Sbrian                                                                            \
160076195Sbrian  product(uintx, CMS_SweepPadding, 1,                                       \
160176195Sbrian          "The multiple of deviation from mean to use for buffering "       \
160276195Sbrian          "against volatility in inter-sweep duration.")                    \
160376195Sbrian                                                                            \
1604130095Sphk  product(uintx, CMS_SweepTimerThresholdMillis, 10,                         \
160576195Sbrian          "Skip block flux-rate sampling for an epoch unless inter-sweep "  \
160676195Sbrian          "duration exceeds this threhold in milliseconds")                 \
160776195Sbrian                                                                            \
160876195Sbrian  develop(bool, CMSTraceIncrementalMode, false,                             \
160976195Sbrian          "Trace CMS incremental mode")                                     \
161076195Sbrian                                                                            \
161176195Sbrian  develop(bool, CMSTraceIncrementalPacing, false,                           \
161276195Sbrian          "Trace CMS incremental mode pacing computation")                  \
161376195Sbrian                                                                            \
161476195Sbrian  develop(bool, CMSTraceThreadState, false,                                 \
161576195Sbrian          "Trace the CMS thread state (enable the trace_state() method)")   \
161676195Sbrian                                                                            \
161776195Sbrian  product(bool, CMSClassUnloadingEnabled, true,                             \
161876195Sbrian          "Whether class unloading enabled when using CMS GC")              \
161976195Sbrian                                                                            \
162076195Sbrian  product(uintx, CMSClassUnloadingMaxInterval, 0,                           \
162176195Sbrian          "When CMS class unloading is enabled, the maximum CMS cycle count"\
162276195Sbrian          " for which classes may not be unloaded")                         \
162376195Sbrian                                                                            \
162476195Sbrian  product(bool, CMSCompactWhenClearAllSoftRefs, true,                       \
162576195Sbrian          "Compact when asked to collect CMS gen with clear_all_soft_refs") \
162676195Sbrian                                                                            \
162776195Sbrian  product(bool, UseCMSCompactAtFullCollection, true,                        \
162876195Sbrian          "Use mark sweep compact at full collections")                     \
162976195Sbrian                                                                            \
163076195Sbrian  product(uintx, CMSFullGCsBeforeCompaction, 0,                             \
163176195Sbrian          "Number of CMS full collection done before compaction if > 0")    \
163276195Sbrian                                                                            \
163376195Sbrian  develop(intx, CMSDictionaryChoice, 0,                                     \
163476195Sbrian          "Use BinaryTreeDictionary as default in the CMS generation")      \
163576195Sbrian                                                                            \
163676195Sbrian  product(uintx, CMSIndexedFreeListReplenish, 4,                            \
163776195Sbrian          "Replenish an indexed free list with this number of chunks")      \
163876195Sbrian                                                                            \
163976195Sbrian  product(bool, CMSReplenishIntermediate, true,                             \
164076195Sbrian          "Replenish all intermediate free-list caches")                    \
164178496Sbrian                                                                            \
164276195Sbrian  product(bool, CMSSplitIndexedFreeListBlocks, true,                        \
1643130095Sphk          "When satisfying batched demand, split blocks from the "          \
164476195Sbrian          "IndexedFreeList whose size is a multiple of requested size")     \
164576195Sbrian                                                                            \
164676195Sbrian  product(bool, CMSLoopWarn, false,                                         \
164776195Sbrian          "Warn in case of excessive CMS looping")                          \
164876195Sbrian                                                                            \
164976195Sbrian  develop(bool, CMSOverflowEarlyRestoration, false,                         \
165076195Sbrian          "Whether preserved marks should be restored early")               \
165176195Sbrian                                                                            \
1652130077Sphk  product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M),              \
1653130077Sphk          "Size of marking stack")                                          \
1654130077Sphk                                                                            \
1655130077Sphk  product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M),          \
1656130077Sphk          "Max size of marking stack")                                      \
1657130077Sphk                                                                            \
165876195Sbrian  notproduct(bool, CMSMarkStackOverflowALot, false,                         \
165976195Sbrian          "Whether we should simulate frequent marking stack / work queue"  \
166076195Sbrian          " overflow")                                                      \
166176195Sbrian                                                                            \
166276195Sbrian  notproduct(uintx, CMSMarkStackOverflowInterval, 1000,                     \
166376195Sbrian          "An `interval' counter that determines how frequently"            \
1664130077Sphk          " we simulate overflow; a smaller number increases frequency")    \
166576195Sbrian                                                                            \
166676195Sbrian  product(uintx, CMSMaxAbortablePrecleanLoops, 0,                           \
166776195Sbrian          "(Temporary, subject to experimentation)"                         \
166876195Sbrian          "Maximum number of abortable preclean iterations, if > 0")        \
166976195Sbrian                                                                            \
167076195Sbrian  product(intx, CMSMaxAbortablePrecleanTime, 5000,                          \
1671130077Sphk          "(Temporary, subject to experimentation)"                         \
167276195Sbrian          "Maximum time in abortable preclean in ms")                       \
167376195Sbrian                                                                            \
167476195Sbrian  product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100,              \
167576195Sbrian          "(Temporary, subject to experimentation)"                         \
167676195Sbrian          "Nominal minimum work per abortable preclean iteration")          \
167776195Sbrian                                                                            \
167876195Sbrian  manageable(intx, CMSAbortablePrecleanWaitMillis, 100,                     \
167976195Sbrian          "(Temporary, subject to experimentation)"                         \
168076195Sbrian          " Time that we sleep between iterations when not given"           \
168176195Sbrian          " enough work per iteration")                                     \
168276195Sbrian                                                                            \
168376195Sbrian  product(uintx, CMSRescanMultiple, 32,                                     \
168476195Sbrian          "Size (in cards) of CMS parallel rescan task")                    \
168576195Sbrian                                                                            \
168676195Sbrian  product(uintx, CMSConcMarkMultiple, 32,                                   \
168776195Sbrian          "Size (in cards) of CMS concurrent MT marking task")              \
168876195Sbrian                                                                            \
168976195Sbrian  product(bool, CMSAbortSemantics, false,                                   \
169076195Sbrian          "Whether abort-on-overflow semantics is implemented")             \
169176195Sbrian                                                                            \
169276195Sbrian  product(bool, CMSParallelInitialMarkEnabled, true,                        \
169376195Sbrian          "Use the parallel initial mark.")                                 \
169476195Sbrian                                                                            \
169576195Sbrian  product(bool, CMSParallelRemarkEnabled, true,                             \
169676195Sbrian          "Whether parallel remark enabled (only if ParNewGC)")             \
169776195Sbrian                                                                            \
169876195Sbrian  product(bool, CMSParallelSurvivorRemarkEnabled, true,                     \
169976195Sbrian          "Whether parallel remark of survivor space"                       \
170076195Sbrian          " enabled (effective only if CMSParallelRemarkEnabled)")          \
170176195Sbrian                                                                            \
170276195Sbrian  product(bool, CMSPLABRecordAlways, true,                                  \
170376195Sbrian          "Whether to always record survivor space PLAB bdries"             \
170476195Sbrian          " (effective only if CMSParallelSurvivorRemarkEnabled)")          \
170576195Sbrian                                                                            \
170676195Sbrian  product(bool, CMSEdenChunksRecordAlways, true,                            \
170776195Sbrian          "Whether to always record eden chunks used for "                  \
170876195Sbrian          "the parallel initial mark or remark of eden" )                   \
170976195Sbrian                                                                            \
171076195Sbrian  product(bool, CMSPrintEdenSurvivorChunks, false,                          \
171176195Sbrian          "Print the eden and the survivor chunks used for the parallel "   \
171276195Sbrian          "initial mark or remark of the eden/survivor spaces")             \
171376195Sbrian                                                                            \
171476195Sbrian  product(bool, CMSConcurrentMTEnabled, true,                               \
171576195Sbrian          "Whether multi-threaded concurrent work enabled (if ParNewGC)")   \
171676195Sbrian                                                                            \
171776195Sbrian  product(bool, CMSPrecleaningEnabled, true,                                \
171876195Sbrian          "Whether concurrent precleaning enabled")                         \
171976195Sbrian                                                                            \
172076195Sbrian  product(uintx, CMSPrecleanIter, 3,                                        \
172176195Sbrian          "Maximum number of precleaning iteration passes")                 \
172276195Sbrian                                                                            \
172376195Sbrian  product(uintx, CMSPrecleanNumerator, 2,                                   \
172476195Sbrian          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence"  \
172576195Sbrian          " ratio")                                                         \
172676195Sbrian                                                                            \
172776195Sbrian  product(uintx, CMSPrecleanDenominator, 3,                                 \
172876195Sbrian          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence"  \
172976195Sbrian          " ratio")                                                         \
173076195Sbrian                                                                            \
173176195Sbrian  product(bool, CMSPrecleanRefLists1, true,                                 \
173276195Sbrian          "Preclean ref lists during (initial) preclean phase")             \
173376195Sbrian                                                                            \
173476195Sbrian  product(bool, CMSPrecleanRefLists2, false,                                \
173576195Sbrian          "Preclean ref lists during abortable preclean phase")             \
173676195Sbrian                                                                            \
173776195Sbrian  product(bool, CMSPrecleanSurvivors1, false,                               \
173876195Sbrian          "Preclean survivors during (initial) preclean phase")             \
173976195Sbrian                                                                            \
174076195Sbrian  product(bool, CMSPrecleanSurvivors2, true,                                \
174176195Sbrian          "Preclean survivors during abortable preclean phase")             \
174276195Sbrian                                                                            \
174376195Sbrian  product(uintx, CMSPrecleanThreshold, 1000,                                \
174476195Sbrian          "Don't re-iterate if #dirty cards less than this")                \
174576195Sbrian                                                                            \
174676195Sbrian  product(bool, CMSCleanOnEnter, true,                                      \
174776195Sbrian          "Clean-on-enter optimization for reducing number of dirty cards") \
174876195Sbrian                                                                            \
174976195Sbrian  product(uintx, CMSRemarkVerifyVariant, 1,                                 \
175076195Sbrian          "Choose variant (1,2) of verification following remark")          \
175176195Sbrian                                                                            \
175276195Sbrian  product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M,                   \
175376195Sbrian          "If Eden used is below this value, don't try to schedule remark") \
175476195Sbrian                                                                            \
175576195Sbrian  product(uintx, CMSScheduleRemarkEdenPenetration, 50,                      \
175676195Sbrian          "The Eden occupancy % at which to try and schedule remark pause") \
175776195Sbrian                                                                            \
175876195Sbrian  product(uintx, CMSScheduleRemarkSamplingRatio, 5,                         \
175976195Sbrian          "Start sampling Eden top at least before yg occupancy reaches"    \
176076195Sbrian          " 1/<ratio> of the size at which we plan to schedule remark")     \
176176195Sbrian                                                                            \
176276195Sbrian  product(uintx, CMSSamplingGrain, 16*K,                                    \
176376195Sbrian          "The minimum distance between eden samples for CMS (see above)")  \
176476195Sbrian                                                                            \
176576195Sbrian  product(bool, CMSScavengeBeforeRemark, false,                             \
176676195Sbrian          "Attempt scavenge before the CMS remark step")                    \
176776195Sbrian                                                                            \
176876195Sbrian  develop(bool, CMSTraceSweeper, false,                                     \
176976195Sbrian          "Trace some actions of the CMS sweeper")                          \
177076195Sbrian                                                                            \
177176195Sbrian  product(uintx, CMSWorkQueueDrainThreshold, 10,                            \
177276195Sbrian          "Don't drain below this size per parallel worker/thief")          \
177376195Sbrian                                                                            \
177476195Sbrian  manageable(intx, CMSWaitDuration, 2000,                                   \
177576195Sbrian          "Time in milliseconds that CMS thread waits for young GC")        \
177676195Sbrian                                                                            \
177776195Sbrian  develop(uintx, CMSCheckInterval, 1000,                                    \
177876195Sbrian          "Interval in milliseconds that CMS thread checks if it "          \
177976195Sbrian          "should start a collection cycle")                                \
178076195Sbrian                                                                            \
178176195Sbrian  product(bool, CMSYield, true,                                             \
178276195Sbrian          "Yield between steps of concurrent mark & sweep")                 \
178376195Sbrian                                                                            \
178476195Sbrian  product(uintx, CMSBitMapYieldQuantum, 10*M,                               \
178576195Sbrian          "Bitmap operations should process at most this many bits"         \
178676195Sbrian          "between yields")                                                 \
178776195Sbrian                                                                            \
178876195Sbrian  product(bool, CMSDumpAtPromotionFailure, false,                           \
178976195Sbrian          "Dump useful information about the state of the CMS old "         \
179076195Sbrian          " generation upon a promotion failure.")                          \
179176195Sbrian                                                                            \
179276195Sbrian  product(bool, CMSPrintChunksInDump, false,                                \
179376195Sbrian          "In a dump enabled by CMSDumpAtPromotionFailure, include "        \
179476195Sbrian          " more detailed information about the free chunks.")              \
179576195Sbrian                                                                            \
179676195Sbrian  product(bool, CMSPrintObjectsInDump, false,                               \
179776195Sbrian          "In a dump enabled by CMSDumpAtPromotionFailure, include "        \
179876195Sbrian          " more detailed information about the allocated objects.")        \
179976195Sbrian                                                                            \
180076195Sbrian  diagnostic(bool, FLSVerifyAllHeapReferences, false,                       \
180176195Sbrian          "Verify that all refs across the FLS boundary "                   \
180276195Sbrian          " are to valid objects")                                          \
180376195Sbrian                                                                            \
1804118607Sjhb  diagnostic(bool, FLSVerifyLists, false,                                   \
180576195Sbrian          "Do lots of (expensive) FreeListSpace verification")              \
180676195Sbrian                                                                            \
180776195Sbrian  diagnostic(bool, FLSVerifyIndexTable, false,                              \
180876195Sbrian          "Do lots of (expensive) FLS index table verification")            \
180976195Sbrian                                                                            \
181076195Sbrian  develop(bool, FLSVerifyDictionary, false,                                 \
181176195Sbrian          "Do lots of (expensive) FLS dictionary verification")             \
181276195Sbrian                                                                            \
181376195Sbrian  develop(bool, VerifyBlockOffsetArray, false,                              \
181476195Sbrian          "Do (expensive!) block offset array verification")                \
181576195Sbrian                                                                            \
181676195Sbrian  diagnostic(bool, BlockOffsetArrayUseUnallocatedBlock, false,              \
181776195Sbrian          "Maintain _unallocated_block in BlockOffsetArray"                 \
181876195Sbrian          " (currently applicable only to CMS collector)")                  \
181976195Sbrian                                                                            \
182076195Sbrian  develop(bool, TraceCMSState, false,                                       \
182176195Sbrian          "Trace the state of the CMS collection")                          \
182276195Sbrian                                                                            \
182376195Sbrian  product(intx, RefDiscoveryPolicy, 0,                                      \
182476195Sbrian          "Whether reference-based(0) or referent-based(1)")                \
182576195Sbrian                                                                            \
182676195Sbrian  product(bool, ParallelRefProcEnabled, false,                              \
182776195Sbrian          "Enable parallel reference processing whenever possible")         \
182876195Sbrian                                                                            \
182976195Sbrian  product(bool, ParallelRefProcBalancingEnabled, true,                      \
183076195Sbrian          "Enable balancing of reference processing queues")                \
183176195Sbrian                                                                            \
183276195Sbrian  product(uintx, CMSTriggerRatio, 80,                                       \
183376195Sbrian          "Percentage of MinHeapFreeRatio in CMS generation that is "       \
183476195Sbrian          "allocated before a CMS collection cycle commences")              \
183576195Sbrian                                                                            \
183676195Sbrian  product(uintx, CMSBootstrapOccupancy, 50,                                 \
183776195Sbrian          "Percentage CMS generation occupancy at which to "                \
183876195Sbrian          "initiate CMS collection for bootstrapping collection stats")     \
183976195Sbrian                                                                            \
184076195Sbrian  product(intx, CMSInitiatingOccupancyFraction, -1,                         \
184176195Sbrian          "Percentage CMS generation occupancy to start a CMS collection "  \
184276195Sbrian          "cycle. A negative value means that CMSTriggerRatio is used")     \
184376195Sbrian                                                                            \
184476195Sbrian  product(uintx, InitiatingHeapOccupancyPercent, 45,                        \
184576195Sbrian          "Percentage of the (entire) heap occupancy to start a "           \
184676195Sbrian          "concurrent GC cycle. It is used by GCs that trigger a "          \
184776195Sbrian          "concurrent GC cycle based on the occupancy of the entire heap, " \
184876195Sbrian          "not just one of the generations (e.g., G1). A value of 0 "       \
184976195Sbrian          "denotes 'do constant GC cycles'.")                               \
185076195Sbrian                                                                            \
185176195Sbrian  product(bool, UseCMSInitiatingOccupancyOnly, false,                       \
185276195Sbrian          "Only use occupancy as a crierion for starting a CMS collection") \
185376195Sbrian                                                                            \
185476195Sbrian  product(uintx, CMSIsTooFullPercentage, 98,                                \
185576195Sbrian          "An absolute ceiling above which CMS will always consider the "   \
185676195Sbrian          "unloading of classes when class unloading is enabled")           \
185776195Sbrian                                                                            \
185876195Sbrian  develop(bool, CMSTestInFreeList, false,                                   \
185976195Sbrian          "Check if the coalesced range is already in the "                 \
186076195Sbrian          "free lists as claimed")                                          \
186176195Sbrian                                                                            \
186276195Sbrian  notproduct(bool, CMSVerifyReturnedBytes, false,                           \
186376195Sbrian          "Check that all the garbage collected was returned to the "       \
186476195Sbrian          "free lists.")                                                    \
186576195Sbrian                                                                            \
186676195Sbrian  notproduct(bool, ScavengeALot, false,                                     \
186776195Sbrian          "Force scavenge at every Nth exit from the runtime system "       \
186876195Sbrian          "(N=ScavengeALotInterval)")                                       \
186976195Sbrian                                                                            \
187076195Sbrian  develop(bool, FullGCALot, false,                                          \
187176195Sbrian          "Force full gc at every Nth exit from the runtime system "        \
187276195Sbrian          "(N=FullGCALotInterval)")                                         \
187376195Sbrian                                                                            \
187476195Sbrian  notproduct(bool, GCALotAtAllSafepoints, false,                            \
187576195Sbrian          "Enforce ScavengeALot/GCALot at all potential safepoints")        \
187676195Sbrian                                                                            \
187776195Sbrian  product(bool, PrintPromotionFailure, false,                               \
187876195Sbrian          "Print additional diagnostic information following "              \
187976195Sbrian          " promotion failure")                                             \
188076195Sbrian                                                                            \
188176195Sbrian  notproduct(bool, PromotionFailureALot, false,                             \
188276195Sbrian          "Use promotion failure handling on every youngest generation "    \
188376195Sbrian          "collection")                                                     \
188476195Sbrian                                                                            \
188576195Sbrian  develop(uintx, PromotionFailureALotCount, 1000,                           \
188676195Sbrian          "Number of promotion failures occurring at ParGCAllocBuffer"      \
188776195Sbrian          "refill attempts (ParNew) or promotion attempts "                 \
188876195Sbrian          "(other young collectors) ")                                      \
188976195Sbrian                                                                            \
189076195Sbrian  develop(uintx, PromotionFailureALotInterval, 5,                           \
189176195Sbrian          "Total collections between promotion failures alot")              \
189276195Sbrian                                                                            \
189376195Sbrian  experimental(uintx, WorkStealingSleepMillis, 1,                           \
189476195Sbrian          "Sleep time when sleep is used for yields")                       \
189577004Sbrian                                                                            \
189676195Sbrian  experimental(uintx, WorkStealingYieldsBeforeSleep, 5000,                  \
189777004Sbrian          "Number of yields before a sleep is done during workstealing")    \
189876195Sbrian                                                                            \
189976195Sbrian  experimental(uintx, WorkStealingHardSpins, 4096,                          \
190076195Sbrian          "Number of iterations in a spin loop between checks on "          \
190176195Sbrian          "time out of hard spin")                                          \
190276195Sbrian                                                                            \
190376195Sbrian  experimental(uintx, WorkStealingSpinToYieldRatio, 10,                     \
190476195Sbrian          "Ratio of hard spins to calls to yield")                          \
190576195Sbrian                                                                            \
190676195Sbrian  develop(uintx, ObjArrayMarkingStride, 512,                                \
190776195Sbrian          "Number of ObjArray elements to push onto the marking stack"      \
190876195Sbrian          "before pushing a continuation entry")                            \
190976195Sbrian                                                                            \
191076195Sbrian  develop(bool, MetadataAllocationFailALot, false,                          \
191176195Sbrian          "Fail metadata allocations at intervals controlled by "           \
191276195Sbrian          "MetadataAllocationFailALotInterval")                             \
191376195Sbrian                                                                            \
191476195Sbrian  develop(uintx, MetadataAllocationFailALotInterval, 1000,                  \
191576195Sbrian          "metadata allocation failure alot interval")                      \
191676195Sbrian                                                                            \
191776195Sbrian  develop(bool, MetaDataDeallocateALot, false,                              \
191876195Sbrian          "Deallocation bunches of metadata at intervals controlled by "    \
191976195Sbrian          "MetaDataAllocateALotInterval")                                   \
192076195Sbrian                                                                            \
192176195Sbrian  develop(uintx, MetaDataDeallocateALotInterval, 100,                       \
1922120461Sphk          "Metadata deallocation alot interval")                            \
192376195Sbrian                                                                            \
192476195Sbrian  develop(bool, TraceMetadataChunkAllocation, false,                        \
192576195Sbrian          "Trace chunk metadata allocations")                               \
192676195Sbrian                                                                            \
192776195Sbrian  product(bool, TraceMetadataHumongousAllocation, false,                    \
192876195Sbrian          "Trace humongous metadata allocations")                           \
192976195Sbrian                                                                            \
193076195Sbrian  develop(bool, TraceMetavirtualspaceAllocation, false,                     \
193176195Sbrian          "Trace virtual space metadata allocations")                       \
193276195Sbrian                                                                            \
193376195Sbrian  notproduct(bool, ExecuteInternalVMTests, false,                           \
193476195Sbrian          "Enable execution of internal VM tests.")                         \
193576195Sbrian                                                                            \
193676195Sbrian  product_pd(bool, UseTLAB, "Use thread-local object allocation")           \
193776195Sbrian                                                                            \
193876195Sbrian  product_pd(bool, ResizeTLAB,                                              \
193976195Sbrian          "Dynamically resize tlab size for threads")                       \
194076195Sbrian                                                                            \
194176195Sbrian  product(bool, ZeroTLAB, false,                                            \
194276195Sbrian          "Zero out the newly created TLAB")                                \
194394320Sbrian                                                                            \
194494320Sbrian  product(bool, FastTLABRefill, true,                                       \
1945          "Use fast TLAB refill code")                                      \
1946                                                                            \
1947  product(bool, PrintTLAB, false,                                           \
1948          "Print various TLAB related information")                         \
1949                                                                            \
1950  product(bool, TLABStats, true,                                            \
1951          "Print various TLAB related information")                         \
1952                                                                            \
1953  EMBEDDED_ONLY(product(bool, LowMemoryProtection, true,                    \
1954          "Enable LowMemoryProtection"))                                    \
1955                                                                            \
1956  product_pd(bool, NeverActAsServerClassMachine,                            \
1957          "Never act like a server-class machine")                          \
1958                                                                            \
1959  product(bool, AlwaysActAsServerClassMachine, false,                       \
1960          "Always act like a server-class machine")                         \
1961                                                                            \
1962  product_pd(uint64_t, MaxRAM,                                              \
1963          "Real memory size (in bytes) used to set maximum heap size")      \
1964                                                                            \
1965  product(uintx, ErgoHeapSizeLimit, 0,                                      \
1966          "Maximum ergonomically set heap size (in bytes); zero means use " \
1967          "MaxRAM / MaxRAMFraction")                                        \
1968                                                                            \
1969  product(uintx, MaxRAMFraction, 4,                                         \
1970          "Maximum fraction (1/n) of real memory used for maximum heap "    \
1971          "size")                                                           \
1972                                                                            \
1973  product(uintx, DefaultMaxRAMFraction, 4,                                  \
1974          "Maximum fraction (1/n) of real memory used for maximum heap "    \
1975          "size; deprecated: to be renamed to MaxRAMFraction")              \
1976                                                                            \
1977  product(uintx, MinRAMFraction, 2,                                         \
1978          "Minimum fraction (1/n) of real memory used for maxmimum heap "   \
1979          "size on systems with small physical memory size")                \
1980                                                                            \
1981  product(uintx, InitialRAMFraction, 64,                                    \
1982          "Fraction (1/n) of real memory used for initial heap size")       \
1983                                                                            \
1984  develop(uintx, MaxVirtMemFraction, 2,                                     \
1985          "Maximum fraction (1/n) of virtual memory used for ergonomically" \
1986          "determining maximum heap size")                                  \
1987                                                                            \
1988  product(bool, UseAutoGCSelectPolicy, false,                               \
1989          "Use automatic collection selection policy")                      \
1990                                                                            \
1991  product(uintx, AutoGCSelectPauseMillis, 5000,                             \
1992          "Automatic GC selection pause threshhold in ms")                  \
1993                                                                            \
1994  product(bool, UseAdaptiveSizePolicy, true,                                \
1995          "Use adaptive generation sizing policies")                        \
1996                                                                            \
1997  product(bool, UsePSAdaptiveSurvivorSizePolicy, true,                      \
1998          "Use adaptive survivor sizing policies")                          \
1999                                                                            \
2000  product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true,     \
2001          "Use adaptive young-old sizing policies at minor collections")    \
2002                                                                            \
2003  product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true,     \
2004          "Use adaptive young-old sizing policies at major collections")    \
2005                                                                            \
2006  product(bool, UseAdaptiveSizePolicyWithSystemGC, false,                   \
2007          "Use statistics from System.GC for adaptive size policy")         \
2008                                                                            \
2009  product(bool, UseAdaptiveGCBoundary, false,                               \
2010          "Allow young-old boundary to move")                               \
2011                                                                            \
2012  develop(bool, TraceAdaptiveGCBoundary, false,                             \
2013          "Trace young-old boundary moves")                                 \
2014                                                                            \
2015  develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1,             \
2016          "Resize the virtual spaces of the young or old generations")      \
2017                                                                            \
2018  product(uintx, AdaptiveSizeThroughPutPolicy, 0,                           \
2019          "Policy for changeing generation size for throughput goals")      \
2020                                                                            \
2021  product(uintx, AdaptiveSizePausePolicy, 0,                                \
2022          "Policy for changing generation size for pause goals")            \
2023                                                                            \
2024  develop(bool, PSAdjustTenuredGenForMinorPause, false,                     \
2025          "Adjust tenured generation to achive a minor pause goal")         \
2026                                                                            \
2027  develop(bool, PSAdjustYoungGenForMajorPause, false,                       \
2028          "Adjust young generation to achive a major pause goal")           \
2029                                                                            \
2030  product(uintx, AdaptiveSizePolicyInitializingSteps, 20,                   \
2031          "Number of steps where heuristics is used before data is used")   \
2032                                                                            \
2033  develop(uintx, AdaptiveSizePolicyReadyThreshold, 5,                       \
2034          "Number of collections before the adaptive sizing is started")    \
2035                                                                            \
2036  product(uintx, AdaptiveSizePolicyOutputInterval, 0,                       \
2037          "Collection interval for printing information; zero means never") \
2038                                                                            \
2039  product(bool, UseAdaptiveSizePolicyFootprintGoal, true,                   \
2040          "Use adaptive minimum footprint as a goal")                       \
2041                                                                            \
2042  product(uintx, AdaptiveSizePolicyWeight, 10,                              \
2043          "Weight given to exponential resizing, between 0 and 100")        \
2044                                                                            \
2045  product(uintx, AdaptiveTimeWeight,       25,                              \
2046          "Weight given to time in adaptive policy, between 0 and 100")     \
2047                                                                            \
2048  product(uintx, PausePadding, 1,                                           \
2049          "How much buffer to keep for pause time")                         \
2050                                                                            \
2051  product(uintx, PromotedPadding, 3,                                        \
2052          "How much buffer to keep for promotion failure")                  \
2053                                                                            \
2054  product(uintx, SurvivorPadding, 3,                                        \
2055          "How much buffer to keep for survivor overflow")                  \
2056                                                                            \
2057  product(uintx, ThresholdTolerance, 10,                                    \
2058          "Allowed collection cost difference between generations")         \
2059                                                                            \
2060  product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50,                \
2061          "If collection costs are within margin, reduce both by full "     \
2062          "delta")                                                          \
2063                                                                            \
2064  product(uintx, YoungGenerationSizeIncrement, 20,                          \
2065          "Adaptive size percentage change in young generation")            \
2066                                                                            \
2067  product(uintx, YoungGenerationSizeSupplement, 80,                         \
2068          "Supplement to YoungedGenerationSizeIncrement used at startup")   \
2069                                                                            \
2070  product(uintx, YoungGenerationSizeSupplementDecay, 8,                     \
2071          "Decay factor to YoungedGenerationSizeSupplement")                \
2072                                                                            \
2073  product(uintx, TenuredGenerationSizeIncrement, 20,                        \
2074          "Adaptive size percentage change in tenured generation")          \
2075                                                                            \
2076  product(uintx, TenuredGenerationSizeSupplement, 80,                       \
2077          "Supplement to TenuredGenerationSizeIncrement used at startup")   \
2078                                                                            \
2079  product(uintx, TenuredGenerationSizeSupplementDecay, 2,                   \
2080          "Decay factor to TenuredGenerationSizeIncrement")                 \
2081                                                                            \
2082  product(uintx, MaxGCPauseMillis, max_uintx,                               \
2083          "Adaptive size policy maximum GC pause time goal in msec, "       \
2084          "or (G1 Only) the max. GC time per MMU time slice")               \
2085                                                                            \
2086  product(uintx, GCPauseIntervalMillis, 0,                                  \
2087          "Time slice for MMU specification")                               \
2088                                                                            \
2089  product(uintx, MaxGCMinorPauseMillis, max_uintx,                          \
2090          "Adaptive size policy maximum GC minor pause time goal in msec")  \
2091                                                                            \
2092  product(uintx, GCTimeRatio, 99,                                           \
2093          "Adaptive size policy application time to GC time ratio")         \
2094                                                                            \
2095  product(uintx, AdaptiveSizeDecrementScaleFactor, 4,                       \
2096          "Adaptive size scale down factor for shrinking")                  \
2097                                                                            \
2098  product(bool, UseAdaptiveSizeDecayMajorGCCost, true,                      \
2099          "Adaptive size decays the major cost for long major intervals")   \
2100                                                                            \
2101  product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10,                     \
2102          "Time scale over which major costs decay")                        \
2103                                                                            \
2104  product(uintx, MinSurvivorRatio, 3,                                       \
2105          "Minimum ratio of young generation/survivor space size")          \
2106                                                                            \
2107  product(uintx, InitialSurvivorRatio, 8,                                   \
2108          "Initial ratio of eden/survivor space size")                      \
2109                                                                            \
2110  product(uintx, BaseFootPrintEstimate, 256*M,                              \
2111          "Estimate of footprint other than Java Heap")                     \
2112                                                                            \
2113  product(bool, UseGCOverheadLimit, true,                                   \
2114          "Use policy to limit of proportion of time spent in GC "          \
2115          "before an OutOfMemory error is thrown")                          \
2116                                                                            \
2117  product(uintx, GCTimeLimit, 98,                                           \
2118          "Limit of proportion of time spent in GC before an OutOfMemory"   \
2119          "error is thrown (used with GCHeapFreeLimit)")                    \
2120                                                                            \
2121  product(uintx, GCHeapFreeLimit, 2,                                        \
2122          "Minimum percentage of free space after a full GC before an "     \
2123          "OutOfMemoryError is thrown (used with GCTimeLimit)")             \
2124                                                                            \
2125  develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5,                 \
2126          "Number of consecutive collections before gc time limit fires")   \
2127                                                                            \
2128  product(bool, PrintAdaptiveSizePolicy, false,                             \
2129          "Print information about AdaptiveSizePolicy")                     \
2130                                                                            \
2131  product(intx, PrefetchCopyIntervalInBytes, -1,                            \
2132          "How far ahead to prefetch destination area (<= 0 means off)")    \
2133                                                                            \
2134  product(intx, PrefetchScanIntervalInBytes, -1,                            \
2135          "How far ahead to prefetch scan area (<= 0 means off)")           \
2136                                                                            \
2137  product(intx, PrefetchFieldsAhead, -1,                                    \
2138          "How many fields ahead to prefetch in oop scan (<= 0 means off)") \
2139                                                                            \
2140  diagnostic(bool, VerifySilently, false,                                   \
2141          "Don't print print the verification progress")                    \
2142                                                                            \
2143  diagnostic(bool, VerifyDuringStartup, false,                              \
2144          "Verify memory system before executing any Java code "            \
2145          "during VM initialization")                                       \
2146                                                                            \
2147  diagnostic(bool, VerifyBeforeExit, trueInDebug,                           \
2148          "Verify system before exiting")                                   \
2149                                                                            \
2150  diagnostic(bool, VerifyBeforeGC, false,                                   \
2151          "Verify memory system before GC")                                 \
2152                                                                            \
2153  diagnostic(bool, VerifyAfterGC, false,                                    \
2154          "Verify memory system after GC")                                  \
2155                                                                            \
2156  diagnostic(bool, VerifyDuringGC, false,                                   \
2157          "Verify memory system during GC (between phases)")                \
2158                                                                            \
2159  diagnostic(bool, GCParallelVerificationEnabled, true,                     \
2160          "Enable parallel memory system verification")                     \
2161                                                                            \
2162  diagnostic(bool, DeferInitialCardMark, false,                             \
2163          "When +ReduceInitialCardMarks, explicitly defer any that "        \
2164           "may arise from new_pre_store_barrier")                          \
2165                                                                            \
2166  diagnostic(bool, VerifyRememberedSets, false,                             \
2167          "Verify GC remembered sets")                                      \
2168                                                                            \
2169  diagnostic(bool, VerifyObjectStartArray, true,                            \
2170          "Verify GC object start array if verify before/after")            \
2171                                                                            \
2172  product(bool, DisableExplicitGC, false,                                   \
2173          "Tells whether calling System.gc() does a full GC")               \
2174                                                                            \
2175  notproduct(bool, CheckMemoryInitialization, false,                        \
2176          "Checks memory initialization")                                   \
2177                                                                            \
2178  product(bool, CollectGen0First, false,                                    \
2179          "Collect youngest generation before each full GC")                \
2180                                                                            \
2181  diagnostic(bool, BindCMSThreadToCPU, false,                               \
2182          "Bind CMS Thread to CPU if possible")                             \
2183                                                                            \
2184  diagnostic(uintx, CPUForCMSThread, 0,                                     \
2185          "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \
2186                                                                            \
2187  product(bool, BindGCTaskThreadsToCPUs, false,                             \
2188          "Bind GCTaskThreads to CPUs if possible")                         \
2189                                                                            \
2190  product(bool, UseGCTaskAffinity, false,                                   \
2191          "Use worker affinity when asking for GCTasks")                    \
2192                                                                            \
2193  product(uintx, ProcessDistributionStride, 4,                              \
2194          "Stride through processors when distributing processes")          \
2195                                                                            \
2196  product(uintx, CMSCoordinatorYieldSleepCount, 10,                         \
2197          "number of times the coordinator GC thread will sleep while "     \
2198          "yielding before giving up and resuming GC")                      \
2199                                                                            \
2200  product(uintx, CMSYieldSleepCount, 0,                                     \
2201          "number of times a GC thread (minus the coordinator) "            \
2202          "will sleep while yielding before giving up and resuming GC")     \
2203                                                                            \
2204  /* gc tracing */                                                          \
2205  manageable(bool, PrintGC, false,                                          \
2206          "Print message at garbage collect")                               \
2207                                                                            \
2208  manageable(bool, PrintGCDetails, false,                                   \
2209          "Print more details at garbage collect")                          \
2210                                                                            \
2211  manageable(bool, PrintGCDateStamps, false,                                \
2212          "Print date stamps at garbage collect")                           \
2213                                                                            \
2214  manageable(bool, PrintGCTimeStamps, false,                                \
2215          "Print timestamps at garbage collect")                            \
2216                                                                            \
2217  product(bool, PrintGCTaskTimeStamps, false,                               \
2218          "Print timestamps for individual gc worker thread tasks")         \
2219                                                                            \
2220  develop(intx, ConcGCYieldTimeout, 0,                                      \
2221          "If non-zero, assert that GC threads yield within this # of ms.") \
2222                                                                            \
2223  notproduct(bool, TraceMarkSweep, false,                                   \
2224          "Trace mark sweep")                                               \
2225                                                                            \
2226  product(bool, PrintReferenceGC, false,                                    \
2227          "Print times spent handling reference objects during GC "         \
2228          " (enabled only when PrintGCDetails)")                            \
2229                                                                            \
2230  develop(bool, TraceReferenceGC, false,                                    \
2231          "Trace handling of soft/weak/final/phantom references")           \
2232                                                                            \
2233  develop(bool, TraceFinalizerRegistration, false,                          \
2234         "Trace registration of final references")                          \
2235                                                                            \
2236  notproduct(bool, TraceScavenge, false,                                    \
2237          "Trace scavenge")                                                 \
2238                                                                            \
2239  product_rw(bool, TraceClassLoading, false,                                \
2240          "Trace all classes loaded")                                       \
2241                                                                            \
2242  product(bool, TraceClassLoadingPreorder, false,                           \
2243          "Trace all classes loaded in order referenced (not loaded)")      \
2244                                                                            \
2245  product_rw(bool, TraceClassUnloading, false,                              \
2246          "Trace unloading of classes")                                     \
2247                                                                            \
2248  product_rw(bool, TraceLoaderConstraints, false,                           \
2249          "Trace loader constraints")                                       \
2250                                                                            \
2251  develop(bool, TraceClassLoaderData, false,                                \
2252          "Trace class loader loader_data lifetime")                        \
2253                                                                            \
2254  product(uintx, InitialBootClassLoaderMetaspaceSize,                       \
2255          NOT_LP64(2200*K) LP64_ONLY(4*M),                                  \
2256          "Initial size of the boot class loader data metaspace")           \
2257                                                                            \
2258  product(bool, TraceGen0Time, false,                                       \
2259          "Trace accumulated time for Gen 0 collection")                    \
2260                                                                            \
2261  product(bool, TraceGen1Time, false,                                       \
2262          "Trace accumulated time for Gen 1 collection")                    \
2263                                                                            \
2264  product(bool, PrintTenuringDistribution, false,                           \
2265          "Print tenuring age information")                                 \
2266                                                                            \
2267  product_rw(bool, PrintHeapAtGC, false,                                    \
2268          "Print heap layout before and after each GC")                     \
2269                                                                            \
2270  product_rw(bool, PrintHeapAtGCExtended, false,                            \
2271          "Prints extended information about the layout of the heap "       \
2272          "when -XX:+PrintHeapAtGC is set")                                 \
2273                                                                            \
2274  product(bool, PrintHeapAtSIGBREAK, true,                                  \
2275          "Print heap layout in response to SIGBREAK")                      \
2276                                                                            \
2277  manageable(bool, PrintClassHistogramBeforeFullGC, false,                  \
2278          "Print a class histogram before any major stop-world GC")         \
2279                                                                            \
2280  manageable(bool, PrintClassHistogramAfterFullGC, false,                   \
2281          "Print a class histogram after any major stop-world GC")          \
2282                                                                            \
2283  manageable(bool, PrintClassHistogram, false,                              \
2284          "Print a histogram of class instances")                           \
2285                                                                            \
2286  develop(bool, TraceWorkGang, false,                                       \
2287          "Trace activities of work gangs")                                 \
2288                                                                            \
2289  product(bool, TraceParallelOldGCTasks, false,                             \
2290          "Trace multithreaded GC activity")                                \
2291                                                                            \
2292  develop(bool, TraceBlockOffsetTable, false,                               \
2293          "Print BlockOffsetTable maps")                                    \
2294                                                                            \
2295  develop(bool, TraceCardTableModRefBS, false,                              \
2296          "Print CardTableModRefBS maps")                                   \
2297                                                                            \
2298  develop(bool, TraceGCTaskManager, false,                                  \
2299          "Trace actions of the GC task manager")                           \
2300                                                                            \
2301  develop(bool, TraceGCTaskQueue, false,                                    \
2302          "Trace actions of the GC task queues")                            \
2303                                                                            \
2304  diagnostic(bool, TraceGCTaskThread, false,                                \
2305          "Trace actions of the GC task threads")                           \
2306                                                                            \
2307  product(bool, PrintParallelOldGCPhaseTimes, false,                        \
2308          "Print the time taken by each parallel old gc phase."             \
2309          "PrintGCDetails must also be enabled.")                           \
2310                                                                            \
2311  develop(bool, TraceParallelOldGCMarkingPhase, false,                      \
2312          "Trace parallel old gc marking phase")                            \
2313                                                                            \
2314  develop(bool, TraceParallelOldGCSummaryPhase, false,                      \
2315          "Trace parallel old gc summary phase")                            \
2316                                                                            \
2317  develop(bool, TraceParallelOldGCCompactionPhase, false,                   \
2318          "Trace parallel old gc compaction phase")                         \
2319                                                                            \
2320  develop(bool, TraceParallelOldGCDensePrefix, false,                       \
2321          "Trace parallel old gc dense prefix computation")                 \
2322                                                                            \
2323  develop(bool, IgnoreLibthreadGPFault, false,                              \
2324          "Suppress workaround for libthread GP fault")                     \
2325                                                                            \
2326  product(bool, PrintJNIGCStalls, false,                                    \
2327          "Print diagnostic message when GC is stalled"                     \
2328          "by JNI critical section")                                        \
2329                                                                            \
2330  experimental(double, ObjectCountCutOffPercent, 0.5,                       \
2331          "The percentage of the used heap that the instances of a class "  \
2332          "must occupy for the class to generate a trace event.")           \
2333                                                                            \
2334  /* GC log rotation setting */                                             \
2335                                                                            \
2336  product(bool, UseGCLogFileRotation, false,                                \
2337          "Prevent large gclog file for long running app. "                 \
2338          "Requires -Xloggc:<filename>")                                    \
2339                                                                            \
2340  product(uintx, NumberOfGCLogFiles, 0,                                     \
2341          "Number of gclog files in rotation, "                             \
2342          "Default: 0, no rotation")                                        \
2343                                                                            \
2344  product(uintx, GCLogFileSize, 0,                                          \
2345          "GC log file size, Default: 0 bytes, no rotation "                \
2346          "Only valid with UseGCLogFileRotation")                           \
2347                                                                            \
2348  /* JVMTI heap profiling */                                                \
2349                                                                            \
2350  diagnostic(bool, TraceJVMTIObjectTagging, false,                          \
2351          "Trace JVMTI object tagging calls")                               \
2352                                                                            \
2353  diagnostic(bool, VerifyBeforeIteration, false,                            \
2354          "Verify memory system before JVMTI iteration")                    \
2355                                                                            \
2356  /* compiler interface */                                                  \
2357                                                                            \
2358  develop(bool, CIPrintCompilerName, false,                                 \
2359          "when CIPrint is active, print the name of the active compiler")  \
2360                                                                            \
2361  develop(bool, CIPrintCompileQueue, false,                                 \
2362          "display the contents of the compile queue whenever a "           \
2363          "compilation is enqueued")                                        \
2364                                                                            \
2365  develop(bool, CIPrintRequests, false,                                     \
2366          "display every request for compilation")                          \
2367                                                                            \
2368  product(bool, CITime, false,                                              \
2369          "collect timing information for compilation")                     \
2370                                                                            \
2371  develop(bool, CITimeEach, false,                                          \
2372          "display timing information after each successful compilation")   \
2373                                                                            \
2374  develop(bool, CICountOSR, false,                                          \
2375          "use a separate counter when assigning ids to osr compilations")  \
2376                                                                            \
2377  develop(bool, CICompileNatives, true,                                     \
2378          "compile native methods if supported by the compiler")            \
2379                                                                            \
2380  develop_pd(bool, CICompileOSR,                                            \
2381          "compile on stack replacement methods if supported by the "       \
2382          "compiler")                                                       \
2383                                                                            \
2384  develop(bool, CIPrintMethodCodes, false,                                  \
2385          "print method bytecodes of the compiled code")                    \
2386                                                                            \
2387  develop(bool, CIPrintTypeFlow, false,                                     \
2388          "print the results of ciTypeFlow analysis")                       \
2389                                                                            \
2390  develop(bool, CITraceTypeFlow, false,                                     \
2391          "detailed per-bytecode tracing of ciTypeFlow analysis")           \
2392                                                                            \
2393  develop(intx, OSROnlyBCI, -1,                                             \
2394          "OSR only at this bci.  Negative values mean exclude that bci")   \
2395                                                                            \
2396  /* compiler */                                                            \
2397                                                                            \
2398  product(intx, CICompilerCount, CI_COMPILER_COUNT,                         \
2399          "Number of compiler threads to run")                              \
2400                                                                            \
2401  product(intx, CompilationPolicyChoice, 0,                                 \
2402          "which compilation policy (0/1)")                                 \
2403                                                                            \
2404  develop(bool, UseStackBanging, true,                                      \
2405          "use stack banging for stack overflow checks (required for "      \
2406          "proper StackOverflow handling; disable only to measure cost "    \
2407          "of stackbanging)")                                               \
2408                                                                            \
2409  develop(bool, UseStrictFP, true,                                          \
2410          "use strict fp if modifier strictfp is set")                      \
2411                                                                            \
2412  develop(bool, GenerateSynchronizationCode, true,                          \
2413          "generate locking/unlocking code for synchronized methods and "   \
2414          "monitors")                                                       \
2415                                                                            \
2416  develop(bool, GenerateCompilerNullChecks, true,                           \
2417          "Generate explicit null checks for loads/stores/calls")           \
2418                                                                            \
2419  develop(bool, GenerateRangeChecks, true,                                  \
2420          "Generate range checks for array accesses")                       \
2421                                                                            \
2422  develop_pd(bool, ImplicitNullChecks,                                      \
2423          "generate code for implicit null checks")                         \
2424                                                                            \
2425  product(bool, PrintSafepointStatistics, false,                            \
2426          "print statistics about safepoint synchronization")               \
2427                                                                            \
2428  product(intx, PrintSafepointStatisticsCount, 300,                         \
2429          "total number of safepoint statistics collected "                 \
2430          "before printing them out")                                       \
2431                                                                            \
2432  product(intx, PrintSafepointStatisticsTimeout,  -1,                       \
2433          "print safepoint statistics only when safepoint takes"            \
2434          " more than PrintSafepointSatisticsTimeout in millis")            \
2435                                                                            \
2436  product(bool, TraceSafepointCleanupTime, false,                           \
2437          "print the break down of clean up tasks performed during"         \
2438          " safepoint")                                                     \
2439                                                                            \
2440  product(bool, Inline, true,                                               \
2441          "enable inlining")                                                \
2442                                                                            \
2443  product(bool, ClipInlining, true,                                         \
2444          "clip inlining if aggregate method exceeds DesiredMethodLimit")   \
2445                                                                            \
2446  develop(bool, UseCHA, true,                                               \
2447          "enable CHA")                                                     \
2448                                                                            \
2449  product(bool, UseTypeProfile, true,                                       \
2450          "Check interpreter profile for historically monomorphic calls")   \
2451                                                                            \
2452  notproduct(bool, TimeCompiler, false,                                     \
2453          "time the compiler")                                              \
2454                                                                            \
2455  diagnostic(bool, PrintInlining, false,                                    \
2456          "prints inlining optimizations")                                  \
2457                                                                            \
2458  product(bool, UsePopCountInstruction, false,                              \
2459          "Use population count instruction")                               \
2460                                                                            \
2461  develop(bool, EagerInitialization, false,                                 \
2462          "Eagerly initialize classes if possible")                         \
2463                                                                            \
2464  develop(bool, TraceMethodReplacement, false,                              \
2465          "Print when methods are replaced do to recompilation")            \
2466                                                                            \
2467  develop(bool, PrintMethodFlushing, false,                                 \
2468          "print the nmethods being flushed")                               \
2469                                                                            \
2470  develop(bool, UseRelocIndex, false,                                       \
2471         "use an index to speed random access to relocations")              \
2472                                                                            \
2473  develop(bool, StressCodeBuffers, false,                                   \
2474         "Exercise code buffer expansion and other rare state changes")     \
2475                                                                            \
2476  diagnostic(bool, DebugNonSafepoints, trueInDebug,                         \
2477         "Generate extra debugging info for non-safepoints in nmethods")    \
2478                                                                            \
2479  product(bool, PrintVMOptions, false,                                      \
2480         "Print flags that appeared on the command line")                   \
2481                                                                            \
2482  product(bool, IgnoreUnrecognizedVMOptions, false,                         \
2483         "Ignore unrecognized VM options")                                  \
2484                                                                            \
2485  product(bool, PrintCommandLineFlags, false,                               \
2486         "Print flags specified on command line or set by ergonomics")      \
2487                                                                            \
2488  product(bool, PrintFlagsInitial, false,                                   \
2489         "Print all VM flags before argument processing and exit VM")       \
2490                                                                            \
2491  product(bool, PrintFlagsFinal, false,                                     \
2492         "Print all VM flags after argument and ergonomic processing")      \
2493                                                                            \
2494  notproduct(bool, PrintFlagsWithComments, false,                           \
2495         "Print all VM flags with default values and descriptions and exit")\
2496                                                                            \
2497  diagnostic(bool, SerializeVMOutput, true,                                 \
2498         "Use a mutex to serialize output to tty and hotspot.log")          \
2499                                                                            \
2500  diagnostic(bool, DisplayVMOutput, true,                                   \
2501         "Display all VM output on the tty, independently of LogVMOutput")  \
2502                                                                            \
2503  diagnostic(bool, LogVMOutput, trueInDebug,                                \
2504         "Save VM output to hotspot.log, or to LogFile")                    \
2505                                                                            \
2506  diagnostic(ccstr, LogFile, NULL,                                          \
2507         "If LogVMOutput is on, save VM output to this file [hotspot.log]") \
2508                                                                            \
2509  product(ccstr, ErrorFile, NULL,                                           \
2510         "If an error occurs, save the error data to this file "            \
2511         "[default: ./hs_err_pid%p.log] (%p replaced with pid)")            \
2512                                                                            \
2513  product(bool, DisplayVMOutputToStderr, false,                             \
2514         "If DisplayVMOutput is true, display all VM output to stderr")     \
2515                                                                            \
2516  product(bool, DisplayVMOutputToStdout, false,                             \
2517         "If DisplayVMOutput is true, display all VM output to stdout")     \
2518                                                                            \
2519  product(bool, UseHeavyMonitors, false,                                    \
2520          "use heavyweight instead of lightweight Java monitors")           \
2521                                                                            \
2522  product(bool, PrintStringTableStatistics, false,                          \
2523          "print statistics about the StringTable and SymbolTable")         \
2524                                                                            \
2525  notproduct(bool, PrintSymbolTableSizeHistogram, false,                    \
2526          "print histogram of the symbol table")                            \
2527                                                                            \
2528  notproduct(bool, ExitVMOnVerifyError, false,                              \
2529          "standard exit from VM if bytecode verify error "                 \
2530          "(only in debug mode)")                                           \
2531                                                                            \
2532  notproduct(ccstr, AbortVMOnException, NULL,                               \
2533          "Call fatal if this exception is thrown.  Example: "              \
2534          "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
2535                                                                            \
2536  notproduct(ccstr, AbortVMOnExceptionMessage, NULL,                        \
2537          "Call fatal if the exception pointed by AbortVMOnException "      \
2538          "has this message.")                                              \
2539                                                                            \
2540  develop(bool, DebugVtables, false,                                        \
2541          "add debugging code to vtable dispatch")                          \
2542                                                                            \
2543  develop(bool, PrintVtables, false,                                        \
2544          "print vtables when printing klass")                              \
2545                                                                            \
2546  notproduct(bool, PrintVtableStats, false,                                 \
2547          "print vtables stats at end of run")                              \
2548                                                                            \
2549  develop(bool, TraceCreateZombies, false,                                  \
2550          "trace creation of zombie nmethods")                              \
2551                                                                            \
2552  notproduct(bool, IgnoreLockingAssertions, false,                          \
2553          "disable locking assertions (for speed)")                         \
2554                                                                            \
2555  product(bool, RangeCheckElimination, true,                                \
2556          "Eliminate range checks")                                         \
2557                                                                            \
2558  develop_pd(bool, UncommonNullCast,                                        \
2559          "track occurrences of null in casts; adjust compiler tactics")    \
2560                                                                            \
2561  develop(bool, TypeProfileCasts,  true,                                    \
2562          "treat casts like calls for purposes of type profiling")          \
2563                                                                            \
2564  develop(bool, DelayCompilationDuringStartup, true,                        \
2565          "Delay invoking the compiler until main application class is "    \
2566          "loaded")                                                         \
2567                                                                            \
2568  develop(bool, CompileTheWorld, false,                                     \
2569          "Compile all methods in all classes in bootstrap class path "     \
2570          "(stress test)")                                                  \
2571                                                                            \
2572  develop(bool, CompileTheWorldPreloadClasses, true,                        \
2573          "Preload all classes used by a class before start loading")       \
2574                                                                            \
2575  notproduct(intx, CompileTheWorldSafepointInterval, 100,                   \
2576          "Force a safepoint every n compiles so sweeper can keep up")      \
2577                                                                            \
2578  develop(bool, FillDelaySlots, true,                                       \
2579          "Fill delay slots (on SPARC only)")                               \
2580                                                                            \
2581  develop(bool, TimeLivenessAnalysis, false,                                \
2582          "Time computation of bytecode liveness analysis")                 \
2583                                                                            \
2584  develop(bool, TraceLivenessGen, false,                                    \
2585          "Trace the generation of liveness analysis information")          \
2586                                                                            \
2587  notproduct(bool, TraceLivenessQuery, false,                               \
2588          "Trace queries of liveness analysis information")                 \
2589                                                                            \
2590  notproduct(bool, CollectIndexSetStatistics, false,                        \
2591          "Collect information about IndexSets")                            \
2592                                                                            \
2593  develop(bool, UseLoopSafepoints, true,                                    \
2594          "Generate Safepoint nodes in every loop")                         \
2595                                                                            \
2596  develop(intx, FastAllocateSizeLimit, 128*K,                               \
2597          /* Note:  This value is zero mod 1<<13 for a cheap sparc set. */  \
2598          "Inline allocations larger than this in doublewords must go slow")\
2599                                                                            \
2600  product(bool, AggressiveOpts, false,                                      \
2601          "Enable aggressive optimizations - see arguments.cpp")            \
2602                                                                            \
2603  /* statistics */                                                          \
2604  develop(bool, CountCompiledCalls, false,                                  \
2605          "counts method invocations")                                      \
2606                                                                            \
2607  notproduct(bool, CountRuntimeCalls, false,                                \
2608          "counts VM runtime calls")                                        \
2609                                                                            \
2610  develop(bool, CountJNICalls, false,                                       \
2611          "counts jni method invocations")                                  \
2612                                                                            \
2613  notproduct(bool, CountJVMCalls, false,                                    \
2614          "counts jvm method invocations")                                  \
2615                                                                            \
2616  notproduct(bool, CountRemovableExceptions, false,                         \
2617          "count exceptions that could be replaced by branches due to "     \
2618          "inlining")                                                       \
2619                                                                            \
2620  notproduct(bool, ICMissHistogram, false,                                  \
2621          "produce histogram of IC misses")                                 \
2622                                                                            \
2623  notproduct(bool, PrintClassStatistics, false,                             \
2624          "prints class statistics at end of run")                          \
2625                                                                            \
2626  notproduct(bool, PrintMethodStatistics, false,                            \
2627          "prints method statistics at end of run")                         \
2628                                                                            \
2629  /* interpreter */                                                         \
2630  develop(bool, ClearInterpreterLocals, false,                              \
2631          "Always clear local variables of interpreter activations upon "   \
2632          "entry")                                                          \
2633                                                                            \
2634  product_pd(bool, RewriteBytecodes,                                        \
2635          "Allow rewriting of bytecodes (bytecodes are not immutable)")     \
2636                                                                            \
2637  product_pd(bool, RewriteFrequentPairs,                                    \
2638          "Rewrite frequently used bytecode pairs into a single bytecode")  \
2639                                                                            \
2640  diagnostic(bool, PrintInterpreter, false,                                 \
2641          "Prints the generated interpreter code")                          \
2642                                                                            \
2643  product(bool, UseInterpreter, true,                                       \
2644          "Use interpreter for non-compiled methods")                       \
2645                                                                            \
2646  develop(bool, UseFastSignatureHandlers, true,                             \
2647          "Use fast signature handlers for native calls")                   \
2648                                                                            \
2649  product(bool, UseLoopCounter, true,                                       \
2650          "Increment invocation counter on backward branch")                \
2651                                                                            \
2652  product(bool, UseFastEmptyMethods, true,                                  \
2653          "Use fast method entry code for empty methods")                   \
2654                                                                            \
2655  product(bool, UseFastAccessorMethods, true,                               \
2656          "Use fast method entry code for accessor methods")                \
2657                                                                            \
2658  product_pd(bool, UseOnStackReplacement,                                   \
2659           "Use on stack replacement, calls runtime if invoc. counter "     \
2660           "overflows in loop")                                             \
2661                                                                            \
2662  notproduct(bool, TraceOnStackReplacement, false,                          \
2663          "Trace on stack replacement")                                     \
2664                                                                            \
2665  product_pd(bool, PreferInterpreterNativeStubs,                            \
2666          "Use always interpreter stubs for native methods invoked via "    \
2667          "interpreter")                                                    \
2668                                                                            \
2669  develop(bool, CountBytecodes, false,                                      \
2670          "Count number of bytecodes executed")                             \
2671                                                                            \
2672  develop(bool, PrintBytecodeHistogram, false,                              \
2673          "Print histogram of the executed bytecodes")                      \
2674                                                                            \
2675  develop(bool, PrintBytecodePairHistogram, false,                          \
2676          "Print histogram of the executed bytecode pairs")                 \
2677                                                                            \
2678  diagnostic(bool, PrintSignatureHandlers, false,                           \
2679          "Print code generated for native method signature handlers")      \
2680                                                                            \
2681  develop(bool, VerifyOops, false,                                          \
2682          "Do plausibility checks for oops")                                \
2683                                                                            \
2684  develop(bool, CheckUnhandledOops, false,                                  \
2685          "Check for unhandled oops in VM code")                            \
2686                                                                            \
2687  develop(bool, VerifyJNIFields, trueInDebug,                               \
2688          "Verify jfieldIDs for instance fields")                           \
2689                                                                            \
2690  notproduct(bool, VerifyJNIEnvThread, false,                               \
2691          "Verify JNIEnv.thread == Thread::current() when entering VM "     \
2692          "from JNI")                                                       \
2693                                                                            \
2694  develop(bool, VerifyFPU, false,                                           \
2695          "Verify FPU state (check for NaN's, etc.)")                       \
2696                                                                            \
2697  develop(bool, VerifyThread, false,                                        \
2698          "Watch the thread register for corruption (SPARC only)")          \
2699                                                                            \
2700  develop(bool, VerifyActivationFrameSize, false,                           \
2701          "Verify that activation frame didn't become smaller than its "    \
2702          "minimal size")                                                   \
2703                                                                            \
2704  develop(bool, TraceFrequencyInlining, false,                              \
2705          "Trace frequency based inlining")                                 \
2706                                                                            \
2707  develop_pd(bool, InlineIntrinsics,                                        \
2708           "Inline intrinsics that can be statically resolved")             \
2709                                                                            \
2710  product_pd(bool, ProfileInterpreter,                                      \
2711           "Profile at the bytecode level during interpretation")           \
2712                                                                            \
2713  develop_pd(bool, ProfileTraps,                                            \
2714          "Profile deoptimization traps at the bytecode level")             \
2715                                                                            \
2716  product(intx, ProfileMaturityPercentage, 20,                              \
2717          "number of method invocations/branches (expressed as % of "       \
2718          "CompileThreshold) before using the method's profile")            \
2719                                                                            \
2720  develop(bool, PrintMethodData, false,                                     \
2721           "Print the results of +ProfileInterpreter at end of run")        \
2722                                                                            \
2723  develop(bool, VerifyDataPointer, trueInDebug,                             \
2724          "Verify the method data pointer during interpreter profiling")    \
2725                                                                            \
2726  develop(bool, VerifyCompiledCode, false,                                  \
2727          "Include miscellaneous runtime verifications in nmethod code; "   \
2728          "default off because it disturbs nmethod size heuristics")        \
2729                                                                            \
2730  notproduct(bool, CrashGCForDumpingJavaThread, false,                      \
2731          "Manually make GC thread crash then dump java stack trace;  "     \
2732          "Test only")                                                      \
2733                                                                            \
2734  /* compilation */                                                         \
2735  product(bool, UseCompiler, true,                                          \
2736          "use compilation")                                                \
2737                                                                            \
2738  develop(bool, TraceCompilationPolicy, false,                              \
2739          "Trace compilation policy")                                       \
2740                                                                            \
2741  develop(bool, TimeCompilationPolicy, false,                               \
2742          "Time the compilation policy")                                    \
2743                                                                            \
2744  product(bool, UseCounterDecay, true,                                      \
2745           "adjust recompilation counters")                                 \
2746                                                                            \
2747  develop(intx, CounterHalfLifeTime,    30,                                 \
2748          "half-life time of invocation counters (in secs)")                \
2749                                                                            \
2750  develop(intx, CounterDecayMinIntervalLength,   500,                       \
2751          "Min. ms. between invocation of CounterDecay")                    \
2752                                                                            \
2753  product(bool, AlwaysCompileLoopMethods, false,                            \
2754          "when using recompilation, never interpret methods "              \
2755          "containing loops")                                               \
2756                                                                            \
2757  product(bool, DontCompileHugeMethods, true,                               \
2758          "don't compile methods > HugeMethodLimit")                        \
2759                                                                            \
2760  /* Bytecode escape analysis estimation. */                                \
2761  product(bool, EstimateArgEscape, true,                                    \
2762          "Analyze bytecodes to estimate escape state of arguments")        \
2763                                                                            \
2764  product(intx, BCEATraceLevel, 0,                                          \
2765          "How much tracing to do of bytecode escape analysis estimates")   \
2766                                                                            \
2767  product(intx, MaxBCEAEstimateLevel, 5,                                    \
2768          "Maximum number of nested calls that are analyzed by BC EA.")     \
2769                                                                            \
2770  product(intx, MaxBCEAEstimateSize, 150,                                   \
2771          "Maximum bytecode size of a method to be analyzed by BC EA.")     \
2772                                                                            \
2773  product(intx,  AllocatePrefetchStyle, 1,                                  \
2774          "0 = no prefetch, "                                               \
2775          "1 = prefetch instructions for each allocation, "                 \
2776          "2 = use TLAB watermark to gate allocation prefetch, "            \
2777          "3 = use BIS instruction on Sparc for allocation prefetch")       \
2778                                                                            \
2779  product(intx,  AllocatePrefetchDistance, -1,                              \
2780          "Distance to prefetch ahead of allocation pointer")               \
2781                                                                            \
2782  product(intx,  AllocatePrefetchLines, 3,                                  \
2783          "Number of lines to prefetch ahead of array allocation pointer")  \
2784                                                                            \
2785  product(intx,  AllocateInstancePrefetchLines, 1,                          \
2786          "Number of lines to prefetch ahead of instance allocation pointer") \
2787                                                                            \
2788  product(intx,  AllocatePrefetchStepSize, 16,                              \
2789          "Step size in bytes of sequential prefetch instructions")         \
2790                                                                            \
2791  product(intx,  AllocatePrefetchInstr, 0,                                  \
2792          "Prefetch instruction to prefetch ahead of allocation pointer")   \
2793                                                                            \
2794  /* deoptimization */                                                      \
2795  develop(bool, TraceDeoptimization, false,                                 \
2796          "Trace deoptimization")                                           \
2797                                                                            \
2798  develop(bool, DebugDeoptimization, false,                                 \
2799          "Tracing various information while debugging deoptimization")     \
2800                                                                            \
2801  product(intx, SelfDestructTimer, 0,                                       \
2802          "Will cause VM to terminate after a given time (in minutes) "     \
2803          "(0 means off)")                                                  \
2804                                                                            \
2805  product(intx, MaxJavaStackTraceDepth, 1024,                               \
2806          "Max. no. of lines in the stack trace for Java exceptions "       \
2807          "(0 means all)")                                                  \
2808                                                                            \
2809  NOT_EMBEDDED(diagnostic(intx, GuaranteedSafepointInterval, 1000,          \
2810          "Guarantee a safepoint (at least) every so many milliseconds "    \
2811          "(0 means none)"))                                                \
2812                                                                            \
2813  EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0,               \
2814          "Guarantee a safepoint (at least) every so many milliseconds "    \
2815          "(0 means none)"))                                                \
2816                                                                            \
2817  product(intx, SafepointTimeoutDelay, 10000,                               \
2818          "Delay in milliseconds for option SafepointTimeout")              \
2819                                                                            \
2820  product(intx, NmethodSweepFraction, 16,                                   \
2821          "Number of invocations of sweeper to cover all nmethods")         \
2822                                                                            \
2823  product(intx, NmethodSweepCheckInterval, 5,                               \
2824          "Compilers wake up every n seconds to possibly sweep nmethods")   \
2825                                                                            \
2826  notproduct(bool, LogSweeper, false,                                       \
2827            "Keep a ring buffer of sweeper activity")                       \
2828                                                                            \
2829  notproduct(intx, SweeperLogEntries, 1024,                                 \
2830            "Number of records in the ring buffer of sweeper activity")     \
2831                                                                            \
2832  notproduct(intx, MemProfilingInterval, 500,                               \
2833          "Time between each invocation of the MemProfiler")                \
2834                                                                            \
2835  develop(intx, MallocCatchPtr, -1,                                         \
2836          "Hit breakpoint when mallocing/freeing this pointer")             \
2837                                                                            \
2838  notproduct(intx, AssertRepeat, 1,                                         \
2839          "number of times to evaluate expression in assert "               \
2840          "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \
2841                                                                            \
2842  notproduct(ccstrlist, SuppressErrorAt, "",                                \
2843          "List of assertions (file:line) to muzzle")                       \
2844                                                                            \
2845  notproduct(uintx, HandleAllocationLimit, 1024,                            \
2846          "Threshold for HandleMark allocation when +TraceHandleAllocation "\
2847          "is used")                                                        \
2848                                                                            \
2849  develop(uintx, TotalHandleAllocationLimit, 1024,                          \
2850          "Threshold for total handle allocation when "                     \
2851          "+TraceHandleAllocation is used")                                 \
2852                                                                            \
2853  develop(intx, StackPrintLimit, 100,                                       \
2854          "number of stack frames to print in VM-level stack dump")         \
2855                                                                            \
2856  notproduct(intx, MaxElementPrintSize, 256,                                \
2857          "maximum number of elements to print")                            \
2858                                                                            \
2859  notproduct(intx, MaxSubklassPrintSize, 4,                                 \
2860          "maximum number of subklasses to print when printing klass")      \
2861                                                                            \
2862  product(intx, MaxInlineLevel, 9,                                          \
2863          "maximum number of nested calls that are inlined")                \
2864                                                                            \
2865  product(intx, MaxRecursiveInlineLevel, 1,                                 \
2866          "maximum number of nested recursive calls that are inlined")      \
2867                                                                            \
2868  product_pd(intx, InlineSmallCode,                                         \
2869          "Only inline already compiled methods if their code size is "     \
2870          "less than this")                                                 \
2871                                                                            \
2872  product(intx, MaxInlineSize, 35,                                          \
2873          "maximum bytecode size of a method to be inlined")                \
2874                                                                            \
2875  product_pd(intx, FreqInlineSize,                                          \
2876          "maximum bytecode size of a frequent method to be inlined")       \
2877                                                                            \
2878  product(intx, MaxTrivialSize, 6,                                          \
2879          "maximum bytecode size of a trivial method to be inlined")        \
2880                                                                            \
2881  product(intx, MinInliningThreshold, 250,                                  \
2882          "min. invocation count a method needs to have to be inlined")     \
2883                                                                            \
2884  develop(intx, MethodHistogramCutoff, 100,                                 \
2885          "cutoff value for method invoc. histogram (+CountCalls)")         \
2886                                                                            \
2887  develop(intx, ProfilerNumberOfInterpretedMethods, 25,                     \
2888          "# of interpreted methods to show in profile")                    \
2889                                                                            \
2890  develop(intx, ProfilerNumberOfCompiledMethods, 25,                        \
2891          "# of compiled methods to show in profile")                       \
2892                                                                            \
2893  develop(intx, ProfilerNumberOfStubMethods, 25,                            \
2894          "# of stub methods to show in profile")                           \
2895                                                                            \
2896  develop(intx, ProfilerNumberOfRuntimeStubNodes, 25,                       \
2897          "# of runtime stub nodes to show in profile")                     \
2898                                                                            \
2899  product(intx, ProfileIntervalsTicks, 100,                                 \
2900          "# of ticks between printing of interval profile "                \
2901          "(+ProfileIntervals)")                                            \
2902                                                                            \
2903  notproduct(intx, ScavengeALotInterval,     1,                             \
2904          "Interval between which scavenge will occur with +ScavengeALot")  \
2905                                                                            \
2906  notproduct(intx, FullGCALotInterval,     1,                               \
2907          "Interval between which full gc will occur with +FullGCALot")     \
2908                                                                            \
2909  notproduct(intx, FullGCALotStart,     0,                                  \
2910          "For which invocation to start FullGCAlot")                       \
2911                                                                            \
2912  notproduct(intx, FullGCALotDummies,  32*K,                                \
2913          "Dummy object allocated with +FullGCALot, forcing all objects "   \
2914          "to move")                                                        \
2915                                                                            \
2916  develop(intx, DontYieldALotInterval,    10,                               \
2917          "Interval between which yields will be dropped (milliseconds)")   \
2918                                                                            \
2919  develop(intx, MinSleepInterval,     1,                                    \
2920          "Minimum sleep() interval (milliseconds) when "                   \
2921          "ConvertSleepToYield is off (used for SOLARIS)")                  \
2922                                                                            \
2923  develop(intx, ProfilerPCTickThreshold,    15,                             \
2924          "Number of ticks in a PC buckets to be a hotspot")                \
2925                                                                            \
2926  notproduct(intx, DeoptimizeALotInterval,     5,                           \
2927          "Number of exits until DeoptimizeALot kicks in")                  \
2928                                                                            \
2929  notproduct(intx, ZombieALotInterval,     5,                               \
2930          "Number of exits until ZombieALot kicks in")                      \
2931                                                                            \
2932  develop(bool, StressNonEntrant, false,                                    \
2933          "Mark nmethods non-entrant at registration")                      \
2934                                                                            \
2935  diagnostic(intx, MallocVerifyInterval,     0,                             \
2936          "if non-zero, verify C heap after every N calls to "              \
2937          "malloc/realloc/free")                                            \
2938                                                                            \
2939  diagnostic(intx, MallocVerifyStart,     0,                                \
2940          "if non-zero, start verifying C heap after Nth call to "          \
2941          "malloc/realloc/free")                                            \
2942                                                                            \
2943  diagnostic(uintx, MallocMaxTestWords,     0,                              \
2944          "if non-zero, max # of Words that malloc/realloc can allocate "   \
2945          "(for testing only)")                                             \
2946                                                                            \
2947  product(intx, TypeProfileWidth,     2,                                    \
2948          "number of receiver types to record in call/cast profile")        \
2949                                                                            \
2950  develop(intx, BciProfileWidth,      2,                                    \
2951          "number of return bci's to record in ret profile")                \
2952                                                                            \
2953  product(intx, PerMethodRecompilationCutoff, 400,                          \
2954          "After recompiling N times, stay in the interpreter (-1=>'Inf')") \
2955                                                                            \
2956  product(intx, PerBytecodeRecompilationCutoff, 200,                        \
2957          "Per-BCI limit on repeated recompilation (-1=>'Inf')")            \
2958                                                                            \
2959  product(intx, PerMethodTrapLimit,  100,                                   \
2960          "Limit on traps (of one kind) in a method (includes inlines)")    \
2961                                                                            \
2962  product(intx, PerBytecodeTrapLimit,  4,                                   \
2963          "Limit on traps (of one kind) at a particular BCI")               \
2964                                                                            \
2965  develop(intx, InlineFrequencyRatio,    20,                                \
2966          "Ratio of call site execution to caller method invocation")       \
2967                                                                            \
2968  develop_pd(intx, InlineFrequencyCount,                                    \
2969          "Count of call site execution necessary to trigger frequent "     \
2970          "inlining")                                                       \
2971                                                                            \
2972  develop(intx, InlineThrowCount,    50,                                    \
2973          "Force inlining of interpreted methods that throw this often")    \
2974                                                                            \
2975  develop(intx, InlineThrowMaxSize,   200,                                  \
2976          "Force inlining of throwing methods smaller than this")           \
2977                                                                            \
2978  develop(intx, ProfilerNodeSize,  1024,                                    \
2979          "Size in K to allocate for the Profile Nodes of each thread")     \
2980                                                                            \
2981  product_pd(intx, PreInflateSpin,                                          \
2982          "Number of times to spin wait before inflation")                  \
2983                                                                            \
2984  /* gc parameters */                                                       \
2985  product(uintx, InitialHeapSize, 0,                                        \
2986          "Initial heap size (in bytes); zero means use ergonomics")        \
2987                                                                            \
2988  product(uintx, MaxHeapSize, ScaleForWordSize(96*M),                       \
2989          "Maximum heap size (in bytes)")                                   \
2990                                                                            \
2991  product(uintx, OldSize, ScaleForWordSize(4*M),                            \
2992          "Initial tenured generation size (in bytes)")                     \
2993                                                                            \
2994  product(uintx, NewSize, ScaleForWordSize(1*M),                            \
2995          "Initial new generation size (in bytes)")                         \
2996                                                                            \
2997  product(uintx, MaxNewSize, max_uintx,                                     \
2998          "Maximum new generation size (in bytes), max_uintx means set "    \
2999          "ergonomically")                                                  \
3000                                                                            \
3001  product(uintx, PretenureSizeThreshold, 0,                                 \
3002          "Maximum size in bytes of objects allocated in DefNew "           \
3003          "generation; zero means no maximum")                              \
3004                                                                            \
3005  product(uintx, TLABSize, 0,                                               \
3006          "Starting TLAB size (in bytes); zero means set ergonomically")    \
3007                                                                            \
3008  product(uintx, MinTLABSize, 2*K,                                          \
3009          "Minimum allowed TLAB size (in bytes)")                           \
3010                                                                            \
3011  product(uintx, TLABAllocationWeight, 35,                                  \
3012          "Allocation averaging weight")                                    \
3013                                                                            \
3014  product(uintx, TLABWasteTargetPercent, 1,                                 \
3015          "Percentage of Eden that can be wasted")                          \
3016                                                                            \
3017  product(uintx, TLABRefillWasteFraction,    64,                            \
3018          "Max TLAB waste at a refill (internal fragmentation)")            \
3019                                                                            \
3020  product(uintx, TLABWasteIncrement,    4,                                  \
3021          "Increment allowed waste at slow allocation")                     \
3022                                                                            \
3023  product(uintx, SurvivorRatio, 8,                                          \
3024          "Ratio of eden/survivor space size")                              \
3025                                                                            \
3026  product(uintx, NewRatio, 2,                                               \
3027          "Ratio of new/old generation sizes")                              \
3028                                                                            \
3029  product_pd(uintx, NewSizeThreadIncrease,                                  \
3030          "Additional size added to desired new generation size per "       \
3031          "non-daemon thread (in bytes)")                                   \
3032                                                                            \
3033  product_pd(uintx, MetaspaceSize,                                          \
3034          "Initial size of Metaspaces (in bytes)")                          \
3035                                                                            \
3036  product(uintx, MaxMetaspaceSize, max_uintx,                               \
3037          "Maximum size of Metaspaces (in bytes)")                          \
3038                                                                            \
3039  product(uintx, ClassMetaspaceSize, 1*G,                                   \
3040          "Maximum size of InstanceKlass area in Metaspace used for "       \
3041          "UseCompressedKlassPointers")                                     \
3042                                                                            \
3043  product(uintx, MinHeapFreeRatio,    40,                                   \
3044          "Min percentage of heap free after GC to avoid expansion")        \
3045                                                                            \
3046  product(uintx, MaxHeapFreeRatio,    70,                                   \
3047          "Max percentage of heap free after GC to avoid shrinking")        \
3048                                                                            \
3049  product(intx, SoftRefLRUPolicyMSPerMB, 1000,                              \
3050          "Number of milliseconds per MB of free space in the heap")        \
3051                                                                            \
3052  product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K),                \
3053          "Min change in heap space due to GC (in bytes)")                  \
3054                                                                            \
3055  product(uintx, MinMetaspaceExpansion, ScaleForWordSize(256*K),            \
3056          "Min expansion of Metaspace (in bytes)")                          \
3057                                                                            \
3058  product(uintx, MinMetaspaceFreeRatio,    40,                              \
3059          "Min percentage of Metaspace free after GC to avoid expansion")   \
3060                                                                            \
3061  product(uintx, MaxMetaspaceFreeRatio,    70,                              \
3062          "Max percentage of Metaspace free after GC to avoid shrinking")   \
3063                                                                            \
3064  product(uintx, MaxMetaspaceExpansion, ScaleForWordSize(4*M),              \
3065          "Max expansion of Metaspace without full GC (in bytes)")          \
3066                                                                            \
3067  product(uintx, QueuedAllocationWarningCount, 0,                           \
3068          "Number of times an allocation that queues behind a GC "          \
3069          "will retry before printing a warning")                           \
3070                                                                            \
3071  diagnostic(uintx, VerifyGCStartAt,   0,                                   \
3072          "GC invoke count where +VerifyBefore/AfterGC kicks in")           \
3073                                                                            \
3074  diagnostic(intx, VerifyGCLevel,     0,                                    \
3075          "Generation level at which to start +VerifyBefore/AfterGC")       \
3076                                                                            \
3077  product(uintx, MaxTenuringThreshold,    15,                               \
3078          "Maximum value for tenuring threshold")                           \
3079                                                                            \
3080  product(uintx, InitialTenuringThreshold,    7,                            \
3081          "Initial value for tenuring threshold")                           \
3082                                                                            \
3083  product(uintx, TargetSurvivorRatio,    50,                                \
3084          "Desired percentage of survivor space used after scavenge")       \
3085                                                                            \
3086  product(uintx, MarkSweepDeadRatio,     5,                                 \
3087          "Percentage (0-100) of the old gen allowed as dead wood."         \
3088          "Serial mark sweep treats this as both the min and max value."    \
3089          "CMS uses this value only if it falls back to mark sweep."        \
3090          "Par compact uses a variable scale based on the density of the"   \
3091          "generation and treats this as the max value when the heap is"    \
3092          "either completely full or completely empty.  Par compact also"   \
3093          "has a smaller default value; see arguments.cpp.")                \
3094                                                                            \
3095  product(uintx, MarkSweepAlwaysCompactCount,     4,                        \
3096          "How often should we fully compact the heap (ignoring the dead "  \
3097          "space parameters)")                                              \
3098                                                                            \
3099  product(intx, PrintCMSStatistics, 0,                                      \
3100          "Statistics for CMS")                                             \
3101                                                                            \
3102  product(bool, PrintCMSInitiationStatistics, false,                        \
3103          "Statistics for initiating a CMS collection")                     \
3104                                                                            \
3105  product(intx, PrintFLSStatistics, 0,                                      \
3106          "Statistics for CMS' FreeListSpace")                              \
3107                                                                            \
3108  product(intx, PrintFLSCensus, 0,                                          \
3109          "Census for CMS' FreeListSpace")                                  \
3110                                                                            \
3111  develop(uintx, GCExpandToAllocateDelayMillis, 0,                          \
3112          "Delay in ms between expansion and allocation")                   \
3113                                                                            \
3114  develop(uintx, GCWorkerDelayMillis, 0,                                    \
3115          "Delay in ms in scheduling GC workers")                           \
3116                                                                            \
3117  product(intx, DeferThrSuspendLoopCount,     4000,                         \
3118          "(Unstable) Number of times to iterate in safepoint loop "        \
3119          " before blocking VM threads ")                                   \
3120                                                                            \
3121  product(intx, DeferPollingPageLoopCount,     -1,                          \
3122          "(Unsafe,Unstable) Number of iterations in safepoint loop "       \
3123          "before changing safepoint polling page to RO ")                  \
3124                                                                            \
3125  product(intx, SafepointSpinBeforeYield, 2000,  "(Unstable)")              \
3126                                                                            \
3127  product(bool, PSChunkLargeArrays, true,                                   \
3128          "true: process large arrays in chunks")                           \
3129                                                                            \
3130  product(uintx, GCDrainStackTargetSize, 64,                                \
3131          "how many entries we'll try to leave on the stack during "        \
3132          "parallel GC")                                                    \
3133                                                                            \
3134  /* stack parameters */                                                    \
3135  product_pd(intx, StackYellowPages,                                        \
3136          "Number of yellow zone (recoverable overflows) pages")            \
3137                                                                            \
3138  product_pd(intx, StackRedPages,                                           \
3139          "Number of red zone (unrecoverable overflows) pages")             \
3140                                                                            \
3141  product_pd(intx, StackShadowPages,                                        \
3142          "Number of shadow zone (for overflow checking) pages"             \
3143          " this should exceed the depth of the VM and native call stack")  \
3144                                                                            \
3145  product_pd(intx, ThreadStackSize,                                         \
3146          "Thread Stack Size (in Kbytes)")                                  \
3147                                                                            \
3148  product_pd(intx, VMThreadStackSize,                                       \
3149          "Non-Java Thread Stack Size (in Kbytes)")                         \
3150                                                                            \
3151  product_pd(intx, CompilerThreadStackSize,                                 \
3152          "Compiler Thread Stack Size (in Kbytes)")                         \
3153                                                                            \
3154  develop_pd(uintx, JVMInvokeMethodSlack,                                   \
3155          "Stack space (bytes) required for JVM_InvokeMethod to complete")  \
3156                                                                            \
3157  product(uintx, ThreadSafetyMargin, 50*M,                                  \
3158          "Thread safety margin is used on fixed-stack LinuxThreads (on "   \
3159          "Linux/x86 only) to prevent heap-stack collision. Set to 0 to "   \
3160          "disable this feature")                                           \
3161                                                                            \
3162  /* code cache parameters */                                               \
3163  develop(uintx, CodeCacheSegmentSize, 64,                                  \
3164          "Code cache segment size (in bytes) - smallest unit of "          \
3165          "allocation")                                                     \
3166                                                                            \
3167  develop_pd(intx, CodeEntryAlignment,                                      \
3168          "Code entry alignment for generated code (in bytes)")             \
3169                                                                            \
3170  product_pd(intx, OptoLoopAlignment,                                       \
3171          "Align inner loops to zero relative to this modulus")             \
3172                                                                            \
3173  product_pd(uintx, InitialCodeCacheSize,                                   \
3174          "Initial code cache size (in bytes)")                             \
3175                                                                            \
3176  develop_pd(uintx, CodeCacheMinimumUseSpace,                               \
3177          "Minimum code cache size (in bytes) required to start VM.")       \
3178                                                                            \
3179  product_pd(uintx, ReservedCodeCacheSize,                                  \
3180          "Reserved code cache size (in bytes) - maximum code cache size")  \
3181                                                                            \
3182  product(uintx, CodeCacheMinimumFreeSpace, 500*K,                          \
3183          "When less than X space left, we stop compiling.")                \
3184                                                                            \
3185  product_pd(uintx, CodeCacheExpansionSize,                                 \
3186          "Code cache expansion size (in bytes)")                           \
3187                                                                            \
3188  develop_pd(uintx, CodeCacheMinBlockLength,                                \
3189          "Minimum number of segments in a code cache block.")              \
3190                                                                            \
3191  notproduct(bool, ExitOnFullCodeCache, false,                              \
3192          "Exit the VM if we fill the code cache.")                         \
3193                                                                            \
3194  product(bool, UseCodeCacheFlushing, true,                                 \
3195          "Attempt to clean the code cache before shutting off compiler")   \
3196                                                                            \
3197  product(intx,  MinCodeCacheFlushingInterval, 30,                          \
3198          "Min number of seconds between code cache cleaning sessions")     \
3199                                                                            \
3200  product(uintx,  CodeCacheFlushingMinimumFreeSpace, 1500*K,                \
3201          "When less than X space left, start code cache cleaning")         \
3202                                                                            \
3203  product(uintx, CodeCacheFlushingFraction, 2,                              \
3204          "Fraction of the code cache that is flushed when full")           \
3205                                                                            \
3206  /* interpreter debugging */                                               \
3207  develop(intx, BinarySwitchThreshold, 5,                                   \
3208          "Minimal number of lookupswitch entries for rewriting to binary " \
3209          "switch")                                                         \
3210                                                                            \
3211  develop(intx, StopInterpreterAt, 0,                                       \
3212          "Stops interpreter execution at specified bytecode number")       \
3213                                                                            \
3214  develop(intx, TraceBytecodesAt, 0,                                        \
3215          "Traces bytecodes starting with specified bytecode number")       \
3216                                                                            \
3217  /* compiler interface */                                                  \
3218  develop(intx, CIStart, 0,                                                 \
3219          "the id of the first compilation to permit")                      \
3220                                                                            \
3221  develop(intx, CIStop,    -1,                                              \
3222          "the id of the last compilation to permit")                       \
3223                                                                            \
3224  develop(intx, CIStartOSR,     0,                                          \
3225          "the id of the first osr compilation to permit "                  \
3226          "(CICountOSR must be on)")                                        \
3227                                                                            \
3228  develop(intx, CIStopOSR,    -1,                                           \
3229          "the id of the last osr compilation to permit "                   \
3230          "(CICountOSR must be on)")                                        \
3231                                                                            \
3232  develop(intx, CIBreakAtOSR,    -1,                                        \
3233          "id of osr compilation to break at")                              \
3234                                                                            \
3235  develop(intx, CIBreakAt,    -1,                                           \
3236          "id of compilation to break at")                                  \
3237                                                                            \
3238  product(ccstrlist, CompileOnly, "",                                       \
3239          "List of methods (pkg/class.name) to restrict compilation to")    \
3240                                                                            \
3241  product(ccstr, CompileCommandFile, NULL,                                  \
3242          "Read compiler commands from this file [.hotspot_compiler]")      \
3243                                                                            \
3244  product(ccstrlist, CompileCommand, "",                                    \
3245          "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
3246                                                                            \
3247  develop(bool, ReplayCompiles, false,                                      \
3248          "Enable replay of compilations from ReplayDataFile")              \
3249                                                                            \
3250  product(ccstr, ReplayDataFile, NULL,                                      \
3251          "File containing compilation replay information"                  \
3252          "[default: ./replay_pid%p.log] (%p replaced with pid)")           \
3253                                                                            \
3254  develop(intx, ReplaySuppressInitializers, 2,                              \
3255          "Controls handling of class initialization during replay"         \
3256          "0 - don't do anything special"                                   \
3257          "1 - treat all class initializers as empty"                       \
3258          "2 - treat class initializers for application classes as empty"   \
3259          "3 - allow all class initializers to run during bootstrap but"    \
3260          "    pretend they are empty after starting replay")               \
3261                                                                            \
3262  develop(bool, ReplayIgnoreInitErrors, false,                              \
3263          "Ignore exceptions thrown during initialization for replay")      \
3264                                                                            \
3265  product(bool, DumpReplayDataOnError, true,                                \
3266          "Record replay data for crashing compiler threads")               \
3267                                                                            \
3268  product(bool, CICompilerCountPerCPU, false,                               \
3269          "1 compiler thread for log(N CPUs)")                              \
3270                                                                            \
3271  develop(intx, CIFireOOMAt,    -1,                                         \
3272          "Fire OutOfMemoryErrors throughout CI for testing the compiler "  \
3273          "(non-negative value throws OOM after this many CI accesses "     \
3274          "in each compile)")                                               \
3275  notproduct(intx, CICrashAt, -1,                                           \
3276          "id of compilation to trigger assert in compiler thread for "     \
3277          "the purpose of testing, e.g. generation of replay data")         \
3278  notproduct(bool, CIObjectFactoryVerify, false,                            \
3279          "enable potentially expensive verification in ciObjectFactory")   \
3280                                                                            \
3281  /* Priorities */                                                          \
3282  product_pd(bool, UseThreadPriorities,  "Use native thread priorities")    \
3283                                                                            \
3284  product(intx, ThreadPriorityPolicy, 0,                                    \
3285          "0 : Normal.                                                     "\
3286          "    VM chooses priorities that are appropriate for normal       "\
3287          "    applications. On Solaris NORM_PRIORITY and above are mapped "\
3288          "    to normal native priority. Java priorities below NORM_PRIORITY"\
3289          "    map to lower native priority values. On Windows applications"\
3290          "    are allowed to use higher native priorities. However, with  "\
3291          "    ThreadPriorityPolicy=0, VM will not use the highest possible"\
3292          "    native priority, THREAD_PRIORITY_TIME_CRITICAL, as it may   "\
3293          "    interfere with system threads. On Linux thread priorities   "\
3294          "    are ignored because the OS does not support static priority "\
3295          "    in SCHED_OTHER scheduling class which is the only choice for"\
3296          "    non-root, non-realtime applications.                        "\
3297          "1 : Aggressive.                                                 "\
3298          "    Java thread priorities map over to the entire range of      "\
3299          "    native thread priorities. Higher Java thread priorities map "\
3300          "    to higher native thread priorities. This policy should be   "\
3301          "    used with care, as sometimes it can cause performance       "\
3302          "    degradation in the application and/or the entire system. On "\
3303          "    Linux this policy requires root privilege.")                 \
3304                                                                            \
3305  product(bool, ThreadPriorityVerbose, false,                               \
3306          "Print priority changes")                                         \
3307                                                                            \
3308  product(intx, DefaultThreadPriority, -1,                                  \
3309          "The native priority at which threads run if not elsewhere "      \
3310          "specified (-1 means no change)")                                 \
3311                                                                            \
3312  product(intx, CompilerThreadPriority, -1,                                 \
3313          "The native priority at which compiler threads should run "       \
3314          "(-1 means no change)")                                           \
3315                                                                            \
3316  product(intx, VMThreadPriority, -1,                                       \
3317          "The native priority at which the VM thread should run "          \
3318          "(-1 means no change)")                                           \
3319                                                                            \
3320  product(bool, CompilerThreadHintNoPreempt, true,                          \
3321          "(Solaris only) Give compiler threads an extra quanta")           \
3322                                                                            \
3323  product(bool, VMThreadHintNoPreempt, false,                               \
3324          "(Solaris only) Give VM thread an extra quanta")                  \
3325                                                                            \
3326  product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3327  product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3328  product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3329  product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3330  product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3331  product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3332  product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3333  product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3334  product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3335  product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \
3336                                                                            \
3337  experimental(bool, UseCriticalJavaThreadPriority, false,                  \
3338          "Java thread priority 10 maps to critical scheduling priority")   \
3339                                                                            \
3340  experimental(bool, UseCriticalCompilerThreadPriority, false,              \
3341          "Compiler thread(s) run at critical scheduling priority")         \
3342                                                                            \
3343  experimental(bool, UseCriticalCMSThreadPriority, false,                   \
3344          "ConcurrentMarkSweep thread runs at critical scheduling priority")\
3345                                                                            \
3346  /* compiler debugging */                                                  \
3347  notproduct(intx, CompileTheWorldStartAt,     1,                           \
3348          "First class to consider when using +CompileTheWorld")            \
3349                                                                            \
3350  notproduct(intx, CompileTheWorldStopAt, max_jint,                         \
3351          "Last class to consider when using +CompileTheWorld")             \
3352                                                                            \
3353  develop(intx, NewCodeParameter,      0,                                   \
3354          "Testing Only: Create a dedicated integer parameter before "      \
3355          "putback")                                                        \
3356                                                                            \
3357  /* new oopmap storage allocation */                                       \
3358  develop(intx, MinOopMapAllocation,     8,                                 \
3359          "Minimum number of OopMap entries in an OopMapSet")               \
3360                                                                            \
3361  /* Background Compilation */                                              \
3362  develop(intx, LongCompileThreshold,     50,                               \
3363          "Used with +TraceLongCompiles")                                   \
3364                                                                            \
3365  product(intx, StarvationMonitorInterval,    200,                          \
3366          "Pause between each check in ms")                                 \
3367                                                                            \
3368  /* recompilation */                                                       \
3369  product_pd(intx, CompileThreshold,                                        \
3370          "number of interpreted method invocations before (re-)compiling") \
3371                                                                            \
3372  product_pd(intx, BackEdgeThreshold,                                       \
3373          "Interpreter Back edge threshold at which an OSR compilation is invoked")\
3374                                                                            \
3375  product(intx, Tier0InvokeNotifyFreqLog, 7,                                \
3376          "Interpreter (tier 0) invocation notification frequency.")        \
3377                                                                            \
3378  product(intx, Tier2InvokeNotifyFreqLog, 11,                               \
3379          "C1 without MDO (tier 2) invocation notification frequency.")     \
3380                                                                            \
3381  product(intx, Tier3InvokeNotifyFreqLog, 10,                               \
3382          "C1 with MDO profiling (tier 3) invocation notification "         \
3383          "frequency.")                                                     \
3384                                                                            \
3385  product(intx, Tier23InlineeNotifyFreqLog, 20,                             \
3386          "Inlinee invocation (tiers 2 and 3) notification frequency")      \
3387                                                                            \
3388  product(intx, Tier0BackedgeNotifyFreqLog, 10,                             \
3389          "Interpreter (tier 0) invocation notification frequency.")        \
3390                                                                            \
3391  product(intx, Tier2BackedgeNotifyFreqLog, 14,                             \
3392          "C1 without MDO (tier 2) invocation notification frequency.")     \
3393                                                                            \
3394  product(intx, Tier3BackedgeNotifyFreqLog, 13,                             \
3395          "C1 with MDO profiling (tier 3) invocation notification "         \
3396          "frequency.")                                                     \
3397                                                                            \
3398  product(intx, Tier2CompileThreshold, 0,                                   \
3399          "threshold at which tier 2 compilation is invoked")               \
3400                                                                            \
3401  product(intx, Tier2BackEdgeThreshold, 0,                                  \
3402          "Back edge threshold at which tier 2 compilation is invoked")     \
3403                                                                            \
3404  product(intx, Tier3InvocationThreshold, 200,                              \
3405          "Compile if number of method invocations crosses this "           \
3406          "threshold")                                                      \
3407                                                                            \
3408  product(intx, Tier3MinInvocationThreshold, 100,                           \
3409          "Minimum invocation to compile at tier 3")                        \
3410                                                                            \
3411  product(intx, Tier3CompileThreshold, 2000,                                \
3412          "Threshold at which tier 3 compilation is invoked (invocation "   \
3413          "minimum must be satisfied.")                                     \
3414                                                                            \
3415  product(intx, Tier3BackEdgeThreshold,  60000,                             \
3416          "Back edge threshold at which tier 3 OSR compilation is invoked") \
3417                                                                            \
3418  product(intx, Tier4InvocationThreshold, 5000,                             \
3419          "Compile if number of method invocations crosses this "           \
3420          "threshold")                                                      \
3421                                                                            \
3422  product(intx, Tier4MinInvocationThreshold, 600,                           \
3423          "Minimum invocation to compile at tier 4")                        \
3424                                                                            \
3425  product(intx, Tier4CompileThreshold, 15000,                               \
3426          "Threshold at which tier 4 compilation is invoked (invocation "   \
3427          "minimum must be satisfied.")                                     \
3428                                                                            \
3429  product(intx, Tier4BackEdgeThreshold, 40000,                              \
3430          "Back edge threshold at which tier 4 OSR compilation is invoked") \
3431                                                                            \
3432  product(intx, Tier3DelayOn, 5,                                            \
3433          "If C2 queue size grows over this amount per compiler thread "    \
3434          "stop compiling at tier 3 and start compiling at tier 2")         \
3435                                                                            \
3436  product(intx, Tier3DelayOff, 2,                                           \
3437          "If C2 queue size is less than this amount per compiler thread "  \
3438          "allow methods compiled at tier 2 transition to tier 3")          \
3439                                                                            \
3440  product(intx, Tier3LoadFeedback, 5,                                       \
3441          "Tier 3 thresholds will increase twofold when C1 queue size "     \
3442          "reaches this amount per compiler thread")                        \
3443                                                                            \
3444  product(intx, Tier4LoadFeedback, 3,                                       \
3445          "Tier 4 thresholds will increase twofold when C2 queue size "     \
3446          "reaches this amount per compiler thread")                        \
3447                                                                            \
3448  product(intx, TieredCompileTaskTimeout, 50,                               \
3449          "Kill compile task if method was not used within "                \
3450          "given timeout in milliseconds")                                  \
3451                                                                            \
3452  product(intx, TieredStopAtLevel, 4,                                       \
3453          "Stop at given compilation level")                                \
3454                                                                            \
3455  product(intx, Tier0ProfilingStartPercentage, 200,                         \
3456          "Start profiling in interpreter if the counters exceed tier 3"    \
3457          "thresholds by the specified percentage")                         \
3458                                                                            \
3459  product(uintx, IncreaseFirstTierCompileThresholdAt, 50,                   \
3460          "Increase the compile threshold for C1 compilation if the code"   \
3461          "cache is filled by the specified percentage.")                   \
3462                                                                            \
3463  product(intx, TieredRateUpdateMinTime, 1,                                 \
3464          "Minimum rate sampling interval (in milliseconds)")               \
3465                                                                            \
3466  product(intx, TieredRateUpdateMaxTime, 25,                                \
3467          "Maximum rate sampling interval (in milliseconds)")               \
3468                                                                            \
3469  product_pd(bool, TieredCompilation,                                       \
3470          "Enable tiered compilation")                                      \
3471                                                                            \
3472  product(bool, PrintTieredEvents, false,                                   \
3473          "Print tiered events notifications")                              \
3474                                                                            \
3475  product_pd(intx, OnStackReplacePercentage,                                \
3476          "NON_TIERED number of method invocations/branches (expressed as %"\
3477          "of CompileThreshold) before (re-)compiling OSR code")            \
3478                                                                            \
3479  product(intx, InterpreterProfilePercentage, 33,                           \
3480          "NON_TIERED number of method invocations/branches (expressed as %"\
3481          "of CompileThreshold) before profiling in the interpreter")       \
3482                                                                            \
3483  develop(intx, MaxRecompilationSearchLength,    10,                        \
3484          "max. # frames to inspect searching for recompilee")              \
3485                                                                            \
3486  develop(intx, MaxInterpretedSearchLength,     3,                          \
3487          "max. # interp. frames to skip when searching for recompilee")    \
3488                                                                            \
3489  develop(intx, DesiredMethodLimit,  8000,                                  \
3490          "desired max. method size (in bytecodes) after inlining")         \
3491                                                                            \
3492  develop(intx, HugeMethodLimit,  8000,                                     \
3493          "don't compile methods larger than this if "                      \
3494          "+DontCompileHugeMethods")                                        \
3495                                                                            \
3496  /* New JDK 1.4 reflection implementation */                               \
3497                                                                            \
3498  develop(bool, UseNewReflection, true,                                     \
3499          "Temporary flag for transition to reflection based on dynamic "   \
3500          "bytecode generation in 1.4; can no longer be turned off in 1.4 " \
3501          "JDK, and is unneeded in 1.3 JDK, but marks most places VM "      \
3502          "changes were needed")                                            \
3503                                                                            \
3504  develop(bool, VerifyReflectionBytecodes, false,                           \
3505          "Force verification of 1.4 reflection bytecodes. Does not work "  \
3506          "in situations like that described in 4486457 or for "            \
3507          "constructors generated for serialization, so can not be enabled "\
3508          "in product.")                                                    \
3509                                                                            \
3510  product(bool, ReflectionWrapResolutionErrors, true,                       \
3511          "Temporary flag for transition to AbstractMethodError wrapped "   \
3512          "in InvocationTargetException. See 6531596")                      \
3513                                                                            \
3514                                                                            \
3515  develop(intx, FastSuperclassLimit, 8,                                     \
3516          "Depth of hardwired instanceof accelerator array")                \
3517                                                                            \
3518  /* Properties for Java libraries  */                                      \
3519                                                                            \
3520  product(uintx, MaxDirectMemorySize, 0,                                    \
3521          "Maximum total size of NIO direct-buffer allocations")            \
3522                                                                            \
3523  /* temporary developer defined flags  */                                  \
3524                                                                            \
3525  diagnostic(bool, UseNewCode, false,                                       \
3526          "Testing Only: Use the new version while testing")                \
3527                                                                            \
3528  diagnostic(bool, UseNewCode2, false,                                      \
3529          "Testing Only: Use the new version while testing")                \
3530                                                                            \
3531  diagnostic(bool, UseNewCode3, false,                                      \
3532          "Testing Only: Use the new version while testing")                \
3533                                                                            \
3534  /* flags for performance data collection */                               \
3535                                                                            \
3536  product(bool, UsePerfData, falseInEmbedded,                               \
3537          "Flag to disable jvmstat instrumentation for performance testing" \
3538          "and problem isolation purposes.")                                \
3539                                                                            \
3540  product(bool, PerfDataSaveToFile, false,                                  \
3541          "Save PerfData memory to hsperfdata_<pid> file on exit")          \
3542                                                                            \
3543  product(ccstr, PerfDataSaveFile, NULL,                                    \
3544          "Save PerfData memory to the specified absolute pathname,"        \
3545           "%p in the file name if present will be replaced by pid")        \
3546                                                                            \
3547  product(intx, PerfDataSamplingInterval, 50 /*ms*/,                        \
3548          "Data sampling interval in milliseconds")                         \
3549                                                                            \
3550  develop(bool, PerfTraceDataCreation, false,                               \
3551          "Trace creation of Performance Data Entries")                     \
3552                                                                            \
3553  develop(bool, PerfTraceMemOps, false,                                     \
3554          "Trace PerfMemory create/attach/detach calls")                    \
3555                                                                            \
3556  product(bool, PerfDisableSharedMem, false,                                \
3557          "Store performance data in standard memory")                      \
3558                                                                            \
3559  product(intx, PerfDataMemorySize, 32*K,                                   \
3560          "Size of performance data memory region. Will be rounded "        \
3561          "up to a multiple of the native os page size.")                   \
3562                                                                            \
3563  product(intx, PerfMaxStringConstLength, 1024,                             \
3564          "Maximum PerfStringConstant string length before truncation")     \
3565                                                                            \
3566  product(bool, PerfAllowAtExitRegistration, false,                         \
3567          "Allow registration of atexit() methods")                         \
3568                                                                            \
3569  product(bool, PerfBypassFileSystemCheck, false,                           \
3570          "Bypass Win32 file system criteria checks (Windows Only)")        \
3571                                                                            \
3572  product(intx, UnguardOnExecutionViolation, 0,                             \
3573          "Unguard page and retry on no-execute fault (Win32 only)"         \
3574          "0=off, 1=conservative, 2=aggressive")                            \
3575                                                                            \
3576  /* Serviceability Support */                                              \
3577                                                                            \
3578  product(bool, ManagementServer, false,                                    \
3579          "Create JMX Management Server")                                   \
3580                                                                            \
3581  product(bool, DisableAttachMechanism, false,                              \
3582         "Disable mechanism that allows tools to attach to this VM")        \
3583                                                                            \
3584  product(bool, StartAttachListener, false,                                 \
3585          "Always start Attach Listener at VM startup")                     \
3586                                                                            \
3587  manageable(bool, PrintConcurrentLocks, false,                             \
3588          "Print java.util.concurrent locks in thread dump")                \
3589                                                                            \
3590  product(bool, TransmitErrorReport, false,                                 \
3591          "Enable error report transmission on erroneous termination")      \
3592                                                                            \
3593  product(ccstr, ErrorReportServer, NULL,                                   \
3594          "Override built-in error report server address")                  \
3595                                                                            \
3596  /* Shared spaces */                                                       \
3597                                                                            \
3598  product(bool, UseSharedSpaces, true,                                      \
3599          "Use shared spaces for metadata")                                 \
3600                                                                            \
3601  product(bool, RequireSharedSpaces, false,                                 \
3602          "Require shared spaces for metadata")                             \
3603                                                                            \
3604  product(bool, DumpSharedSpaces, false,                                    \
3605           "Special mode: JVM reads a class list, loads classes, builds "   \
3606            "shared spaces, and dumps the shared spaces to a file to be "   \
3607            "used in future JVM runs.")                                     \
3608                                                                            \
3609  product(bool, PrintSharedSpaces, false,                                   \
3610          "Print usage of shared spaces")                                   \
3611                                                                            \
3612  product(uintx, SharedReadWriteSize,  NOT_LP64(12*M) LP64_ONLY(16*M),      \
3613          "Size of read-write space for metadata (in bytes)")               \
3614                                                                            \
3615  product(uintx, SharedReadOnlySize,  NOT_LP64(12*M) LP64_ONLY(16*M),       \
3616          "Size of read-only space for metadata (in bytes)")                \
3617                                                                            \
3618  product(uintx, SharedMiscDataSize,    NOT_LP64(2*M) LP64_ONLY(4*M),       \
3619          "Size of the shared miscellaneous data area (in bytes)")          \
3620                                                                            \
3621  product(uintx, SharedMiscCodeSize,    120*K,                              \
3622          "Size of the shared miscellaneous code area (in bytes)")          \
3623                                                                            \
3624  product(uintx, SharedBaseAddress, LP64_ONLY(32*G)                         \
3625          NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)),                           \
3626          "Address to allocate shared memory region for class data")        \
3627                                                                            \
3628  diagnostic(bool, EnableInvokeDynamic, true,                               \
3629          "support JSR 292 (method handles, invokedynamic, "                \
3630          "anonymous classes")                                              \
3631                                                                            \
3632  diagnostic(bool, PrintMethodHandleStubs, false,                           \
3633          "Print generated stub code for method handles")                   \
3634                                                                            \
3635  develop(bool, TraceMethodHandles, false,                                  \
3636          "trace internal method handle operations")                        \
3637                                                                            \
3638  diagnostic(bool, VerifyMethodHandles, trueInDebug,                        \
3639          "perform extra checks when constructing method handles")          \
3640                                                                            \
3641  diagnostic(bool, ShowHiddenFrames, false,                                 \
3642          "show method handle implementation frames (usually hidden)")      \
3643                                                                            \
3644  experimental(bool, TrustFinalNonStaticFields, false,                      \
3645          "trust final non-static declarations for constant folding")       \
3646                                                                            \
3647  develop(bool, TraceInvokeDynamic, false,                                  \
3648          "trace internal invoke dynamic operations")                       \
3649                                                                            \
3650  diagnostic(bool, PauseAtStartup,      false,                              \
3651          "Causes the VM to pause at startup time and wait for the pause "  \
3652          "file to be removed (default: ./vm.paused.<pid>)")                \
3653                                                                            \
3654  diagnostic(ccstr, PauseAtStartupFile, NULL,                               \
3655          "The file to create and for whose removal to await when pausing " \
3656          "at startup. (default: ./vm.paused.<pid>)")                       \
3657                                                                            \
3658  diagnostic(bool, PauseAtExit, false,                                      \
3659          "Pause and wait for keypress on exit if a debugger is attached")  \
3660                                                                            \
3661  product(bool, ExtendedDTraceProbes,    false,                             \
3662          "Enable performance-impacting dtrace probes")                     \
3663                                                                            \
3664  product(bool, DTraceMethodProbes, false,                                  \
3665          "Enable dtrace probes for method-entry and method-exit")          \
3666                                                                            \
3667  product(bool, DTraceAllocProbes, false,                                   \
3668          "Enable dtrace probes for object allocation")                     \
3669                                                                            \
3670  product(bool, DTraceMonitorProbes, false,                                 \
3671          "Enable dtrace probes for monitor events")                        \
3672                                                                            \
3673  product(bool, RelaxAccessControlCheck, false,                             \
3674          "Relax the access control checks in the verifier")                \
3675                                                                            \
3676  diagnostic(bool, PrintDTraceDOF, false,                                   \
3677             "Print the DTrace DOF passed to the system for JSDT probes")   \
3678                                                                            \
3679  product(uintx, StringTableSize, defaultStringTableSize,                   \
3680          "Number of buckets in the interned String table")                 \
3681                                                                            \
3682  develop(bool, TraceDefaultMethods, false,                                 \
3683          "Trace the default method processing steps")                      \
3684                                                                            \
3685  develop(bool, ParseAllGenericSignatures, false,                           \
3686          "Parse all generic signatures while classloading")                \
3687                                                                            \
3688  develop(bool, VerifyGenericSignatures, false,                             \
3689          "Abort VM on erroneous or inconsistent generic signatures")       \
3690                                                                            \
3691  product(bool, ParseGenericDefaults, false,                                \
3692          "Parse generic signatures for default method handling")           \
3693                                                                            \
3694  product(bool, UseVMInterruptibleIO, false,                                \
3695          "(Unstable, Solaris-specific) Thread interrupt before or with "   \
3696          "EINTR for I/O operations results in OS_INTRPT. The default value"\
3697          " of this flag is true for JDK 6 and earlier")                    \
3698                                                                            \
3699  diagnostic(bool, WhiteBoxAPI, false,                                      \
3700          "Enable internal testing APIs")                                   \
3701                                                                            \
3702  product(bool, PrintGCCause, true,                                         \
3703          "Include GC cause in GC logging")                                 \
3704                                                                            \
3705  product(bool , AllowNonVirtualCalls, false,                               \
3706          "Obey the ACC_SUPER flag and allow invokenonvirtual calls")       \
3707                                                                            \
3708  diagnostic(ccstr, SharedArchiveFile, NULL,                                \
3709          "Override the default location of the CDS archive file")          \
3710                                                                            \
3711  experimental(uintx, ArrayAllocatorMallocLimit,                            \
3712          SOLARIS_ONLY(64*K) NOT_SOLARIS(max_uintx),                        \
3713          "Allocation less than this value will be allocated "              \
3714          "using malloc. Larger allocations will use mmap.")                \
3715                                                                            \
3716  product(bool, EnableTracing, false,                                       \
3717          "Enable event-based tracing")                                     \
3718  product(bool, UseLockedTracing, false,                                    \
3719          "Use locked-tracing when doing event-based tracing")
3720
3721
3722/*
3723 *  Macros for factoring of globals
3724 */
3725
3726// Interface macros
3727#define DECLARE_PRODUCT_FLAG(type, name, value, doc)    extern "C" type name;
3728#define DECLARE_PD_PRODUCT_FLAG(type, name, doc)        extern "C" type name;
3729#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name;
3730#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
3731#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name;
3732#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name;
3733#ifdef PRODUCT
3734#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)  const type name = value;
3735#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)      const type name = pd_##name;
3736#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)
3737#else
3738#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)  extern "C" type name;
3739#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)      extern "C" type name;
3740#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)  extern "C" type name;
3741#endif
3742// Special LP64 flags, product only needed for now.
3743#ifdef _LP64
3744#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
3745#else
3746#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value;
3747#endif // _LP64
3748
3749// Implementation macros
3750#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc)   type name = value;
3751#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc)       type name = pd_##name;
3752#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value;
3753#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value;
3754#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value;
3755#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value;
3756#ifdef PRODUCT
3757#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) /* flag name is constant */
3758#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)     /* flag name is constant */
3759#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)
3760#else
3761#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value;
3762#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)     type name = pd_##name;
3763#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value;
3764#endif
3765#ifdef _LP64
3766#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc)   type name = value;
3767#else
3768#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */
3769#endif // _LP64
3770
3771RUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG, DECLARE_LP64_PRODUCT_FLAG)
3772
3773RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)
3774
3775ARCH_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG)
3776
3777// Extensions
3778
3779#include "runtime/globals_ext.hpp"
3780
3781#endif // SHARE_VM_RUNTIME_GLOBALS_HPP
3782