globals.hpp revision 3646:9a86ddfc6c8f
1248619Sdes/*
2224638Sbrooks * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
357429Smarkm * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
457429Smarkm *
557429Smarkm * This code is free software; you can redistribute it and/or modify it
657429Smarkm * under the terms of the GNU General Public License version 2 only, as
757429Smarkm * published by the Free Software Foundation.
857429Smarkm *
960573Skris * This code is distributed in the hope that it will be useful, but WITHOUT
1065668Skris * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1165668Skris * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1265668Skris * version 2 for more details (a copy is included in the LICENSE file that
1365668Skris * accompanied this code).
1465668Skris *
1565668Skris * You should have received a copy of the GNU General Public License version
1665668Skris * 2 along with this work; if not, write to the Free Software Foundation,
1760573Skris * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1892555Sdes *
1960573Skris * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2065668Skris * or visit www.oracle.com if you need additional information or have any
2165668Skris * questions.
2265668Skris *
2365668Skris */
2465668Skris
2565668Skris#ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
2665668Skris#define SHARE_VM_RUNTIME_GLOBALS_HPP
2765668Skris
2865668Skris#include "utilities/debug.hpp"
2965668Skris
3065668Skris// use this for flags that are true per default in the tiered build
3165668Skris// but false in non-tiered builds, and vice versa
3265668Skris#ifdef TIERED
3365668Skris#define  trueInTiered true
3465668Skris#define falseInTiered false
3565668Skris#else
3665668Skris#define  trueInTiered false
3765668Skris#define falseInTiered true
3865668Skris#endif
3957429Smarkm
4057429Smarkm#ifdef TARGET_ARCH_x86
4157429Smarkm# include "globals_x86.hpp"
42162852Sdes#endif
43162852Sdes#ifdef TARGET_ARCH_sparc
44124208Sdes# include "globals_sparc.hpp"
45162852Sdes#endif
46162852Sdes#ifdef TARGET_ARCH_zero
47162852Sdes# include "globals_zero.hpp"
48162852Sdes#endif
49162852Sdes#ifdef TARGET_ARCH_arm
50124208Sdes# include "globals_arm.hpp"
51162852Sdes#endif
52162852Sdes#ifdef TARGET_ARCH_ppc
53162852Sdes# include "globals_ppc.hpp"
54162852Sdes#endif
55162852Sdes#ifdef TARGET_OS_FAMILY_linux
56162852Sdes# include "globals_linux.hpp"
57162852Sdes#endif
58162852Sdes#ifdef TARGET_OS_FAMILY_solaris
59162852Sdes# include "globals_solaris.hpp"
60162852Sdes#endif
61162852Sdes#ifdef TARGET_OS_FAMILY_windows
62162852Sdes# include "globals_windows.hpp"
6357429Smarkm#endif
6457429Smarkm#ifdef TARGET_OS_FAMILY_bsd
6557429Smarkm# include "globals_bsd.hpp"
6657429Smarkm#endif
6757429Smarkm#ifdef TARGET_OS_ARCH_linux_x86
6857429Smarkm# include "globals_linux_x86.hpp"
6960573Skris#endif
7060573Skris#ifdef TARGET_OS_ARCH_linux_sparc
7176259Sgreen# include "globals_linux_sparc.hpp"
7260573Skris#endif
7369587Sgreen#ifdef TARGET_OS_ARCH_linux_zero
74162852Sdes# include "globals_linux_zero.hpp"
7560573Skris#endif
7676259Sgreen#ifdef TARGET_OS_ARCH_solaris_x86
7776259Sgreen# include "globals_solaris_x86.hpp"
7876259Sgreen#endif
7992555Sdes#ifdef TARGET_OS_ARCH_solaris_sparc
8098675Sdes# include "globals_solaris_sparc.hpp"
81197679Sdes#endif
8260573Skris#ifdef TARGET_OS_ARCH_windows_x86
8360573Skris# include "globals_windows_x86.hpp"
8460573Skris#endif
8560573Skris#ifdef TARGET_OS_ARCH_linux_arm
8660573Skris# include "globals_linux_arm.hpp"
8760573Skris#endif
8860573Skris#ifdef TARGET_OS_ARCH_linux_ppc
89192595Sdes# include "globals_linux_ppc.hpp"
90192595Sdes#endif
91197679Sdes#ifdef TARGET_OS_ARCH_bsd_x86
92197679Sdes# include "globals_bsd_x86.hpp"
93197679Sdes#endif
94197679Sdes#ifdef TARGET_OS_ARCH_bsd_zero
95197679Sdes# include "globals_bsd_zero.hpp"
96197679Sdes#endif
9757429Smarkm#ifdef COMPILER1
98197679Sdes#ifdef TARGET_ARCH_x86
99197679Sdes# include "c1_globals_x86.hpp"
100197679Sdes#endif
101197679Sdes#ifdef TARGET_ARCH_sparc
102197679Sdes# include "c1_globals_sparc.hpp"
10357429Smarkm#endif
104197679Sdes#ifdef TARGET_ARCH_arm
105197679Sdes# include "c1_globals_arm.hpp"
106197679Sdes#endif
107197679Sdes#ifdef TARGET_ARCH_ppc
108197679Sdes# include "c1_globals_ppc.hpp"
109197679Sdes#endif
110197679Sdes#ifdef TARGET_OS_FAMILY_linux
111197679Sdes# include "c1_globals_linux.hpp"
112197679Sdes#endif
11357429Smarkm#ifdef TARGET_OS_FAMILY_solaris
114197679Sdes# include "c1_globals_solaris.hpp"
115197679Sdes#endif
11657429Smarkm#ifdef TARGET_OS_FAMILY_windows
117197679Sdes# include "c1_globals_windows.hpp"
118197679Sdes#endif
11957429Smarkm#ifdef TARGET_OS_FAMILY_bsd
120197679Sdes# include "c1_globals_bsd.hpp"
121197679Sdes#endif
12257429Smarkm#endif
123197679Sdes#ifdef COMPILER2
124197679Sdes#ifdef TARGET_ARCH_x86
12557429Smarkm# include "c2_globals_x86.hpp"
126197679Sdes#endif
127197679Sdes#ifdef TARGET_ARCH_sparc
12857429Smarkm# include "c2_globals_sparc.hpp"
129197679Sdes#endif
130197679Sdes#ifdef TARGET_ARCH_arm
13157429Smarkm# include "c2_globals_arm.hpp"
132197679Sdes#endif
133197679Sdes#ifdef TARGET_OS_FAMILY_linux
13457429Smarkm# include "c2_globals_linux.hpp"
135197679Sdes#endif
136197679Sdes#ifdef TARGET_OS_FAMILY_solaris
137197679Sdes# include "c2_globals_solaris.hpp"
13857429Smarkm#endif
139197679Sdes#ifdef TARGET_OS_FAMILY_windows
140197679Sdes# include "c2_globals_windows.hpp"
141197679Sdes#endif
142197679Sdes#ifdef TARGET_OS_FAMILY_bsd
143197679Sdes# include "c2_globals_bsd.hpp"
14457429Smarkm#endif
145197679Sdes#endif
146197679Sdes#ifdef SHARK
14757429Smarkm#ifdef TARGET_ARCH_zero
148197679Sdes# include "shark_globals_zero.hpp"
149197679Sdes#endif
150149749Sdes#endif
151197679Sdes
152197679Sdes#if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK)
153149749Sdesdefine_pd_global(bool, BackgroundCompilation,        false);
154197679Sdesdefine_pd_global(bool, UseTLAB,                      false);
155197679Sdesdefine_pd_global(bool, CICompileOSR,                 false);
156181111Sdesdefine_pd_global(bool, UseTypeProfile,               false);
157197679Sdesdefine_pd_global(bool, UseOnStackReplacement,        false);
158197679Sdesdefine_pd_global(bool, InlineIntrinsics,             false);
159181111Sdesdefine_pd_global(bool, PreferInterpreterNativeStubs, true);
160197679Sdesdefine_pd_global(bool, ProfileInterpreter,           false);
16160573Skrisdefine_pd_global(bool, ProfileTraps,                 false);
162197679Sdesdefine_pd_global(bool, TieredCompilation,            false);
163197679Sdes
164124208Sdesdefine_pd_global(intx, CompileThreshold,             0);
165197679Sdesdefine_pd_global(intx, BackEdgeThreshold,            0);
166197679Sdes
167197679Sdesdefine_pd_global(intx, OnStackReplacePercentage,     0);
16898675Sdesdefine_pd_global(bool, ResizeTLAB,                   false);
169197679Sdesdefine_pd_global(intx, FreqInlineSize,               0);
170197679Sdesdefine_pd_global(intx, InlineSmallCode,              0);
17160573Skrisdefine_pd_global(intx, NewSizeThreadIncrease,        4*K);
172197679Sdesdefine_pd_global(intx, InlineClassNatives,           true);
173197679Sdesdefine_pd_global(intx, InlineUnsafeOps,              true);
174197679Sdesdefine_pd_global(intx, InitialCodeCacheSize,         160*K);
175192595Sdesdefine_pd_global(intx, ReservedCodeCacheSize,        32*M);
176197679Sdesdefine_pd_global(intx, CodeCacheExpansionSize,       32*K);
177197679Sdesdefine_pd_global(intx, CodeCacheMinBlockLength,      1);
178197679Sdesdefine_pd_global(uintx,MetaspaceSize,    ScaleForWordSize(4*M));
179197679Sdesdefine_pd_global(bool, NeverActAsServerClassMachine, true);
180197679Sdesdefine_pd_global(uint64_t,MaxRAM,                    1ULL*G);
181197679Sdes#define CI_COMPILER_COUNT 0
182197679Sdes#else
183197679Sdes
184197679Sdes#ifdef COMPILER2
185197679Sdes#define CI_COMPILER_COUNT 2
186197679Sdes#else
187197679Sdes#define CI_COMPILER_COUNT 1
188197679Sdes#endif // COMPILER2
189197679Sdes
190197679Sdes#endif // no compilers
191197679Sdes
192197679Sdes// string type aliases used only in this file
193197679Sdestypedef const char* ccstr;
194197679Sdestypedef const char* ccstrlist;   // represents string arguments which accumulate
195197679Sdes
196124208Sdesenum FlagValueOrigin {
197124208Sdes  DEFAULT          = 0,
198197679Sdes  COMMAND_LINE     = 1,
199224638Sbrooks  ENVIRON_VAR      = 2,
200224638Sbrooks  CONFIG_FILE      = 3,
201224638Sbrooks  MANAGEMENT       = 4,
202197679Sdes  ERGONOMIC        = 5,
203197679Sdes  ATTACH_ON_DEMAND = 6,
204197679Sdes  INTERNAL         = 99
205197679Sdes};
206221420Sdes
207197679Sdesstruct Flag {
208221420Sdes  const char *type;
209221420Sdes  const char *name;
210221420Sdes  void*       addr;
211221420Sdes
212221420Sdes  NOT_PRODUCT(const char *doc;)
213197679Sdes
214197679Sdes  const char *kind;
21557429Smarkm  FlagValueOrigin origin;
21657429Smarkm
21757429Smarkm  // points to all Flags static array
21857429Smarkm  static Flag *flags;
21957429Smarkm
22057429Smarkm  // number of flags
22157429Smarkm  static size_t numFlags;
22269587Sgreen
223106121Sdes  static Flag* find_flag(char* name, size_t length, bool allow_locked = false);
22469587Sgreen
22569587Sgreen  bool is_bool() const        { return strcmp(type, "bool") == 0; }
226197679Sdes  bool get_bool() const       { return *((bool*) addr); }
227197679Sdes  void set_bool(bool value)   { *((bool*) addr) = value; }
228197679Sdes
229197679Sdes  bool is_intx()  const       { return strcmp(type, "intx")  == 0; }
230197679Sdes  intx get_intx() const       { return *((intx*) addr); }
231137015Sdes  void set_intx(intx value)   { *((intx*) addr) = value; }
232197679Sdes
233137015Sdes  bool is_uintx() const       { return strcmp(type, "uintx") == 0; }
234197679Sdes  uintx get_uintx() const     { return *((uintx*) addr); }
235197679Sdes  void set_uintx(uintx value) { *((uintx*) addr) = value; }
236197679Sdes
237197679Sdes  bool is_uint64_t() const          { return strcmp(type, "uint64_t") == 0; }
238197679Sdes  uint64_t get_uint64_t() const     { return *((uint64_t*) addr); }
239197679Sdes  void set_uint64_t(uint64_t value) { *((uint64_t*) addr) = value; }
240197679Sdes
241197679Sdes  bool is_double() const        { return strcmp(type, "double") == 0; }
242197679Sdes  double get_double() const     { return *((double*) addr); }
24357429Smarkm  void set_double(double value) { *((double*) addr) = value; }
24457429Smarkm
24557429Smarkm  bool is_ccstr() const          { return strcmp(type, "ccstr") == 0 || strcmp(type, "ccstrlist") == 0; }
246181111Sdes  bool ccstr_accumulates() const { return strcmp(type, "ccstrlist") == 0; }
247181111Sdes  ccstr get_ccstr() const     { return *((ccstr*) addr); }
248181111Sdes  void set_ccstr(ccstr value) { *((ccstr*) addr) = value; }
249240075Sdes
250197679Sdes  bool is_unlocker() const;
251181111Sdes  bool is_unlocked() const;
252181111Sdes  bool is_writeable() const;
253181111Sdes  bool is_external() const;
254197679Sdes
255181111Sdes  bool is_unlocker_ext() const;
256197679Sdes  bool is_unlocked_ext() const;
257181111Sdes  bool is_writeable_ext() const;
258181111Sdes  bool is_external_ext() const;
259192595Sdes
260192595Sdes  void get_locked_message(char*, int) const;
261192595Sdes  void get_locked_message_ext(char*, int) const;
262197679Sdes
263192595Sdes  void print_on(outputStream* st, bool withComments = false );
264192595Sdes  void print_as_flag(outputStream* st);
265192595Sdes};
266197679Sdes
267197679Sdes// debug flags control various aspects of the VM and are global accessible
268197679Sdes
269197679Sdes// use FlagSetting to temporarily change some debug flag
270197679Sdes// e.g. FlagSetting fs(DebugThisAndThat, true);
271197679Sdes// restored to previous value upon leaving scope
272197679Sdesclass FlagSetting {
273192595Sdes  bool val;
274192595Sdes  bool* flag;
275192595Sdes public:
276192595Sdes  FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; }
277192595Sdes  ~FlagSetting()                       { *flag = val; }
278192595Sdes};
279192595Sdes
280192595Sdes
281192595Sdesclass CounterSetting {
282248619Sdes  intx* counter;
283192595Sdes public:
284192595Sdes  CounterSetting(intx* cnt) { counter = cnt; (*counter)++; }
285197679Sdes  ~CounterSetting()         { (*counter)--; }
286197679Sdes};
287192595Sdes
288197679Sdes
289197679Sdesclass IntFlagSetting {
290192595Sdes  intx val;
291192595Sdes  intx* flag;
29257429Smarkm public:
29357429Smarkm  IntFlagSetting(intx& fl, intx newValue) { flag = &fl; val = fl; fl = newValue; }
29457429Smarkm  ~IntFlagSetting()                       { *flag = val; }
29592555Sdes};
29657429Smarkm
29757429Smarkm
29857429Smarkmclass DoubleFlagSetting {
29957429Smarkm  double val;
30057429Smarkm  double* flag;
301197679Sdes public:
30257429Smarkm  DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; }
30357429Smarkm  ~DoubleFlagSetting()                           { *flag = val; }
30457429Smarkm};
305197679Sdes
306197679Sdes
30757429Smarkmclass CommandLineFlags {
30857429Smarkm public:
30957429Smarkm  static bool boolAt(char* name, size_t len, bool* value);
310197679Sdes  static bool boolAt(char* name, bool* value)      { return boolAt(name, strlen(name), value); }
311197679Sdes  static bool boolAtPut(char* name, size_t len, bool* value, FlagValueOrigin origin);
31257429Smarkm  static bool boolAtPut(char* name, bool* value, FlagValueOrigin origin)   { return boolAtPut(name, strlen(name), value, origin); }
31357429Smarkm
31457429Smarkm  static bool intxAt(char* name, size_t len, intx* value);
31557429Smarkm  static bool intxAt(char* name, intx* value)      { return intxAt(name, strlen(name), value); }
31657429Smarkm  static bool intxAtPut(char* name, size_t len, intx* value, FlagValueOrigin origin);
31757429Smarkm  static bool intxAtPut(char* name, intx* value, FlagValueOrigin origin)   { return intxAtPut(name, strlen(name), value, origin); }
31857429Smarkm
31957429Smarkm  static bool uintxAt(char* name, size_t len, uintx* value);
32098675Sdes  static bool uintxAt(char* name, uintx* value)    { return uintxAt(name, strlen(name), value); }
32198675Sdes  static bool uintxAtPut(char* name, size_t len, uintx* value, FlagValueOrigin origin);
32298675Sdes  static bool uintxAtPut(char* name, uintx* value, FlagValueOrigin origin) { return uintxAtPut(name, strlen(name), value, origin); }
32398675Sdes
32498675Sdes  static bool uint64_tAt(char* name, size_t len, uint64_t* value);
32598675Sdes  static bool uint64_tAt(char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); }
32698675Sdes  static bool uint64_tAtPut(char* name, size_t len, uint64_t* value, FlagValueOrigin origin);
32798675Sdes  static bool uint64_tAtPut(char* name, uint64_t* value, FlagValueOrigin origin) { return uint64_tAtPut(name, strlen(name), value, origin); }
32898675Sdes
32998675Sdes  static bool doubleAt(char* name, size_t len, double* value);
33098675Sdes  static bool doubleAt(char* name, double* value)    { return doubleAt(name, strlen(name), value); }
33198675Sdes  static bool doubleAtPut(char* name, size_t len, double* value, FlagValueOrigin origin);
332197679Sdes  static bool doubleAtPut(char* name, double* value, FlagValueOrigin origin) { return doubleAtPut(name, strlen(name), value, origin); }
33398675Sdes
334197679Sdes  static bool ccstrAt(char* name, size_t len, ccstr* value);
33598675Sdes  static bool ccstrAt(char* name, ccstr* value)    { return ccstrAt(name, strlen(name), value); }
33698675Sdes  static bool ccstrAtPut(char* name, size_t len, ccstr* value, FlagValueOrigin origin);
33798675Sdes  static bool ccstrAtPut(char* name, ccstr* value, FlagValueOrigin origin) { return ccstrAtPut(name, strlen(name), value, origin); }
33898675Sdes
33998675Sdes  // Returns false if name is not a command line flag.
34098675Sdes  static bool wasSetOnCmdline(const char* name, bool* value);
34198675Sdes  static void printSetFlags(outputStream* out);
34298675Sdes
34398675Sdes  static void printFlags(outputStream* out, bool withComments);
34498675Sdes
345197679Sdes  static void verify() PRODUCT_RETURN;
34698675Sdes};
347197679Sdes
34898675Sdes// use this for flags that are true by default in the debug version but
34998675Sdes// false in the optimized version, and vice versa
35098675Sdes#ifdef ASSERT
35198675Sdes#define trueInDebug  true
35298675Sdes#define falseInDebug false
35398675Sdes#else
35498675Sdes#define trueInDebug  false
35598675Sdes#define falseInDebug true
35698675Sdes#endif
35798675Sdes
358197679Sdes// use this for flags that are true per default in the product build
35998675Sdes// but false in development builds, and vice versa
360197679Sdes#ifdef PRODUCT
36198675Sdes#define trueInProduct  true
36298675Sdes#define falseInProduct false
36398675Sdes#else
36498675Sdes#define trueInProduct  false
36598675Sdes#define falseInProduct true
36698675Sdes#endif
36798675Sdes
36898675Sdes#ifdef JAVASE_EMBEDDED
36998675Sdes#define falseInEmbedded false
37098675Sdes#else
371197679Sdes#define falseInEmbedded true
37298675Sdes#endif
373197679Sdes
37498675Sdes// develop flags are settable / visible only during development and are constant in the PRODUCT version
37598675Sdes// product flags are always settable / visible
37698675Sdes// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
377162852Sdes
37898675Sdes// A flag must be declared with one of the following types:
37998675Sdes// bool, intx, uintx, ccstr.
38098675Sdes// The type "ccstr" is an alias for "const char*" and is used
38198675Sdes// only in this file, because the macrology requires single-token type names.
38298675Sdes
38398675Sdes// Note: Diagnostic options not meant for VM tuning or for product modes.
384197679Sdes// They are to be used for VM quality assurance or field diagnosis
38598675Sdes// of VM bugs.  They are hidden so that users will not be encouraged to
386197679Sdes// try them as if they were VM ordinary execution options.  However, they
38798675Sdes// are available in the product version of the VM.  Under instruction
38898675Sdes// from support engineers, VM customers can turn them on to collect
38998675Sdes// diagnostic information about VM problems.  To use a VM diagnostic
390162852Sdes// option, you must first specify +UnlockDiagnosticVMOptions.
39198675Sdes// (This master switch also affects the behavior of -Xprintflags.)
392124208Sdes//
39398675Sdes// experimental flags are in support of features that are not
394197679Sdes//    part of the officially supported product, but are available
39598675Sdes//    for experimenting with. They could, for example, be performance
39698675Sdes//    features that may not have undergone full or rigorous QA, but which may
397124208Sdes//    help performance in some cases and released for experimentation
398221420Sdes//    by the community of users and developers. This flag also allows one to
399221420Sdes//    be able to build a fully supported product that nonetheless also
400124208Sdes//    ships with some unsupported, lightly tested, experimental features.
401124208Sdes//    Like the UnlockDiagnosticVMOptions flag above, there is a corresponding
40298675Sdes//    UnlockExperimentalVMOptions flag, which allows the control and
403197679Sdes//    modification of the experimental flags.
404197679Sdes//
405181111Sdes// Nota bene: neither diagnostic nor experimental options should be used casually,
406181111Sdes//    and they are not supported on production loads, except under explicit
407181111Sdes//    direction from support engineers.
408181111Sdes//
409181111Sdes// manageable flags are writeable external product flags.
410181111Sdes//    They are dynamically writeable through the JDK management interface
411181111Sdes//    (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
412181111Sdes//    These flags are external exported interface (see CCC).  The list of
41398675Sdes//    manageable flags can be queried programmatically through the management
41498675Sdes//    interface.
41598675Sdes//
416181111Sdes//    A flag can be made as "manageable" only if
417181111Sdes//    - the flag is defined in a CCC as an external exported interface.
41898675Sdes//    - the VM implementation supports dynamic setting of the flag.
419124208Sdes//      This implies that the VM must *always* query the flag variable
420124208Sdes//      and not reuse state related to the flag state at any given time.
421197679Sdes//    - you want the flag to be queried programmatically by the customers.
422197679Sdes//
423124208Sdes// product_rw flags are writeable internal product flags.
424124208Sdes//    They are like "manageable" flags but for internal/private use.
425124208Sdes//    The list of product_rw flags are internal/private flags which
426181111Sdes//    may be changed/removed in a future release.  It can be set
42798675Sdes//    through the management interface to get/set value
42898675Sdes//    when the name of flag is supplied.
429226046Sdes//
430226046Sdes//    A flag can be made as "product_rw" only if
43157429Smarkm//    - the VM implementation supports dynamic setting of the flag.
43257429Smarkm//      This implies that the VM must *always* query the flag variable
43357429Smarkm//      and not reuse state related to the flag state at any given time.
43457429Smarkm//
43557429Smarkm// Note that when there is a need to support develop flags to be writeable,
436197679Sdes// it can be done in the same way as product_rw.
437197679Sdes
43857429Smarkm#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \
43998937Sdes                                                                            \
440126274Sdes  lp64_product(bool, UseCompressedOops, false,                              \
44198937Sdes            "Use 32-bit object references in 64-bit VM  "                   \
442226046Sdes            "lp64_product means flag is always constant in 32 bit VM")      \
44398937Sdes                                                                            \
444226046Sdes  lp64_product(bool, UseCompressedKlassPointers, false,                     \
44557429Smarkm            "Use 32-bit klass pointers in 64-bit VM  "                      \
44657429Smarkm            "lp64_product means flag is always constant in 32 bit VM")      \
44757429Smarkm                                                                            \
44857429Smarkm  notproduct(bool, CheckCompressedOops, true,                               \
44957429Smarkm            "generate checks in encoding/decoding code in debug VM")        \
45092555Sdes                                                                            \
45157429Smarkm  product_pd(uintx, HeapBaseMinAddress,                                     \
45257429Smarkm            "OS specific low limit for heap base address")                  \
453197679Sdes                                                                            \
45457429Smarkm  diagnostic(bool, PrintCompressedOopsMode, false,                          \
455197679Sdes            "Print compressed oops base address and encoding mode")         \
456197679Sdes                                                                            \
45757429Smarkm  lp64_product(intx, ObjectAlignmentInBytes, 8,                             \
45857429Smarkm          "Default object alignment in bytes, 8 is minimum")                \
45957429Smarkm                                                                            \
46057429Smarkm  /* UseMembar is theoretically a temp flag used for memory barrier         \
46157429Smarkm   * removal testing.  It was supposed to be removed before FCS but has     \
46292555Sdes   * been re-added (see 6401008) */                                         \
46357429Smarkm  product_pd(bool, UseMembar,                                               \
464197679Sdes          "(Unstable) Issues membars on thread state transitions")          \
46557429Smarkm                                                                            \
46657429Smarkm  /* Temp PPC Flag to allow disabling the use of lwsync on ppc platforms    \
46757429Smarkm   * that don't support it.  This will be replaced by processor detection   \
46857429Smarkm   * logic.                                                                 \
46957429Smarkm   */                                                                       \
47092555Sdes  product(bool, UsePPCLWSYNC, true,                                         \
47157429Smarkm          "Use lwsync instruction if true, else use slower sync")           \
472197679Sdes                                                                            \
47357429Smarkm  develop(bool, CleanChunkPoolAsync, falseInEmbedded,                       \
47457429Smarkm          "Whether to clean the chunk pool asynchronously")                 \
47557429Smarkm                                                                            \
47657429Smarkm  /* Temporary: See 6948537 */                                             \
47757429Smarkm  experimental(bool, UseMemSetInBOT, true,                                  \
47892555Sdes          "(Unstable) uses memset in BOT updates in GC code")               \
47957429Smarkm                                                                            \
480197679Sdes  diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug,                  \
48157429Smarkm          "Enable normal processing of flags relating to field diagnostics")\
482197679Sdes                                                                            \
483197679Sdes  experimental(bool, UnlockExperimentalVMOptions, false,                    \
484197679Sdes          "Enable normal processing of flags relating to experimental features")\
485197679Sdes                                                                            \
48657429Smarkm  product(bool, JavaMonitorsInStackTrace, true,                             \
487197679Sdes          "Print info. about Java monitor locks when the stacks are dumped")\
488197679Sdes                                                                            \
48957429Smarkm  product_pd(bool, UseLargePages,                                           \
490197679Sdes          "Use large page memory")                                          \
491197679Sdes                                                                            \
492197679Sdes  product_pd(bool, UseLargePagesIndividualAllocation,                       \
493197679Sdes          "Allocate large pages individually for better affinity")          \
494197679Sdes                                                                            \
495197679Sdes  develop(bool, LargePagesIndividualAllocationInjectError, false,           \
49657429Smarkm          "Fail large pages individual allocation")                         \
49757429Smarkm                                                                            \
498197679Sdes  develop(bool, TracePageSizes, false,                                      \
499197679Sdes          "Trace page size selection and usage.")                           \
50057429Smarkm                                                                            \
50157429Smarkm  product(bool, UseNUMA, false,                                             \
50257429Smarkm          "Use NUMA if available")                                          \
50357429Smarkm                                                                            \
50457429Smarkm  product(bool, UseNUMAInterleaving, false,                                 \
50576259Sgreen          "Interleave memory across NUMA nodes if available")               \
50657429Smarkm                                                                            \
507197679Sdes  product(uintx, NUMAInterleaveGranularity, 2*M,                            \
50857429Smarkm          "Granularity to use for NUMA interleaving on Windows OS")         \
50957429Smarkm                                                                            \
51057429Smarkm  product(bool, ForceNUMA, false,                                           \
51157429Smarkm          "Force NUMA optimizations on single-node/UMA systems")            \
51276259Sgreen                                                                            \
51392555Sdes  product(intx, NUMAChunkResizeWeight, 20,                                  \
51457429Smarkm          "Percentage (0-100) used to weight the current sample when "      \
515197679Sdes          "computing exponentially decaying average for "                   \
51657429Smarkm          "AdaptiveNUMAChunkSizing")                                        \
51757429Smarkm                                                                            \
51857429Smarkm  product(intx, NUMASpaceResizeRate, 1*G,                                   \
51957429Smarkm          "Do not reallocate more that this amount per collection")         \
52057429Smarkm                                                                            \
52157429Smarkm  product(bool, UseAdaptiveNUMAChunkSizing, true,                           \
52257429Smarkm          "Enable adaptive chunk sizing for NUMA")                          \
52392555Sdes                                                                            \
52492555Sdes  product(bool, NUMAStats, false,                                           \
52576259Sgreen          "Print NUMA stats in detailed heap information")                  \
526197679Sdes                                                                            \
52776259Sgreen  product(intx, NUMAPageScanRate, 256,                                      \
528197679Sdes          "Maximum number of pages to include in the page scan procedure")  \
529197679Sdes                                                                            \
53076259Sgreen  product_pd(bool, NeedsDeoptSuspend,                                       \
53176259Sgreen          "True for register window machines (sparc/ia64)")                 \
53276259Sgreen                                                                            \
53357429Smarkm  product(intx, UseSSE, 99,                                                 \
53457429Smarkm          "Highest supported SSE instructions set on x86/x64")              \
535197679Sdes                                                                            \
53657429Smarkm  product(uintx, LargePageSizeInBytes, 0,                                   \
537197679Sdes          "Large page size (0 to let VM choose the page size")              \
53876259Sgreen                                                                            \
53976259Sgreen  product(uintx, LargePageHeapSizeThreshold, 128*M,                         \
54076259Sgreen          "Use large pages if max heap is at least this big")               \
54157429Smarkm                                                                            \
54257429Smarkm  product(bool, ForceTimeHighResolution, false,                             \
54357429Smarkm          "Using high time resolution(For Win32 only)")                     \
54457429Smarkm                                                                            \
54557429Smarkm  develop(bool, TraceItables, false,                                        \
54657429Smarkm          "Trace initialization and use of itables")                        \
54757429Smarkm                                                                            \
54898675Sdes  develop(bool, TracePcPatching, false,                                     \
54957429Smarkm          "Trace usage of frame::patch_pc")                                 \
550221420Sdes                                                                            \
55157429Smarkm  develop(bool, TraceJumps, false,                                          \
55269587Sgreen          "Trace assembly jumps in thread ring buffer")                     \
553106121Sdes                                                                            \
55469587Sgreen  develop(bool, TraceRelocator, false,                                      \
55569587Sgreen          "Trace the bytecode relocator")                                   \
55660573Skris                                                                            \
55769587Sgreen  develop(bool, TraceLongCompiles, false,                                   \
55898675Sdes          "Print out every time compilation is longer than "                \
55998675Sdes          "a given threashold")                                             \
560197679Sdes                                                                            \
561197679Sdes  develop(bool, SafepointALot, false,                                       \
562197679Sdes          "Generates a lot of safepoints. Works with "                      \
563197679Sdes          "GuaranteedSafepointInterval")                                    \
564197679Sdes                                                                            \
565197679Sdes  product_pd(bool, BackgroundCompilation,                                   \
56657429Smarkm          "A thread requesting compilation is not blocked during "          \
56757429Smarkm          "compilation")                                                    \
56898675Sdes                                                                            \
56998675Sdes  product(bool, PrintVMQWaitTime, false,                                    \
57098675Sdes          "Prints out the waiting time in VM operation queue")              \
57198675Sdes                                                                            \
572197679Sdes  develop(bool, NoYieldsInMicrolock, false,                                 \
573197679Sdes          "Disable yields in microlock")                                    \
574197679Sdes                                                                            \
57598675Sdes  develop(bool, TraceOopMapGeneration, false,                               \
57698675Sdes          "Shows oopmap generation")                                        \
57792555Sdes                                                                            \
57857429Smarkm  product(bool, MethodFlushing, true,                                       \
57992555Sdes          "Reclamation of zombie and not-entrant methods")                  \
58057429Smarkm                                                                            \
58192555Sdes  develop(bool, VerifyStack, false,                                         \
58292555Sdes          "Verify stack of each thread when it is entering a runtime call") \
58357429Smarkm                                                                            \
58492555Sdes  diagnostic(bool, ForceUnreachable, false,                                 \
58592555Sdes          "Make all non code cache addresses to be unreachable with forcing use of 64bit literal fixups") \
58692555Sdes                                                                            \
58792555Sdes  notproduct(bool, StressDerivedPointers, false,                            \
588197679Sdes          "Force scavenge when a derived pointers is detected on stack "    \
589197679Sdes          "after rtm call")                                                 \
59057429Smarkm                                                                            \
59157429Smarkm  develop(bool, TraceDerivedPointers, false,                                \
59292555Sdes          "Trace traversal of derived pointers on stack")                   \
59360573Skris                                                                            \
59457429Smarkm  notproduct(bool, TraceCodeBlobStacks, false,                              \
59557429Smarkm          "Trace stack-walk of codeblobs")                                  \
59657429Smarkm                                                                            \
597106121Sdes  product(bool, PrintJNIResolving, false,                                   \
598197679Sdes          "Used to implement -v:jni")                                       \
59957429Smarkm                                                                            \
600162852Sdes  notproduct(bool, PrintRewrites, false,                                    \
60157429Smarkm          "Print methods that are being rewritten")                         \
60276259Sgreen                                                                            \
60357429Smarkm  product(bool, UseInlineCaches, true,                                      \
604197679Sdes          "Use Inline Caches for virtual calls ")                           \
60557429Smarkm                                                                            \
606162852Sdes  develop(bool, InlineArrayCopy, true,                                      \
60757429Smarkm          "inline arraycopy native that is known to be part of "            \
608197679Sdes          "base library DLL")                                               \
609197679Sdes                                                                            \
610197679Sdes  develop(bool, InlineObjectHash, true,                                     \
611197679Sdes          "inline Object::hashCode() native that is known to be part "      \
612197679Sdes          "of base library DLL")                                            \
613197679Sdes                                                                            \
61492555Sdes  develop(bool, InlineNatives, true,                                        \
61557429Smarkm          "inline natives that are known to be part of base library DLL")   \
616197679Sdes                                                                            \
61757429Smarkm  develop(bool, InlineMathNatives, true,                                    \
618162852Sdes          "inline SinD, CosD, etc.")                                        \
61960573Skris                                                                            \
62060573Skris  develop(bool, InlineClassNatives, true,                                   \
62160573Skris          "inline Class.isInstance, etc")                                   \
622197679Sdes                                                                            \
62360573Skris  develop(bool, InlineThreadNatives, true,                                  \
624162852Sdes          "inline Thread.currentThread, etc")                               \
62560573Skris                                                                            \
62692555Sdes  develop(bool, InlineUnsafeOps, true,                                      \
62760573Skris          "inline memory ops (native methods) from sun.misc.Unsafe")        \
628197679Sdes                                                                            \
62960573Skris  product(bool, CriticalJNINatives, true,                                   \
630162852Sdes          "check for critical JNI entry points")                            \
63157429Smarkm                                                                            \
63257429Smarkm  notproduct(bool, StressCriticalJNINatives, false,                         \
63357429Smarkm            "Exercise register saving code in critical natives")            \
634197679Sdes                                                                            \
63557429Smarkm  product(bool, UseSSE42Intrinsics, false,                                  \
636162852Sdes          "SSE4.2 versions of intrinsics")                                  \
63760573Skris                                                                            \
63860573Skris  develop(bool, TraceCallFixup, false,                                      \
63960573Skris          "traces all call fixups")                                         \
640197679Sdes                                                                            \
64160573Skris  develop(bool, DeoptimizeALot, false,                                      \
64257429Smarkm          "deoptimize at every exit from the runtime system")               \
643221420Sdes                                                                            \
644221420Sdes  notproduct(ccstrlist, DeoptimizeOnlyAt, "",                               \
645221420Sdes          "a comma separated list of bcis to deoptimize at")                \
646221420Sdes                                                                            \
647221420Sdes  product(bool, DeoptimizeRandom, false,                                    \
648221420Sdes          "deoptimize random frames on random exit from the runtime system")\
649221420Sdes                                                                            \
650221420Sdes  notproduct(bool, ZombieALot, false,                                       \
65157429Smarkm          "creates zombies (non-entrant) at exit from the runt. system")    \
65257429Smarkm                                                                            \
65357429Smarkm  product(bool, UnlinkSymbolsALot, false,                                   \
65457429Smarkm          "unlink unreferenced symbols from the symbol table at safepoints")\
65557429Smarkm                                                                            \
65692555Sdes  notproduct(bool, WalkStackALot, false,                                    \
65776259Sgreen          "trace stack (no print) at every exit from the runtime system")   \
65857429Smarkm                                                                            \
65992555Sdes  product(bool, Debugging, false,                                           \
66057429Smarkm          "set when executing debug methods in debug.ccp "                  \
66176259Sgreen          "(to prevent triggering assertions)")                             \
662137015Sdes                                                                            \
66357429Smarkm  notproduct(bool, StrictSafepointChecks, trueInDebug,                      \
66457429Smarkm          "Enable strict checks that safepoints cannot happen for threads " \
66557429Smarkm          "that used No_Safepoint_Verifier")                                \
66657429Smarkm                                                                            \
66757429Smarkm  notproduct(bool, VerifyLastFrame, false,                                  \
668197679Sdes          "Verify oops on last frame on entry to VM")                       \
669197679Sdes                                                                            \
67057429Smarkm  develop(bool, TraceHandleAllocation, false,                               \
671197679Sdes          "Prints out warnings when suspicious many handles are allocated") \
67257429Smarkm                                                                            \
673197679Sdes  product(bool, UseCompilerSafepoints, true,                                \
674197679Sdes          "Stop at safepoints in compiled code")                            \
675197679Sdes                                                                            \
676197679Sdes  product(bool, UseSplitVerifier, true,                                     \
677197679Sdes          "use split verifier with StackMapTable attributes")               \
678197679Sdes                                                                            \
679197679Sdes  product(bool, FailOverToOldVerifier, true,                                \
680197679Sdes          "fail over to old verifier when split verifier fails")            \
68157429Smarkm                                                                            \
68257429Smarkm  develop(bool, ShowSafepointMsgs, false,                                   \
683197679Sdes          "Show msg. about safepoint synch.")                               \
68457429Smarkm                                                                            \
68560573Skris  product(bool, SafepointTimeout, false,                                    \
68657429Smarkm          "Time out and warn or fail after SafepointTimeoutDelay "          \
687197679Sdes          "milliseconds if failed to reach safepoint")                      \
688197679Sdes                                                                            \
68957429Smarkm  develop(bool, DieOnSafepointTimeout, false,                               \
69057429Smarkm          "Die upon failure to reach safepoint (see SafepointTimeout)")     \
691137015Sdes                                                                            \
692137015Sdes  /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */      \
693137015Sdes  /* typically, at most a few retries are needed */                         \
69457429Smarkm  product(intx, SuspendRetryCount, 50,                                      \
69557429Smarkm          "Maximum retry count for an external suspend request")            \
696197679Sdes                                                                            \
69757429Smarkm  product(intx, SuspendRetryDelay, 5,                                       \
69857429Smarkm          "Milliseconds to delay per retry (* current_retry_count)")        \
699197679Sdes                                                                            \
700197679Sdes  product(bool, AssertOnSuspendWaitFailure, false,                          \
701162852Sdes          "Assert/Guarantee on external suspend wait failure")              \
702197679Sdes                                                                            \
70357429Smarkm  product(bool, TraceSuspendWaitFailures, false,                            \
70457429Smarkm          "Trace external suspend wait failures")                           \
70557429Smarkm                                                                            \
706197679Sdes  product(bool, MaxFDLimit, true,                                           \
70757429Smarkm          "Bump the number of file descriptors to max in solaris.")         \
70857429Smarkm                                                                            \
70957429Smarkm  diagnostic(bool, LogEvents, true,                                         \
710162852Sdes             "Enable the various ring buffer event logs")                   \
711197679Sdes                                                                            \
712197679Sdes  diagnostic(intx, LogEventsBufferEntries, 10,                              \
713197679Sdes             "Enable the various ring buffer event logs")                   \
714197679Sdes                                                                            \
715197679Sdes  product(bool, BytecodeVerificationRemote, true,                           \
716248619Sdes          "Enables the Java bytecode verifier for remote classes")          \
71757429Smarkm                                                                            \
71857429Smarkm  product(bool, BytecodeVerificationLocal, false,                           \
71957429Smarkm          "Enables the Java bytecode verifier for local classes")           \
720197679Sdes                                                                            \
72157429Smarkm  develop(bool, ForceFloatExceptions, trueInDebug,                          \
722197679Sdes          "Force exceptions on FP stack under/overflow")                    \
723197679Sdes                                                                            \
724197679Sdes  develop(bool, VerifyStackAtCalls, false,                                  \
725197679Sdes          "Verify that the stack pointer is unchanged after calls")         \
72657429Smarkm                                                                            \
72757429Smarkm  develop(bool, TraceJavaAssertions, false,                                 \
728157016Sdes          "Trace java language assertions")                                 \
72957429Smarkm                                                                            \
73057429Smarkm  notproduct(bool, CheckAssertionStatusDirectives, false,                   \
73157429Smarkm          "temporary - see javaClasses.cpp")                                \
73257429Smarkm                                                                            \
73357429Smarkm  notproduct(bool, PrintMallocFree, false,                                  \
73498675Sdes          "Trace calls to C heap malloc/free allocation")                   \
73576259Sgreen                                                                            \
73676259Sgreen  product(bool, PrintOopAddress, false,                                     \
73776259Sgreen          "Always print the location of the oop")                           \
73876259Sgreen                                                                            \
73976259Sgreen  notproduct(bool, VerifyCodeCacheOften, false,                             \
74076259Sgreen          "Verify compiled-code cache often")                               \
741124208Sdes                                                                            \
742137015Sdes  develop(bool, ZapDeadCompiledLocals, false,                               \
74376259Sgreen          "Zap dead locals in compiler frames")                             \
744113908Sdes                                                                            \
74576259Sgreen  notproduct(bool, ZapDeadLocalsOld, false,                                 \
74692555Sdes          "Zap dead locals (old version, zaps all frames when "             \
747197679Sdes          "entering the VM")                                                \
748137015Sdes                                                                            \
749197679Sdes  notproduct(bool, CheckOopishValues, false,                                \
750197679Sdes          "Warn if value contains oop ( requires ZapDeadLocals)")           \
75192555Sdes                                                                            \
752197679Sdes  develop(bool, UseMallocOnly, false,                                       \
753137015Sdes          "use only malloc/free for allocation (no resource area/arena)")   \
754197679Sdes                                                                            \
755197679Sdes  develop(bool, PrintMalloc, false,                                         \
75692555Sdes          "print all malloc/free calls")                                    \
757197679Sdes                                                                            \
758113908Sdes  develop(bool, PrintMallocStatistics, false,                               \
75992555Sdes          "print malloc/free statistics")                                   \
760197679Sdes                                                                            \
761197679Sdes  develop(bool, ZapResourceArea, trueInDebug,                               \
762197679Sdes          "Zap freed resource/arena space with 0xABABABAB")                 \
763181111Sdes                                                                            \
764248619Sdes  notproduct(bool, ZapVMHandleArea, trueInDebug,                            \
765248619Sdes          "Zap freed VM handle space with 0xBCBCBCBC")                      \
766248619Sdes                                                                            \
76776259Sgreen  develop(bool, ZapJNIHandleArea, trueInDebug,                              \
76876259Sgreen          "Zap freed JNI handle space with 0xFEFEFEFE")                     \
76976259Sgreen                                                                            \
77076259Sgreen  notproduct(bool, ZapStackSegments, trueInDebug,                           \
77176259Sgreen             "Zap allocated/freed Stack segments with 0xFADFADED")          \
77276259Sgreen                                                                            \
773197679Sdes  develop(bool, ZapUnusedHeapArea, trueInDebug,                             \
77476259Sgreen          "Zap unused heap space with 0xBAADBABE")                          \
775197679Sdes                                                                            \
776197679Sdes  develop(bool, TraceZapUnusedHeapArea, false,                              \
77776259Sgreen          "Trace zapping of unused heap space")                             \
778197679Sdes                                                                            \
779197679Sdes  develop(bool, CheckZapUnusedHeapArea, false,                              \
780197679Sdes          "Check zapping of unused heap space")                             \
781248619Sdes                                                                            \
78276259Sgreen  develop(bool, ZapFillerObjects, trueInDebug,                              \
78376259Sgreen          "Zap filler objects with 0xDEAFBABE")                             \
78492555Sdes                                                                            \
785248619Sdes  develop(bool, PrintVMMessages, true,                                      \
78698675Sdes          "Print vm messages on console")                                   \
78798675Sdes                                                                            \
788181111Sdes  product(bool, PrintGCApplicationConcurrentTime, false,                    \
789181111Sdes          "Print the time the application has been running")                \
790149749Sdes                                                                            \
791197679Sdes  product(bool, PrintGCApplicationStoppedTime, false,                       \
792197679Sdes          "Print the time the application has been stopped")                \
79376259Sgreen                                                                            \
79476259Sgreen  diagnostic(bool, VerboseVerification, false,                              \
79576259Sgreen             "Display detailed verification details")                       \
79676259Sgreen                                                                            \
79776259Sgreen  notproduct(uintx, ErrorHandlerTest, 0,                                    \
79876259Sgreen          "If > 0, provokes an error after VM initialization; the value"    \
79976259Sgreen          "determines which error to provoke.  See test_error_handler()"    \
800124208Sdes          "in debug.cpp.")                                                  \
801124208Sdes                                                                            \
802124208Sdes  develop(bool, Verbose, false,                                             \
803124208Sdes          "Prints additional debugging information from other modes")       \
804124208Sdes                                                                            \
805124208Sdes  develop(bool, PrintMiscellaneous, false,                                  \
806124208Sdes          "Prints uncategorized debugging information (requires +Verbose)") \
807124208Sdes                                                                            \
808197679Sdes  develop(bool, WizardMode, false,                                          \
809197679Sdes          "Prints much more debugging information")                         \
810197679Sdes                                                                            \
81176259Sgreen  product(bool, ShowMessageBoxOnError, false,                               \
81276259Sgreen          "Keep process alive on VM fatal error")                           \
81357429Smarkm                                                                            \
814149749Sdes  product(bool, CreateMinidumpOnCrash, false,                               \
815162852Sdes          "Create minidump on VM fatal error")                              \
816149749Sdes                                                                            \
817149749Sdes  product_pd(bool, UseOSErrorReporting,                                     \
818149749Sdes          "Let VM fatal error propagate to the OS (ie. WER on Windows)")    \
819149749Sdes                                                                            \
820149749Sdes  product(bool, SuppressFatalErrorMessage, false,                           \
821149749Sdes          "Do NO Fatal Error report [Avoid deadlock]")                      \
822149749Sdes                                                                            \
823149749Sdes  product(ccstrlist, OnError, "",                                           \
824149749Sdes          "Run user-defined commands on fatal error; see VMError.cpp "      \
825149749Sdes          "for examples")                                                   \
826149749Sdes                                                                            \
827149749Sdes  product(ccstrlist, OnOutOfMemoryError, "",                                \
828197679Sdes          "Run user-defined commands on first java.lang.OutOfMemoryError")  \
829149749Sdes                                                                            \
830162852Sdes  manageable(bool, HeapDumpBeforeFullGC, false,                             \
831197679Sdes          "Dump heap to file before any major stop-world GC")               \
832162852Sdes                                                                            \
833197679Sdes  manageable(bool, HeapDumpAfterFullGC, false,                              \
834149749Sdes          "Dump heap to file after any major stop-world GC")                \
835149749Sdes                                                                            \
836149749Sdes  manageable(bool, HeapDumpOnOutOfMemoryError, false,                       \
837149749Sdes          "Dump heap to file when java.lang.OutOfMemoryError is thrown")    \
838149749Sdes                                                                            \
839149749Sdes  manageable(ccstr, HeapDumpPath, NULL,                                     \
840149749Sdes          "When HeapDumpOnOutOfMemoryError is on, the path (filename or"    \
841149749Sdes          "directory) of the dump file (defaults to java_pid<pid>.hprof"    \
842149749Sdes          "in the working directory)")                                      \
843149749Sdes                                                                            \
844149749Sdes  develop(uintx, SegmentedHeapDumpThreshold, 2*G,                           \
845149749Sdes          "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) "     \
84660573Skris          "when the heap usage is larger than this")                        \
84760573Skris                                                                            \
84892555Sdes  develop(uintx, HeapDumpSegmentSize, 1*G,                                  \
849124208Sdes          "Approximate segment size when generating a segmented heap dump") \
85060573Skris                                                                            \
85192555Sdes  develop(bool, BreakAtWarning, false,                                      \
852248619Sdes          "Execute breakpoint upon encountering VM warning")                \
853248619Sdes                                                                            \
854137015Sdes  product_pd(bool, UseVectoredExceptions,                                   \
85560573Skris          "Temp Flag - Use Vectored Exceptions rather than SEH (Windows Only)") \
85660573Skris                                                                            \
85760573Skris  develop(bool, TraceVMOperation, false,                                    \
85860573Skris          "Trace vm operations")                                            \
85960573Skris                                                                            \
860197679Sdes  develop(bool, UseFakeTimers, false,                                       \
861197679Sdes          "Tells whether the VM should use system time or a fake timer")    \
862197679Sdes                                                                            \
863197679Sdes  product(ccstr, NativeMemoryTracking, "off",                               \
864248619Sdes          "Native memory tracking options")                                 \
865248619Sdes                                                                            \
866248619Sdes  diagnostic(bool, PrintNMTStatistics, false,                               \
86760573Skris          "Print native memory tracking summary data if it is on")          \
86892555Sdes                                                                            \
869248619Sdes  diagnostic(bool, LogCompilation, false,                                   \
87060573Skris          "Log compilation activity in detail to hotspot.log or LogFile")   \
871197679Sdes                                                                            \
87292555Sdes  product(bool, PrintCompilation, false,                                    \
87360573Skris          "Print compilations")                                             \
87460573Skris                                                                            \
87560573Skris  diagnostic(bool, TraceNMethodInstalls, false,                             \
876197679Sdes             "Trace nmethod intallation")                                   \
87760573Skris                                                                            \
87860573Skris  diagnostic(intx, ScavengeRootsInCode, 2,                                  \
87960573Skris             "0: do not allow scavengable oops in the code cache; "         \
880197679Sdes             "1: allow scavenging from the code cache; "                    \
88160573Skris             "2: emit as many constants as the compiler can see")           \
882197679Sdes                                                                            \
883197679Sdes  product(bool, AlwaysRestoreFPU, false,                                    \
884197679Sdes          "Restore the FPU control word after every JNI call (expensive)")  \
885197679Sdes                                                                            \
886197679Sdes  diagnostic(bool, PrintCompilation2, false,                                \
887197679Sdes          "Print additional statistics per compilation")                    \
888197679Sdes                                                                            \
889197679Sdes  diagnostic(bool, PrintAdapterHandlers, false,                             \
890197679Sdes          "Print code generated for i2c/c2i adapters")                      \
89160573Skris                                                                            \
892197679Sdes  diagnostic(bool, VerifyAdapterCalls, trueInDebug,                         \
89360573Skris          "Verify that i2c/c2i adapters are called properly")               \
89460573Skris                                                                            \
89560573Skris  develop(bool, VerifyAdapterSharing, false,                                \
896197679Sdes          "Verify that the code for shared adapters is the equivalent")     \
89760573Skris                                                                            \
89860573Skris  diagnostic(bool, PrintAssembly, false,                                    \
89960573Skris          "Print assembly code (using external disassembler.so)")           \
90060573Skris                                                                            \
90160573Skris  diagnostic(ccstr, PrintAssemblyOptions, NULL,                             \
902248619Sdes          "Options string passed to disassembler.so")                       \
90360573Skris                                                                            \
90460573Skris  diagnostic(bool, PrintNMethods, false,                                    \
90560573Skris          "Print assembly code for nmethods when generated")                \
906197679Sdes                                                                            \
90792555Sdes  diagnostic(bool, PrintNativeNMethods, false,                              \
908197679Sdes          "Print assembly code for native nmethods when generated")         \
909197679Sdes                                                                            \
910197679Sdes  develop(bool, PrintDebugInfo, false,                                      \
911197679Sdes          "Print debug information for all nmethods when generated")        \
91298675Sdes                                                                            \
913197679Sdes  develop(bool, PrintRelocations, false,                                    \
91492555Sdes          "Print relocation information for all nmethods when generated")   \
915197679Sdes                                                                            \
91692555Sdes  develop(bool, PrintDependencies, false,                                   \
917197679Sdes          "Print dependency information for all nmethods when generated")   \
918197679Sdes                                                                            \
91960573Skris  develop(bool, PrintExceptionHandlers, false,                              \
92060573Skris          "Print exception handler tables for all nmethods when generated") \
92160573Skris                                                                            \
922137015Sdes  develop(bool, InterceptOSException, false,                                \
923137015Sdes          "Starts debugger when an implicit OS (e.g., NULL) "               \
924137015Sdes          "exception happens")                                              \
92560573Skris                                                                            \
92660573Skris  notproduct(bool, PrintCodeCache, false,                                   \
92760573Skris          "Print the compiled_code cache when exiting")                     \
92860573Skris                                                                            \
92960573Skris  develop(bool, PrintCodeCache2, false,                                     \
930248619Sdes          "Print detailed info on the compiled_code cache when exiting")    \
931248619Sdes                                                                            \
932248619Sdes  diagnostic(bool, PrintStubCode, false,                                    \
93360573Skris          "Print generated stub code")                                      \
934248619Sdes                                                                            \
93592555Sdes  product(bool, StackTraceInThrowable, true,                                \
936248619Sdes          "Collect backtrace in throwable when exception happens")          \
937248619Sdes                                                                            \
93860573Skris  product(bool, OmitStackTraceInFastThrow, true,                            \
93960573Skris          "Omit backtraces for some 'hot' exceptions in optimized code")    \
940248619Sdes                                                                            \
941197679Sdes  product(bool, ProfilerPrintByteCodeStatistics, false,                     \
942248619Sdes          "Prints byte code statictics when dumping profiler output")       \
943197679Sdes                                                                            \
94460573Skris  product(bool, ProfilerRecordPC, false,                                    \
94560573Skris          "Collects tick for each 16 byte interval of compiled code")       \
946248619Sdes                                                                            \
947197679Sdes  product(bool, ProfileVM, false,                                           \
948197679Sdes          "Profiles ticks that fall within VM (either in the VM Thread "    \
949248619Sdes          "or VM code called through stubs)")                               \
95060573Skris                                                                            \
951248619Sdes  product(bool, ProfileIntervals, false,                                    \
952248619Sdes          "Prints profiles for each interval (see ProfileIntervalsTicks)")  \
953248619Sdes                                                                            \
954248619Sdes  notproduct(bool, ProfilerCheckIntervals, false,                           \
955248619Sdes          "Collect and print info on spacing of profiler ticks")            \
956248619Sdes                                                                            \
957248619Sdes  develop(bool, PrintJVMWarnings, false,                                    \
958248619Sdes          "Prints warnings for unimplemented JVM functions")                \
959197679Sdes                                                                            \
960248619Sdes  product(bool, PrintWarnings, true,                                        \
96160573Skris          "Prints JVM warnings to output stream")                           \
96260573Skris                                                                            \
963197679Sdes  notproduct(uintx, WarnOnStalledSpinLock, 0,                               \
96460573Skris          "Prints warnings for stalled SpinLocks")                          \
96560573Skris                                                                            \
966197679Sdes  develop(bool, InitializeJavaLangSystem, true,                             \
967124208Sdes          "Initialize java.lang.System - turn off for individual "          \
968197679Sdes          "method debugging")                                               \
969124208Sdes                                                                            \
970124208Sdes  develop(bool, InitializeJavaLangString, true,                             \
971248619Sdes          "Initialize java.lang.String - turn off for individual "          \
972248619Sdes          "method debugging")                                               \
973197679Sdes                                                                            \
97460573Skris  develop(bool, InitializeJavaLangExceptionsErrors, true,                   \
97576259Sgreen          "Initialize various error and exception classes - turn off for "  \
97676259Sgreen          "individual method debugging")                                    \
977197679Sdes                                                                            \
978149749Sdes  product(bool, RegisterFinalizersAtInit, true,                             \
97960573Skris          "Register finalizable objects at end of Object.<init> or "        \
98060573Skris          "after allocation")                                               \
981124208Sdes                                                                            \
982124208Sdes  develop(bool, RegisterReferences, true,                                   \
983124208Sdes          "Tells whether the VM should register soft/weak/final/phantom "   \
984124208Sdes          "references")                                                     \
985124208Sdes                                                                            \
986124208Sdes  develop(bool, IgnoreRewrites, false,                                      \
987197679Sdes          "Supress rewrites of bytecodes in the oopmap generator. "         \
988124208Sdes          "This is unsafe!")                                                \
989124208Sdes                                                                            \
990124208Sdes  develop(bool, PrintCodeCacheExtension, false,                             \
991197679Sdes          "Print extension of code cache")                                  \
992240075Sdes                                                                            \
993240075Sdes  develop(bool, UsePrivilegedStack, true,                                   \
994240075Sdes          "Enable the security JVM functions")                              \
995240075Sdes                                                                            \
996124208Sdes  develop(bool, ProtectionDomainVerification, true,                         \
997124208Sdes          "Verifies protection domain before resolution in system "         \
998124208Sdes          "dictionary")                                                     \
999197679Sdes                                                                            \
1000197679Sdes  product(bool, ClassUnloading, true,                                       \
1001197679Sdes          "Do unloading of classes")                                        \
1002197679Sdes                                                                            \
1003124208Sdes  diagnostic(bool, LinkWellKnownClasses, false,                             \
1004124208Sdes          "Resolve a well known class as soon as its name is seen")         \
1005124208Sdes                                                                            \
1006124208Sdes  develop(bool, DisableStartThread, false,                                  \
1007124208Sdes          "Disable starting of additional Java threads "                    \
1008124208Sdes          "(for debugging only)")                                           \
1009197679Sdes                                                                            \
1010124208Sdes  develop(bool, MemProfiling, false,                                        \
1011124208Sdes          "Write memory usage profiling to log file")                       \
1012124208Sdes                                                                            \
1013124208Sdes  notproduct(bool, PrintSystemDictionaryAtExit, false,                      \
1014124208Sdes          "Prints the system dictionary at exit")                           \
1015197679Sdes                                                                            \
1016197679Sdes  experimental(intx, PredictedLoadedClassCount, 0,                          \
1017124208Sdes          "Experimental: Tune loaded class cache starting size.")           \
1018124208Sdes                                                                            \
1019197679Sdes  diagnostic(bool, UnsyncloadClass, false,                                  \
1020197679Sdes          "Unstable: VM calls loadClass unsynchronized. Custom "            \
1021124208Sdes          "class loader  must call VM synchronized for findClass "          \
1022197679Sdes          "and defineClass.")                                               \
1023124208Sdes                                                                            \
1024124208Sdes  product(bool, AlwaysLockClassLoader, false,                               \
1025124208Sdes          "Require the VM to acquire the class loader lock before calling " \
1026124208Sdes          "loadClass() even for class loaders registering "                 \
1027124208Sdes          "as parallel capable")                                            \
1028124208Sdes                                                                            \
102960573Skris  product(bool, AllowParallelDefineClass, false,                            \
103092555Sdes          "Allow parallel defineClass requests for class loaders "          \
103160573Skris          "registering as parallel capable")                                \
103292555Sdes                                                                            \
103360573Skris  product(bool, MustCallLoadClassInternal, false,                           \
103460573Skris          "Call loadClassInternal() rather than loadClass()")               \
103560573Skris                                                                            \
103660573Skris  product_pd(bool, DontYieldALot,                                           \
103760573Skris          "Throw away obvious excess yield calls (for SOLARIS only)")       \
103860573Skris                                                                            \
103960573Skris  product_pd(bool, ConvertSleepToYield,                                     \
104057429Smarkm          "Converts sleep(0) to thread yield "                              \
104157429Smarkm          "(may be off for SOLARIS to improve GUI)")                        \
104257429Smarkm                                                                            \
104357429Smarkm  product(bool, ConvertYieldToSleep, false,                                 \
104457429Smarkm          "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\
104557429Smarkm          "behavior (SOLARIS only)")                                        \
104692555Sdes                                                                            \
104757429Smarkm  product(bool, UseBoundThreads, true,                                      \
1048197679Sdes          "Bind user level threads to kernel threads (for SOLARIS only)")   \
104976259Sgreen                                                                            \
105057429Smarkm  develop(bool, UseDetachedThreads, true,                                   \
1051181111Sdes          "Use detached threads that are recycled upon termination "        \
1052181111Sdes          "(for SOLARIS only)")                                             \
105360573Skris                                                                            \
105457429Smarkm  product(bool, UseLWPSynchronization, true,                                \
1055197679Sdes          "Use LWP-based instead of libthread-based synchronization "       \
1056197679Sdes          "(SPARC only)")                                                   \
105776259Sgreen                                                                            \
105857429Smarkm  product(ccstr, SyncKnobs, NULL,                                           \
105957429Smarkm          "(Unstable) Various monitor synchronization tunables")            \
106057429Smarkm                                                                            \
106157429Smarkm  product(intx, EmitSync, 0,                                                \
106257429Smarkm          "(Unsafe,Unstable) "                                              \
106357429Smarkm          " Controls emission of inline sync fast-path code")               \
106492555Sdes                                                                            \
106592555Sdes  product(intx, MonitorBound, 0, "Bound Monitor population")                \
106660573Skris                                                                            \
106757429Smarkm  product(bool, MonitorInUseLists, false, "Track Monitors for Deflation")   \
106857429Smarkm                                                                            \
106960573Skris  product(intx, Atomics, 0,                                                 \
107092555Sdes          "(Unsafe,Unstable) Diagnostic - Controls emission of atomics")    \
107157429Smarkm                                                                            \
107276259Sgreen  product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \
107376259Sgreen                                                                            \
107457429Smarkm  product(intx, SyncVerbose, 0, "(Unstable)" )                              \
107576259Sgreen                                                                            \
107657429Smarkm  product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" )                    \
107757429Smarkm                                                                            \
107857429Smarkm  product(intx, hashCode, 0,                                                \
107957429Smarkm         "(Unstable) select hashCode generation algorithm" )                \
1080197679Sdes                                                                            \
1081197679Sdes  product(intx, WorkAroundNPTLTimedWaitHang, 1,                             \
1082197679Sdes         "(Unstable, Linux-specific)"                                       \
108357429Smarkm         " avoid NPTL-FUTEX hang pthread_cond_timedwait" )                  \
1084197679Sdes                                                                            \
1085197679Sdes  product(bool, FilterSpuriousWakeups, true,                                \
1086181111Sdes          "Prevent spurious or premature wakeups from object.wait "         \
1087181111Sdes          "(Solaris only)")                                                 \
108857429Smarkm                                                                            \
1089181111Sdes  product(intx, NativeMonitorTimeout, -1, "(Unstable)" )                    \
1090197679Sdes  product(intx, NativeMonitorFlags, 0, "(Unstable)" )                       \
1091181111Sdes  product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" )                  \
1092181111Sdes                                                                            \
1093181111Sdes  develop(bool, UsePthreads, false,                                         \
1094197679Sdes          "Use pthread-based instead of libthread-based synchronization "   \
1095197679Sdes          "(SPARC only)")                                                   \
1096181111Sdes                                                                            \
1097197679Sdes  product(bool, AdjustConcurrency, false,                                   \
1098181111Sdes          "call thr_setconcurrency at thread create time to avoid "         \
1099181111Sdes          "LWP starvation on MP systems (For Solaris Only)")                \
1100197679Sdes                                                                            \
1101181111Sdes  product(bool, ReduceSignalUsage, false,                                   \
1102181111Sdes          "Reduce the use of OS signals in Java and/or the VM")             \
1103181111Sdes                                                                            \
1104181111Sdes  notproduct(bool, ValidateMarkSweep, false,                                \
1105181111Sdes          "Do extra validation during MarkSweep collection")                \
1106181111Sdes                                                                            \
1107181111Sdes  notproduct(bool, RecordMarkSweepCompaction, false,                        \
1108181111Sdes          "Enable GC-to-GC recording and querying of compaction during "    \
1109181111Sdes          "MarkSweep")                                                      \
1110181111Sdes                                                                            \
1111181111Sdes  develop_pd(bool, ShareVtableStubs,                                        \
1112181111Sdes          "Share vtable stubs (smaller code but worse branch prediction")   \
111357429Smarkm                                                                            \
1114197679Sdes  develop(bool, LoadLineNumberTables, true,                                 \
1115197679Sdes          "Tells whether the class file parser loads line number tables")   \
1116197679Sdes                                                                            \
1117197679Sdes  develop(bool, LoadLocalVariableTables, true,                              \
1118197679Sdes          "Tells whether the class file parser loads local variable tables")\
111957429Smarkm                                                                            \
1120124208Sdes  develop(bool, LoadLocalVariableTypeTables, true,                          \
1121126274Sdes          "Tells whether the class file parser loads local variable type tables")\
112257429Smarkm                                                                            \
112357429Smarkm  product(bool, AllowUserSignalHandlers, false,                             \
112457429Smarkm          "Do not complain if the application installs signal handlers "    \
112557429Smarkm          "(Solaris & Linux only)")                                         \
112657429Smarkm                                                                            \
112757429Smarkm  product(bool, UseSignalChaining, true,                                    \
112857429Smarkm          "Use signal-chaining to invoke signal handlers installed "        \
112957429Smarkm          "by the application (Solaris & Linux only)")                      \
113057429Smarkm                                                                            \
113192555Sdes  product(bool, UseAltSigs, false,                                          \
113292555Sdes          "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM "      \
113392555Sdes          "internal signals (Solaris only)")                                \
113492555Sdes                                                                            \
113592555Sdes  product(bool, AllowJNIEnvProxy, false,                                    \
113692555Sdes          "Allow JNIEnv proxies for jdbx")                                  \
113757429Smarkm                                                                            \
113857429Smarkm  product(bool, JNIDetachReleasesMonitors, true,                            \
113957429Smarkm          "JNI DetachCurrentThread releases monitors owned by thread")      \
114057429Smarkm                                                                            \
114157429Smarkm  product(bool, RestoreMXCSROnJNICalls, false,                              \
114257429Smarkm          "Restore MXCSR when returning from JNI calls")                    \
114392555Sdes                                                                            \
114457429Smarkm  product(bool, CheckJNICalls, false,                                       \
114557429Smarkm          "Verify all arguments to JNI calls")                              \
114657429Smarkm                                                                            \
114792555Sdes  product(bool, UseFastJNIAccessors, true,                                  \
114857429Smarkm          "Use optimized versions of Get<Primitive>Field")                  \
114957429Smarkm                                                                            \
115060573Skris  product(bool, EagerXrunInit, false,                                       \
115157429Smarkm          "Eagerly initialize -Xrun libraries; allows startup profiling, "  \
115257429Smarkm          " but not all -Xrun libraries may support the state of the VM at this time") \
115357429Smarkm                                                                            \
115457429Smarkm  product(bool, PreserveAllAnnotations, false,                              \
115557429Smarkm          "Preserve RuntimeInvisibleAnnotations as well as RuntimeVisibleAnnotations") \
115657429Smarkm                                                                            \
115757429Smarkm  develop(uintx, PreallocatedOutOfMemoryErrorCount, 4,                      \
115857429Smarkm          "Number of OutOfMemoryErrors preallocated with backtrace")        \
115957429Smarkm                                                                            \
116057429Smarkm  product(bool, LazyBootClassLoader, true,                                  \
116157429Smarkm          "Enable/disable lazy opening of boot class path entries")         \
116292555Sdes                                                                            \
116392555Sdes  product(bool, UseXMMForArrayCopy, false,                                  \
116457429Smarkm          "Use SSE2 MOVQ instruction for Arraycopy")                        \
116576259Sgreen                                                                            \
116692555Sdes  product(intx, FieldsAllocationStyle, 1,                                   \
116776259Sgreen          "0 - type based with oops first, 1 - with oops last, "            \
116857429Smarkm          "2 - oops in super and sub classes are together")                 \
116957429Smarkm                                                                            \
1170197679Sdes  product(bool, CompactFields, true,                                        \
117157429Smarkm          "Allocate nonstatic fields in gaps between previous fields")      \
117257429Smarkm                                                                            \
1173197679Sdes  notproduct(bool, PrintCompactFieldsSavings, false,                        \
1174162852Sdes          "Print how many words were saved with CompactFields")             \
117557429Smarkm                                                                            \
1176113908Sdes  product(bool, UseBiasedLocking, true,                                     \
117757429Smarkm          "Enable biased locking in JVM")                                   \
117857429Smarkm                                                                            \
117957429Smarkm  product(intx, BiasedLockingStartupDelay, 4000,                            \
1180197679Sdes          "Number of milliseconds to wait before enabling biased locking")  \
118157429Smarkm                                                                            \
118257429Smarkm  diagnostic(bool, PrintBiasedLockingStatistics, false,                     \
118357429Smarkm          "Print statistics of biased locking in JVM")                      \
118457429Smarkm                                                                            \
118557429Smarkm  product(intx, BiasedLockingBulkRebiasThreshold, 20,                       \
1186197679Sdes          "Threshold of number of revocations per type to try to "          \
118757429Smarkm          "rebias all objects in the heap of that type")                    \
118892555Sdes                                                                            \
118992555Sdes  product(intx, BiasedLockingBulkRevokeThreshold, 40,                       \
119092555Sdes          "Threshold of number of revocations per type to permanently "     \
119192555Sdes          "revoke biases of all objects in the heap of that type")          \
119292555Sdes                                                                            \
1193197679Sdes  product(intx, BiasedLockingDecayTime, 25000,                              \
1194197679Sdes          "Decay time (in milliseconds) to re-enable bulk rebiasing of a "  \
1195197679Sdes          "type after previous bulk rebias")                                \
1196162852Sdes                                                                            \
1197162852Sdes  /* tracing */                                                             \
1198162852Sdes                                                                            \
1199162852Sdes  notproduct(bool, TraceRuntimeCalls, false,                                \
1200162852Sdes          "Trace run-time calls")                                           \
1201162852Sdes                                                                            \
1202162852Sdes  develop(bool, TraceJNICalls, false,                                       \
1203162852Sdes          "Trace JNI calls")                                                \
120492555Sdes                                                                            \
120592555Sdes  notproduct(bool, TraceJVMCalls, false,                                    \
1206197679Sdes          "Trace JVM calls")                                                \
1207197679Sdes                                                                            \
1208197679Sdes  product(ccstr, TraceJVMTI, NULL,                                          \
1209248619Sdes          "Trace flags for JVMTI functions and events")                     \
121092555Sdes                                                                            \
1211197679Sdes  /* This option can change an EMCP method into an obsolete method. */      \
121257429Smarkm  /* This can affect tests that except specific methods to be EMCP. */      \
121357429Smarkm  /* This option should be used with caution. */                            \
121457429Smarkm  product(bool, StressLdcRewrite, false,                                    \
1215197679Sdes          "Force ldc -> ldc_w rewrite during RedefineClasses")              \
121657429Smarkm                                                                            \
121757429Smarkm  product(intx, TraceRedefineClasses, 0,                                    \
121857429Smarkm          "Trace level for JVMTI RedefineClasses")                          \
1219197679Sdes                                                                            \
1220197679Sdes  develop(bool, StressMethodComparator, false,                              \
122157429Smarkm          "run the MethodComparator on all loaded methods")                 \
122257429Smarkm                                                                            \
1223197679Sdes  /* change to false by default sometime after Mustang */                   \
122457429Smarkm  product(bool, VerifyMergedCPBytecodes, true,                              \
122557429Smarkm          "Verify bytecodes after RedefineClasses constant pool merging")   \
1226197679Sdes                                                                            \
122792555Sdes  develop(bool, TraceJNIHandleAllocation, false,                            \
1228197679Sdes          "Trace allocation/deallocation of JNI handle blocks")             \
122957429Smarkm                                                                            \
1230197679Sdes  develop(bool, TraceThreadEvents, false,                                   \
1231162852Sdes          "Trace all thread events")                                        \
123257429Smarkm                                                                            \
123357429Smarkm  develop(bool, TraceBytecodes, false,                                      \
1234197679Sdes          "Trace bytecode execution")                                       \
123557429Smarkm                                                                            \
1236197679Sdes  develop(bool, TraceClassInitialization, false,                            \
1237197679Sdes          "Trace class initialization")                                     \
1238197679Sdes                                                                            \
1239197679Sdes  develop(bool, TraceExceptions, false,                                     \
1240197679Sdes          "Trace exceptions")                                               \
1241197679Sdes                                                                            \
1242197679Sdes  develop(bool, TraceICs, false,                                            \
1243197679Sdes          "Trace inline cache changes")                                     \
124457429Smarkm                                                                            \
1245197679Sdes  notproduct(bool, TraceInvocationCounterOverflow, false,                   \
1246197679Sdes          "Trace method invocation counter overflow")                       \
1247197679Sdes                                                                            \
1248146998Sdes  develop(bool, TraceInlineCacheClearing, false,                            \
1249146998Sdes          "Trace clearing of inline caches in nmethods")                    \
125092555Sdes                                                                            \
125160573Skris  develop(bool, TraceDependencies, false,                                   \
125257429Smarkm          "Trace dependencies")                                             \
125392555Sdes                                                                            \
125492555Sdes  develop(bool, VerifyDependencies, trueInDebug,                            \
125560573Skris         "Exercise and verify the compilation dependency mechanism")        \
125676259Sgreen                                                                            \
1257248619Sdes  develop(bool, TraceNewOopMapGeneration, false,                            \
1258248619Sdes          "Trace OopMapGeneration")                                         \
125960573Skris                                                                            \
126060573Skris  develop(bool, TraceNewOopMapGenerationDetailed, false,                    \
126160573Skris          "Trace OopMapGeneration: print detailed cell states")             \
126257429Smarkm                                                                            \
1263197679Sdes  develop(bool, TimeOopMap, false,                                          \
1264192595Sdes          "Time calls to GenerateOopMap::compute_map() in sum")             \
1265192595Sdes                                                                            \
1266197679Sdes  develop(bool, TimeOopMap2, false,                                         \
1267197679Sdes          "Time calls to GenerateOopMap::compute_map() individually")       \
1268197679Sdes                                                                            \
1269197679Sdes  develop(bool, TraceMonitorMismatch, false,                                \
1270248619Sdes          "Trace monitor matching failures during OopMapGeneration")        \
1271248619Sdes                                                                            \
1272248619Sdes  develop(bool, TraceOopMapRewrites, false,                                 \
127357429Smarkm          "Trace rewritting of method oops during oop map generation")      \
127460573Skris                                                                            \
127592555Sdes  develop(bool, TraceSafepoint, false,                                      \
1276248619Sdes          "Trace safepoint operations")                                     \
127760573Skris                                                                            \
1278248619Sdes  develop(bool, TraceICBuffer, false,                                       \
1279248619Sdes          "Trace usage of IC buffer")                                       \
1280248619Sdes                                                                            \
1281248619Sdes  develop(bool, TraceCompiledIC, false,                                     \
1282248619Sdes          "Trace changes of compiled IC")                                   \
1283248619Sdes                                                                            \
1284248619Sdes  notproduct(bool, TraceZapDeadLocals, false,                               \
1285248619Sdes          "Trace zapping dead locals")                                      \
1286248619Sdes                                                                            \
1287248619Sdes  develop(bool, TraceStartupTime, false,                                    \
1288248619Sdes          "Trace setup time")                                               \
1289248619Sdes                                                                            \
1290248619Sdes  develop(bool, TraceProtectionDomainVerification, false,                   \
1291248619Sdes          "Trace protection domain verifcation")                            \
1292248619Sdes                                                                            \
129360573Skris  develop(bool, TraceClearedExceptions, false,                              \
129460573Skris          "Prints when an exception is forcibly cleared")                   \
129560573Skris                                                                            \
129660573Skris  product(bool, TraceClassResolution, false,                                \
1297197679Sdes          "Trace all constant pool resolutions (for debugging)")            \
129860573Skris                                                                            \
1299197679Sdes  product(bool, TraceBiasedLocking, false,                                  \
1300197679Sdes          "Trace biased locking in JVM")                                    \
130160573Skris                                                                            \
1302197679Sdes  product(bool, TraceMonitorInflation, false,                               \
1303248619Sdes          "Trace monitor inflation in JVM")                                 \
1304197679Sdes                                                                            \
1305240075Sdes  /* gc */                                                                  \
1306197679Sdes                                                                            \
1307197679Sdes  product(bool, UseSerialGC, false,                                         \
1308197679Sdes          "Use the serial garbage collector")                               \
1309124208Sdes                                                                            \
1310197679Sdes  product(bool, UseG1GC, false,                                             \
1311124208Sdes          "Use the Garbage-First garbage collector")                        \
1312197679Sdes                                                                            \
1313197679Sdes  product(bool, UseParallelGC, false,                                       \
1314192595Sdes          "Use the Parallel Scavenge garbage collector")                    \
1315192595Sdes                                                                            \
131660573Skris  product(bool, UseParallelOldGC, false,                                    \
1317197679Sdes          "Use the Parallel Old garbage collector")                         \
131860573Skris                                                                            \
1319248619Sdes  product(uintx, HeapMaximumCompactionInterval, 20,                         \
1320248619Sdes          "How often should we maximally compact the heap (not allowing "   \
1321248619Sdes          "any dead space)")                                                \
1322248619Sdes                                                                            \
1323248619Sdes  product(uintx, HeapFirstMaximumCompactionCount, 3,                        \
1324248619Sdes          "The collection count for the first maximum compaction")          \
1325248619Sdes                                                                            \
1326248619Sdes  product(bool, UseMaximumCompactionOnSystemGC, true,                       \
1327248619Sdes          "In the Parallel Old garbage collector maximum compaction for "   \
1328248619Sdes          "a system GC")                                                    \
1329248619Sdes                                                                            \
1330248619Sdes  product(uintx, ParallelOldDeadWoodLimiterMean, 50,                        \
1331248619Sdes          "The mean used by the par compact dead wood"                      \
1332192595Sdes          "limiter (a number between 0-100).")                              \
1333192595Sdes                                                                            \
133460573Skris  product(uintx, ParallelOldDeadWoodLimiterStdDev, 80,                      \
1335197679Sdes          "The standard deviation used by the par compact dead wood"        \
1336192595Sdes          "limiter (a number between 0-100).")                              \
1337192595Sdes                                                                            \
1338192595Sdes  product(uintx, ParallelGCThreads, 0,                                      \
133960573Skris          "Number of parallel threads parallel gc will use")                \
134060573Skris                                                                            \
1341248619Sdes  product(bool, UseDynamicNumberOfGCThreads, false,                         \
1342248619Sdes          "Dynamically choose the number of parallel threads "              \
1343248619Sdes          "parallel gc will use")                                           \
1344248619Sdes                                                                            \
1345248619Sdes  diagnostic(bool, ForceDynamicNumberOfGCThreads, false,                    \
134660573Skris          "Force dynamic selection of the number of"                        \
1347248619Sdes          "parallel threads parallel gc will use to aid debugging")         \
134860573Skris                                                                            \
134960573Skris  product(uintx, HeapSizePerGCThread, ScaleForWordSize(64*M),               \
135060573Skris          "Size of heap (bytes) per GC thread used in calculating the "     \
1351197679Sdes          "number of GC threads")                                           \
135260573Skris                                                                            \
1353248619Sdes  product(bool, TraceDynamicGCThreads, false,                               \
1354248619Sdes          "Trace the dynamic GC thread usage")                              \
1355248619Sdes                                                                            \
1356248619Sdes  develop(bool, ParallelOldGCSplitALot, false,                              \
1357248619Sdes          "Provoke splitting (copying data from a young gen space to"       \
1358197679Sdes          "multiple destination spaces)")                                   \
1359248619Sdes                                                                            \
1360248619Sdes  develop(uintx, ParallelOldGCSplitInterval, 3,                             \
136160573Skris          "How often to provoke splitting a young gen space")               \
136260573Skris                                                                            \
136360573Skris  product(uintx, ConcGCThreads, 0,                                          \
136460573Skris          "Number of threads concurrent gc will use")                       \
136560573Skris                                                                            \
1366248619Sdes  product(uintx, YoungPLABSize, 4096,                                       \
1367248619Sdes          "Size of young gen promotion labs (in HeapWords)")                \
1368248619Sdes                                                                            \
1369248619Sdes  product(uintx, OldPLABSize, 1024,                                         \
1370215116Sdes          "Size of old gen promotion labs (in HeapWords)")                  \
1371197679Sdes                                                                            \
1372192595Sdes  product(uintx, GCTaskTimeStampEntries, 200,                               \
1373192595Sdes          "Number of time stamp entries per gc worker thread")              \
1374192595Sdes                                                                            \
1375197679Sdes  product(bool, AlwaysTenure, false,                                        \
1376192595Sdes          "Always tenure objects in eden. (ParallelGC only)")               \
1377192595Sdes                                                                            \
1378192595Sdes  product(bool, NeverTenure, false,                                         \
1379192595Sdes          "Never tenure objects in eden, May tenure on overflow "           \
1380197679Sdes          "(ParallelGC only)")                                              \
1381197679Sdes                                                                            \
138260573Skris  product(bool, ScavengeBeforeFullGC, true,                                 \
1383192595Sdes          "Scavenge youngest generation before each full GC, "              \
138492555Sdes          "used with UseParallelGC")                                        \
1385197679Sdes                                                                            \
1386197679Sdes  develop(bool, ScavengeWithObjectsInToSpace, false,                        \
1387124208Sdes          "Allow scavenges to occur when to_space contains objects.")       \
1388197679Sdes                                                                            \
1389124208Sdes  product(bool, UseConcMarkSweepGC, false,                                  \
1390124208Sdes          "Use Concurrent Mark-Sweep GC in the old generation")             \
1391197679Sdes                                                                            \
1392197679Sdes  product(bool, ExplicitGCInvokesConcurrent, false,                         \
139360573Skris          "A System.gc() request invokes a concurrent collection;"          \
139460573Skris          " (effective only when UseConcMarkSweepGC)")                      \
1395197679Sdes                                                                            \
139692555Sdes  product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false,        \
139760573Skris          "A System.gc() request invokes a concurrent collection and "      \
139860573Skris          "also unloads classes during such a concurrent gc cycle "         \
139960573Skris          "(effective only when UseConcMarkSweepGC)")                       \
140060573Skris                                                                            \
140160573Skris  product(bool, GCLockerInvokesConcurrent, false,                           \
1402197679Sdes          "The exit of a JNI CS necessitating a scavenge also"              \
1403197679Sdes          " kicks off a bkgrd concurrent collection")                       \
140460573Skris                                                                            \
1405197679Sdes  product(uintx, GCLockerEdenExpansionPercent, 5,                           \
1406197679Sdes          "How much the GC can expand the eden by while the GC locker  "    \
140760573Skris          "is active (as a percentage)")                                    \
1408197679Sdes                                                                            \
1409197679Sdes  develop(bool, UseCMSAdaptiveFreeLists, true,                              \
1410197679Sdes          "Use Adaptive Free Lists in the CMS generation")                  \
1411197679Sdes                                                                            \
1412197679Sdes  develop(bool, UseAsyncConcMarkSweepGC, true,                              \
1413197679Sdes          "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\
1414197679Sdes                                                                            \
1415106121Sdes  develop(bool, RotateCMSCollectionTypes, false,                            \
1416197679Sdes          "Rotate the CMS collections among concurrent and STW")            \
141760573Skris                                                                            \
141860573Skris  product(bool, UseCMSBestFit, true,                                        \
141960573Skris          "Use CMS best fit allocation strategy")                           \
142060573Skris                                                                            \
142160573Skris  product(bool, UseCMSCollectionPassing, true,                              \
1422197679Sdes          "Use passing of collection from background to foreground")        \
1423146998Sdes                                                                            \
1424146998Sdes  product(bool, UseParNewGC, false,                                         \
142576259Sgreen          "Use parallel threads in the new generation.")                    \
142676259Sgreen                                                                            \
1427197679Sdes  product(bool, ParallelGCVerbose, false,                                   \
1428197679Sdes          "Verbose output for parallel GC.")                                \
1429149749Sdes                                                                            \
143060573Skris  product(intx, ParallelGCBufferWastePct, 10,                               \
143176259Sgreen          "wasted fraction of parallel allocation buffer.")                 \
1432197679Sdes                                                                            \
143360573Skris  diagnostic(bool, ParallelGCRetainPLAB, false,                             \
143492555Sdes             "Retain parallel allocation buffers across scavenges; "        \
1435197679Sdes             " -- disabled because this currently conflicts with "          \
143692555Sdes             " parallel card scanning under certain conditions ")           \
143757429Smarkm                                                                            \
143857429Smarkm  product(intx, TargetPLABWastePct, 10,                                     \
143960573Skris          "target wasted space in last buffer as pct of overall allocation")\
144092555Sdes                                                                            \
144160573Skris  product(uintx, PLABWeight, 75,                                            \
144299060Sdes          "Percentage (0-100) used to weight the current sample when"       \
144392555Sdes          "computing exponentially decaying average for ResizePLAB.")       \
144460573Skris                                                                            \
144592555Sdes  product(bool, ResizePLAB, true,                                           \
144660573Skris          "Dynamically resize (survivor space) promotion labs")             \
144792555Sdes                                                                            \
144892555Sdes  product(bool, PrintPLAB, false,                                           \
1449181111Sdes          "Print (survivor space) promotion labs sizing decisions")         \
1450197679Sdes                                                                            \
145160573Skris  product(intx, ParGCArrayScanChunk, 50,                                    \
1452181111Sdes          "Scan a subset and push remainder, if array is bigger than this") \
145392555Sdes                                                                            \
145460573Skris  product(bool, ParGCUseLocalOverflow, false,                               \
1455181111Sdes          "Instead of a global overflow list, use local overflow stacks")   \
145660573Skris                                                                            \
145760573Skris  product(bool, ParGCTrimOverflow, true,                                    \
145860573Skris          "Eagerly trim the local overflow lists (when ParGCUseLocalOverflow") \
145960573Skris                                                                            \
146060573Skris  notproduct(bool, ParGCWorkQueueOverflowALot, false,                       \
146160573Skris          "Whether we should simulate work queue overflow in ParNew")       \
146260573Skris                                                                            \
146360573Skris  notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000,                   \
146460573Skris          "An `interval' counter that determines how frequently "           \
146560573Skris          "we simulate overflow; a smaller number increases frequency")     \
146660573Skris                                                                            \
146760573Skris  product(uintx, ParGCDesiredObjsFromOverflowList, 20,                      \
1468249475Sdes          "The desired number of objects to claim from the overflow list")  \
1469249475Sdes                                                                            \
1470249475Sdes  diagnostic(uintx, ParGCStridesPerThread, 2,                               \
1471249475Sdes          "The number of strides per worker thread that we divide up the "  \
1472249475Sdes          "card table scanning work into")                                  \
147399060Sdes                                                                            \
147460573Skris  diagnostic(intx, ParGCCardsPerStrideChunk, 256,                           \
1475126274Sdes          "The number of cards in each chunk of the parallel chunks used "  \
147660573Skris          "during card table scanning")                                     \
147792555Sdes                                                                            \
147892555Sdes  product(uintx, CMSParPromoteBlocksToClaim, 16,                            \
147999060Sdes          "Number of blocks to attempt to claim when refilling CMS LAB for "\
148099060Sdes          "parallel GC.")                                                   \
148192555Sdes                                                                            \
148260573Skris  product(uintx, OldPLABWeight, 50,                                         \
148360573Skris          "Percentage (0-100) used to weight the current sample when"       \
148476259Sgreen          "computing exponentially decaying average for resizing CMSParPromoteBlocksToClaim.") \
148560573Skris                                                                            \
148692555Sdes  product(bool, ResizeOldPLAB, true,                                        \
148792555Sdes          "Dynamically resize (old gen) promotion labs")                    \
148860573Skris                                                                            \
148960573Skris  product(bool, PrintOldPLAB, false,                                        \
149060573Skris          "Print (old gen) promotion labs sizing decisions")                \
149160573Skris                                                                            \
149260573Skris  product(uintx, CMSOldPLABMin, 16,                                         \
149360573Skris          "Min size of CMS gen promotion lab caches per worker per blksize")\
149460573Skris                                                                            \
149560573Skris  product(uintx, CMSOldPLABMax, 1024,                                       \
149660573Skris          "Max size of CMS gen promotion lab caches per worker per blksize")\
1497249475Sdes                                                                            \
149899060Sdes  product(uintx, CMSOldPLABNumRefills, 4,                                   \
1499126274Sdes          "Nominal number of refills of CMS gen promotion lab cache"        \
150060573Skris          " per worker per block size")                                     \
150160573Skris                                                                            \
150292555Sdes  product(bool, CMSOldPLABResizeQuicker, false,                             \
150360573Skris          "Whether to react on-the-fly during a scavenge to a sudden"       \
150460573Skris          " change in block demand rate")                                   \
150576259Sgreen                                                                            \
150660573Skris  product(uintx, CMSOldPLABToleranceFactor, 4,                              \
150760573Skris          "The tolerance of the phase-change detector for on-the-fly"       \
150860573Skris          " PLAB resizing during a scavenge")                               \
150960573Skris                                                                            \
151057429Smarkm  product(uintx, CMSOldPLABReactivityFactor, 2,                             \
151157429Smarkm          "The gain in the feedback loop for on-the-fly PLAB resizing"      \
151257429Smarkm          " during a scavenge")                                             \
151357429Smarkm                                                                            \
151457429Smarkm  product(bool, AlwaysPreTouch, false,                                      \
151557429Smarkm          "It forces all freshly committed pages to be pre-touched.")       \
151676259Sgreen                                                                            \
151757429Smarkm  product_pd(intx, CMSYoungGenPerWorker,                                    \
1518197679Sdes          "The maximum size of young gen chosen by default per GC worker "  \
1519197679Sdes          "thread available")                                               \
1520197679Sdes                                                                            \
1521192595Sdes  product(bool, CMSIncrementalMode, false,                                  \
1522197679Sdes          "Whether CMS GC should operate in \"incremental\" mode")          \
1523192595Sdes                                                                            \
1524192595Sdes  product(uintx, CMSIncrementalDutyCycle, 10,                               \
1525197679Sdes          "CMS incremental mode duty cycle (a percentage, 0-100).  If"      \
152657429Smarkm          "CMSIncrementalPacing is enabled, then this is just the initial"  \
152757429Smarkm          "value")                                                          \
152857429Smarkm                                                                            \
152957429Smarkm  product(bool, CMSIncrementalPacing, true,                                 \
153076259Sgreen          "Whether the CMS incremental mode duty cycle should be "          \
153192555Sdes          "automatically adjusted")                                         \
153257429Smarkm                                                                            \
153357429Smarkm  product(uintx, CMSIncrementalDutyCycleMin, 0,                             \
1534106121Sdes          "Lower bound on the duty cycle when CMSIncrementalPacing is "     \
1535197679Sdes          "enabled (a percentage, 0-100)")                                  \
153676259Sgreen                                                                            \
153757429Smarkm  product(uintx, CMSIncrementalSafetyFactor, 10,                            \
153857429Smarkm          "Percentage (0-100) used to add conservatism when computing the " \
153957429Smarkm          "duty cycle")                                                     \
154057429Smarkm                                                                            \
154176259Sgreen  product(uintx, CMSIncrementalOffset, 0,                                   \
154292555Sdes          "Percentage (0-100) by which the CMS incremental mode duty cycle" \
154357429Smarkm          " is shifted to the right within the period between young GCs")   \
1544197679Sdes                                                                            \
154557429Smarkm  product(uintx, CMSExpAvgFactor, 50,                                       \
154657429Smarkm          "Percentage (0-100) used to weight the current sample when"       \
1547197679Sdes          "computing exponential averages for CMS statistics.")             \
1548197679Sdes                                                                            \
1549197679Sdes  product(uintx, CMS_FLSWeight, 75,                                         \
1550197679Sdes          "Percentage (0-100) used to weight the current sample when"       \
1551197679Sdes          "computing exponentially decating averages for CMS FLS statistics.") \
1552197679Sdes                                                                            \
1553197679Sdes  product(uintx, CMS_FLSPadding, 1,                                         \
1554197679Sdes          "The multiple of deviation from mean to use for buffering"        \
155557429Smarkm          "against volatility in free list demand.")                        \
155657429Smarkm                                                                            \
155757429Smarkm  product(uintx, FLSCoalescePolicy, 2,                                      \
155857429Smarkm          "CMS: Aggression level for coalescing, increasing from 0 to 4")   \
155957429Smarkm                                                                            \
156057429Smarkm  product(bool, FLSAlwaysCoalesceLarge, false,                              \
156192555Sdes          "CMS: Larger free blocks are always available for coalescing")    \
156257429Smarkm                                                                            \
1563197679Sdes  product(double, FLSLargestBlockCoalesceProximity, 0.99,                   \
156457429Smarkm          "CMS: the smaller the percentage the greater the coalition force")\
156557429Smarkm                                                                            \
156660573Skris  product(double, CMSSmallCoalSurplusPercent, 1.05,                         \
156792555Sdes          "CMS: the factor by which to inflate estimated demand of small"   \
156860573Skris          " block sizes to prevent coalescing with an adjoining block")     \
1569197679Sdes                                                                            \
157060573Skris  product(double, CMSLargeCoalSurplusPercent, 0.95,                         \
157160573Skris          "CMS: the factor by which to inflate estimated demand of large"   \
1572221420Sdes          " block sizes to prevent coalescing with an adjoining block")     \
1573221420Sdes                                                                            \
1574221420Sdes  product(double, CMSSmallSplitSurplusPercent, 1.10,                        \
1575221420Sdes          "CMS: the factor by which to inflate estimated demand of small"   \
1576221420Sdes          " block sizes to prevent splitting to supply demand for smaller"  \
1577221420Sdes          " blocks")                                                        \
1578221420Sdes                                                                            \
1579221420Sdes  product(double, CMSLargeSplitSurplusPercent, 1.00,                        \
158092555Sdes          "CMS: the factor by which to inflate estimated demand of large"   \
1581149749Sdes          " block sizes to prevent splitting to supply demand for smaller"  \
158260573Skris          " blocks")                                                        \
1583197679Sdes                                                                            \
1584106121Sdes  product(bool, CMSExtrapolateSweep, false,                                 \
158560573Skris          "CMS: cushion for block demand during sweep")                     \
158660573Skris                                                                            \
1587197679Sdes  product(uintx, CMS_SweepWeight, 75,                                       \
158860573Skris          "Percentage (0-100) used to weight the current sample when "      \
158960573Skris          "computing exponentially decaying average for inter-sweep "       \
159060573Skris          "duration")                                                       \
159160573Skris                                                                            \
159260573Skris  product(uintx, CMS_SweepPadding, 1,                                       \
1593197679Sdes          "The multiple of deviation from mean to use for buffering "       \
159460573Skris          "against volatility in inter-sweep duration.")                    \
159560573Skris                                                                            \
159657429Smarkm  product(uintx, CMS_SweepTimerThresholdMillis, 10,                         \
159757429Smarkm          "Skip block flux-rate sampling for an epoch unless inter-sweep "  \
159857429Smarkm          "duration exceeds this threhold in milliseconds")                 \
159957429Smarkm                                                                            \
160057429Smarkm  develop(bool, CMSTraceIncrementalMode, false,                             \
160157429Smarkm          "Trace CMS incremental mode")                                     \
160257429Smarkm                                                                            \
160392555Sdes  develop(bool, CMSTraceIncrementalPacing, false,                           \
160476259Sgreen          "Trace CMS incremental mode pacing computation")                  \
160557429Smarkm                                                                            \
1606197679Sdes  develop(bool, CMSTraceThreadState, false,                                 \
160757429Smarkm          "Trace the CMS thread state (enable the trace_state() method)")   \
160857429Smarkm                                                                            \
1609181111Sdes  product(bool, CMSClassUnloadingEnabled, false,                            \
1610181111Sdes          "Whether class unloading enabled when using CMS GC")              \
1611181111Sdes                                                                            \
1612197679Sdes  product(uintx, CMSClassUnloadingMaxInterval, 0,                           \
1613181111Sdes          "When CMS class unloading is enabled, the maximum CMS cycle count"\
1614181111Sdes          " for which classes may not be unloaded")                         \
1615221420Sdes                                                                            \
1616221420Sdes  product(bool, CMSCompactWhenClearAllSoftRefs, true,                       \
1617221420Sdes          "Compact when asked to collect CMS gen with clear_all_soft_refs") \
1618221420Sdes                                                                            \
1619221420Sdes  product(bool, UseCMSCompactAtFullCollection, true,                        \
1620221420Sdes          "Use mark sweep compact at full collections")                     \
1621221420Sdes                                                                            \
162257429Smarkm  product(uintx, CMSFullGCsBeforeCompaction, 0,                             \
162357429Smarkm          "Number of CMS full collection done before compaction if > 0")    \
162457429Smarkm                                                                            \
162557429Smarkm  develop(intx, CMSDictionaryChoice, 0,                                     \
162657429Smarkm          "Use BinaryTreeDictionary as default in the CMS generation")      \
162757429Smarkm                                                                            \
162857429Smarkm  product(uintx, CMSIndexedFreeListReplenish, 4,                            \
162957429Smarkm          "Replenish an indexed free list with this number of chunks")     \
163057429Smarkm                                                                            \
163157429Smarkm  product(bool, CMSReplenishIntermediate, true,                             \
163257429Smarkm          "Replenish all intermediate free-list caches")                    \
163357429Smarkm                                                                            \
163457429Smarkm  product(bool, CMSSplitIndexedFreeListBlocks, true,                        \
163557429Smarkm          "When satisfying batched demand, split blocks from the "          \
163657429Smarkm          "IndexedFreeList whose size is a multiple of requested size")     \
163776259Sgreen                                                                            \
163876259Sgreen  product(bool, CMSLoopWarn, false,                                         \
163976259Sgreen          "Warn in case of excessive CMS looping")                          \
164057429Smarkm                                                                            \
164157429Smarkm  develop(bool, CMSOverflowEarlyRestoration, false,                         \
164257429Smarkm          "Whether preserved marks should be restored early")               \
164357429Smarkm                                                                            \
164460573Skris  product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M),              \
164560573Skris          "Size of marking stack")                                          \
164660573Skris                                                                            \
164760573Skris  product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M),          \
164860573Skris          "Max size of marking stack")                                      \
164960573Skris                                                                            \
165060573Skris  notproduct(bool, CMSMarkStackOverflowALot, false,                         \
165160573Skris          "Whether we should simulate frequent marking stack / work queue"  \
165260573Skris          " overflow")                                                      \
165357429Smarkm                                                                            \
165457429Smarkm  notproduct(uintx, CMSMarkStackOverflowInterval, 1000,                     \
165557429Smarkm          "An `interval' counter that determines how frequently"            \
165657429Smarkm          " we simulate overflow; a smaller number increases frequency")    \
165757429Smarkm                                                                            \
165857429Smarkm  product(uintx, CMSMaxAbortablePrecleanLoops, 0,                           \
165957429Smarkm          "(Temporary, subject to experimentation)"                         \
166057429Smarkm          "Maximum number of abortable preclean iterations, if > 0")        \
166157429Smarkm                                                                            \
166257429Smarkm  product(intx, CMSMaxAbortablePrecleanTime, 5000,                          \
166357429Smarkm          "(Temporary, subject to experimentation)"                         \
166457429Smarkm          "Maximum time in abortable preclean in ms")                       \
166557429Smarkm                                                                            \
166657429Smarkm  product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100,              \
166757429Smarkm          "(Temporary, subject to experimentation)"                         \
166857429Smarkm          "Nominal minimum work per abortable preclean iteration")          \
166957429Smarkm                                                                            \
1670106121Sdes  manageable(intx, CMSAbortablePrecleanWaitMillis, 100,                     \
167157429Smarkm          "(Temporary, subject to experimentation)"                         \
167257429Smarkm          " Time that we sleep between iterations when not given"           \
167357429Smarkm          " enough work per iteration")                                     \
167457429Smarkm                                                                            \
167557429Smarkm  product(uintx, CMSRescanMultiple, 32,                                     \
167657429Smarkm          "Size (in cards) of CMS parallel rescan task")                    \
167757429Smarkm                                                                            \
167857429Smarkm  product(uintx, CMSConcMarkMultiple, 32,                                   \
167957429Smarkm          "Size (in cards) of CMS concurrent MT marking task")              \
168057429Smarkm                                                                            \
168157429Smarkm  product(bool, CMSAbortSemantics, false,                                   \
168257429Smarkm          "Whether abort-on-overflow semantics is implemented")             \
1683113908Sdes                                                                            \
1684124208Sdes  product(bool, CMSParallelRemarkEnabled, true,                             \
1685113908Sdes          "Whether parallel remark enabled (only if ParNewGC)")             \
168657429Smarkm                                                                            \
168760573Skris  product(bool, CMSParallelSurvivorRemarkEnabled, true,                     \
168860573Skris          "Whether parallel remark of survivor space"                       \
168960573Skris          " enabled (effective only if CMSParallelRemarkEnabled)")          \
169060573Skris                                                                            \
169160573Skris  product(bool, CMSPLABRecordAlways, true,                                  \
169260573Skris          "Whether to always record survivor space PLAB bdries"             \
169360573Skris          " (effective only if CMSParallelSurvivorRemarkEnabled)")          \
169492555Sdes                                                                            \
169560573Skris  product(bool, CMSConcurrentMTEnabled, true,                               \
169657429Smarkm          "Whether multi-threaded concurrent work enabled (if ParNewGC)")   \
169757429Smarkm                                                                            \
169857429Smarkm  product(bool, CMSPrecleaningEnabled, true,                                \
169957429Smarkm          "Whether concurrent precleaning enabled")                         \
170092555Sdes                                                                            \
170157429Smarkm  product(uintx, CMSPrecleanIter, 3,                                        \
170257429Smarkm          "Maximum number of precleaning iteration passes")                 \
170357429Smarkm                                                                            \
1704126274Sdes  product(uintx, CMSPrecleanNumerator, 2,                                   \
170557429Smarkm          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence"  \
170657429Smarkm          " ratio")                                                         \
170757429Smarkm                                                                            \
170857429Smarkm  product(uintx, CMSPrecleanDenominator, 3,                                 \
170957429Smarkm          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence"  \
171092555Sdes          " ratio")                                                         \
171157429Smarkm                                                                            \
1712197679Sdes  product(bool, CMSPrecleanRefLists1, true,                                 \
1713197679Sdes          "Preclean ref lists during (initial) preclean phase")             \
1714106121Sdes                                                                            \
171557429Smarkm  product(bool, CMSPrecleanRefLists2, false,                                \
1716197679Sdes          "Preclean ref lists during abortable preclean phase")             \
1717197679Sdes                                                                            \
1718197679Sdes  product(bool, CMSPrecleanSurvivors1, false,                               \
1719181111Sdes          "Preclean survivors during (initial) preclean phase")             \
1720181111Sdes                                                                            \
1721181111Sdes  product(bool, CMSPrecleanSurvivors2, true,                                \
172257429Smarkm          "Preclean survivors during abortable preclean phase")             \
1723181111Sdes                                                                            \
172457429Smarkm  product(uintx, CMSPrecleanThreshold, 1000,                                \
1725197679Sdes          "Don't re-iterate if #dirty cards less than this")                \
1726181111Sdes                                                                            \
1727197679Sdes  product(bool, CMSCleanOnEnter, true,                                      \
172857429Smarkm          "Clean-on-enter optimization for reducing number of dirty cards") \
172957429Smarkm                                                                            \
173057429Smarkm  product(uintx, CMSRemarkVerifyVariant, 1,                                 \
173157429Smarkm          "Choose variant (1,2) of verification following remark")          \
173257429Smarkm                                                                            \
173357429Smarkm  product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M,                   \
173457429Smarkm          "If Eden used is below this value, don't try to schedule remark") \
173557429Smarkm                                                                            \
173657429Smarkm  product(uintx, CMSScheduleRemarkEdenPenetration, 50,                      \
173792555Sdes          "The Eden occupancy % at which to try and schedule remark pause") \
173857429Smarkm                                                                            \
173976259Sgreen  product(uintx, CMSScheduleRemarkSamplingRatio, 5,                         \
1740181111Sdes          "Start sampling Eden top at least before yg occupancy reaches"    \
1741181111Sdes          " 1/<ratio> of the size at which we plan to schedule remark")     \
174276259Sgreen                                                                            \
1743197679Sdes  product(uintx, CMSSamplingGrain, 16*K,                                    \
1744197679Sdes          "The minimum distance between eden samples for CMS (see above)")  \
174557429Smarkm                                                                            \
174657429Smarkm  product(bool, CMSScavengeBeforeRemark, false,                             \
1747197679Sdes          "Attempt scavenge before the CMS remark step")                    \
1748197679Sdes                                                                            \
1749197679Sdes  develop(bool, CMSTraceSweeper, false,                                     \
1750181111Sdes          "Trace some actions of the CMS sweeper")                          \
1751197679Sdes                                                                            \
1752197679Sdes  product(uintx, CMSWorkQueueDrainThreshold, 10,                            \
1753181111Sdes          "Don't drain below this size per parallel worker/thief")          \
1754181111Sdes                                                                            \
1755181111Sdes  manageable(intx, CMSWaitDuration, 2000,                                   \
1756197679Sdes          "Time in milliseconds that CMS thread waits for young GC")        \
1757181111Sdes                                                                            \
1758181111Sdes  product(bool, CMSYield, true,                                             \
1759181111Sdes          "Yield between steps of concurrent mark & sweep")                 \
1760197679Sdes                                                                            \
1761197679Sdes  product(uintx, CMSBitMapYieldQuantum, 10*M,                               \
1762181111Sdes          "Bitmap operations should process at most this many bits"         \
1763197679Sdes          "between yields")                                                 \
1764181111Sdes                                                                            \
1765181111Sdes  product(bool, CMSDumpAtPromotionFailure, false,                           \
1766197679Sdes          "Dump useful information about the state of the CMS old "         \
1767181111Sdes          " generation upon a promotion failure.")                          \
1768181111Sdes                                                                            \
1769181111Sdes  product(bool, CMSPrintChunksInDump, false,                                \
1770181111Sdes          "In a dump enabled by CMSDumpAtPromotionFailure, include "        \
1771181111Sdes          " more detailed information about the free chunks.")              \
1772181111Sdes                                                                            \
1773181111Sdes  product(bool, CMSPrintObjectsInDump, false,                               \
1774181111Sdes          "In a dump enabled by CMSDumpAtPromotionFailure, include "        \
1775181111Sdes          " more detailed information about the allocated objects.")        \
1776181111Sdes                                                                            \
1777181111Sdes  diagnostic(bool, FLSVerifyAllHeapReferences, false,                       \
1778181111Sdes          "Verify that all refs across the FLS boundary "                   \
177957429Smarkm          " are to valid objects")                                          \
178057429Smarkm                                                                            \
178176259Sgreen  diagnostic(bool, FLSVerifyLists, false,                                   \
178257429Smarkm          "Do lots of (expensive) FreeListSpace verification")              \
178357429Smarkm                                                                            \
178457429Smarkm  diagnostic(bool, FLSVerifyIndexTable, false,                              \
178557429Smarkm          "Do lots of (expensive) FLS index table verification")            \
178657429Smarkm                                                                            \
178792555Sdes  develop(bool, FLSVerifyDictionary, false,                                 \
178857429Smarkm          "Do lots of (expensive) FLS dictionary verification")             \
1789197679Sdes                                                                            \
179057429Smarkm  develop(bool, VerifyBlockOffsetArray, false,                              \
179157429Smarkm          "Do (expensive!) block offset array verification")                \
179257429Smarkm                                                                            \
179357429Smarkm  diagnostic(bool, BlockOffsetArrayUseUnallocatedBlock, false,              \
179457429Smarkm          "Maintain _unallocated_block in BlockOffsetArray"                 \
179592555Sdes          " (currently applicable only to CMS collector)")                  \
179657429Smarkm                                                                            \
1797197679Sdes  develop(bool, TraceCMSState, false,                                       \
1798197679Sdes          "Trace the state of the CMS collection")                          \
179957429Smarkm                                                                            \
1800197679Sdes  product(intx, RefDiscoveryPolicy, 0,                                      \
180157429Smarkm          "Whether reference-based(0) or referent-based(1)")                \
180257429Smarkm                                                                            \
1803113908Sdes  product(bool, ParallelRefProcEnabled, false,                              \
1804221420Sdes          "Enable parallel reference processing whenever possible")         \
1805113908Sdes                                                                            \
1806226046Sdes  product(bool, ParallelRefProcBalancingEnabled, true,                      \
1807226046Sdes          "Enable balancing of reference processing queues")                \
1808113908Sdes                                                                            \
1809226046Sdes  product(intx, CMSTriggerRatio, 80,                                        \
1810226046Sdes          "Percentage of MinHeapFreeRatio in CMS generation that is "       \
1811226046Sdes          "allocated before a CMS collection cycle commences")              \
1812226046Sdes                                                                            \
1813226046Sdes  product(uintx, CMSBootstrapOccupancy, 50,                                 \
1814226046Sdes          "Percentage CMS generation occupancy at which to "                \
1815226046Sdes          "initiate CMS collection for bootstrapping collection stats")     \
1816226046Sdes                                                                            \
1817226046Sdes  product(intx, CMSInitiatingOccupancyFraction, -1,                         \
1818226046Sdes          "Percentage CMS generation occupancy to start a CMS collection "  \
1819226046Sdes          "cycle. A negative value means that CMSTriggerRatio is used")     \
1820226046Sdes                                                                            \
1821226046Sdes  product(uintx, InitiatingHeapOccupancyPercent, 45,                        \
1822226046Sdes          "Percentage of the (entire) heap occupancy to start a "           \
1823226046Sdes          "concurrent GC cycle. It us used by GCs that trigger a "          \
1824226046Sdes          "concurrent GC cycle based on the occupancy of the entire heap, " \
1825226046Sdes          "not just one of the generations (e.g., G1). A value of 0 "       \
1826226046Sdes          "denotes 'do constant GC cycles'.")                               \
1827226046Sdes                                                                            \
1828226046Sdes  product(bool, UseCMSInitiatingOccupancyOnly, false,                       \
1829226046Sdes          "Only use occupancy as a crierion for starting a CMS collection") \
1830113908Sdes                                                                            \
1831113908Sdes  product(intx, CMSIsTooFullPercentage, 98,                                 \
183257429Smarkm          "An absolute ceiling above which CMS will always consider the "   \
183357429Smarkm          "perm gen ripe for collection")                                   \
183457429Smarkm                                                                            \
1835221420Sdes  develop(bool, CMSTestInFreeList, false,                                   \
183657429Smarkm          "Check if the coalesced range is already in the "                 \
1837197679Sdes          "free lists as claimed")                                          \
183876259Sgreen                                                                            \
1839197679Sdes  notproduct(bool, CMSVerifyReturnedBytes, false,                           \
184076259Sgreen          "Check that all the garbage collected was returned to the "       \
184157429Smarkm          "free lists.")                                                    \
1842197679Sdes                                                                            \
184357429Smarkm  notproduct(bool, ScavengeALot, false,                                     \
184457429Smarkm          "Force scavenge at every Nth exit from the runtime system "       \
184557429Smarkm          "(N=ScavengeALotInterval)")                                       \
1846116791Sdes                                                                            \
1847197679Sdes  develop(bool, FullGCALot, false,                                          \
1848221420Sdes          "Force full gc at every Nth exit from the runtime system "        \
184957429Smarkm          "(N=FullGCALotInterval)")                                         \
185057429Smarkm                                                                            \
185157429Smarkm  notproduct(bool, GCALotAtAllSafepoints, false,                            \
185257429Smarkm          "Enforce ScavengeALot/GCALot at all potential safepoints")        \
185357429Smarkm                                                                            \
185492555Sdes  product(bool, PrintPromotionFailure, false,                               \
185557429Smarkm          "Print additional diagnostic information following "              \
1856197679Sdes          " promotion failure")                                             \
185757429Smarkm                                                                            \
185857429Smarkm  notproduct(bool, PromotionFailureALot, false,                             \
1859137015Sdes          "Use promotion failure handling on every youngest generation "    \
1860124208Sdes          "collection")                                                     \
186157429Smarkm                                                                            \
1862197679Sdes  develop(uintx, PromotionFailureALotCount, 1000,                           \
1863124208Sdes          "Number of promotion failures occurring at ParGCAllocBuffer"      \
1864197679Sdes          "refill attempts (ParNew) or promotion attempts "                 \
186557429Smarkm          "(other young collectors) ")                                      \
186657429Smarkm                                                                            \
186757429Smarkm  develop(uintx, PromotionFailureALotInterval, 5,                           \
1868124208Sdes          "Total collections between promotion failures alot")              \
186957429Smarkm                                                                            \
187057429Smarkm  experimental(intx, WorkStealingSleepMillis, 1,                            \
1871197679Sdes          "Sleep time when sleep is used for yields")                       \
187292555Sdes                                                                            \
1873197679Sdes  experimental(uintx, WorkStealingYieldsBeforeSleep, 5000,                  \
187457429Smarkm          "Number of yields before a sleep is done during workstealing")    \
187557429Smarkm                                                                            \
187676259Sgreen  experimental(uintx, WorkStealingHardSpins, 4096,                          \
1877197679Sdes          "Number of iterations in a spin loop between checks on "          \
1878197679Sdes          "time out of hard spin")                                          \
1879197679Sdes                                                                            \
1880197679Sdes  experimental(uintx, WorkStealingSpinToYieldRatio, 10,                     \
1881197679Sdes          "Ratio of hard spins to calls to yield")                          \
1882197679Sdes                                                                            \
1883197679Sdes  develop(uintx, ObjArrayMarkingStride, 512,                                \
1884197679Sdes          "Number of ObjArray elements to push onto the marking stack"      \
1885197679Sdes          "before pushing a continuation entry")                            \
1886197679Sdes                                                                            \
1887197679Sdes  develop(bool, MetadataAllocationFailALot, false,                          \
1888197679Sdes          "Fail metadata allocations at intervals controlled by "           \
1889197679Sdes          "MetadataAllocationFailALotInterval")                             \
1890197679Sdes                                                                            \
1891197679Sdes  develop(uintx, MetadataAllocationFailALotInterval, 1000,                  \
1892197679Sdes          "metadata allocation failure alot interval")                      \
1893197679Sdes                                                                            \
1894197679Sdes  develop(bool, MetaDataDeallocateALot, false,                              \
189592555Sdes          "Deallocation bunches of metadata at intervals controlled by "    \
189692555Sdes          "MetaDataAllocateALotInterval")                                   \
189792555Sdes                                                                            \
189892555Sdes  develop(uintx, MetaDataDeallocateALotInterval, 100,                       \
1899197679Sdes          "Metadata deallocation alot interval")                            \
190092555Sdes                                                                            \
190192555Sdes  develop(bool, TraceMetadataChunkAllocation, false,                        \
190276259Sgreen          "Trace humongous metadata allocations")                           \
190376259Sgreen                                                                            \
190476259Sgreen  product(bool, TraceMetadataHumongousAllocation, false,                    \
190576259Sgreen          "Trace humongous metadata allocations")                           \
190676259Sgreen                                                                            \
190776259Sgreen  develop(bool, TraceMetavirtualspaceAllocation, false,                     \
190876259Sgreen          "Trace humongous metadata allocations")                           \
190976259Sgreen                                                                            \
191076259Sgreen  notproduct(bool, ExecuteInternalVMTests, false,                           \
191176259Sgreen          "Enable execution of internal VM tests.")                         \
191276259Sgreen                                                                            \
191376259Sgreen  product_pd(bool, UseTLAB, "Use thread-local object allocation")           \
191476259Sgreen                                                                            \
191576259Sgreen  product_pd(bool, ResizeTLAB,                                              \
1916137015Sdes          "Dynamically resize tlab size for threads")                       \
191776259Sgreen                                                                            \
191876259Sgreen  product(bool, ZeroTLAB, false,                                            \
191976259Sgreen          "Zero out the newly created TLAB")                                \
192076259Sgreen                                                                            \
192192555Sdes  product(bool, FastTLABRefill, true,                                       \
192276259Sgreen          "Use fast TLAB refill code")                                      \
1923137015Sdes                                                                            \
1924162852Sdes  product(bool, PrintTLAB, false,                                           \
1925137015Sdes          "Print various TLAB related information")                         \
192676259Sgreen                                                                            \
192776259Sgreen  product(bool, TLABStats, true,                                            \
1928124208Sdes          "Print various TLAB related information")                         \
1929224638Sbrooks                                                                            \
1930224638Sbrooks  EMBEDDED_ONLY(product(bool, LowMemoryProtection, true,                    \
1931224638Sbrooks          "Enable LowMemoryProtection"))                                    \
1932224638Sbrooks                                                                            \
1933224638Sbrooks  product_pd(bool, NeverActAsServerClassMachine,                            \
1934224638Sbrooks          "Never act like a server-class machine")                          \
1935224638Sbrooks                                                                            \
1936224638Sbrooks  product(bool, AlwaysActAsServerClassMachine, false,                       \
1937137015Sdes          "Always act like a server-class machine")                         \
1938124208Sdes                                                                            \
1939124208Sdes  product_pd(uint64_t, MaxRAM,                                              \
1940124208Sdes          "Real memory size (in bytes) used to set maximum heap size")      \
1941124208Sdes                                                                            \
1942124208Sdes  product(uintx, ErgoHeapSizeLimit, 0,                                      \
1943224638Sbrooks          "Maximum ergonomically set heap size (in bytes); zero means use " \
1944224638Sbrooks          "MaxRAM / MaxRAMFraction")                                        \
1945224638Sbrooks                                                                            \
1946224638Sbrooks  product(uintx, MaxRAMFraction, 4,                                         \
1947224638Sbrooks          "Maximum fraction (1/n) of real memory used for maximum heap "    \
1948224638Sbrooks          "size")                                                           \
1949124208Sdes                                                                            \
1950197679Sdes  product(uintx, DefaultMaxRAMFraction, 4,                                  \
1951197679Sdes          "Maximum fraction (1/n) of real memory used for maximum heap "    \
1952197679Sdes          "size; deprecated: to be renamed to MaxRAMFraction")              \
1953197679Sdes                                                                            \
1954197679Sdes  product(uintx, MinRAMFraction, 2,                                         \
1955197679Sdes          "Minimum fraction (1/n) of real memory used for maxmimum heap "   \
1956124208Sdes          "size on systems with small physical memory size")                \
1957124208Sdes                                                                            \
1958124208Sdes  product(uintx, InitialRAMFraction, 64,                                    \
1959124208Sdes          "Fraction (1/n) of real memory used for initial heap size")       \
1960124208Sdes                                                                            \
1961197679Sdes  product(bool, UseAutoGCSelectPolicy, false,                               \
1962124208Sdes          "Use automatic collection selection policy")                      \
1963149749Sdes                                                                            \
1964149749Sdes  product(uintx, AutoGCSelectPauseMillis, 5000,                             \
1965149749Sdes          "Automatic GC selection pause threshhold in ms")                  \
1966149749Sdes                                                                            \
1967197679Sdes  product(bool, UseAdaptiveSizePolicy, true,                                \
1968149749Sdes          "Use adaptive generation sizing policies")                        \
1969149749Sdes                                                                            \
1970149749Sdes  product(bool, UsePSAdaptiveSurvivorSizePolicy, true,                      \
1971149749Sdes          "Use adaptive survivor sizing policies")                          \
1972149749Sdes                                                                            \
1973197679Sdes  product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true,     \
1974149749Sdes          "Use adaptive young-old sizing policies at minor collections")    \
1975197679Sdes                                                                            \
1976197679Sdes  product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true,     \
1977197679Sdes          "Use adaptive young-old sizing policies at major collections")    \
1978197679Sdes                                                                            \
1979197679Sdes  product(bool, UseAdaptiveSizePolicyWithSystemGC, false,                   \
1980197679Sdes          "Use statistics from System.GC for adaptive size policy")         \
1981197679Sdes                                                                            \
1982197679Sdes  product(bool, UseAdaptiveGCBoundary, false,                               \
1983197679Sdes          "Allow young-old boundary to move")                               \
1984197679Sdes                                                                            \
1985197679Sdes  develop(bool, TraceAdaptiveGCBoundary, false,                             \
1986197679Sdes          "Trace young-old boundary moves")                                 \
1987197679Sdes                                                                            \
1988197679Sdes  develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1,             \
1989197679Sdes          "Resize the virtual spaces of the young or old generations")      \
1990197679Sdes                                                                            \
1991197679Sdes  product(uintx, AdaptiveSizeThroughPutPolicy, 0,                           \
1992197679Sdes          "Policy for changeing generation size for throughput goals")      \
1993197679Sdes                                                                            \
1994197679Sdes  product(uintx, AdaptiveSizePausePolicy, 0,                                \
1995197679Sdes          "Policy for changing generation size for pause goals")            \
1996197679Sdes                                                                            \
1997197679Sdes  develop(bool, PSAdjustTenuredGenForMinorPause, false,                     \
1998197679Sdes          "Adjust tenured generation to achive a minor pause goal")         \
1999197679Sdes                                                                            \
2000197679Sdes  develop(bool, PSAdjustYoungGenForMajorPause, false,                       \
2001197679Sdes          "Adjust young generation to achive a major pause goal")           \
2002197679Sdes                                                                            \
2003197679Sdes  product(uintx, AdaptiveSizePolicyInitializingSteps, 20,                   \
2004197679Sdes          "Number of steps where heuristics is used before data is used")   \
2005197679Sdes                                                                            \
2006197679Sdes  develop(uintx, AdaptiveSizePolicyReadyThreshold, 5,                       \
2007197679Sdes          "Number of collections before the adaptive sizing is started")    \
2008197679Sdes                                                                            \
2009197679Sdes  product(uintx, AdaptiveSizePolicyOutputInterval, 0,                       \
2010197679Sdes          "Collecton interval for printing information; zero => never")     \
2011197679Sdes                                                                            \
2012197679Sdes  product(bool, UseAdaptiveSizePolicyFootprintGoal, true,                   \
2013197679Sdes          "Use adaptive minimum footprint as a goal")                       \
2014197679Sdes                                                                            \
2015197679Sdes  product(uintx, AdaptiveSizePolicyWeight, 10,                              \
2016197679Sdes          "Weight given to exponential resizing, between 0 and 100")        \
2017197679Sdes                                                                            \
2018197679Sdes  product(uintx, AdaptiveTimeWeight,       25,                              \
2019197679Sdes          "Weight given to time in adaptive policy, between 0 and 100")     \
2020197679Sdes                                                                            \
2021197679Sdes  product(uintx, PausePadding, 1,                                           \
2022197679Sdes          "How much buffer to keep for pause time")                         \
2023197679Sdes                                                                            \
2024197679Sdes  product(uintx, PromotedPadding, 3,                                        \
2025197679Sdes          "How much buffer to keep for promotion failure")                  \
2026197679Sdes                                                                            \
2027197679Sdes  product(uintx, SurvivorPadding, 3,                                        \
2028197679Sdes          "How much buffer to keep for survivor overflow")                  \
2029197679Sdes                                                                            \
2030197679Sdes  product(uintx, ThresholdTolerance, 10,                                    \
2031197679Sdes          "Allowed collection cost difference between generations")         \
2032197679Sdes                                                                            \
2033197679Sdes  product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50,                \
2034197679Sdes          "If collection costs are within margin, reduce both by full "     \
2035197679Sdes          "delta")                                                          \
2036197679Sdes                                                                            \
2037197679Sdes  product(uintx, YoungGenerationSizeIncrement, 20,                          \
2038197679Sdes          "Adaptive size percentage change in young generation")            \
2039197679Sdes                                                                            \
2040224638Sbrooks  product(uintx, YoungGenerationSizeSupplement, 80,                         \
2041224638Sbrooks          "Supplement to YoungedGenerationSizeIncrement used at startup")   \
2042224638Sbrooks                                                                            \
2043224638Sbrooks  product(uintx, YoungGenerationSizeSupplementDecay, 8,                     \
2044224638Sbrooks          "Decay factor to YoungedGenerationSizeSupplement")                \
2045224638Sbrooks                                                                            \
2046224638Sbrooks  product(uintx, TenuredGenerationSizeIncrement, 20,                        \
2047224638Sbrooks          "Adaptive size percentage change in tenured generation")          \
2048                                                                            \
2049  product(uintx, TenuredGenerationSizeSupplement, 80,                       \
2050          "Supplement to TenuredGenerationSizeIncrement used at startup")   \
2051                                                                            \
2052  product(uintx, TenuredGenerationSizeSupplementDecay, 2,                   \
2053          "Decay factor to TenuredGenerationSizeIncrement")                 \
2054                                                                            \
2055  product(uintx, MaxGCPauseMillis, max_uintx,                           \
2056          "Adaptive size policy maximum GC pause time goal in msec, "       \
2057          "or (G1 Only) the max. GC time per MMU time slice")               \
2058                                                                            \
2059  product(uintx, GCPauseIntervalMillis, 0,                                  \
2060          "Time slice for MMU specification")                               \
2061                                                                            \
2062  product(uintx, MaxGCMinorPauseMillis, max_uintx,                          \
2063          "Adaptive size policy maximum GC minor pause time goal in msec")  \
2064                                                                            \
2065  product(uintx, GCTimeRatio, 99,                                           \
2066          "Adaptive size policy application time to GC time ratio")         \
2067                                                                            \
2068  product(uintx, AdaptiveSizeDecrementScaleFactor, 4,                       \
2069          "Adaptive size scale down factor for shrinking")                  \
2070                                                                            \
2071  product(bool, UseAdaptiveSizeDecayMajorGCCost, true,                      \
2072          "Adaptive size decays the major cost for long major intervals")   \
2073                                                                            \
2074  product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10,                     \
2075          "Time scale over which major costs decay")                        \
2076                                                                            \
2077  product(uintx, MinSurvivorRatio, 3,                                       \
2078          "Minimum ratio of young generation/survivor space size")          \
2079                                                                            \
2080  product(uintx, InitialSurvivorRatio, 8,                                   \
2081          "Initial ratio of eden/survivor space size")                      \
2082                                                                            \
2083  product(uintx, BaseFootPrintEstimate, 256*M,                              \
2084          "Estimate of footprint other than Java Heap")                     \
2085                                                                            \
2086  product(bool, UseGCOverheadLimit, true,                                   \
2087          "Use policy to limit of proportion of time spent in GC "          \
2088          "before an OutOfMemory error is thrown")                          \
2089                                                                            \
2090  product(uintx, GCTimeLimit, 98,                                           \
2091          "Limit of proportion of time spent in GC before an OutOfMemory"   \
2092          "error is thrown (used with GCHeapFreeLimit)")                    \
2093                                                                            \
2094  product(uintx, GCHeapFreeLimit, 2,                                        \
2095          "Minimum percentage of free space after a full GC before an "     \
2096          "OutOfMemoryError is thrown (used with GCTimeLimit)")             \
2097                                                                            \
2098  develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5,                 \
2099          "Number of consecutive collections before gc time limit fires")   \
2100                                                                            \
2101  product(bool, PrintAdaptiveSizePolicy, false,                             \
2102          "Print information about AdaptiveSizePolicy")                     \
2103                                                                            \
2104  product(intx, PrefetchCopyIntervalInBytes, -1,                            \
2105          "How far ahead to prefetch destination area (<= 0 means off)")    \
2106                                                                            \
2107  product(intx, PrefetchScanIntervalInBytes, -1,                            \
2108          "How far ahead to prefetch scan area (<= 0 means off)")           \
2109                                                                            \
2110  product(intx, PrefetchFieldsAhead, -1,                                    \
2111          "How many fields ahead to prefetch in oop scan (<= 0 means off)") \
2112                                                                            \
2113  diagnostic(bool, VerifyBeforeExit, trueInDebug,                           \
2114          "Verify system before exiting")                                   \
2115                                                                            \
2116  diagnostic(bool, VerifyBeforeGC, false,                                   \
2117          "Verify memory system before GC")                                 \
2118                                                                            \
2119  diagnostic(bool, VerifyAfterGC, false,                                    \
2120          "Verify memory system after GC")                                  \
2121                                                                            \
2122  diagnostic(bool, VerifyDuringGC, false,                                   \
2123          "Verify memory system during GC (between phases)")                \
2124                                                                            \
2125  diagnostic(bool, GCParallelVerificationEnabled, true,                     \
2126          "Enable parallel memory system verification")                     \
2127                                                                            \
2128  diagnostic(bool, DeferInitialCardMark, false,                             \
2129          "When +ReduceInitialCardMarks, explicitly defer any that "        \
2130           "may arise from new_pre_store_barrier")                          \
2131                                                                            \
2132  diagnostic(bool, VerifyRememberedSets, false,                             \
2133          "Verify GC remembered sets")                                      \
2134                                                                            \
2135  diagnostic(bool, VerifyObjectStartArray, true,                            \
2136          "Verify GC object start array if verify before/after")            \
2137                                                                            \
2138  product(bool, DisableExplicitGC, false,                                   \
2139          "Tells whether calling System.gc() does a full GC")               \
2140                                                                            \
2141  notproduct(bool, CheckMemoryInitialization, false,                        \
2142          "Checks memory initialization")                                   \
2143                                                                            \
2144  product(bool, CollectGen0First, false,                                    \
2145          "Collect youngest generation before each full GC")                \
2146                                                                            \
2147  diagnostic(bool, BindCMSThreadToCPU, false,                               \
2148          "Bind CMS Thread to CPU if possible")                             \
2149                                                                            \
2150  diagnostic(uintx, CPUForCMSThread, 0,                                     \
2151          "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \
2152                                                                            \
2153  product(bool, BindGCTaskThreadsToCPUs, false,                             \
2154          "Bind GCTaskThreads to CPUs if possible")                         \
2155                                                                            \
2156  product(bool, UseGCTaskAffinity, false,                                   \
2157          "Use worker affinity when asking for GCTasks")                    \
2158                                                                            \
2159  product(uintx, ProcessDistributionStride, 4,                              \
2160          "Stride through processors when distributing processes")          \
2161                                                                            \
2162  product(uintx, CMSCoordinatorYieldSleepCount, 10,                         \
2163          "number of times the coordinator GC thread will sleep while "     \
2164          "yielding before giving up and resuming GC")                      \
2165                                                                            \
2166  product(uintx, CMSYieldSleepCount, 0,                                     \
2167          "number of times a GC thread (minus the coordinator) "            \
2168          "will sleep while yielding before giving up and resuming GC")     \
2169                                                                            \
2170  /* gc tracing */                                                          \
2171  manageable(bool, PrintGC, false,                                          \
2172          "Print message at garbage collect")                               \
2173                                                                            \
2174  manageable(bool, PrintGCDetails, false,                                   \
2175          "Print more details at garbage collect")                          \
2176                                                                            \
2177  manageable(bool, PrintGCDateStamps, false,                                \
2178          "Print date stamps at garbage collect")                           \
2179                                                                            \
2180  manageable(bool, PrintGCTimeStamps, false,                                \
2181          "Print timestamps at garbage collect")                            \
2182                                                                            \
2183  product(bool, PrintGCTaskTimeStamps, false,                               \
2184          "Print timestamps for individual gc worker thread tasks")         \
2185                                                                            \
2186  develop(intx, ConcGCYieldTimeout, 0,                                      \
2187          "If non-zero, assert that GC threads yield within this # of ms.") \
2188                                                                            \
2189  notproduct(bool, TraceMarkSweep, false,                                   \
2190          "Trace mark sweep")                                               \
2191                                                                            \
2192  product(bool, PrintReferenceGC, false,                                    \
2193          "Print times spent handling reference objects during GC "         \
2194          " (enabled only when PrintGCDetails)")                            \
2195                                                                            \
2196  develop(bool, TraceReferenceGC, false,                                    \
2197          "Trace handling of soft/weak/final/phantom references")           \
2198                                                                            \
2199  develop(bool, TraceFinalizerRegistration, false,                          \
2200         "Trace registration of final references")                          \
2201                                                                            \
2202  notproduct(bool, TraceScavenge, false,                                    \
2203          "Trace scavenge")                                                 \
2204                                                                            \
2205  product_rw(bool, TraceClassLoading, false,                                \
2206          "Trace all classes loaded")                                       \
2207                                                                            \
2208  product(bool, TraceClassLoadingPreorder, false,                           \
2209          "Trace all classes loaded in order referenced (not loaded)")      \
2210                                                                            \
2211  product_rw(bool, TraceClassUnloading, false,                              \
2212          "Trace unloading of classes")                                     \
2213                                                                            \
2214  product_rw(bool, TraceLoaderConstraints, false,                           \
2215          "Trace loader constraints")                                       \
2216                                                                            \
2217  develop(bool, TraceClassLoaderData, false,                                \
2218          "Trace class loader loader_data lifetime")                        \
2219                                                                            \
2220  product(uintx, InitialBootClassLoaderMetaspaceSize, 3*M,                  \
2221          "Initial size of the boot class loader data metaspace")           \
2222                                                                            \
2223  product(bool, TraceGen0Time, false,                                       \
2224          "Trace accumulated time for Gen 0 collection")                    \
2225                                                                            \
2226  product(bool, TraceGen1Time, false,                                       \
2227          "Trace accumulated time for Gen 1 collection")                    \
2228                                                                            \
2229  product(bool, PrintTenuringDistribution, false,                           \
2230          "Print tenuring age information")                                 \
2231                                                                            \
2232  product_rw(bool, PrintHeapAtGC, false,                                    \
2233          "Print heap layout before and after each GC")                     \
2234                                                                            \
2235  product_rw(bool, PrintHeapAtGCExtended, false,                            \
2236          "Prints extended information about the layout of the heap "       \
2237          "when -XX:+PrintHeapAtGC is set")                                 \
2238                                                                            \
2239  product(bool, PrintHeapAtSIGBREAK, true,                                  \
2240          "Print heap layout in response to SIGBREAK")                      \
2241                                                                            \
2242  manageable(bool, PrintClassHistogramBeforeFullGC, false,                  \
2243          "Print a class histogram before any major stop-world GC")         \
2244                                                                            \
2245  manageable(bool, PrintClassHistogramAfterFullGC, false,                   \
2246          "Print a class histogram after any major stop-world GC")          \
2247                                                                            \
2248  manageable(bool, PrintClassHistogram, false,                              \
2249          "Print a histogram of class instances")                           \
2250                                                                            \
2251  develop(bool, TraceWorkGang, false,                                       \
2252          "Trace activities of work gangs")                                 \
2253                                                                            \
2254  product(bool, TraceParallelOldGCTasks, false,                             \
2255          "Trace multithreaded GC activity")                                \
2256                                                                            \
2257  develop(bool, TraceBlockOffsetTable, false,                               \
2258          "Print BlockOffsetTable maps")                                    \
2259                                                                            \
2260  develop(bool, TraceCardTableModRefBS, false,                              \
2261          "Print CardTableModRefBS maps")                                   \
2262                                                                            \
2263  develop(bool, TraceGCTaskManager, false,                                  \
2264          "Trace actions of the GC task manager")                           \
2265                                                                            \
2266  develop(bool, TraceGCTaskQueue, false,                                    \
2267          "Trace actions of the GC task queues")                            \
2268                                                                            \
2269  diagnostic(bool, TraceGCTaskThread, false,                                   \
2270          "Trace actions of the GC task threads")                           \
2271                                                                            \
2272  product(bool, PrintParallelOldGCPhaseTimes, false,                        \
2273          "Print the time taken by each parallel old gc phase."             \
2274          "PrintGCDetails must also be enabled.")                           \
2275                                                                            \
2276  develop(bool, TraceParallelOldGCMarkingPhase, false,                      \
2277          "Trace parallel old gc marking phase")                            \
2278                                                                            \
2279  develop(bool, TraceParallelOldGCSummaryPhase, false,                      \
2280          "Trace parallel old gc summary phase")                            \
2281                                                                            \
2282  develop(bool, TraceParallelOldGCCompactionPhase, false,                   \
2283          "Trace parallel old gc compaction phase")                         \
2284                                                                            \
2285  develop(bool, TraceParallelOldGCDensePrefix, false,                       \
2286          "Trace parallel old gc dense prefix computation")                 \
2287                                                                            \
2288  develop(bool, IgnoreLibthreadGPFault, false,                              \
2289          "Suppress workaround for libthread GP fault")                     \
2290                                                                            \
2291  product(bool, PrintJNIGCStalls, false,                                    \
2292          "Print diagnostic message when GC is stalled"                     \
2293          "by JNI critical section")                                        \
2294                                                                            \
2295  /* GC log rotation setting */                                             \
2296                                                                            \
2297  product(bool, UseGCLogFileRotation, false,                                \
2298          "Prevent large gclog file for long running app. "                 \
2299          "Requires -Xloggc:<filename>")                                    \
2300                                                                            \
2301  product(uintx, NumberOfGCLogFiles, 0,                                     \
2302          "Number of gclog files in rotation, "                             \
2303          "Default: 0, no rotation")                                        \
2304                                                                            \
2305  product(uintx, GCLogFileSize, 0,                                          \
2306          "GC log file size, Default: 0 bytes, no rotation "                \
2307          "Only valid with UseGCLogFileRotation")                           \
2308                                                                            \
2309  /* JVMTI heap profiling */                                                \
2310                                                                            \
2311  diagnostic(bool, TraceJVMTIObjectTagging, false,                          \
2312          "Trace JVMTI object tagging calls")                               \
2313                                                                            \
2314  diagnostic(bool, VerifyBeforeIteration, false,                            \
2315          "Verify memory system before JVMTI iteration")                    \
2316                                                                            \
2317  /* compiler interface */                                                  \
2318                                                                            \
2319  develop(bool, CIPrintCompilerName, false,                                 \
2320          "when CIPrint is active, print the name of the active compiler")  \
2321                                                                            \
2322  develop(bool, CIPrintCompileQueue, false,                                 \
2323          "display the contents of the compile queue whenever a "           \
2324          "compilation is enqueued")                                        \
2325                                                                            \
2326  develop(bool, CIPrintRequests, false,                                     \
2327          "display every request for compilation")                          \
2328                                                                            \
2329  product(bool, CITime, false,                                              \
2330          "collect timing information for compilation")                     \
2331                                                                            \
2332  develop(bool, CITimeEach, false,                                          \
2333          "display timing information after each successful compilation")   \
2334                                                                            \
2335  develop(bool, CICountOSR, true,                                           \
2336          "use a separate counter when assigning ids to osr compilations")  \
2337                                                                            \
2338  develop(bool, CICompileNatives, true,                                     \
2339          "compile native methods if supported by the compiler")            \
2340                                                                            \
2341  develop_pd(bool, CICompileOSR,                                            \
2342          "compile on stack replacement methods if supported by the "       \
2343          "compiler")                                                       \
2344                                                                            \
2345  develop(bool, CIPrintMethodCodes, false,                                  \
2346          "print method bytecodes of the compiled code")                    \
2347                                                                            \
2348  develop(bool, CIPrintTypeFlow, false,                                     \
2349          "print the results of ciTypeFlow analysis")                       \
2350                                                                            \
2351  develop(bool, CITraceTypeFlow, false,                                     \
2352          "detailed per-bytecode tracing of ciTypeFlow analysis")           \
2353                                                                            \
2354  develop(intx, OSROnlyBCI, -1,                                             \
2355          "OSR only at this bci.  Negative values mean exclude that bci")   \
2356                                                                            \
2357  /* compiler */                                                            \
2358                                                                            \
2359  product(intx, CICompilerCount, CI_COMPILER_COUNT,                         \
2360          "Number of compiler threads to run")                              \
2361                                                                            \
2362  product(intx, CompilationPolicyChoice, 0,                                 \
2363          "which compilation policy (0/1)")                                 \
2364                                                                            \
2365  develop(bool, UseStackBanging, true,                                      \
2366          "use stack banging for stack overflow checks (required for "      \
2367          "proper StackOverflow handling; disable only to measure cost "    \
2368          "of stackbanging)")                                               \
2369                                                                            \
2370  develop(bool, UseStrictFP, true,                                          \
2371          "use strict fp if modifier strictfp is set")                      \
2372                                                                            \
2373  develop(bool, GenerateSynchronizationCode, true,                          \
2374          "generate locking/unlocking code for synchronized methods and "   \
2375          "monitors")                                                       \
2376                                                                            \
2377  develop(bool, GenerateCompilerNullChecks, true,                           \
2378          "Generate explicit null checks for loads/stores/calls")           \
2379                                                                            \
2380  develop(bool, GenerateRangeChecks, true,                                  \
2381          "Generate range checks for array accesses")                       \
2382                                                                            \
2383  develop_pd(bool, ImplicitNullChecks,                                      \
2384          "generate code for implicit null checks")                         \
2385                                                                            \
2386  product(bool, PrintSafepointStatistics, false,                            \
2387          "print statistics about safepoint synchronization")               \
2388                                                                            \
2389  product(intx, PrintSafepointStatisticsCount, 300,                         \
2390          "total number of safepoint statistics collected "                 \
2391          "before printing them out")                                       \
2392                                                                            \
2393  product(intx, PrintSafepointStatisticsTimeout,  -1,                       \
2394          "print safepoint statistics only when safepoint takes"            \
2395          " more than PrintSafepointSatisticsTimeout in millis")            \
2396                                                                            \
2397  product(bool, TraceSafepointCleanupTime, false,                           \
2398          "print the break down of clean up tasks performed during"         \
2399          " safepoint")                                                     \
2400                                                                            \
2401  product(bool, Inline, true,                                               \
2402          "enable inlining")                                                \
2403                                                                            \
2404  product(bool, ClipInlining, true,                                         \
2405          "clip inlining if aggregate method exceeds DesiredMethodLimit")   \
2406                                                                            \
2407  develop(bool, UseCHA, true,                                               \
2408          "enable CHA")                                                     \
2409                                                                            \
2410  product(bool, UseTypeProfile, true,                                       \
2411          "Check interpreter profile for historically monomorphic calls")   \
2412                                                                            \
2413  notproduct(bool, TimeCompiler, false,                                     \
2414          "time the compiler")                                              \
2415                                                                            \
2416  diagnostic(bool, PrintInlining, false,                                    \
2417          "prints inlining optimizations")                                  \
2418                                                                            \
2419  product(bool, UsePopCountInstruction, false,                              \
2420          "Use population count instruction")                               \
2421                                                                            \
2422  develop(bool, EagerInitialization, false,                                 \
2423          "Eagerly initialize classes if possible")                         \
2424                                                                            \
2425  develop(bool, TraceMethodReplacement, false,                              \
2426          "Print when methods are replaced do to recompilation")            \
2427                                                                            \
2428  develop(bool, PrintMethodFlushing, false,                                 \
2429          "print the nmethods being flushed")                               \
2430                                                                            \
2431  develop(bool, UseRelocIndex, false,                                       \
2432         "use an index to speed random access to relocations")              \
2433                                                                            \
2434  develop(bool, StressCodeBuffers, false,                                   \
2435         "Exercise code buffer expansion and other rare state changes")     \
2436                                                                            \
2437  diagnostic(bool, DebugNonSafepoints, trueInDebug,                         \
2438         "Generate extra debugging info for non-safepoints in nmethods")    \
2439                                                                            \
2440  product(bool, PrintVMOptions, false,                                      \
2441         "Print flags that appeared on the command line")                   \
2442                                                                            \
2443  product(bool, IgnoreUnrecognizedVMOptions, false,                         \
2444         "Ignore unrecognized VM options")                                  \
2445                                                                            \
2446  product(bool, PrintCommandLineFlags, false,                               \
2447         "Print flags specified on command line or set by ergonomics")      \
2448                                                                            \
2449  product(bool, PrintFlagsInitial, false,                                   \
2450         "Print all VM flags before argument processing and exit VM")       \
2451                                                                            \
2452  product(bool, PrintFlagsFinal, false,                                     \
2453         "Print all VM flags after argument and ergonomic processing")      \
2454                                                                            \
2455  notproduct(bool, PrintFlagsWithComments, false,                           \
2456         "Print all VM flags with default values and descriptions and exit")\
2457                                                                            \
2458  diagnostic(bool, SerializeVMOutput, true,                                 \
2459         "Use a mutex to serialize output to tty and hotspot.log")          \
2460                                                                            \
2461  diagnostic(bool, DisplayVMOutput, true,                                   \
2462         "Display all VM output on the tty, independently of LogVMOutput")  \
2463                                                                            \
2464  diagnostic(bool, LogVMOutput, trueInDebug,                                \
2465         "Save VM output to hotspot.log, or to LogFile")                    \
2466                                                                            \
2467  diagnostic(ccstr, LogFile, NULL,                                          \
2468         "If LogVMOutput is on, save VM output to this file [hotspot.log]") \
2469                                                                            \
2470  product(ccstr, ErrorFile, NULL,                                           \
2471         "If an error occurs, save the error data to this file "            \
2472         "[default: ./hs_err_pid%p.log] (%p replaced with pid)")            \
2473                                                                            \
2474  product(bool, DisplayVMOutputToStderr, false,                             \
2475         "If DisplayVMOutput is true, display all VM output to stderr")     \
2476                                                                            \
2477  product(bool, DisplayVMOutputToStdout, false,                             \
2478         "If DisplayVMOutput is true, display all VM output to stdout")     \
2479                                                                            \
2480  product(bool, UseHeavyMonitors, false,                                    \
2481          "use heavyweight instead of lightweight Java monitors")           \
2482                                                                            \
2483  product(bool, PrintStringTableStatistics, false,                          \
2484          "print statistics about the StringTable and SymbolTable")         \
2485                                                                            \
2486  notproduct(bool, PrintSymbolTableSizeHistogram, false,                    \
2487          "print histogram of the symbol table")                            \
2488                                                                            \
2489  notproduct(bool, ExitVMOnVerifyError, false,                              \
2490          "standard exit from VM if bytecode verify error "                 \
2491          "(only in debug mode)")                                           \
2492                                                                            \
2493  notproduct(ccstr, AbortVMOnException, NULL,                               \
2494          "Call fatal if this exception is thrown.  Example: "              \
2495          "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
2496                                                                            \
2497  notproduct(ccstr, AbortVMOnExceptionMessage, NULL,                        \
2498          "Call fatal if the exception pointed by AbortVMOnException "      \
2499          "has this message.")                                              \
2500                                                                            \
2501  develop(bool, DebugVtables, false,                                        \
2502          "add debugging code to vtable dispatch")                          \
2503                                                                            \
2504  develop(bool, PrintVtables, false,                                        \
2505          "print vtables when printing klass")                              \
2506                                                                            \
2507  notproduct(bool, PrintVtableStats, false,                                 \
2508          "print vtables stats at end of run")                              \
2509                                                                            \
2510  develop(bool, TraceCreateZombies, false,                                  \
2511          "trace creation of zombie nmethods")                              \
2512                                                                            \
2513  notproduct(bool, IgnoreLockingAssertions, false,                          \
2514          "disable locking assertions (for speed)")                         \
2515                                                                            \
2516  product(bool, RangeCheckElimination, true,                                \
2517          "Split loop iterations to eliminate range checks")                \
2518                                                                            \
2519  develop_pd(bool, UncommonNullCast,                                        \
2520          "track occurrences of null in casts; adjust compiler tactics")    \
2521                                                                            \
2522  develop(bool, TypeProfileCasts,  true,                                    \
2523          "treat casts like calls for purposes of type profiling")          \
2524                                                                            \
2525  develop(bool, DelayCompilationDuringStartup, true,                        \
2526          "Delay invoking the compiler until main application class is "    \
2527          "loaded")                                                         \
2528                                                                            \
2529  develop(bool, CompileTheWorld, false,                                     \
2530          "Compile all methods in all classes in bootstrap class path "     \
2531          "(stress test)")                                                  \
2532                                                                            \
2533  develop(bool, CompileTheWorldPreloadClasses, true,                        \
2534          "Preload all classes used by a class before start loading")       \
2535                                                                            \
2536  notproduct(intx, CompileTheWorldSafepointInterval, 100,                   \
2537          "Force a safepoint every n compiles so sweeper can keep up")      \
2538                                                                            \
2539  develop(bool, FillDelaySlots, true,                                       \
2540          "Fill delay slots (on SPARC only)")                               \
2541                                                                            \
2542  develop(bool, TimeLivenessAnalysis, false,                                \
2543          "Time computation of bytecode liveness analysis")                 \
2544                                                                            \
2545  develop(bool, TraceLivenessGen, false,                                    \
2546          "Trace the generation of liveness analysis information")          \
2547                                                                            \
2548  notproduct(bool, TraceLivenessQuery, false,                               \
2549          "Trace queries of liveness analysis information")                 \
2550                                                                            \
2551  notproduct(bool, CollectIndexSetStatistics, false,                        \
2552          "Collect information about IndexSets")                            \
2553                                                                            \
2554  develop(bool, UseLoopSafepoints, true,                                    \
2555          "Generate Safepoint nodes in every loop")                         \
2556                                                                            \
2557  develop(intx, FastAllocateSizeLimit, 128*K,                               \
2558          /* Note:  This value is zero mod 1<<13 for a cheap sparc set. */  \
2559          "Inline allocations larger than this in doublewords must go slow")\
2560                                                                            \
2561  product(bool, AggressiveOpts, false,                                      \
2562          "Enable aggressive optimizations - see arguments.cpp")            \
2563                                                                            \
2564  product(bool, UseStringCache, false,                                      \
2565          "Enable String cache capabilities on String.java")                \
2566                                                                            \
2567  /* statistics */                                                          \
2568  develop(bool, CountCompiledCalls, false,                                  \
2569          "counts method invocations")                                      \
2570                                                                            \
2571  notproduct(bool, CountRuntimeCalls, false,                                \
2572          "counts VM runtime calls")                                        \
2573                                                                            \
2574  develop(bool, CountJNICalls, false,                                       \
2575          "counts jni method invocations")                                  \
2576                                                                            \
2577  notproduct(bool, CountJVMCalls, false,                                    \
2578          "counts jvm method invocations")                                  \
2579                                                                            \
2580  notproduct(bool, CountRemovableExceptions, false,                         \
2581          "count exceptions that could be replaced by branches due to "     \
2582          "inlining")                                                       \
2583                                                                            \
2584  notproduct(bool, ICMissHistogram, false,                                  \
2585          "produce histogram of IC misses")                                 \
2586                                                                            \
2587  notproduct(bool, PrintClassStatistics, false,                             \
2588          "prints class statistics at end of run")                          \
2589                                                                            \
2590  notproduct(bool, PrintMethodStatistics, false,                            \
2591          "prints method statistics at end of run")                         \
2592                                                                            \
2593  /* interpreter */                                                         \
2594  develop(bool, ClearInterpreterLocals, false,                              \
2595          "Always clear local variables of interpreter activations upon "   \
2596          "entry")                                                          \
2597                                                                            \
2598  product_pd(bool, RewriteBytecodes,                                        \
2599          "Allow rewriting of bytecodes (bytecodes are not immutable)")     \
2600                                                                            \
2601  product_pd(bool, RewriteFrequentPairs,                                    \
2602          "Rewrite frequently used bytecode pairs into a single bytecode")  \
2603                                                                            \
2604  diagnostic(bool, PrintInterpreter, false,                                 \
2605          "Prints the generated interpreter code")                          \
2606                                                                            \
2607  product(bool, UseInterpreter, true,                                       \
2608          "Use interpreter for non-compiled methods")                       \
2609                                                                            \
2610  develop(bool, UseFastSignatureHandlers, true,                             \
2611          "Use fast signature handlers for native calls")                   \
2612                                                                            \
2613  product(bool, UseLoopCounter, true,                                       \
2614          "Increment invocation counter on backward branch")                \
2615                                                                            \
2616  product(bool, UseFastEmptyMethods, true,                                  \
2617          "Use fast method entry code for empty methods")                   \
2618                                                                            \
2619  product(bool, UseFastAccessorMethods, true,                               \
2620          "Use fast method entry code for accessor methods")                \
2621                                                                            \
2622  product_pd(bool, UseOnStackReplacement,                                   \
2623           "Use on stack replacement, calls runtime if invoc. counter "     \
2624           "overflows in loop")                                             \
2625                                                                            \
2626  notproduct(bool, TraceOnStackReplacement, false,                          \
2627          "Trace on stack replacement")                                     \
2628                                                                            \
2629  product_pd(bool, PreferInterpreterNativeStubs,                            \
2630          "Use always interpreter stubs for native methods invoked via "    \
2631          "interpreter")                                                    \
2632                                                                            \
2633  develop(bool, CountBytecodes, false,                                      \
2634          "Count number of bytecodes executed")                             \
2635                                                                            \
2636  develop(bool, PrintBytecodeHistogram, false,                              \
2637          "Print histogram of the executed bytecodes")                      \
2638                                                                            \
2639  develop(bool, PrintBytecodePairHistogram, false,                          \
2640          "Print histogram of the executed bytecode pairs")                 \
2641                                                                            \
2642  diagnostic(bool, PrintSignatureHandlers, false,                           \
2643          "Print code generated for native method signature handlers")      \
2644                                                                            \
2645  develop(bool, VerifyOops, false,                                          \
2646          "Do plausibility checks for oops")                                \
2647                                                                            \
2648  develop(bool, CheckUnhandledOops, false,                                  \
2649          "Check for unhandled oops in VM code")                            \
2650                                                                            \
2651  develop(bool, VerifyJNIFields, trueInDebug,                               \
2652          "Verify jfieldIDs for instance fields")                           \
2653                                                                            \
2654  notproduct(bool, VerifyJNIEnvThread, false,                               \
2655          "Verify JNIEnv.thread == Thread::current() when entering VM "     \
2656          "from JNI")                                                       \
2657                                                                            \
2658  develop(bool, VerifyFPU, false,                                           \
2659          "Verify FPU state (check for NaN's, etc.)")                       \
2660                                                                            \
2661  develop(bool, VerifyThread, false,                                        \
2662          "Watch the thread register for corruption (SPARC only)")          \
2663                                                                            \
2664  develop(bool, VerifyActivationFrameSize, false,                           \
2665          "Verify that activation frame didn't become smaller than its "    \
2666          "minimal size")                                                   \
2667                                                                            \
2668  develop(bool, TraceFrequencyInlining, false,                              \
2669          "Trace frequency based inlining")                                 \
2670                                                                            \
2671  develop_pd(bool, InlineIntrinsics,                                        \
2672           "Inline intrinsics that can be statically resolved")             \
2673                                                                            \
2674  product_pd(bool, ProfileInterpreter,                                      \
2675           "Profile at the bytecode level during interpretation")           \
2676                                                                            \
2677  develop_pd(bool, ProfileTraps,                                            \
2678          "Profile deoptimization traps at the bytecode level")             \
2679                                                                            \
2680  product(intx, ProfileMaturityPercentage, 20,                              \
2681          "number of method invocations/branches (expressed as % of "       \
2682          "CompileThreshold) before using the method's profile")            \
2683                                                                            \
2684  develop(bool, PrintMethodData, false,                                     \
2685           "Print the results of +ProfileInterpreter at end of run")        \
2686                                                                            \
2687  develop(bool, VerifyDataPointer, trueInDebug,                             \
2688          "Verify the method data pointer during interpreter profiling")    \
2689                                                                            \
2690  develop(bool, VerifyCompiledCode, false,                                  \
2691          "Include miscellaneous runtime verifications in nmethod code; "   \
2692          "default off because it disturbs nmethod size heuristics")        \
2693                                                                            \
2694  notproduct(bool, CrashGCForDumpingJavaThread, false,                      \
2695          "Manually make GC thread crash then dump java stack trace;  "     \
2696          "Test only")                                                      \
2697                                                                            \
2698  /* compilation */                                                         \
2699  product(bool, UseCompiler, true,                                          \
2700          "use compilation")                                                \
2701                                                                            \
2702  develop(bool, TraceCompilationPolicy, false,                              \
2703          "Trace compilation policy")                                       \
2704                                                                            \
2705  develop(bool, TimeCompilationPolicy, false,                               \
2706          "Time the compilation policy")                                    \
2707                                                                            \
2708  product(bool, UseCounterDecay, true,                                      \
2709           "adjust recompilation counters")                                 \
2710                                                                            \
2711  develop(intx, CounterHalfLifeTime,    30,                                 \
2712          "half-life time of invocation counters (in secs)")                \
2713                                                                            \
2714  develop(intx, CounterDecayMinIntervalLength,   500,                       \
2715          "Min. ms. between invocation of CounterDecay")                    \
2716                                                                            \
2717  product(bool, AlwaysCompileLoopMethods, false,                            \
2718          "when using recompilation, never interpret methods "              \
2719          "containing loops")                                               \
2720                                                                            \
2721  product(bool, DontCompileHugeMethods, true,                               \
2722          "don't compile methods > HugeMethodLimit")                        \
2723                                                                            \
2724  /* Bytecode escape analysis estimation. */                                \
2725  product(bool, EstimateArgEscape, true,                                    \
2726          "Analyze bytecodes to estimate escape state of arguments")        \
2727                                                                            \
2728  product(intx, BCEATraceLevel, 0,                                          \
2729          "How much tracing to do of bytecode escape analysis estimates")   \
2730                                                                            \
2731  product(intx, MaxBCEAEstimateLevel, 5,                                    \
2732          "Maximum number of nested calls that are analyzed by BC EA.")     \
2733                                                                            \
2734  product(intx, MaxBCEAEstimateSize, 150,                                   \
2735          "Maximum bytecode size of a method to be analyzed by BC EA.")     \
2736                                                                            \
2737  product(intx,  AllocatePrefetchStyle, 1,                                  \
2738          "0 = no prefetch, "                                               \
2739          "1 = prefetch instructions for each allocation, "                 \
2740          "2 = use TLAB watermark to gate allocation prefetch, "            \
2741          "3 = use BIS instruction on Sparc for allocation prefetch")       \
2742                                                                            \
2743  product(intx,  AllocatePrefetchDistance, -1,                              \
2744          "Distance to prefetch ahead of allocation pointer")               \
2745                                                                            \
2746  product(intx,  AllocatePrefetchLines, 3,                                  \
2747          "Number of lines to prefetch ahead of array allocation pointer")  \
2748                                                                            \
2749  product(intx,  AllocateInstancePrefetchLines, 1,                          \
2750          "Number of lines to prefetch ahead of instance allocation pointer") \
2751                                                                            \
2752  product(intx,  AllocatePrefetchStepSize, 16,                              \
2753          "Step size in bytes of sequential prefetch instructions")         \
2754                                                                            \
2755  product(intx,  AllocatePrefetchInstr, 0,                                  \
2756          "Prefetch instruction to prefetch ahead of allocation pointer")   \
2757                                                                            \
2758  /* deoptimization */                                                      \
2759  develop(bool, TraceDeoptimization, false,                                 \
2760          "Trace deoptimization")                                           \
2761                                                                            \
2762  develop(bool, DebugDeoptimization, false,                                 \
2763          "Tracing various information while debugging deoptimization")     \
2764                                                                            \
2765  product(intx, SelfDestructTimer, 0,                                       \
2766          "Will cause VM to terminate after a given time (in minutes) "     \
2767          "(0 means off)")                                                  \
2768                                                                            \
2769  product(intx, MaxJavaStackTraceDepth, 1024,                               \
2770          "Max. no. of lines in the stack trace for Java exceptions "       \
2771          "(0 means all)")                                                  \
2772                                                                            \
2773  NOT_EMBEDDED(diagnostic(intx, GuaranteedSafepointInterval, 1000,          \
2774          "Guarantee a safepoint (at least) every so many milliseconds "    \
2775          "(0 means none)"))                                                \
2776                                                                            \
2777  EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0,               \
2778          "Guarantee a safepoint (at least) every so many milliseconds "    \
2779          "(0 means none)"))                                                \
2780                                                                            \
2781  product(intx, SafepointTimeoutDelay, 10000,                               \
2782          "Delay in milliseconds for option SafepointTimeout")              \
2783                                                                            \
2784  product(intx, NmethodSweepFraction, 16,                                    \
2785          "Number of invocations of sweeper to cover all nmethods")         \
2786                                                                            \
2787  product(intx, NmethodSweepCheckInterval, 5,                               \
2788          "Compilers wake up every n seconds to possibly sweep nmethods")   \
2789                                                                            \
2790  notproduct(bool, LogSweeper, false,                                       \
2791            "Keep a ring buffer of sweeper activity")                       \
2792                                                                            \
2793  notproduct(intx, SweeperLogEntries, 1024,                                 \
2794            "Number of records in the ring buffer of sweeper activity")     \
2795                                                                            \
2796  notproduct(intx, MemProfilingInterval, 500,                               \
2797          "Time between each invocation of the MemProfiler")                \
2798                                                                            \
2799  develop(intx, MallocCatchPtr, -1,                                         \
2800          "Hit breakpoint when mallocing/freeing this pointer")             \
2801                                                                            \
2802  notproduct(intx, AssertRepeat, 1,                                         \
2803          "number of times to evaluate expression in assert "               \
2804          "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \
2805                                                                            \
2806  notproduct(ccstrlist, SuppressErrorAt, "",                                \
2807          "List of assertions (file:line) to muzzle")                       \
2808                                                                            \
2809  notproduct(uintx, HandleAllocationLimit, 1024,                            \
2810          "Threshold for HandleMark allocation when +TraceHandleAllocation "\
2811          "is used")                                                        \
2812                                                                            \
2813  develop(uintx, TotalHandleAllocationLimit, 1024,                          \
2814          "Threshold for total handle allocation when "                     \
2815          "+TraceHandleAllocation is used")                                 \
2816                                                                            \
2817  develop(intx, StackPrintLimit, 100,                                       \
2818          "number of stack frames to print in VM-level stack dump")         \
2819                                                                            \
2820  notproduct(intx, MaxElementPrintSize, 256,                                \
2821          "maximum number of elements to print")                            \
2822                                                                            \
2823  notproduct(intx, MaxSubklassPrintSize, 4,                                 \
2824          "maximum number of subklasses to print when printing klass")      \
2825                                                                            \
2826  product(intx, MaxInlineLevel, 9,                                          \
2827          "maximum number of nested calls that are inlined")                \
2828                                                                            \
2829  product(intx, MaxRecursiveInlineLevel, 1,                                 \
2830          "maximum number of nested recursive calls that are inlined")      \
2831                                                                            \
2832  product_pd(intx, InlineSmallCode,                                         \
2833          "Only inline already compiled methods if their code size is "     \
2834          "less than this")                                                 \
2835                                                                            \
2836  product(intx, MaxInlineSize, 35,                                          \
2837          "maximum bytecode size of a method to be inlined")                \
2838                                                                            \
2839  product_pd(intx, FreqInlineSize,                                          \
2840          "maximum bytecode size of a frequent method to be inlined")       \
2841                                                                            \
2842  product(intx, MaxTrivialSize, 6,                                          \
2843          "maximum bytecode size of a trivial method to be inlined")        \
2844                                                                            \
2845  product(intx, MinInliningThreshold, 250,                                  \
2846          "min. invocation count a method needs to have to be inlined")     \
2847                                                                            \
2848  develop(intx, MethodHistogramCutoff, 100,                                 \
2849          "cutoff value for method invoc. histogram (+CountCalls)")         \
2850                                                                            \
2851  develop(intx, ProfilerNumberOfInterpretedMethods, 25,                     \
2852          "# of interpreted methods to show in profile")                    \
2853                                                                            \
2854  develop(intx, ProfilerNumberOfCompiledMethods, 25,                        \
2855          "# of compiled methods to show in profile")                       \
2856                                                                            \
2857  develop(intx, ProfilerNumberOfStubMethods, 25,                            \
2858          "# of stub methods to show in profile")                           \
2859                                                                            \
2860  develop(intx, ProfilerNumberOfRuntimeStubNodes, 25,                       \
2861          "# of runtime stub nodes to show in profile")                     \
2862                                                                            \
2863  product(intx, ProfileIntervalsTicks, 100,                                 \
2864          "# of ticks between printing of interval profile "                \
2865          "(+ProfileIntervals)")                                            \
2866                                                                            \
2867  notproduct(intx, ScavengeALotInterval,     1,                             \
2868          "Interval between which scavenge will occur with +ScavengeALot")  \
2869                                                                            \
2870  notproduct(intx, FullGCALotInterval,     1,                               \
2871          "Interval between which full gc will occur with +FullGCALot")     \
2872                                                                            \
2873  notproduct(intx, FullGCALotStart,     0,                                  \
2874          "For which invocation to start FullGCAlot")                       \
2875                                                                            \
2876  notproduct(intx, FullGCALotDummies,  32*K,                                \
2877          "Dummy object allocated with +FullGCALot, forcing all objects "   \
2878          "to move")                                                        \
2879                                                                            \
2880  develop(intx, DontYieldALotInterval,    10,                               \
2881          "Interval between which yields will be dropped (milliseconds)")   \
2882                                                                            \
2883  develop(intx, MinSleepInterval,     1,                                    \
2884          "Minimum sleep() interval (milliseconds) when "                   \
2885          "ConvertSleepToYield is off (used for SOLARIS)")                  \
2886                                                                            \
2887  develop(intx, ProfilerPCTickThreshold,    15,                             \
2888          "Number of ticks in a PC buckets to be a hotspot")                \
2889                                                                            \
2890  notproduct(intx, DeoptimizeALotInterval,     5,                           \
2891          "Number of exits until DeoptimizeALot kicks in")                  \
2892                                                                            \
2893  notproduct(intx, ZombieALotInterval,     5,                               \
2894          "Number of exits until ZombieALot kicks in")                      \
2895                                                                            \
2896  develop(bool, StressNonEntrant, false,                                    \
2897          "Mark nmethods non-entrant at registration")                      \
2898                                                                            \
2899  diagnostic(intx, MallocVerifyInterval,     0,                             \
2900          "if non-zero, verify C heap after every N calls to "              \
2901          "malloc/realloc/free")                                            \
2902                                                                            \
2903  diagnostic(intx, MallocVerifyStart,     0,                                \
2904          "if non-zero, start verifying C heap after Nth call to "          \
2905          "malloc/realloc/free")                                            \
2906                                                                            \
2907  product(intx, TypeProfileWidth,     2,                                   \
2908          "number of receiver types to record in call/cast profile")        \
2909                                                                            \
2910  develop(intx, BciProfileWidth,      2,                                    \
2911          "number of return bci's to record in ret profile")                \
2912                                                                            \
2913  product(intx, PerMethodRecompilationCutoff, 400,                          \
2914          "After recompiling N times, stay in the interpreter (-1=>'Inf')") \
2915                                                                            \
2916  product(intx, PerBytecodeRecompilationCutoff, 200,                        \
2917          "Per-BCI limit on repeated recompilation (-1=>'Inf')")            \
2918                                                                            \
2919  product(intx, PerMethodTrapLimit,  100,                                   \
2920          "Limit on traps (of one kind) in a method (includes inlines)")    \
2921                                                                            \
2922  product(intx, PerBytecodeTrapLimit,  4,                                   \
2923          "Limit on traps (of one kind) at a particular BCI")               \
2924                                                                            \
2925  develop(intx, InlineFrequencyRatio,    20,                                \
2926          "Ratio of call site execution to caller method invocation")       \
2927                                                                            \
2928  develop_pd(intx, InlineFrequencyCount,                                    \
2929          "Count of call site execution necessary to trigger frequent "     \
2930          "inlining")                                                       \
2931                                                                            \
2932  develop(intx, InlineThrowCount,    50,                                    \
2933          "Force inlining of interpreted methods that throw this often")    \
2934                                                                            \
2935  develop(intx, InlineThrowMaxSize,   200,                                  \
2936          "Force inlining of throwing methods smaller than this")           \
2937                                                                            \
2938  develop(intx, ProfilerNodeSize,  1024,                                    \
2939          "Size in K to allocate for the Profile Nodes of each thread")     \
2940                                                                            \
2941  product_pd(intx, PreInflateSpin,                                          \
2942          "Number of times to spin wait before inflation")                  \
2943                                                                            \
2944  /* gc parameters */                                                       \
2945  product(uintx, InitialHeapSize, 0,                                        \
2946          "Initial heap size (in bytes); zero means OldSize + NewSize")     \
2947                                                                            \
2948  product(uintx, MaxHeapSize, ScaleForWordSize(96*M),                       \
2949          "Maximum heap size (in bytes)")                                   \
2950                                                                            \
2951  product(uintx, OldSize, ScaleForWordSize(4*M),                            \
2952          "Initial tenured generation size (in bytes)")                     \
2953                                                                            \
2954  product(uintx, NewSize, ScaleForWordSize(1*M),                            \
2955          "Initial new generation size (in bytes)")                         \
2956                                                                            \
2957  product(uintx, MaxNewSize, max_uintx,                                     \
2958          "Maximum new generation size (in bytes), max_uintx means set "    \
2959          "ergonomically")                                                  \
2960                                                                            \
2961  product(uintx, PretenureSizeThreshold, 0,                                 \
2962          "Maximum size in bytes of objects allocated in DefNew "           \
2963          "generation; zero means no maximum")                              \
2964                                                                            \
2965  product(uintx, TLABSize, 0,                                               \
2966          "Starting TLAB size (in bytes); zero means set ergonomically")    \
2967                                                                            \
2968  product(uintx, MinTLABSize, 2*K,                                          \
2969          "Minimum allowed TLAB size (in bytes)")                           \
2970                                                                            \
2971  product(uintx, TLABAllocationWeight, 35,                                  \
2972          "Allocation averaging weight")                                    \
2973                                                                            \
2974  product(uintx, TLABWasteTargetPercent, 1,                                 \
2975          "Percentage of Eden that can be wasted")                          \
2976                                                                            \
2977  product(uintx, TLABRefillWasteFraction,    64,                            \
2978          "Max TLAB waste at a refill (internal fragmentation)")            \
2979                                                                            \
2980  product(uintx, TLABWasteIncrement,    4,                                  \
2981          "Increment allowed waste at slow allocation")                     \
2982                                                                            \
2983  product(intx, SurvivorRatio, 8,                                           \
2984          "Ratio of eden/survivor space size")                              \
2985                                                                            \
2986  product(intx, NewRatio, 2,                                                \
2987          "Ratio of new/old generation sizes")                              \
2988                                                                            \
2989  product_pd(uintx, NewSizeThreadIncrease,                                  \
2990          "Additional size added to desired new generation size per "       \
2991          "non-daemon thread (in bytes)")                                   \
2992                                                                            \
2993  product_pd(uintx, MetaspaceSize,                                          \
2994          "Initial size of Metaspaces (in bytes)")                          \
2995                                                                            \
2996  product(uintx, MaxMetaspaceSize, max_uintx,                               \
2997          "Maximum size of Metaspaces (in bytes)")                          \
2998                                                                            \
2999  product(uintx, ClassMetaspaceSize, 2*M,                                   \
3000          "Maximum size of InstanceKlass area in Metaspace used for "       \
3001          "UseCompressedKlassPointers")                                     \
3002                                                                            \
3003  product(uintx, MinHeapFreeRatio,    40,                                   \
3004          "Min percentage of heap free after GC to avoid expansion")        \
3005                                                                            \
3006  product(uintx, MaxHeapFreeRatio,    70,                                   \
3007          "Max percentage of heap free after GC to avoid shrinking")        \
3008                                                                            \
3009  product(intx, SoftRefLRUPolicyMSPerMB, 1000,                              \
3010          "Number of milliseconds per MB of free space in the heap")        \
3011                                                                            \
3012  product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K),                \
3013          "Min change in heap space due to GC (in bytes)")                  \
3014                                                                            \
3015  product(uintx, MinMetaspaceExpansion, ScaleForWordSize(256*K),             \
3016          "Min expansion of permanent heap (in bytes)")                     \
3017                                                                            \
3018  product(uintx, MaxMetaspaceExpansion, ScaleForWordSize(4*M),               \
3019          "Max expansion of permanent heap without full GC (in bytes)")     \
3020                                                                            \
3021  product(intx, QueuedAllocationWarningCount, 0,                            \
3022          "Number of times an allocation that queues behind a GC "          \
3023          "will retry before printing a warning")                           \
3024                                                                            \
3025  diagnostic(uintx, VerifyGCStartAt,   0,                                   \
3026          "GC invoke count where +VerifyBefore/AfterGC kicks in")           \
3027                                                                            \
3028  diagnostic(intx, VerifyGCLevel,     0,                                    \
3029          "Generation level at which to start +VerifyBefore/AfterGC")       \
3030                                                                            \
3031  product(intx, MaxTenuringThreshold,    15,                                \
3032          "Maximum value for tenuring threshold")                           \
3033                                                                            \
3034  product(intx, InitialTenuringThreshold,     7,                            \
3035          "Initial value for tenuring threshold")                           \
3036                                                                            \
3037  product(intx, TargetSurvivorRatio,    50,                                 \
3038          "Desired percentage of survivor space used after scavenge")       \
3039                                                                            \
3040  product(uintx, MarkSweepDeadRatio,     5,                                 \
3041          "Percentage (0-100) of the old gen allowed as dead wood."         \
3042          "Serial mark sweep treats this as both the min and max value."    \
3043          "CMS uses this value only if it falls back to mark sweep."        \
3044          "Par compact uses a variable scale based on the density of the"   \
3045          "generation and treats this as the max value when the heap is"    \
3046          "either completely full or completely empty.  Par compact also"   \
3047          "has a smaller default value; see arguments.cpp.")                \
3048                                                                            \
3049  product(intx, MarkSweepAlwaysCompactCount,     4,                         \
3050          "How often should we fully compact the heap (ignoring the dead "  \
3051          "space parameters)")                                              \
3052                                                                            \
3053  product(intx, PrintCMSStatistics, 0,                                      \
3054          "Statistics for CMS")                                             \
3055                                                                            \
3056  product(bool, PrintCMSInitiationStatistics, false,                        \
3057          "Statistics for initiating a CMS collection")                     \
3058                                                                            \
3059  product(intx, PrintFLSStatistics, 0,                                      \
3060          "Statistics for CMS' FreeListSpace")                              \
3061                                                                            \
3062  product(intx, PrintFLSCensus, 0,                                          \
3063          "Census for CMS' FreeListSpace")                                  \
3064                                                                            \
3065  develop(uintx, GCExpandToAllocateDelayMillis, 0,                          \
3066          "Delay in ms between expansion and allocation")                   \
3067                                                                            \
3068  product(intx, DeferThrSuspendLoopCount,     4000,                         \
3069          "(Unstable) Number of times to iterate in safepoint loop "        \
3070          " before blocking VM threads ")                                   \
3071                                                                            \
3072  product(intx, DeferPollingPageLoopCount,     -1,                          \
3073          "(Unsafe,Unstable) Number of iterations in safepoint loop "       \
3074          "before changing safepoint polling page to RO ")                  \
3075                                                                            \
3076  product(intx, SafepointSpinBeforeYield, 2000,  "(Unstable)")              \
3077                                                                            \
3078  product(bool, PSChunkLargeArrays, true,                                   \
3079          "true: process large arrays in chunks")                           \
3080                                                                            \
3081  product(uintx, GCDrainStackTargetSize, 64,                                \
3082          "how many entries we'll try to leave on the stack during "        \
3083          "parallel GC")                                                    \
3084                                                                            \
3085  /* stack parameters */                                                    \
3086  product_pd(intx, StackYellowPages,                                        \
3087          "Number of yellow zone (recoverable overflows) pages")            \
3088                                                                            \
3089  product_pd(intx, StackRedPages,                                           \
3090          "Number of red zone (unrecoverable overflows) pages")             \
3091                                                                            \
3092  product_pd(intx, StackShadowPages,                                        \
3093          "Number of shadow zone (for overflow checking) pages"             \
3094          " this should exceed the depth of the VM and native call stack")  \
3095                                                                            \
3096  product_pd(intx, ThreadStackSize,                                         \
3097          "Thread Stack Size (in Kbytes)")                                  \
3098                                                                            \
3099  product_pd(intx, VMThreadStackSize,                                       \
3100          "Non-Java Thread Stack Size (in Kbytes)")                         \
3101                                                                            \
3102  product_pd(intx, CompilerThreadStackSize,                                 \
3103          "Compiler Thread Stack Size (in Kbytes)")                         \
3104                                                                            \
3105  develop_pd(uintx, JVMInvokeMethodSlack,                                   \
3106          "Stack space (bytes) required for JVM_InvokeMethod to complete")  \
3107                                                                            \
3108  product(uintx, ThreadSafetyMargin, 50*M,                                  \
3109          "Thread safety margin is used on fixed-stack LinuxThreads (on "   \
3110          "Linux/x86 only) to prevent heap-stack collision. Set to 0 to "   \
3111          "disable this feature")                                           \
3112                                                                            \
3113  /* code cache parameters */                                               \
3114  develop(uintx, CodeCacheSegmentSize, 64,                                  \
3115          "Code cache segment size (in bytes) - smallest unit of "          \
3116          "allocation")                                                     \
3117                                                                            \
3118  develop_pd(intx, CodeEntryAlignment,                                      \
3119          "Code entry alignment for generated code (in bytes)")             \
3120                                                                            \
3121  product_pd(intx, OptoLoopAlignment,                                       \
3122          "Align inner loops to zero relative to this modulus")             \
3123                                                                            \
3124  product_pd(uintx, InitialCodeCacheSize,                                   \
3125          "Initial code cache size (in bytes)")                             \
3126                                                                            \
3127  product_pd(uintx, ReservedCodeCacheSize,                                  \
3128          "Reserved code cache size (in bytes) - maximum code cache size")  \
3129                                                                            \
3130  product(uintx, CodeCacheMinimumFreeSpace, 500*K,                          \
3131          "When less than X space left, we stop compiling.")                \
3132                                                                            \
3133  product_pd(uintx, CodeCacheExpansionSize,                                 \
3134          "Code cache expansion size (in bytes)")                           \
3135                                                                            \
3136  develop_pd(uintx, CodeCacheMinBlockLength,                                \
3137          "Minimum number of segments in a code cache block.")              \
3138                                                                            \
3139  notproduct(bool, ExitOnFullCodeCache, false,                              \
3140          "Exit the VM if we fill the code cache.")                         \
3141                                                                            \
3142  product(bool, UseCodeCacheFlushing, true,                                 \
3143          "Attempt to clean the code cache before shutting off compiler")   \
3144                                                                            \
3145  product(intx,  MinCodeCacheFlushingInterval, 30,                          \
3146          "Min number of seconds between code cache cleaning sessions")     \
3147                                                                            \
3148  product(uintx,  CodeCacheFlushingMinimumFreeSpace, 1500*K,                \
3149          "When less than X space left, start code cache cleaning")         \
3150                                                                            \
3151  /* interpreter debugging */                                               \
3152  develop(intx, BinarySwitchThreshold, 5,                                   \
3153          "Minimal number of lookupswitch entries for rewriting to binary " \
3154          "switch")                                                         \
3155                                                                            \
3156  develop(intx, StopInterpreterAt, 0,                                       \
3157          "Stops interpreter execution at specified bytecode number")       \
3158                                                                            \
3159  develop(intx, TraceBytecodesAt, 0,                                        \
3160          "Traces bytecodes starting with specified bytecode number")       \
3161                                                                            \
3162  /* compiler interface */                                                  \
3163  develop(intx, CIStart, 0,                                                 \
3164          "the id of the first compilation to permit")                      \
3165                                                                            \
3166  develop(intx, CIStop,    -1,                                              \
3167          "the id of the last compilation to permit")                       \
3168                                                                            \
3169  develop(intx, CIStartOSR,     0,                                          \
3170          "the id of the first osr compilation to permit "                  \
3171          "(CICountOSR must be on)")                                        \
3172                                                                            \
3173  develop(intx, CIStopOSR,    -1,                                           \
3174          "the id of the last osr compilation to permit "                   \
3175          "(CICountOSR must be on)")                                        \
3176                                                                            \
3177  develop(intx, CIBreakAtOSR,    -1,                                        \
3178          "id of osr compilation to break at")                              \
3179                                                                            \
3180  develop(intx, CIBreakAt,    -1,                                           \
3181          "id of compilation to break at")                                  \
3182                                                                            \
3183  product(ccstrlist, CompileOnly, "",                                       \
3184          "List of methods (pkg/class.name) to restrict compilation to")    \
3185                                                                            \
3186  product(ccstr, CompileCommandFile, NULL,                                  \
3187          "Read compiler commands from this file [.hotspot_compiler]")      \
3188                                                                            \
3189  product(ccstrlist, CompileCommand, "",                                    \
3190          "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
3191                                                                            \
3192  product(bool, CICompilerCountPerCPU, false,                               \
3193          "1 compiler thread for log(N CPUs)")                              \
3194                                                                            \
3195  develop(intx, CIFireOOMAt,    -1,                                         \
3196          "Fire OutOfMemoryErrors throughout CI for testing the compiler "  \
3197          "(non-negative value throws OOM after this many CI accesses "     \
3198          "in each compile)")                                               \
3199                                                                            \
3200  notproduct(bool, CIObjectFactoryVerify, false,                            \
3201          "enable potentially expensive verification in ciObjectFactory")   \
3202                                                                            \
3203  /* Priorities */                                                          \
3204  product_pd(bool, UseThreadPriorities,  "Use native thread priorities")    \
3205                                                                            \
3206  product(intx, ThreadPriorityPolicy, 0,                                    \
3207          "0 : Normal.                                                     "\
3208          "    VM chooses priorities that are appropriate for normal       "\
3209          "    applications. On Solaris NORM_PRIORITY and above are mapped "\
3210          "    to normal native priority. Java priorities below NORM_PRIORITY"\
3211          "    map to lower native priority values. On Windows applications"\
3212          "    are allowed to use higher native priorities. However, with  "\
3213          "    ThreadPriorityPolicy=0, VM will not use the highest possible"\
3214          "    native priority, THREAD_PRIORITY_TIME_CRITICAL, as it may   "\
3215          "    interfere with system threads. On Linux thread priorities   "\
3216          "    are ignored because the OS does not support static priority "\
3217          "    in SCHED_OTHER scheduling class which is the only choice for"\
3218          "    non-root, non-realtime applications.                        "\
3219          "1 : Aggressive.                                                 "\
3220          "    Java thread priorities map over to the entire range of      "\
3221          "    native thread priorities. Higher Java thread priorities map "\
3222          "    to higher native thread priorities. This policy should be   "\
3223          "    used with care, as sometimes it can cause performance       "\
3224          "    degradation in the application and/or the entire system. On "\
3225          "    Linux this policy requires root privilege.")                 \
3226                                                                            \
3227  product(bool, ThreadPriorityVerbose, false,                               \
3228          "Print priority changes")                                         \
3229                                                                            \
3230  product(intx, DefaultThreadPriority, -1,                                  \
3231          "The native priority at which threads run if not elsewhere "      \
3232          "specified (-1 means no change)")                                 \
3233                                                                            \
3234  product(intx, CompilerThreadPriority, -1,                                 \
3235          "The native priority at which compiler threads should run "       \
3236          "(-1 means no change)")                                           \
3237                                                                            \
3238  product(intx, VMThreadPriority, -1,                                       \
3239          "The native priority at which the VM thread should run "          \
3240          "(-1 means no change)")                                           \
3241                                                                            \
3242  product(bool, CompilerThreadHintNoPreempt, true,                          \
3243          "(Solaris only) Give compiler threads an extra quanta")           \
3244                                                                            \
3245  product(bool, VMThreadHintNoPreempt, false,                               \
3246          "(Solaris only) Give VM thread an extra quanta")                  \
3247                                                                            \
3248  product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3249  product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3250  product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3251  product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3252  product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3253  product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3254  product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3255  product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3256  product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \
3257  product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \
3258                                                                            \
3259  experimental(bool, UseCriticalJavaThreadPriority, false,                  \
3260          "Java thread priority 10 maps to critical scheduling priority")   \
3261                                                                            \
3262  experimental(bool, UseCriticalCompilerThreadPriority, false,              \
3263          "Compiler thread(s) run at critical scheduling priority")         \
3264                                                                            \
3265  experimental(bool, UseCriticalCMSThreadPriority, false,                   \
3266          "ConcurrentMarkSweep thread runs at critical scheduling priority")\
3267                                                                            \
3268  /* compiler debugging */                                                  \
3269  notproduct(intx, CompileTheWorldStartAt,     1,                           \
3270          "First class to consider when using +CompileTheWorld")            \
3271                                                                            \
3272  notproduct(intx, CompileTheWorldStopAt, max_jint,                         \
3273          "Last class to consider when using +CompileTheWorld")             \
3274                                                                            \
3275  develop(intx, NewCodeParameter,      0,                                   \
3276          "Testing Only: Create a dedicated integer parameter before "      \
3277          "putback")                                                        \
3278                                                                            \
3279  /* new oopmap storage allocation */                                       \
3280  develop(intx, MinOopMapAllocation,     8,                                 \
3281          "Minimum number of OopMap entries in an OopMapSet")               \
3282                                                                            \
3283  /* Background Compilation */                                              \
3284  develop(intx, LongCompileThreshold,     50,                               \
3285          "Used with +TraceLongCompiles")                                   \
3286                                                                            \
3287  product(intx, StarvationMonitorInterval,    200,                          \
3288          "Pause between each check in ms")                                 \
3289                                                                            \
3290  /* recompilation */                                                       \
3291  product_pd(intx, CompileThreshold,                                        \
3292          "number of interpreted method invocations before (re-)compiling") \
3293                                                                            \
3294  product_pd(intx, BackEdgeThreshold,                                       \
3295          "Interpreter Back edge threshold at which an OSR compilation is invoked")\
3296                                                                            \
3297  product(intx, Tier0InvokeNotifyFreqLog, 7,                                \
3298          "Interpreter (tier 0) invocation notification frequency.")        \
3299                                                                            \
3300  product(intx, Tier2InvokeNotifyFreqLog, 11,                               \
3301          "C1 without MDO (tier 2) invocation notification frequency.")     \
3302                                                                            \
3303  product(intx, Tier3InvokeNotifyFreqLog, 10,                               \
3304          "C1 with MDO profiling (tier 3) invocation notification "         \
3305          "frequency.")                                                     \
3306                                                                            \
3307  product(intx, Tier23InlineeNotifyFreqLog, 20,                             \
3308          "Inlinee invocation (tiers 2 and 3) notification frequency")      \
3309                                                                            \
3310  product(intx, Tier0BackedgeNotifyFreqLog, 10,                             \
3311          "Interpreter (tier 0) invocation notification frequency.")        \
3312                                                                            \
3313  product(intx, Tier2BackedgeNotifyFreqLog, 14,                             \
3314          "C1 without MDO (tier 2) invocation notification frequency.")     \
3315                                                                            \
3316  product(intx, Tier3BackedgeNotifyFreqLog, 13,                             \
3317          "C1 with MDO profiling (tier 3) invocation notification "         \
3318          "frequency.")                                                     \
3319                                                                            \
3320  product(intx, Tier2CompileThreshold, 0,                                   \
3321          "threshold at which tier 2 compilation is invoked")               \
3322                                                                            \
3323  product(intx, Tier2BackEdgeThreshold, 0,                                  \
3324          "Back edge threshold at which tier 2 compilation is invoked")     \
3325                                                                            \
3326  product(intx, Tier3InvocationThreshold, 200,                              \
3327          "Compile if number of method invocations crosses this "           \
3328          "threshold")                                                      \
3329                                                                            \
3330  product(intx, Tier3MinInvocationThreshold, 100,                           \
3331          "Minimum invocation to compile at tier 3")                        \
3332                                                                            \
3333  product(intx, Tier3CompileThreshold, 2000,                                \
3334          "Threshold at which tier 3 compilation is invoked (invocation "   \
3335          "minimum must be satisfied.")                                     \
3336                                                                            \
3337  product(intx, Tier3BackEdgeThreshold,  60000,                             \
3338          "Back edge threshold at which tier 3 OSR compilation is invoked") \
3339                                                                            \
3340  product(intx, Tier4InvocationThreshold, 5000,                             \
3341          "Compile if number of method invocations crosses this "           \
3342          "threshold")                                                      \
3343                                                                            \
3344  product(intx, Tier4MinInvocationThreshold, 600,                           \
3345          "Minimum invocation to compile at tier 4")                        \
3346                                                                            \
3347  product(intx, Tier4CompileThreshold, 15000,                               \
3348          "Threshold at which tier 4 compilation is invoked (invocation "   \
3349          "minimum must be satisfied.")                                     \
3350                                                                            \
3351  product(intx, Tier4BackEdgeThreshold, 40000,                              \
3352          "Back edge threshold at which tier 4 OSR compilation is invoked") \
3353                                                                            \
3354  product(intx, Tier3DelayOn, 5,                                            \
3355          "If C2 queue size grows over this amount per compiler thread "    \
3356          "stop compiling at tier 3 and start compiling at tier 2")         \
3357                                                                            \
3358  product(intx, Tier3DelayOff, 2,                                           \
3359          "If C2 queue size is less than this amount per compiler thread "  \
3360          "allow methods compiled at tier 2 transition to tier 3")          \
3361                                                                            \
3362  product(intx, Tier3LoadFeedback, 5,                                       \
3363          "Tier 3 thresholds will increase twofold when C1 queue size "     \
3364          "reaches this amount per compiler thread")                        \
3365                                                                            \
3366  product(intx, Tier4LoadFeedback, 3,                                       \
3367          "Tier 4 thresholds will increase twofold when C2 queue size "     \
3368          "reaches this amount per compiler thread")                        \
3369                                                                            \
3370  product(intx, TieredCompileTaskTimeout, 50,                               \
3371          "Kill compile task if method was not used within "                \
3372          "given timeout in milliseconds")                                  \
3373                                                                            \
3374  product(intx, TieredStopAtLevel, 4,                                       \
3375          "Stop at given compilation level")                                \
3376                                                                            \
3377  product(intx, Tier0ProfilingStartPercentage, 200,                         \
3378          "Start profiling in interpreter if the counters exceed tier 3"    \
3379          "thresholds by the specified percentage")                         \
3380                                                                            \
3381  product(intx, TieredRateUpdateMinTime, 1,                                 \
3382          "Minimum rate sampling interval (in milliseconds)")               \
3383                                                                            \
3384  product(intx, TieredRateUpdateMaxTime, 25,                                \
3385          "Maximum rate sampling interval (in milliseconds)")               \
3386                                                                            \
3387  product_pd(bool, TieredCompilation,                                       \
3388          "Enable tiered compilation")                                      \
3389                                                                            \
3390  product(bool, PrintTieredEvents, false,                                   \
3391          "Print tiered events notifications")                              \
3392                                                                            \
3393  product_pd(intx, OnStackReplacePercentage,                                \
3394          "NON_TIERED number of method invocations/branches (expressed as %"\
3395          "of CompileThreshold) before (re-)compiling OSR code")            \
3396                                                                            \
3397  product(intx, InterpreterProfilePercentage, 33,                           \
3398          "NON_TIERED number of method invocations/branches (expressed as %"\
3399          "of CompileThreshold) before profiling in the interpreter")       \
3400                                                                            \
3401  develop(intx, MaxRecompilationSearchLength,    10,                        \
3402          "max. # frames to inspect searching for recompilee")              \
3403                                                                            \
3404  develop(intx, MaxInterpretedSearchLength,     3,                          \
3405          "max. # interp. frames to skip when searching for recompilee")    \
3406                                                                            \
3407  develop(intx, DesiredMethodLimit,  8000,                                  \
3408          "desired max. method size (in bytecodes) after inlining")         \
3409                                                                            \
3410  develop(intx, HugeMethodLimit,  8000,                                     \
3411          "don't compile methods larger than this if "                      \
3412          "+DontCompileHugeMethods")                                        \
3413                                                                            \
3414  /* New JDK 1.4 reflection implementation */                               \
3415                                                                            \
3416  develop(bool, UseNewReflection, true,                                     \
3417          "Temporary flag for transition to reflection based on dynamic "   \
3418          "bytecode generation in 1.4; can no longer be turned off in 1.4 " \
3419          "JDK, and is unneeded in 1.3 JDK, but marks most places VM "      \
3420          "changes were needed")                                            \
3421                                                                            \
3422  develop(bool, VerifyReflectionBytecodes, false,                           \
3423          "Force verification of 1.4 reflection bytecodes. Does not work "  \
3424          "in situations like that described in 4486457 or for "            \
3425          "constructors generated for serialization, so can not be enabled "\
3426          "in product.")                                                    \
3427                                                                            \
3428  product(bool, ReflectionWrapResolutionErrors, true,                       \
3429          "Temporary flag for transition to AbstractMethodError wrapped "   \
3430          "in InvocationTargetException. See 6531596")                      \
3431                                                                            \
3432                                                                            \
3433  develop(intx, FastSuperclassLimit, 8,                                     \
3434          "Depth of hardwired instanceof accelerator array")                \
3435                                                                            \
3436  /* Properties for Java libraries  */                                      \
3437                                                                            \
3438  product(uintx, MaxDirectMemorySize, 0,                                    \
3439          "Maximum total size of NIO direct-buffer allocations")            \
3440                                                                            \
3441  /* temporary developer defined flags  */                                  \
3442                                                                            \
3443  diagnostic(bool, UseNewCode, false,                                       \
3444          "Testing Only: Use the new version while testing")                \
3445                                                                            \
3446  diagnostic(bool, UseNewCode2, false,                                      \
3447          "Testing Only: Use the new version while testing")                \
3448                                                                            \
3449  diagnostic(bool, UseNewCode3, false,                                      \
3450          "Testing Only: Use the new version while testing")                \
3451                                                                            \
3452  /* flags for performance data collection */                               \
3453                                                                            \
3454  product(bool, UsePerfData, falseInEmbedded,                               \
3455          "Flag to disable jvmstat instrumentation for performance testing" \
3456          "and problem isolation purposes.")                                \
3457                                                                            \
3458  product(bool, PerfDataSaveToFile, false,                                  \
3459          "Save PerfData memory to hsperfdata_<pid> file on exit")          \
3460                                                                            \
3461  product(ccstr, PerfDataSaveFile, NULL,                                    \
3462          "Save PerfData memory to the specified absolute pathname,"        \
3463           "%p in the file name if present will be replaced by pid")        \
3464                                                                            \
3465  product(intx, PerfDataSamplingInterval, 50 /*ms*/,                        \
3466          "Data sampling interval in milliseconds")                         \
3467                                                                            \
3468  develop(bool, PerfTraceDataCreation, false,                               \
3469          "Trace creation of Performance Data Entries")                     \
3470                                                                            \
3471  develop(bool, PerfTraceMemOps, false,                                     \
3472          "Trace PerfMemory create/attach/detach calls")                    \
3473                                                                            \
3474  product(bool, PerfDisableSharedMem, false,                                \
3475          "Store performance data in standard memory")                      \
3476                                                                            \
3477  product(intx, PerfDataMemorySize, 32*K,                                   \
3478          "Size of performance data memory region. Will be rounded "        \
3479          "up to a multiple of the native os page size.")                   \
3480                                                                            \
3481  product(intx, PerfMaxStringConstLength, 1024,                             \
3482          "Maximum PerfStringConstant string length before truncation")     \
3483                                                                            \
3484  product(bool, PerfAllowAtExitRegistration, false,                         \
3485          "Allow registration of atexit() methods")                         \
3486                                                                            \
3487  product(bool, PerfBypassFileSystemCheck, false,                           \
3488          "Bypass Win32 file system criteria checks (Windows Only)")        \
3489                                                                            \
3490  product(intx, UnguardOnExecutionViolation, 0,                             \
3491          "Unguard page and retry on no-execute fault (Win32 only)"         \
3492          "0=off, 1=conservative, 2=aggressive")                            \
3493                                                                            \
3494  /* Serviceability Support */                                              \
3495                                                                            \
3496  product(bool, ManagementServer, false,                                    \
3497          "Create JMX Management Server")                                   \
3498                                                                            \
3499  product(bool, DisableAttachMechanism, false,                              \
3500         "Disable mechanism that allows tools to attach to this VM")        \
3501                                                                            \
3502  product(bool, StartAttachListener, false,                                 \
3503          "Always start Attach Listener at VM startup")                     \
3504                                                                            \
3505  manageable(bool, PrintConcurrentLocks, false,                             \
3506          "Print java.util.concurrent locks in thread dump")                \
3507                                                                            \
3508  product(bool, TransmitErrorReport, false,                                 \
3509          "Enable error report transmission on erroneous termination")      \
3510                                                                            \
3511  product(ccstr, ErrorReportServer, NULL,                                   \
3512          "Override built-in error report server address")                  \
3513                                                                            \
3514  /* Shared spaces */                                                       \
3515                                                                            \
3516  product(bool, UseSharedSpaces, true,                                      \
3517          "Use shared spaces in the permanent generation")                  \
3518                                                                            \
3519  product(bool, RequireSharedSpaces, false,                                 \
3520          "Require shared spaces in the permanent generation")              \
3521                                                                            \
3522  product(bool, DumpSharedSpaces, false,                                    \
3523           "Special mode: JVM reads a class list, loads classes, builds "   \
3524            "shared spaces, and dumps the shared spaces to a file to be "   \
3525            "used in future JVM runs.")                                     \
3526                                                                            \
3527  product(bool, PrintSharedSpaces, false,                                   \
3528          "Print usage of shared spaces")                                   \
3529                                                                            \
3530  product(uintx, SharedReadWriteSize,  NOT_LP64(12*M) LP64_ONLY(16*M),      \
3531          "Size of read-write space in permanent generation (in bytes)")    \
3532                                                                            \
3533  product(uintx, SharedReadOnlySize,  NOT_LP64(12*M) LP64_ONLY(16*M),       \
3534          "Size of read-only space in permanent generation (in bytes)")     \
3535                                                                            \
3536  product(uintx, SharedMiscDataSize,    NOT_LP64(2*M) LP64_ONLY(4*M),       \
3537          "Size of the shared data area adjacent to the heap (in bytes)")   \
3538                                                                            \
3539  product(uintx, SharedMiscCodeSize,    120*K,                              \
3540          "Size of the shared code area adjacent to the heap (in bytes)")   \
3541                                                                            \
3542  product(uintx, SharedDummyBlockSize, 0,                                   \
3543          "Size of dummy block used to shift heap addresses (in bytes)")    \
3544                                                                            \
3545  diagnostic(bool, SharedSkipVerify, false,                                 \
3546          "Skip assert() and verify() which page-in unwanted shared "       \
3547          "objects. ")                                                      \
3548                                                                            \
3549  diagnostic(bool, EnableInvokeDynamic, true,                               \
3550          "support JSR 292 (method handles, invokedynamic, "                \
3551          "anonymous classes")                                              \
3552                                                                            \
3553  diagnostic(bool, PrintMethodHandleStubs, false,                           \
3554          "Print generated stub code for method handles")                   \
3555                                                                            \
3556  develop(bool, TraceMethodHandles, false,                                  \
3557          "trace internal method handle operations")                        \
3558                                                                            \
3559  diagnostic(bool, VerifyMethodHandles, trueInDebug,                        \
3560          "perform extra checks when constructing method handles")          \
3561                                                                            \
3562  diagnostic(bool, ShowHiddenFrames, false,                                 \
3563          "show method handle implementation frames (usually hidden)")      \
3564                                                                            \
3565  experimental(bool, TrustFinalNonStaticFields, false,                      \
3566          "trust final non-static declarations for constant folding")       \
3567                                                                            \
3568  develop(bool, TraceInvokeDynamic, false,                                  \
3569          "trace internal invoke dynamic operations")                       \
3570                                                                            \
3571  diagnostic(bool, PauseAtStartup,      false,                              \
3572          "Causes the VM to pause at startup time and wait for the pause "  \
3573          "file to be removed (default: ./vm.paused.<pid>)")                \
3574                                                                            \
3575  diagnostic(ccstr, PauseAtStartupFile, NULL,                               \
3576          "The file to create and for whose removal to await when pausing " \
3577          "at startup. (default: ./vm.paused.<pid>)")                       \
3578                                                                            \
3579  diagnostic(bool, PauseAtExit, false,                                      \
3580          "Pause and wait for keypress on exit if a debugger is attached")  \
3581                                                                            \
3582  product(bool, ExtendedDTraceProbes,    false,                             \
3583          "Enable performance-impacting dtrace probes")                     \
3584                                                                            \
3585  product(bool, DTraceMethodProbes, false,                                  \
3586          "Enable dtrace probes for method-entry and method-exit")          \
3587                                                                            \
3588  product(bool, DTraceAllocProbes, false,                                   \
3589          "Enable dtrace probes for object allocation")                     \
3590                                                                            \
3591  product(bool, DTraceMonitorProbes, false,                                 \
3592          "Enable dtrace probes for monitor events")                        \
3593                                                                            \
3594  product(bool, RelaxAccessControlCheck, false,                             \
3595          "Relax the access control checks in the verifier")                \
3596                                                                            \
3597  diagnostic(bool, PrintDTraceDOF, false,                                   \
3598             "Print the DTrace DOF passed to the system for JSDT probes")   \
3599                                                                            \
3600  product(uintx, StringTableSize, 1009,                                     \
3601          "Number of buckets in the interned String table")                 \
3602                                                                            \
3603  product(bool, UseVMInterruptibleIO, false,                                \
3604          "(Unstable, Solaris-specific) Thread interrupt before or with "   \
3605          "EINTR for I/O operations results in OS_INTRPT. The default value"\
3606          " of this flag is true for JDK 6 and earlier")                    \
3607                                                                            \
3608  diagnostic(bool, WhiteBoxAPI, false,                                      \
3609          "Enable internal testing APIs")                                   \
3610                                                                            \
3611  product(bool, PrintGCCause, true,                                         \
3612          "Include GC cause in GC logging")
3613
3614/*
3615 *  Macros for factoring of globals
3616 */
3617
3618// Interface macros
3619#define DECLARE_PRODUCT_FLAG(type, name, value, doc)    extern "C" type name;
3620#define DECLARE_PD_PRODUCT_FLAG(type, name, doc)        extern "C" type name;
3621#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name;
3622#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
3623#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name;
3624#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name;
3625#ifdef PRODUCT
3626#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)  const type name = value;
3627#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)      const type name = pd_##name;
3628#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)
3629#else
3630#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)  extern "C" type name;
3631#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)      extern "C" type name;
3632#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)  extern "C" type name;
3633#endif
3634// Special LP64 flags, product only needed for now.
3635#ifdef _LP64
3636#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
3637#else
3638#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value;
3639#endif // _LP64
3640
3641// Implementation macros
3642#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc)   type name = value;
3643#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc)       type name = pd_##name;
3644#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value;
3645#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value;
3646#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value;
3647#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value;
3648#ifdef PRODUCT
3649#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) /* flag name is constant */
3650#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)     /* flag name is constant */
3651#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)
3652#else
3653#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value;
3654#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)     type name = pd_##name;
3655#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value;
3656#endif
3657#ifdef _LP64
3658#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc)   type name = value;
3659#else
3660#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */
3661#endif // _LP64
3662
3663RUNTIME_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)
3664
3665RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)
3666
3667ARCH_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG)
3668
3669// Extensions
3670
3671#include "runtime/globals_ext.hpp"
3672
3673#endif // SHARE_VM_RUNTIME_GLOBALS_HPP
3674