globals.hpp revision 76:d6fe2e4959d6
1266423Sjfv/*
2266423Sjfv * Copyright 1997-2007 Sun Microsystems, Inc.  All Rights Reserved.
3266423Sjfv * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4266423Sjfv *
5266423Sjfv * This code is free software; you can redistribute it and/or modify it
6266423Sjfv * under the terms of the GNU General Public License version 2 only, as
7266423Sjfv * published by the Free Software Foundation.
8266423Sjfv *
9266423Sjfv * This code is distributed in the hope that it will be useful, but WITHOUT
10266423Sjfv * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11266423Sjfv * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12266423Sjfv * version 2 for more details (a copy is included in the LICENSE file that
13266423Sjfv * accompanied this code).
14266423Sjfv *
15266423Sjfv * You should have received a copy of the GNU General Public License version
16266423Sjfv * 2 along with this work; if not, write to the Free Software Foundation,
17266423Sjfv * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18266423Sjfv *
19266423Sjfv * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
20266423Sjfv * CA 95054 USA or visit www.sun.com if you need additional information or
21266423Sjfv * have any questions.
22266423Sjfv *
23266423Sjfv */
24266423Sjfv
25266423Sjfv#if !defined(COMPILER1) && !defined(COMPILER2)
26266423Sjfvdefine_pd_global(bool, BackgroundCompilation,        false);
27266423Sjfvdefine_pd_global(bool, UseTLAB,                      false);
28266423Sjfvdefine_pd_global(bool, CICompileOSR,                 false);
29266423Sjfvdefine_pd_global(bool, UseTypeProfile,               false);
30266423Sjfvdefine_pd_global(bool, UseOnStackReplacement,        false);
31266423Sjfvdefine_pd_global(bool, InlineIntrinsics,             false);
32266423Sjfvdefine_pd_global(bool, PreferInterpreterNativeStubs, true);
33266423Sjfvdefine_pd_global(bool, ProfileInterpreter,           false);
34266423Sjfvdefine_pd_global(bool, ProfileTraps,                 false);
35266423Sjfvdefine_pd_global(bool, TieredCompilation,            false);
36266423Sjfv
37266423Sjfvdefine_pd_global(intx, CompileThreshold,             0);
38266423Sjfvdefine_pd_global(intx, Tier2CompileThreshold,        0);
39266423Sjfvdefine_pd_global(intx, Tier3CompileThreshold,        0);
40266423Sjfvdefine_pd_global(intx, Tier4CompileThreshold,        0);
41266423Sjfv
42266423Sjfvdefine_pd_global(intx, BackEdgeThreshold,            0);
43266423Sjfvdefine_pd_global(intx, Tier2BackEdgeThreshold,       0);
44266423Sjfvdefine_pd_global(intx, Tier3BackEdgeThreshold,       0);
45266423Sjfvdefine_pd_global(intx, Tier4BackEdgeThreshold,       0);
46266423Sjfv
47266423Sjfvdefine_pd_global(intx, OnStackReplacePercentage,     0);
48266423Sjfvdefine_pd_global(bool, ResizeTLAB,                   false);
49266423Sjfvdefine_pd_global(intx, FreqInlineSize,               0);
50266423Sjfvdefine_pd_global(intx, NewSizeThreadIncrease,        4*K);
51266423Sjfvdefine_pd_global(intx, NewRatio,                     4);
52266423Sjfvdefine_pd_global(intx, InlineClassNatives,           true);
53266423Sjfvdefine_pd_global(intx, InlineUnsafeOps,              true);
54266423Sjfvdefine_pd_global(intx, InitialCodeCacheSize,         160*K);
55266423Sjfvdefine_pd_global(intx, ReservedCodeCacheSize,        32*M);
56266423Sjfvdefine_pd_global(intx, CodeCacheExpansionSize,       32*K);
57266423Sjfvdefine_pd_global(intx, CodeCacheMinBlockLength,      1);
58266423Sjfvdefine_pd_global(uintx,PermSize,    ScaleForWordSize(4*M));
59266423Sjfvdefine_pd_global(uintx,MaxPermSize, ScaleForWordSize(64*M));
60266423Sjfvdefine_pd_global(bool, NeverActAsServerClassMachine, true);
61266423Sjfvdefine_pd_global(uintx, DefaultMaxRAM,               1*G);
62266423Sjfv#define CI_COMPILER_COUNT 0
63266423Sjfv#else
64266423Sjfv
65266423Sjfv#ifdef COMPILER2
66266423Sjfv#define CI_COMPILER_COUNT 2
67266423Sjfv#else
68266423Sjfv#define CI_COMPILER_COUNT 1
69266423Sjfv#endif // COMPILER2
70266423Sjfv
71266423Sjfv#endif // no compilers
72266423Sjfv
73266423Sjfv
74266423Sjfv// string type aliases used only in this file
75266423Sjfvtypedef const char* ccstr;
76266423Sjfvtypedef const char* ccstrlist;   // represents string arguments which accumulate
77266423Sjfv
78266423Sjfvenum FlagValueOrigin {
79266423Sjfv  DEFAULT          = 0,
80266423Sjfv  COMMAND_LINE     = 1,
81266423Sjfv  ENVIRON_VAR      = 2,
82266423Sjfv  CONFIG_FILE      = 3,
83266423Sjfv  MANAGEMENT       = 4,
84266423Sjfv  ERGONOMIC        = 5,
85266423Sjfv  ATTACH_ON_DEMAND = 6,
86266423Sjfv  INTERNAL         = 99
87266423Sjfv};
88266423Sjfv
89266423Sjfvstruct Flag {
90266423Sjfv  const char *type;
91266423Sjfv  const char *name;
92266423Sjfv  void*       addr;
93266423Sjfv  const char *kind;
94266423Sjfv  FlagValueOrigin origin;
95266423Sjfv
96266423Sjfv  // points to all Flags static array
97266423Sjfv  static Flag *flags;
98266423Sjfv
99266423Sjfv  // number of flags
100266423Sjfv  static size_t numFlags;
101266423Sjfv
102266423Sjfv  static Flag* find_flag(char* name, size_t length);
103266423Sjfv
104266423Sjfv  bool is_bool() const        { return strcmp(type, "bool") == 0; }
105266423Sjfv  bool get_bool() const       { return *((bool*) addr); }
106266423Sjfv  void set_bool(bool value)   { *((bool*) addr) = value; }
107266423Sjfv
108266423Sjfv  bool is_intx()  const       { return strcmp(type, "intx")  == 0; }
109266423Sjfv  intx get_intx() const       { return *((intx*) addr); }
110266423Sjfv  void set_intx(intx value)   { *((intx*) addr) = value; }
111266423Sjfv
112266423Sjfv  bool is_uintx() const       { return strcmp(type, "uintx") == 0; }
113266423Sjfv  uintx get_uintx() const     { return *((uintx*) addr); }
114266423Sjfv  void set_uintx(uintx value) { *((uintx*) addr) = value; }
115266423Sjfv
116266423Sjfv  bool is_double() const        { return strcmp(type, "double") == 0; }
117266423Sjfv  double get_double() const     { return *((double*) addr); }
118266423Sjfv  void set_double(double value) { *((double*) addr) = value; }
119266423Sjfv
120266423Sjfv  bool is_ccstr() const          { return strcmp(type, "ccstr") == 0 || strcmp(type, "ccstrlist") == 0; }
121266423Sjfv  bool ccstr_accumulates() const { return strcmp(type, "ccstrlist") == 0; }
122266423Sjfv  ccstr get_ccstr() const     { return *((ccstr*) addr); }
123266423Sjfv  void set_ccstr(ccstr value) { *((ccstr*) addr) = value; }
124266423Sjfv
125266423Sjfv  bool is_unlocker() const;
126266423Sjfv  bool is_unlocked() const;
127266423Sjfv  bool is_writeable() const;
128266423Sjfv  bool is_external() const;
129266423Sjfv
130266423Sjfv  void print_on(outputStream* st);
131266423Sjfv  void print_as_flag(outputStream* st);
132266423Sjfv};
133266423Sjfv
134266423Sjfv// debug flags control various aspects of the VM and are global accessible
135266423Sjfv
136266423Sjfv// use FlagSetting to temporarily change some debug flag
137266423Sjfv// e.g. FlagSetting fs(DebugThisAndThat, true);
138266423Sjfv// restored to previous value upon leaving scope
139266423Sjfvclass FlagSetting {
140266423Sjfv  bool val;
141266423Sjfv  bool* flag;
142266423Sjfv public:
143266423Sjfv  FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; }
144266423Sjfv  ~FlagSetting()                       { *flag = val; }
145266423Sjfv};
146266423Sjfv
147266423Sjfv
148266423Sjfvclass CounterSetting {
149266423Sjfv  intx* counter;
150266423Sjfv public:
151266423Sjfv  CounterSetting(intx* cnt) { counter = cnt; (*counter)++; }
152266423Sjfv  ~CounterSetting()         { (*counter)--; }
153266423Sjfv};
154266423Sjfv
155266423Sjfv
156266423Sjfvclass IntFlagSetting {
157266423Sjfv  intx val;
158266423Sjfv  intx* flag;
159266423Sjfv public:
160266423Sjfv  IntFlagSetting(intx& fl, intx newValue) { flag = &fl; val = fl; fl = newValue; }
161266423Sjfv  ~IntFlagSetting()                       { *flag = val; }
162266423Sjfv};
163266423Sjfv
164266423Sjfv
165266423Sjfvclass DoubleFlagSetting {
166266423Sjfv  double val;
167266423Sjfv  double* flag;
168266423Sjfv public:
169266423Sjfv  DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; }
170266423Sjfv  ~DoubleFlagSetting()                           { *flag = val; }
171266423Sjfv};
172266423Sjfv
173266423Sjfv
174266423Sjfvclass CommandLineFlags {
175266423Sjfv public:
176266423Sjfv  static bool boolAt(char* name, size_t len, bool* value);
177266423Sjfv  static bool boolAt(char* name, bool* value)      { return boolAt(name, strlen(name), value); }
178266423Sjfv  static bool boolAtPut(char* name, size_t len, bool* value, FlagValueOrigin origin);
179266423Sjfv  static bool boolAtPut(char* name, bool* value, FlagValueOrigin origin)   { return boolAtPut(name, strlen(name), value, origin); }
180266423Sjfv
181266423Sjfv  static bool intxAt(char* name, size_t len, intx* value);
182266423Sjfv  static bool intxAt(char* name, intx* value)      { return intxAt(name, strlen(name), value); }
183266423Sjfv  static bool intxAtPut(char* name, size_t len, intx* value, FlagValueOrigin origin);
184266423Sjfv  static bool intxAtPut(char* name, intx* value, FlagValueOrigin origin)   { return intxAtPut(name, strlen(name), value, origin); }
185266423Sjfv
186266423Sjfv  static bool uintxAt(char* name, size_t len, uintx* value);
187266423Sjfv  static bool uintxAt(char* name, uintx* value)    { return uintxAt(name, strlen(name), value); }
188266423Sjfv  static bool uintxAtPut(char* name, size_t len, uintx* value, FlagValueOrigin origin);
189266423Sjfv  static bool uintxAtPut(char* name, uintx* value, FlagValueOrigin origin) { return uintxAtPut(name, strlen(name), value, origin); }
190266423Sjfv
191266423Sjfv  static bool doubleAt(char* name, size_t len, double* value);
192266423Sjfv  static bool doubleAt(char* name, double* value)    { return doubleAt(name, strlen(name), value); }
193266423Sjfv  static bool doubleAtPut(char* name, size_t len, double* value, FlagValueOrigin origin);
194266423Sjfv  static bool doubleAtPut(char* name, double* value, FlagValueOrigin origin) { return doubleAtPut(name, strlen(name), value, origin); }
195266423Sjfv
196266423Sjfv  static bool ccstrAt(char* name, size_t len, ccstr* value);
197266423Sjfv  static bool ccstrAt(char* name, ccstr* value)    { return ccstrAt(name, strlen(name), value); }
198266423Sjfv  static bool ccstrAtPut(char* name, size_t len, ccstr* value, FlagValueOrigin origin);
199266423Sjfv  static bool ccstrAtPut(char* name, ccstr* value, FlagValueOrigin origin) { return ccstrAtPut(name, strlen(name), value, origin); }
200266423Sjfv
201266423Sjfv  // Returns false if name is not a command line flag.
202266423Sjfv  static bool wasSetOnCmdline(const char* name, bool* value);
203266423Sjfv  static void printSetFlags();
204266423Sjfv
205266423Sjfv  static void printFlags() PRODUCT_RETURN;
206266423Sjfv
207266423Sjfv  static void verify() PRODUCT_RETURN;
208266423Sjfv};
209266423Sjfv
210266423Sjfv// use this for flags that are true by default in the debug version but
211266423Sjfv// false in the optimized version, and vice versa
212266423Sjfv#ifdef ASSERT
213266423Sjfv#define trueInDebug  true
214266423Sjfv#define falseInDebug false
215266423Sjfv#else
216266423Sjfv#define trueInDebug  false
217266423Sjfv#define falseInDebug true
218266423Sjfv#endif
219266423Sjfv
220266423Sjfv// use this for flags that are true per default in the product build
221266423Sjfv// but false in development builds, and vice versa
222266423Sjfv#ifdef PRODUCT
223266423Sjfv#define trueInProduct  true
224266423Sjfv#define falseInProduct false
225266423Sjfv#else
226266423Sjfv#define trueInProduct  false
227266423Sjfv#define falseInProduct true
228266423Sjfv#endif
229266423Sjfv
230266423Sjfv// use this for flags that are true per default in the tiered build
231266423Sjfv// but false in non-tiered builds, and vice versa
232266423Sjfv#ifdef TIERED
233266423Sjfv#define  trueInTiered true
234266423Sjfv#define falseInTiered false
235266423Sjfv#else
236266423Sjfv#define  trueInTiered false
237266423Sjfv#define falseInTiered true
238266423Sjfv#endif
239266423Sjfv
240266423Sjfv
241266423Sjfv// develop flags are settable / visible only during development and are constant in the PRODUCT version
242266423Sjfv// product flags are always settable / visible
243266423Sjfv// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
244266423Sjfv
245266423Sjfv// A flag must be declared with one of the following types:
246266423Sjfv// bool, intx, uintx, ccstr.
247266423Sjfv// The type "ccstr" is an alias for "const char*" and is used
248266423Sjfv// only in this file, because the macrology requires single-token type names.
249266423Sjfv
250266423Sjfv// Note: Diagnostic options not meant for VM tuning or for product modes.
251266423Sjfv// They are to be used for VM quality assurance or field diagnosis
252266423Sjfv// of VM bugs.  They are hidden so that users will not be encouraged to
253266423Sjfv// try them as if they were VM ordinary execution options.  However, they
254266423Sjfv// are available in the product version of the VM.  Under instruction
255266423Sjfv// from support engineers, VM customers can turn them on to collect
256266423Sjfv// diagnostic information about VM problems.  To use a VM diagnostic
257266423Sjfv// option, you must first specify +UnlockDiagnosticVMOptions.
258266423Sjfv// (This master switch also affects the behavior of -Xprintflags.)
259266423Sjfv
260266423Sjfv// manageable flags are writeable external product flags.
261266423Sjfv//    They are dynamically writeable through the JDK management interface
262266423Sjfv//    (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
263266423Sjfv//    These flags are external exported interface (see CCC).  The list of
264266423Sjfv//    manageable flags can be queried programmatically through the management
265266423Sjfv//    interface.
266266423Sjfv//
267266423Sjfv//    A flag can be made as "manageable" only if
268266423Sjfv//    - the flag is defined in a CCC as an external exported interface.
269266423Sjfv//    - the VM implementation supports dynamic setting of the flag.
270266423Sjfv//      This implies that the VM must *always* query the flag variable
271266423Sjfv//      and not reuse state related to the flag state at any given time.
272266423Sjfv//    - you want the flag to be queried programmatically by the customers.
273266423Sjfv//
274266423Sjfv// product_rw flags are writeable internal product flags.
275266423Sjfv//    They are like "manageable" flags but for internal/private use.
276266423Sjfv//    The list of product_rw flags are internal/private flags which
277266423Sjfv//    may be changed/removed in a future release.  It can be set
278266423Sjfv//    through the management interface to get/set value
279266423Sjfv//    when the name of flag is supplied.
280266423Sjfv//
281266423Sjfv//    A flag can be made as "product_rw" only if
282266423Sjfv//    - the VM implementation supports dynamic setting of the flag.
283266423Sjfv//      This implies that the VM must *always* query the flag variable
284266423Sjfv//      and not reuse state related to the flag state at any given time.
285266423Sjfv//
286266423Sjfv// Note that when there is a need to support develop flags to be writeable,
287266423Sjfv// it can be done in the same way as product_rw.
288266423Sjfv
289266423Sjfv#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct, manageable, product_rw) \
290266423Sjfv                                                                            \
291266423Sjfv  /* UseMembar is theoretically a temp flag used for memory barrier         \
292266423Sjfv   * removal testing.  It was supposed to be removed before FCS but has     \
293266423Sjfv   * been re-added (see 6401008) */                                         \
294266423Sjfv  product(bool, UseMembar, false,                                           \
295266423Sjfv          "(Unstable) Issues membars on thread state transitions")          \
296266423Sjfv                                                                            \
297266423Sjfv  product(bool, PrintCommandLineFlags, false,                               \
298266423Sjfv          "Prints flags that appeared on the command line")                 \
299266423Sjfv                                                                            \
300266423Sjfv  diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug,                  \
301266423Sjfv          "Enable processing of flags relating to field diagnostics")       \
302266423Sjfv                                                                            \
303266423Sjfv  product(bool, JavaMonitorsInStackTrace, true,                             \
304266423Sjfv          "Print info. about Java monitor locks when the stacks are dumped")\
305266423Sjfv                                                                            \
306266423Sjfv  product_pd(bool, UseLargePages,                                           \
307266423Sjfv          "Use large page memory")                                          \
308266423Sjfv                                                                            \
309266423Sjfv  develop(bool, TracePageSizes, false,                                      \
310266423Sjfv          "Trace page size selection and usage.")                           \
311266423Sjfv                                                                            \
312266423Sjfv  product(bool, UseNUMA, false,                                             \
313266423Sjfv          "Use NUMA if available")                                          \
314266423Sjfv                                                                            \
315266423Sjfv  product(intx, NUMAChunkResizeWeight, 20,                                  \
316266423Sjfv          "Percentage (0-100) used to weight the current sample when "      \
317266423Sjfv          "computing exponentially decaying average for "                   \
318266423Sjfv          "AdaptiveNUMAChunkSizing")                                        \
319266423Sjfv                                                                            \
320266423Sjfv  product(intx, NUMASpaceResizeRate, 1*G,                                   \
321266423Sjfv          "Do not reallocate more that this amount per collection")         \
322266423Sjfv                                                                            \
323266423Sjfv  product(bool, UseAdaptiveNUMAChunkSizing, true,                           \
324266423Sjfv          "Enable adaptive chunk sizing for NUMA")                          \
325266423Sjfv                                                                            \
326266423Sjfv  product(bool, NUMAStats, false,                                           \
327266423Sjfv          "Print NUMA stats in detailed heap information")                  \
328266423Sjfv                                                                            \
329266423Sjfv  product(intx, NUMAPageScanRate, 256,                                      \
330266423Sjfv          "Maximum number of pages to include in the page scan procedure")  \
331266423Sjfv                                                                            \
332266423Sjfv  product_pd(bool, NeedsDeoptSuspend,                                       \
333266423Sjfv          "True for register window machines (sparc/ia64)")                 \
334266423Sjfv                                                                            \
335266423Sjfv  product(intx, UseSSE, 99,                                                 \
336266423Sjfv          "Highest supported SSE instructions set on x86/x64")              \
337266423Sjfv                                                                            \
338266423Sjfv  product(uintx, LargePageSizeInBytes, 0,                                   \
339266423Sjfv          "Large page size (0 to let VM choose the page size")              \
340266423Sjfv                                                                            \
341266423Sjfv  product(uintx, LargePageHeapSizeThreshold, 128*M,                         \
342266423Sjfv          "Use large pages if max heap is at least this big")               \
343266423Sjfv                                                                            \
344266423Sjfv  product(bool, ForceTimeHighResolution, false,                             \
345266423Sjfv          "Using high time resolution(For Win32 only)")                     \
346266423Sjfv                                                                            \
347266423Sjfv  develop(bool, TraceItables, false,                                        \
348266423Sjfv          "Trace initialization and use of itables")                        \
349266423Sjfv                                                                            \
350266423Sjfv  develop(bool, TracePcPatching, false,                                     \
351266423Sjfv          "Trace usage of frame::patch_pc")                                 \
352266423Sjfv                                                                            \
353266423Sjfv  develop(bool, TraceJumps, false,                                          \
354266423Sjfv          "Trace assembly jumps in thread ring buffer")                     \
355266423Sjfv                                                                            \
356266423Sjfv  develop(bool, TraceRelocator, false,                                      \
357266423Sjfv          "Trace the bytecode relocator")                                   \
358266423Sjfv                                                                            \
359266423Sjfv  develop(bool, TraceLongCompiles, false,                                   \
360266423Sjfv          "Print out every time compilation is longer than "                \
361266423Sjfv          "a given threashold")                                             \
362266423Sjfv                                                                            \
363266423Sjfv  develop(bool, SafepointALot, false,                                       \
364266423Sjfv          "Generates a lot of safepoints. Works with "                      \
365266423Sjfv          "GuaranteedSafepointInterval")                                    \
366266423Sjfv                                                                            \
367266423Sjfv  product_pd(bool, BackgroundCompilation,                                   \
368266423Sjfv          "A thread requesting compilation is not blocked during "          \
369266423Sjfv          "compilation")                                                    \
370266423Sjfv                                                                            \
371266423Sjfv  product(bool, PrintVMQWaitTime, false,                                    \
372266423Sjfv          "Prints out the waiting time in VM operation queue")              \
373266423Sjfv                                                                            \
374266423Sjfv  develop(bool, BailoutToInterpreterForThrows, false,                       \
375266423Sjfv          "Compiled methods which throws/catches exceptions will be "       \
376266423Sjfv          "deopt and intp.")                                                \
377266423Sjfv                                                                            \
378266423Sjfv  develop(bool, NoYieldsInMicrolock, false,                                 \
379266423Sjfv          "Disable yields in microlock")                                    \
380266423Sjfv                                                                            \
381266423Sjfv  develop(bool, TraceOopMapGeneration, false,                               \
382266423Sjfv          "Shows oopmap generation")                                        \
383266423Sjfv                                                                            \
384266423Sjfv  product(bool, MethodFlushing, true,                                       \
385266423Sjfv          "Reclamation of zombie and not-entrant methods")                  \
386266423Sjfv                                                                            \
387266423Sjfv  develop(bool, VerifyStack, false,                                         \
388266423Sjfv          "Verify stack of each thread when it is entering a runtime call") \
389266423Sjfv                                                                            \
390266423Sjfv  develop(bool, ForceUnreachable, false,                                    \
391266423Sjfv          "(amd64) Make all non code cache addresses to be unreachable with rip-rel forcing use of 64bit literal fixups") \
392266423Sjfv                                                                            \
393266423Sjfv  notproduct(bool, StressDerivedPointers, false,                            \
394266423Sjfv          "Force scavenge when a derived pointers is detected on stack "    \
395266423Sjfv          "after rtm call")                                                 \
396266423Sjfv                                                                            \
397266423Sjfv  develop(bool, TraceDerivedPointers, false,                                \
398266423Sjfv          "Trace traversal of derived pointers on stack")                   \
399266423Sjfv                                                                            \
400266423Sjfv  notproduct(bool, TraceCodeBlobStacks, false,                              \
401266423Sjfv          "Trace stack-walk of codeblobs")                                  \
402266423Sjfv                                                                            \
403266423Sjfv  product(bool, PrintJNIResolving, false,                                   \
404266423Sjfv          "Used to implement -v:jni")                                       \
405266423Sjfv                                                                            \
406266423Sjfv  notproduct(bool, PrintRewrites, false,                                    \
407266423Sjfv          "Print methods that are being rewritten")                         \
408266423Sjfv                                                                            \
409266423Sjfv  product(bool, UseInlineCaches, true,                                      \
410266423Sjfv          "Use Inline Caches for virtual calls ")                           \
411266423Sjfv                                                                            \
412266423Sjfv  develop(bool, InlineArrayCopy, true,                                      \
413266423Sjfv          "inline arraycopy native that is known to be part of "            \
414266423Sjfv          "base library DLL")                                               \
415266423Sjfv                                                                            \
416266423Sjfv  develop(bool, InlineObjectHash, true,                                     \
417266423Sjfv          "inline Object::hashCode() native that is known to be part "      \
418266423Sjfv          "of base library DLL")                                            \
419266423Sjfv                                                                            \
420266423Sjfv  develop(bool, InlineObjectCopy, true,                                     \
421266423Sjfv          "inline Object.clone and Arrays.copyOf[Range] intrinsics")        \
422266423Sjfv                                                                            \
423266423Sjfv  develop(bool, InlineNatives, true,                                        \
424266423Sjfv          "inline natives that are known to be part of base library DLL")   \
425266423Sjfv                                                                            \
426266423Sjfv  develop(bool, InlineMathNatives, true,                                    \
427266423Sjfv          "inline SinD, CosD, etc.")                                        \
428266423Sjfv                                                                            \
429266423Sjfv  develop(bool, InlineClassNatives, true,                                   \
430266423Sjfv          "inline Class.isInstance, etc")                                   \
431266423Sjfv                                                                            \
432266423Sjfv  develop(bool, InlineAtomicLong, true,                                     \
433266423Sjfv          "inline sun.misc.AtomicLong")                                     \
434266423Sjfv                                                                            \
435266423Sjfv  develop(bool, InlineThreadNatives, true,                                  \
436266423Sjfv          "inline Thread.currentThread, etc")                               \
437266423Sjfv                                                                            \
438266423Sjfv  develop(bool, InlineReflectionGetCallerClass, true,                       \
439266423Sjfv          "inline sun.reflect.Reflection.getCallerClass(), known to be part "\
440266423Sjfv          "of base library DLL")                                            \
441266423Sjfv                                                                            \
442266423Sjfv  develop(bool, InlineUnsafeOps, true,                                      \
443266423Sjfv          "inline memory ops (native methods) from sun.misc.Unsafe")        \
444266423Sjfv                                                                            \
445266423Sjfv  develop(bool, ConvertCmpD2CmpF, true,                                     \
446266423Sjfv          "Convert cmpD to cmpF when one input is constant in float range") \
447266423Sjfv                                                                            \
448266423Sjfv  develop(bool, ConvertFloat2IntClipping, true,                             \
449266423Sjfv          "Convert float2int clipping idiom to integer clipping")           \
450266423Sjfv                                                                            \
451266423Sjfv  develop(bool, SpecialStringCompareTo, true,                               \
452266423Sjfv          "special version of string compareTo")                            \
453266423Sjfv                                                                            \
454266423Sjfv  develop(bool, SpecialStringIndexOf, true,                                 \
455266423Sjfv          "special version of string indexOf")                              \
456266423Sjfv                                                                            \
457266423Sjfv  develop(bool, TraceCallFixup, false,                                      \
458266423Sjfv          "traces all call fixups")                                         \
459266423Sjfv                                                                            \
460266423Sjfv  develop(bool, DeoptimizeALot, false,                                      \
461266423Sjfv          "deoptimize at every exit from the runtime system")               \
462266423Sjfv                                                                            \
463266423Sjfv  develop(ccstrlist, DeoptimizeOnlyAt, "",                                  \
464266423Sjfv          "a comma separated list of bcis to deoptimize at")                \
465266423Sjfv                                                                            \
466266423Sjfv  product(bool, DeoptimizeRandom, false,                                    \
467266423Sjfv          "deoptimize random frames on random exit from the runtime system")\
468266423Sjfv                                                                            \
469266423Sjfv  notproduct(bool, ZombieALot, false,                                       \
470266423Sjfv          "creates zombies (non-entrant) at exit from the runt. system")    \
471266423Sjfv                                                                            \
472266423Sjfv  notproduct(bool, WalkStackALot, false,                                    \
473266423Sjfv          "trace stack (no print) at every exit from the runtime system")   \
474266423Sjfv                                                                            \
475266423Sjfv  develop(bool, Debugging, false,                                           \
476266423Sjfv          "set when executing debug methods in debug.ccp "                  \
477266423Sjfv          "(to prevent triggering assertions)")                             \
478266423Sjfv                                                                            \
479266423Sjfv  notproduct(bool, StrictSafepointChecks, trueInDebug,                      \
480266423Sjfv          "Enable strict checks that safepoints cannot happen for threads " \
481266423Sjfv          "that used No_Safepoint_Verifier")                                \
482266423Sjfv                                                                            \
483266423Sjfv  notproduct(bool, VerifyLastFrame, false,                                  \
484266423Sjfv          "Verify oops on last frame on entry to VM")                       \
485266423Sjfv                                                                            \
486266423Sjfv  develop(bool, TraceHandleAllocation, false,                               \
487266423Sjfv          "Prints out warnings when suspicious many handles are allocated") \
488266423Sjfv                                                                            \
489266423Sjfv  product(bool, UseCompilerSafepoints, true,                                \
490266423Sjfv          "Stop at safepoints in compiled code")                            \
491266423Sjfv                                                                            \
492266423Sjfv  product(bool, UseSplitVerifier, true,                                     \
493266423Sjfv          "use split verifier with StackMapTable attributes")               \
494266423Sjfv                                                                            \
495266423Sjfv  product(bool, FailOverToOldVerifier, true,                                \
496266423Sjfv          "fail over to old verifier when split verifier fails")            \
497266423Sjfv                                                                            \
498266423Sjfv  develop(bool, ShowSafepointMsgs, false,                                   \
499266423Sjfv          "Show msg. about safepoint synch.")                               \
500266423Sjfv                                                                            \
501266423Sjfv  product(bool, SafepointTimeout, false,                                    \
502266423Sjfv          "Time out and warn or fail after SafepointTimeoutDelay "          \
503266423Sjfv          "milliseconds if failed to reach safepoint")                      \
504266423Sjfv                                                                            \
505266423Sjfv  develop(bool, DieOnSafepointTimeout, false,                               \
506266423Sjfv          "Die upon failure to reach safepoint (see SafepointTimeout)")     \
507266423Sjfv                                                                            \
508266423Sjfv  /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */      \
509266423Sjfv  /* typically, at most a few retries are needed */                         \
510266423Sjfv  product(intx, SuspendRetryCount, 50,                                      \
511266423Sjfv          "Maximum retry count for an external suspend request")            \
512266423Sjfv                                                                            \
513266423Sjfv  product(intx, SuspendRetryDelay, 5,                                       \
514266423Sjfv          "Milliseconds to delay per retry (* current_retry_count)")        \
515266423Sjfv                                                                            \
516266423Sjfv  product(bool, AssertOnSuspendWaitFailure, false,                          \
517266423Sjfv          "Assert/Guarantee on external suspend wait failure")              \
518266423Sjfv                                                                            \
519266423Sjfv  product(bool, TraceSuspendWaitFailures, false,                            \
520266423Sjfv          "Trace external suspend wait failures")                           \
521266423Sjfv                                                                            \
522266423Sjfv  product(bool, MaxFDLimit, true,                                           \
523266423Sjfv          "Bump the number of file descriptors to max in solaris.")         \
524266423Sjfv                                                                            \
525266423Sjfv  notproduct(bool, LogEvents, trueInDebug,                                  \
526266423Sjfv          "Enable Event log")                                               \
527266423Sjfv                                                                            \
528266423Sjfv  product(bool, BytecodeVerificationRemote, true,                           \
529266423Sjfv          "Enables the Java bytecode verifier for remote classes")          \
530266423Sjfv                                                                            \
531266423Sjfv  product(bool, BytecodeVerificationLocal, false,                           \
532266423Sjfv          "Enables the Java bytecode verifier for local classes")           \
533266423Sjfv                                                                            \
534266423Sjfv  develop(bool, ForceFloatExceptions, trueInDebug,                          \
535266423Sjfv          "Force exceptions on FP stack under/overflow")                    \
536266423Sjfv                                                                            \
537266423Sjfv  develop(bool, SoftMatchFailure, trueInProduct,                            \
538266423Sjfv          "If the DFA fails to match a node, print a message and bail out") \
539266423Sjfv                                                                            \
540266423Sjfv  develop(bool, VerifyStackAtCalls, false,                                  \
541266423Sjfv          "Verify that the stack pointer is unchanged after calls")         \
542266423Sjfv                                                                            \
543266423Sjfv  develop(bool, TraceJavaAssertions, false,                                 \
544266423Sjfv          "Trace java language assertions")                                 \
545266423Sjfv                                                                            \
546266423Sjfv  notproduct(bool, CheckAssertionStatusDirectives, false,                   \
547266423Sjfv          "temporary - see javaClasses.cpp")                                \
548266423Sjfv                                                                            \
549266423Sjfv  notproduct(bool, PrintMallocFree, false,                                  \
550266423Sjfv          "Trace calls to C heap malloc/free allocation")                   \
551266423Sjfv                                                                            \
552266423Sjfv  notproduct(bool, PrintOopAddress, false,                                  \
553266423Sjfv          "Always print the location of the oop")                           \
554266423Sjfv                                                                            \
555266423Sjfv  notproduct(bool, VerifyCodeCacheOften, false,                             \
556266423Sjfv          "Verify compiled-code cache often")                               \
557266423Sjfv                                                                            \
558266423Sjfv  develop(bool, ZapDeadCompiledLocals, false,                               \
559266423Sjfv          "Zap dead locals in compiler frames")                             \
560266423Sjfv                                                                            \
561266423Sjfv  notproduct(bool, ZapDeadLocalsOld, false,                                 \
562266423Sjfv          "Zap dead locals (old version, zaps all frames when "             \
563266423Sjfv          "entering the VM")                                                \
564266423Sjfv                                                                            \
565266423Sjfv  notproduct(bool, CheckOopishValues, false,                                \
566266423Sjfv          "Warn if value contains oop ( requires ZapDeadLocals)")           \
567266423Sjfv                                                                            \
568266423Sjfv  develop(bool, UseMallocOnly, false,                                       \
569266423Sjfv          "use only malloc/free for allocation (no resource area/arena)")   \
570266423Sjfv                                                                            \
571266423Sjfv  develop(bool, PrintMalloc, false,                                         \
572266423Sjfv          "print all malloc/free calls")                                    \
573266423Sjfv                                                                            \
574266423Sjfv  develop(bool, ZapResourceArea, trueInDebug,                               \
575266423Sjfv          "Zap freed resource/arena space with 0xABABABAB")                 \
576266423Sjfv                                                                            \
577266423Sjfv  notproduct(bool, ZapVMHandleArea, trueInDebug,                            \
578266423Sjfv          "Zap freed VM handle space with 0xBCBCBCBC")                      \
579266423Sjfv                                                                            \
580266423Sjfv  develop(bool, ZapJNIHandleArea, trueInDebug,                              \
581266423Sjfv          "Zap freed JNI handle space with 0xFEFEFEFE")                     \
582266423Sjfv                                                                            \
583266423Sjfv  develop(bool, ZapUnusedHeapArea, false,                                   \
584266423Sjfv          "Zap unused heap space with 0xBAADBABE")                          \
585266423Sjfv                                                                            \
586266423Sjfv  develop(bool, PrintVMMessages, true,                                      \
587266423Sjfv          "Print vm messages on console")                                   \
588266423Sjfv                                                                            \
589266423Sjfv  product(bool, PrintGCApplicationConcurrentTime, false,                    \
590266423Sjfv          "Print the time the application has been running")                \
591266423Sjfv                                                                            \
592266423Sjfv  product(bool, PrintGCApplicationStoppedTime, false,                       \
593266423Sjfv          "Print the time the application has been stopped")                \
594266423Sjfv                                                                            \
595266423Sjfv  develop(bool, Verbose, false,                                             \
596266423Sjfv          "Prints additional debugging information from other modes")       \
597266423Sjfv                                                                            \
598266423Sjfv  develop(bool, PrintMiscellaneous, false,                                  \
599266423Sjfv          "Prints uncategorized debugging information (requires +Verbose)") \
600266423Sjfv                                                                            \
601266423Sjfv  develop(bool, WizardMode, false,                                          \
602266423Sjfv          "Prints much more debugging information")                         \
603266423Sjfv                                                                            \
604266423Sjfv  product(bool, ShowMessageBoxOnError, false,                               \
605266423Sjfv          "Keep process alive on VM fatal error")                           \
606266423Sjfv                                                                            \
607266423Sjfv  product_pd(bool, UseOSErrorReporting,                                     \
608266423Sjfv          "Let VM fatal error propagate to the OS (ie. WER on Windows)")    \
609266423Sjfv                                                                            \
610266423Sjfv  product(bool, SuppressFatalErrorMessage, false,                           \
611266423Sjfv          "Do NO Fatal Error report [Avoid deadlock]")                      \
612266423Sjfv                                                                            \
613266423Sjfv  product(ccstrlist, OnError, "",                                           \
614266423Sjfv          "Run user-defined commands on fatal error; see VMError.cpp "      \
615266423Sjfv          "for examples")                                                   \
616266423Sjfv                                                                            \
617266423Sjfv  product(ccstrlist, OnOutOfMemoryError, "",                                \
618266423Sjfv          "Run user-defined commands on first java.lang.OutOfMemoryError")  \
619266423Sjfv                                                                            \
620266423Sjfv  manageable(bool, HeapDumpOnOutOfMemoryError, false,                       \
621266423Sjfv          "Dump heap to file when java.lang.OutOfMemoryError is thrown")    \
622266423Sjfv                                                                            \
623266423Sjfv  manageable(ccstr, HeapDumpPath, NULL,                                     \
624266423Sjfv          "When HeapDumpOnOutOfMemoryError is on, the path (filename or"    \
625266423Sjfv          "directory) of the dump file (defaults to java_pid<pid>.hprof"    \
626266423Sjfv          "in the working directory)")                                      \
627266423Sjfv                                                                            \
628266423Sjfv  develop(uintx, SegmentedHeapDumpThreshold, 2*G,                           \
629266423Sjfv          "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) "     \
630266423Sjfv          "when the heap usage is larger than this")                        \
631266423Sjfv                                                                            \
632266423Sjfv  develop(uintx, HeapDumpSegmentSize, 1*G,                                  \
633266423Sjfv          "Approximate segment size when generating a segmented heap dump") \
634266423Sjfv                                                                            \
635266423Sjfv  develop(bool, BreakAtWarning, false,                                      \
636266423Sjfv          "Execute breakpoint upon encountering VM warning")                \
637266423Sjfv                                                                            \
638266423Sjfv  product_pd(bool, UseVectoredExceptions,                                   \
639266423Sjfv          "Temp Flag - Use Vectored Exceptions rather than SEH (Windows Only)") \
640266423Sjfv                                                                            \
641266423Sjfv  develop(bool, TraceVMOperation, false,                                    \
642266423Sjfv          "Trace vm operations")                                            \
643266423Sjfv                                                                            \
644266423Sjfv  develop(bool, UseFakeTimers, false,                                       \
645266423Sjfv          "Tells whether the VM should use system time or a fake timer")    \
646266423Sjfv                                                                            \
647266423Sjfv  diagnostic(bool, LogCompilation, false,                                   \
648266423Sjfv          "Log compilation activity in detail to hotspot.log or LogFile")   \
649266423Sjfv                                                                            \
650266423Sjfv  product(bool, PrintCompilation, false,                                    \
651266423Sjfv          "Print compilations")                                             \
652266423Sjfv                                                                            \
653266423Sjfv  diagnostic(bool, TraceNMethodInstalls, false,                             \
654266423Sjfv             "Trace nmethod intallation")                                   \
655266423Sjfv                                                                            \
656266423Sjfv  diagnostic(bool, TraceOSRBreakpoint, false,                               \
657266423Sjfv             "Trace OSR Breakpoint ")                                       \
658266423Sjfv                                                                            \
659266423Sjfv  diagnostic(bool, TraceCompileTriggered, false,                            \
660266423Sjfv             "Trace compile triggered")                                     \
661266423Sjfv                                                                            \
662266423Sjfv  diagnostic(bool, TraceTriggers, false,                                    \
663266423Sjfv             "Trace triggers")                                              \
664266423Sjfv                                                                            \
665266423Sjfv  product(bool, AlwaysRestoreFPU, false,                                    \
666266423Sjfv          "Restore the FPU control word after every JNI call (expensive)")  \
667266423Sjfv                                                                            \
668266423Sjfv  notproduct(bool, PrintCompilation2, false,                                \
669266423Sjfv          "Print additional statistics per compilation")                    \
670266423Sjfv                                                                            \
671266423Sjfv  notproduct(bool, PrintAdapterHandlers, false,                             \
672266423Sjfv          "Print code generated for i2c/c2i adapters")                      \
673266423Sjfv                                                                            \
674266423Sjfv  develop(bool, PrintAssembly, false,                                       \
675266423Sjfv          "Print assembly code")                                            \
676266423Sjfv                                                                            \
677266423Sjfv  develop(bool, PrintNMethods, false,                                       \
678266423Sjfv          "Print assembly code for nmethods when generated")                \
679266423Sjfv                                                                            \
680266423Sjfv  develop(bool, PrintNativeNMethods, false,                                 \
681266423Sjfv          "Print assembly code for native nmethods when generated")         \
682266423Sjfv                                                                            \
683266423Sjfv  develop(bool, PrintDebugInfo, false,                                      \
684266423Sjfv          "Print debug information for all nmethods when generated")        \
685266423Sjfv                                                                            \
686266423Sjfv  develop(bool, PrintRelocations, false,                                    \
687266423Sjfv          "Print relocation information for all nmethods when generated")   \
688266423Sjfv                                                                            \
689266423Sjfv  develop(bool, PrintDependencies, false,                                   \
690266423Sjfv          "Print dependency information for all nmethods when generated")   \
691266423Sjfv                                                                            \
692266423Sjfv  develop(bool, PrintExceptionHandlers, false,                              \
693266423Sjfv          "Print exception handler tables for all nmethods when generated") \
694266423Sjfv                                                                            \
695266423Sjfv  develop(bool, InterceptOSException, false,                                \
696266423Sjfv          "Starts debugger when an implicit OS (e.g., NULL) "               \
697266423Sjfv          "exception happens")                                              \
698266423Sjfv                                                                            \
699266423Sjfv  notproduct(bool, PrintCodeCache, false,                                   \
700266423Sjfv          "Print the compiled_code cache when exiting")                     \
701266423Sjfv                                                                            \
702266423Sjfv  develop(bool, PrintCodeCache2, false,                                     \
703266423Sjfv          "Print detailed info on the compiled_code cache when exiting")    \
704266423Sjfv                                                                            \
705266423Sjfv  develop(bool, PrintStubCode, false,                                       \
706266423Sjfv          "Print generated stub code")                                      \
707266423Sjfv                                                                            \
708266423Sjfv  product(bool, StackTraceInThrowable, true,                                \
709266423Sjfv          "Collect backtrace in throwable when exception happens")          \
710266423Sjfv                                                                            \
711266423Sjfv  product(bool, OmitStackTraceInFastThrow, true,                            \
712266423Sjfv          "Omit backtraces for some 'hot' exceptions in optimized code")    \
713266423Sjfv                                                                            \
714266423Sjfv  product(bool, ProfilerPrintByteCodeStatistics, false,                     \
715266423Sjfv          "Prints byte code statictics when dumping profiler output")       \
716266423Sjfv                                                                            \
717266423Sjfv  product(bool, ProfilerRecordPC, false,                                    \
718266423Sjfv          "Collects tick for each 16 byte interval of compiled code")       \
719266423Sjfv                                                                            \
720266423Sjfv  product(bool, ProfileVM,  false,                                          \
721266423Sjfv          "Profiles ticks that fall within VM (either in the VM Thread "    \
722266423Sjfv          "or VM code called through stubs)")                               \
723266423Sjfv                                                                            \
724266423Sjfv  product(bool, ProfileIntervals, false,                                    \
725266423Sjfv          "Prints profiles for each interval (see ProfileIntervalsTicks)")  \
726266423Sjfv                                                                            \
727266423Sjfv  notproduct(bool, ProfilerCheckIntervals, false,                           \
728266423Sjfv          "Collect and print info on spacing of profiler ticks")            \
729266423Sjfv                                                                            \
730266423Sjfv  develop(bool, PrintJVMWarnings, false,                                    \
731266423Sjfv          "Prints warnings for unimplemented JVM functions")                \
732266423Sjfv                                                                            \
733266423Sjfv  notproduct(uintx, WarnOnStalledSpinLock, 0,                               \
734266423Sjfv          "Prints warnings for stalled SpinLocks")                          \
735266423Sjfv                                                                            \
736266423Sjfv  develop(bool, InitializeJavaLangSystem, true,                             \
737266423Sjfv          "Initialize java.lang.System - turn off for individual "          \
738266423Sjfv          "method debugging")                                               \
739266423Sjfv                                                                            \
740266423Sjfv  develop(bool, InitializeJavaLangString, true,                             \
741266423Sjfv          "Initialize java.lang.String - turn off for individual "          \
742266423Sjfv          "method debugging")                                               \
743266423Sjfv                                                                            \
744266423Sjfv  develop(bool, InitializeJavaLangExceptionsErrors, true,                   \
745266423Sjfv          "Initialize various error and exception classes - turn off for "  \
746266423Sjfv          "individual method debugging")                                    \
747266423Sjfv                                                                            \
748266423Sjfv  product(bool, RegisterFinalizersAtInit, true,                             \
749266423Sjfv          "Register finalizable objects at end of Object.<init> or "        \
750266423Sjfv          "after allocation.")                                              \
751266423Sjfv                                                                            \
752266423Sjfv  develop(bool, RegisterReferences, true,                                   \
753266423Sjfv          "Tells whether the VM should register soft/weak/final/phantom "   \
754266423Sjfv          "references")                                                     \
755266423Sjfv                                                                            \
756266423Sjfv  develop(bool, IgnoreRewrites, false,                                      \
757266423Sjfv          "Supress rewrites of bytecodes in the oopmap generator. "         \
758266423Sjfv          "This is unsafe!")                                                \
759266423Sjfv                                                                            \
760266423Sjfv  develop(bool, PrintCodeCacheExtension, false,                             \
761266423Sjfv          "Print extension of code cache")                                  \
762266423Sjfv                                                                            \
763266423Sjfv  develop(bool, UsePrivilegedStack, true,                                   \
764266423Sjfv          "Enable the security JVM functions")                              \
765266423Sjfv                                                                            \
766266423Sjfv  develop(bool, IEEEPrecision, true,                                        \
767266423Sjfv          "Enables IEEE precision (for INTEL only)")                        \
768266423Sjfv                                                                            \
769266423Sjfv  develop(bool, ProtectionDomainVerification, true,                         \
770266423Sjfv          "Verifies protection domain before resolution in system "         \
771266423Sjfv          "dictionary")                                                     \
772266423Sjfv                                                                            \
773266423Sjfv  product(bool, ClassUnloading, true,                                       \
774266423Sjfv          "Do unloading of classes")                                        \
775266423Sjfv                                                                            \
776266423Sjfv  develop(bool, DisableStartThread, false,                                  \
777266423Sjfv          "Disable starting of additional Java threads "                    \
778266423Sjfv          "(for debugging only)")                                           \
779266423Sjfv                                                                            \
780266423Sjfv  develop(bool, MemProfiling, false,                                        \
781266423Sjfv          "Write memory usage profiling to log file")                       \
782266423Sjfv                                                                            \
783266423Sjfv  notproduct(bool, PrintSystemDictionaryAtExit, false,                      \
784266423Sjfv          "Prints the system dictionary at exit")                           \
785266423Sjfv                                                                            \
786266423Sjfv  diagnostic(bool, UnsyncloadClass, false,                                  \
787266423Sjfv          "Unstable: VM calls loadClass unsynchronized. Custom classloader "\
788266423Sjfv          "must call VM synchronized for findClass & defineClass")          \
789266423Sjfv                                                                            \
790266423Sjfv  product_pd(bool, DontYieldALot,                                           \
791266423Sjfv          "Throw away obvious excess yield calls (for SOLARIS only)")       \
792266423Sjfv                                                                            \
793266423Sjfv  product_pd(bool, ConvertSleepToYield,                                     \
794266423Sjfv          "Converts sleep(0) to thread yield "                              \
795266423Sjfv          "(may be off for SOLARIS to improve GUI)")                        \
796266423Sjfv                                                                            \
797266423Sjfv  product(bool, ConvertYieldToSleep, false,                                 \
798266423Sjfv          "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\
799266423Sjfv          "behavior (SOLARIS only)")                                        \
800266423Sjfv                                                                            \
801266423Sjfv  product(bool, UseBoundThreads, true,                                      \
802266423Sjfv          "Bind user level threads to kernel threads (for SOLARIS only)")   \
803266423Sjfv                                                                            \
804266423Sjfv  develop(bool, UseDetachedThreads, true,                                   \
805266423Sjfv          "Use detached threads that are recycled upon termination "        \
806266423Sjfv          "(for SOLARIS only)")                                             \
807266423Sjfv                                                                            \
808266423Sjfv  product(bool, UseLWPSynchronization, true,                                \
809266423Sjfv          "Use LWP-based instead of libthread-based synchronization "       \
810266423Sjfv          "(SPARC only)")                                                   \
811266423Sjfv                                                                            \
812266423Sjfv  product(ccstr, SyncKnobs, "",                                             \
813266423Sjfv          "(Unstable) Various monitor synchronization tunables")            \
814266423Sjfv                                                                            \
815266423Sjfv  product(intx, EmitSync, 0,                                                \
816266423Sjfv          "(Unsafe,Unstable) "                                              \
817266423Sjfv          " Controls emission of inline sync fast-path code")               \
818266423Sjfv                                                                            \
819266423Sjfv  product(intx, AlwaysInflate, 0, "(Unstable) Force inflation")             \
820266423Sjfv                                                                            \
821266423Sjfv  product(intx, Atomics, 0,                                                 \
822266423Sjfv          "(Unsafe,Unstable) Diagnostic - Controls emission of atomics")    \
823266423Sjfv                                                                            \
824266423Sjfv  product(intx, FenceInstruction, 0,                                        \
825266423Sjfv          "(Unsafe,Unstable) Experimental")                                 \
826266423Sjfv                                                                            \
827266423Sjfv  product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \
828266423Sjfv                                                                            \
829266423Sjfv  product(intx, SyncVerbose, 0, "(Unstable)" )                              \
830266423Sjfv                                                                            \
831266423Sjfv  product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" )                    \
832266423Sjfv                                                                            \
833266423Sjfv  product(intx, hashCode, 0,                                                \
834266423Sjfv         "(Unstable) select hashCode generation algorithm" )                \
835266423Sjfv                                                                            \
836266423Sjfv  product(intx, WorkAroundNPTLTimedWaitHang, 1,                             \
837266423Sjfv         "(Unstable, Linux-specific)"                                       \
838266423Sjfv         " avoid NPTL-FUTEX hang pthread_cond_timedwait" )                  \
839266423Sjfv                                                                            \
840266423Sjfv  product(bool, FilterSpuriousWakeups , true,                               \
841266423Sjfv          "Prevent spurious or premature wakeups from object.wait"              \
842266423Sjfv          "(Solaris only)")                                                     \
843266423Sjfv                                                                            \
844266423Sjfv  product(intx, NativeMonitorTimeout, -1, "(Unstable)" )                    \
845266423Sjfv  product(intx, NativeMonitorFlags, 0, "(Unstable)" )                       \
846266423Sjfv  product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" )                  \
847266423Sjfv                                                                            \
848266423Sjfv  develop(bool, UsePthreads, false,                                         \
849266423Sjfv          "Use pthread-based instead of libthread-based synchronization "   \
850266423Sjfv          "(SPARC only)")                                                   \
851266423Sjfv                                                                            \
852266423Sjfv  product(bool, AdjustConcurrency, false,                                   \
853266423Sjfv          "call thr_setconcurrency at thread create time to avoid "         \
854266423Sjfv          "LWP starvation on MP systems (For Solaris Only)")                \
855266423Sjfv                                                                            \
856266423Sjfv  develop(bool, UpdateHotSpotCompilerFileOnError, true,                     \
857266423Sjfv          "Should the system attempt to update the compiler file when "     \
858266423Sjfv          "an error occurs?")                                               \
859266423Sjfv                                                                            \
860266423Sjfv  product(bool, ReduceSignalUsage, false,                                   \
861266423Sjfv          "Reduce the use of OS signals in Java and/or the VM")             \
862266423Sjfv                                                                            \
863266423Sjfv  notproduct(bool, ValidateMarkSweep, false,                                \
864266423Sjfv          "Do extra validation during MarkSweep collection")                \
865266423Sjfv                                                                            \
866266423Sjfv  notproduct(bool, RecordMarkSweepCompaction, false,                        \
867266423Sjfv          "Enable GC-to-GC recording and querying of compaction during "    \
868266423Sjfv          "MarkSweep")                                                      \
869266423Sjfv                                                                            \
870266423Sjfv  develop_pd(bool, ShareVtableStubs,                                        \
871266423Sjfv          "Share vtable stubs (smaller code but worse branch prediction")   \
872266423Sjfv                                                                            \
873266423Sjfv  develop(bool, LoadLineNumberTables, true,                                 \
874266423Sjfv          "Tells whether the class file parser loads line number tables")   \
875266423Sjfv                                                                            \
876266423Sjfv  develop(bool, LoadLocalVariableTables, true,                              \
877266423Sjfv          "Tells whether the class file parser loads local variable tables")\
878266423Sjfv                                                                            \
879266423Sjfv  develop(bool, LoadLocalVariableTypeTables, true,                          \
880266423Sjfv          "Tells whether the class file parser loads local variable type tables")\
881266423Sjfv                                                                            \
882266423Sjfv  product(bool, AllowUserSignalHandlers, false,                             \
883266423Sjfv          "Do not complain if the application installs signal handlers "    \
884266423Sjfv          "(Solaris & Linux only)")                                         \
885266423Sjfv                                                                            \
886266423Sjfv  product(bool, UseSignalChaining, true,                                    \
887266423Sjfv          "Use signal-chaining to invoke signal handlers installed "        \
888266423Sjfv          "by the application (Solaris & Linux only)")                      \
889266423Sjfv                                                                            \
890266423Sjfv  product(bool, UseAltSigs, false,                                          \
891266423Sjfv          "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM "      \
892266423Sjfv          "internal signals. (Solaris only)")                               \
893266423Sjfv                                                                            \
894266423Sjfv  product(bool, UseSpinning, false,                                         \
895266423Sjfv          "Use spinning in monitor inflation and before entry")             \
896266423Sjfv                                                                            \
897266423Sjfv  product(bool, PreSpinYield, false,                                        \
898266423Sjfv          "Yield before inner spinning loop")                               \
899266423Sjfv                                                                            \
900266423Sjfv  product(bool, PostSpinYield, true,                                        \
901266423Sjfv          "Yield after inner spinning loop")                                \
902266423Sjfv                                                                            \
903266423Sjfv  product(bool, AllowJNIEnvProxy, false,                                    \
904266423Sjfv          "Allow JNIEnv proxies for jdbx")                                  \
905266423Sjfv                                                                            \
906266423Sjfv  product(bool, JNIDetachReleasesMonitors, true,                            \
907266423Sjfv          "JNI DetachCurrentThread releases monitors owned by thread")      \
908266423Sjfv                                                                            \
909266423Sjfv  product(bool, RestoreMXCSROnJNICalls, false,                              \
910266423Sjfv          "Restore MXCSR when returning from JNI calls")                    \
911266423Sjfv                                                                            \
912266423Sjfv  product(bool, CheckJNICalls, false,                                       \
913266423Sjfv          "Verify all arguments to JNI calls")                              \
914266423Sjfv                                                                            \
915266423Sjfv  product(bool, UseFastJNIAccessors, true,                                  \
916266423Sjfv          "Use optimized versions of Get<Primitive>Field")                  \
917266423Sjfv                                                                            \
918266423Sjfv  product(bool, EagerXrunInit, false,                                       \
919266423Sjfv          "Eagerly initialize -Xrun libraries; allows startup profiling, "  \
920266423Sjfv          " but not all -Xrun libraries may support the state of the VM at this time") \
921266423Sjfv                                                                            \
922266423Sjfv  product(bool, PreserveAllAnnotations, false,                              \
923266423Sjfv          "Preserve RuntimeInvisibleAnnotations as well as RuntimeVisibleAnnotations") \
924266423Sjfv                                                                            \
925266423Sjfv  develop(uintx, PreallocatedOutOfMemoryErrorCount, 4,                      \
926266423Sjfv          "Number of OutOfMemoryErrors preallocated with backtrace")        \
927266423Sjfv                                                                            \
928266423Sjfv  product(bool, LazyBootClassLoader, true,                                  \
929266423Sjfv          "Enable/disable lazy opening of boot class path entries")         \
930266423Sjfv                                                                            \
931266423Sjfv  diagnostic(bool, UseIncDec, true,                                         \
932266423Sjfv          "Use INC, DEC instructions on x86")                               \
933266423Sjfv                                                                            \
934266423Sjfv  product(bool, UseStoreImmI16, true,                                       \
935266423Sjfv          "Use store immediate 16-bits value instruction on x86")           \
936266423Sjfv                                                                            \
937266423Sjfv  product(bool, UseAddressNop, false,                                       \
938266423Sjfv          "Use '0F 1F [addr]' NOP instructions on x86 cpus")                \
939266423Sjfv                                                                            \
940266423Sjfv  product(bool, UseXmmLoadAndClearUpper, true,                              \
941266423Sjfv          "Load low part of XMM register and clear upper part")             \
942266423Sjfv                                                                            \
943266423Sjfv  product(bool, UseXmmRegToRegMoveAll, false,                               \
944266423Sjfv          "Copy all XMM register bits when moving value between registers") \
945266423Sjfv                                                                            \
946266423Sjfv  product(bool, UseXmmI2D, false,                                           \
947266423Sjfv          "Use SSE2 CVTDQ2PD instruction to convert Integer to Double")     \
948266423Sjfv                                                                            \
949266423Sjfv  product(bool, UseXmmI2F, false,                                           \
950266423Sjfv          "Use SSE2 CVTDQ2PS instruction to convert Integer to Float")      \
951266423Sjfv                                                                            \
952266423Sjfv  product(intx, FieldsAllocationStyle, 1,                                   \
953266423Sjfv          "0 - type based with oops first, 1 - with oops last")             \
954266423Sjfv                                                                            \
955266423Sjfv  product(bool, CompactFields, true,                                        \
956266423Sjfv          "Allocate nonstatic fields in gaps between previous fields")      \
957266423Sjfv                                                                            \
958266423Sjfv  notproduct(bool, PrintCompactFieldsSavings, false,                        \
959266423Sjfv          "Print how many words were saved with CompactFields")             \
960266423Sjfv                                                                            \
961266423Sjfv  product(bool, UseBiasedLocking, true,                                     \
962266423Sjfv          "Enable biased locking in JVM")                                   \
963266423Sjfv                                                                            \
964266423Sjfv  product(intx, BiasedLockingStartupDelay, 4000,                            \
965266423Sjfv          "Number of milliseconds to wait before enabling biased locking")  \
966266423Sjfv                                                                            \
967266423Sjfv  diagnostic(bool, PrintBiasedLockingStatistics, false,                     \
968266423Sjfv          "Print statistics of biased locking in JVM")                      \
969266423Sjfv                                                                            \
970266423Sjfv  product(intx, BiasedLockingBulkRebiasThreshold, 20,                       \
971266423Sjfv          "Threshold of number of revocations per type to try to "          \
972266423Sjfv          "rebias all objects in the heap of that type")                    \
973266423Sjfv                                                                            \
974266423Sjfv  product(intx, BiasedLockingBulkRevokeThreshold, 40,                       \
975266423Sjfv          "Threshold of number of revocations per type to permanently "     \
976266423Sjfv          "revoke biases of all objects in the heap of that type")          \
977266423Sjfv                                                                            \
978266423Sjfv  product(intx, BiasedLockingDecayTime, 25000,                              \
979266423Sjfv          "Decay time (in milliseconds) to re-enable bulk rebiasing of a "  \
980266423Sjfv          "type after previous bulk rebias")                                \
981266423Sjfv                                                                            \
982266423Sjfv  /* tracing */                                                             \
983266423Sjfv                                                                            \
984266423Sjfv  notproduct(bool, TraceRuntimeCalls, false,                                \
985266423Sjfv          "Trace run-time calls")                                           \
986266423Sjfv                                                                            \
987266423Sjfv  develop(bool, TraceJNICalls, false,                                       \
988266423Sjfv          "Trace JNI calls")                                                \
989266423Sjfv                                                                            \
990266423Sjfv  notproduct(bool, TraceJVMCalls, false,                                    \
991266423Sjfv          "Trace JVM calls")                                                \
992266423Sjfv                                                                            \
993266423Sjfv  product(ccstr, TraceJVMTI, "",                                            \
994266423Sjfv          "Trace flags for JVMTI functions and events")                     \
995266423Sjfv                                                                            \
996266423Sjfv  /* This option can change an EMCP method into an obsolete method. */      \
997266423Sjfv  /* This can affect tests that except specific methods to be EMCP. */      \
998266423Sjfv  /* This option should be used with caution. */                            \
999266423Sjfv  product(bool, StressLdcRewrite, false,                                    \
1000266423Sjfv          "Force ldc -> ldc_w rewrite during RedefineClasses")              \
1001266423Sjfv                                                                            \
1002266423Sjfv  product(intx, TraceRedefineClasses, 0,                                    \
1003266423Sjfv          "Trace level for JVMTI RedefineClasses")                          \
1004266423Sjfv                                                                            \
1005266423Sjfv  /* change to false by default sometime after Mustang */                   \
1006266423Sjfv  product(bool, VerifyMergedCPBytecodes, true,                              \
1007266423Sjfv          "Verify bytecodes after RedefineClasses constant pool merging")   \
1008266423Sjfv                                                                            \
1009266423Sjfv  develop(bool, TraceJNIHandleAllocation, false,                            \
1010266423Sjfv          "Trace allocation/deallocation of JNI handle blocks")             \
1011266423Sjfv                                                                            \
1012266423Sjfv  develop(bool, TraceThreadEvents, false,                                   \
1013266423Sjfv          "Trace all thread events")                                        \
1014266423Sjfv                                                                            \
1015266423Sjfv  develop(bool, TraceBytecodes, false,                                      \
1016266423Sjfv          "Trace bytecode execution")                                       \
1017266423Sjfv                                                                            \
1018266423Sjfv  develop(bool, TraceClassInitialization, false,                            \
1019266423Sjfv          "Trace class initialization")                                     \
1020266423Sjfv                                                                            \
1021266423Sjfv  develop(bool, TraceExceptions, false,                                     \
1022266423Sjfv          "Trace exceptions")                                               \
1023266423Sjfv                                                                            \
1024266423Sjfv  develop(bool, TraceICs, false,                                            \
1025266423Sjfv          "Trace inline cache changes")                                     \
1026266423Sjfv                                                                            \
1027266423Sjfv  notproduct(bool, TraceInvocationCounterOverflow, false,                   \
1028266423Sjfv          "Trace method invocation counter overflow")                       \
1029266423Sjfv                                                                            \
1030266423Sjfv  develop(bool, TraceInlineCacheClearing, false,                            \
1031266423Sjfv          "Trace clearing of inline caches in nmethods")                    \
1032266423Sjfv                                                                            \
1033266423Sjfv  develop(bool, TraceDependencies, false,                                   \
1034266423Sjfv          "Trace dependencies")                                             \
1035266423Sjfv                                                                            \
1036266423Sjfv  develop(bool, VerifyDependencies, trueInDebug,                            \
1037266423Sjfv         "Exercise and verify the compilation dependency mechanism")        \
1038266423Sjfv                                                                            \
1039266423Sjfv  develop(bool, TraceNewOopMapGeneration, false,                            \
1040266423Sjfv          "Trace OopMapGeneration")                                         \
1041266423Sjfv                                                                            \
1042266423Sjfv  develop(bool, TraceNewOopMapGenerationDetailed, false,                    \
1043266423Sjfv          "Trace OopMapGeneration: print detailed cell states")             \
1044266423Sjfv                                                                            \
1045266423Sjfv  develop(bool, TimeOopMap, false,                                          \
1046266423Sjfv          "Time calls to GenerateOopMap::compute_map() in sum")             \
1047266423Sjfv                                                                            \
1048266423Sjfv  develop(bool, TimeOopMap2, false,                                         \
1049266423Sjfv          "Time calls to GenerateOopMap::compute_map() individually")       \
1050266423Sjfv                                                                            \
1051266423Sjfv  develop(bool, TraceMonitorMismatch, false,                                \
1052266423Sjfv          "Trace monitor matching failures during OopMapGeneration")        \
1053266423Sjfv                                                                            \
1054266423Sjfv  develop(bool, TraceOopMapRewrites, false,                                 \
1055266423Sjfv          "Trace rewritting of method oops during oop map generation")      \
1056266423Sjfv                                                                            \
1057266423Sjfv  develop(bool, TraceSafepoint, false,                                      \
1058266423Sjfv          "Trace safepoint operations")                                     \
1059266423Sjfv                                                                            \
1060266423Sjfv  develop(bool, TraceICBuffer, false,                                       \
1061266423Sjfv          "Trace usage of IC buffer")                                       \
1062266423Sjfv                                                                            \
1063266423Sjfv  develop(bool, TraceCompiledIC, false,                                     \
1064266423Sjfv          "Trace changes of compiled IC")                                   \
1065266423Sjfv                                                                            \
1066266423Sjfv  notproduct(bool, TraceZapDeadLocals, false,                               \
1067266423Sjfv          "Trace zapping dead locals")                                      \
1068266423Sjfv                                                                            \
1069266423Sjfv  develop(bool, TraceStartupTime, false,                                    \
1070266423Sjfv          "Trace setup time")                                               \
1071266423Sjfv                                                                            \
1072266423Sjfv  develop(bool, TraceHPI, false,                                            \
1073266423Sjfv          "Trace Host Porting Interface (HPI)")                             \
1074266423Sjfv                                                                            \
1075266423Sjfv  product(ccstr, HPILibPath, NULL,                                          \
1076266423Sjfv          "Specify alternate path to HPI library")                          \
1077266423Sjfv                                                                            \
1078266423Sjfv  develop(bool, TraceProtectionDomainVerification, false,                   \
1079266423Sjfv          "Trace protection domain verifcation")                            \
1080266423Sjfv                                                                            \
1081266423Sjfv  develop(bool, TraceClearedExceptions, false,                              \
1082266423Sjfv          "Prints when an exception is forcibly cleared")                   \
1083266423Sjfv                                                                            \
1084266423Sjfv  product(bool, TraceClassResolution, false,                                \
1085266423Sjfv          "Trace all constant pool resolutions (for debugging)")            \
1086266423Sjfv                                                                            \
1087266423Sjfv  product(bool, TraceBiasedLocking, false,                                  \
1088266423Sjfv          "Trace biased locking in JVM")                                    \
1089266423Sjfv                                                                            \
1090266423Sjfv  product(bool, TraceMonitorInflation, false,                               \
1091266423Sjfv          "Trace monitor inflation in JVM")                                 \
1092266423Sjfv                                                                            \
1093266423Sjfv  /* assembler */                                                           \
1094266423Sjfv  product(bool, Use486InstrsOnly, false,                                    \
1095266423Sjfv          "Use 80486 Compliant instruction subset")                         \
1096266423Sjfv                                                                            \
1097266423Sjfv  /* gc */                                                                  \
1098266423Sjfv                                                                            \
1099266423Sjfv  product(bool, UseSerialGC, false,                                         \
1100266423Sjfv          "Tells whether the VM should use serial garbage collector")       \
1101266423Sjfv                                                                            \
1102266423Sjfv  product(bool, UseParallelGC, false,                                       \
1103266423Sjfv          "Use the Parallel Scavenge garbage collector")                    \
1104266423Sjfv                                                                            \
1105266423Sjfv  product(bool, UseParallelOldGC, false,                                    \
1106266423Sjfv          "Use the Parallel Old garbage collector")                         \
1107266423Sjfv                                                                            \
1108266423Sjfv  product(bool, UseParallelOldGCCompacting, true,                           \
1109266423Sjfv          "In the Parallel Old garbage collector use parallel compaction")  \
1110266423Sjfv                                                                            \
1111266423Sjfv  product(bool, UseParallelDensePrefixUpdate, true,                         \
1112266423Sjfv          "In the Parallel Old garbage collector use parallel dense"        \
1113266423Sjfv          " prefix update")                                                 \
1114266423Sjfv                                                                            \
1115266423Sjfv  develop(bool, UseParallelOldGCChunkPointerCalc, true,                     \
1116266423Sjfv          "In the Parallel Old garbage collector use chucks to calculate"   \
1117266423Sjfv          " new object locations")                                          \
1118266423Sjfv                                                                            \
1119266423Sjfv  product(uintx, HeapMaximumCompactionInterval, 20,                         \
1120266423Sjfv          "How often should we maximally compact the heap (not allowing "   \
1121266423Sjfv          "any dead space)")                                                \
1122266423Sjfv                                                                            \
1123266423Sjfv  product(uintx, HeapFirstMaximumCompactionCount, 3,                        \
1124266423Sjfv          "The collection count for the first maximum compaction")          \
1125266423Sjfv                                                                            \
1126266423Sjfv  product(bool, UseMaximumCompactionOnSystemGC, true,                       \
1127266423Sjfv          "In the Parallel Old garbage collector maximum compaction for "   \
1128266423Sjfv          "a system GC")                                                    \
1129266423Sjfv                                                                            \
1130266423Sjfv  product(uintx, ParallelOldDeadWoodLimiterMean, 50,                        \
1131266423Sjfv          "The mean used by the par compact dead wood"                      \
1132266423Sjfv          "limiter (a number between 0-100).")                              \
1133266423Sjfv                                                                            \
1134266423Sjfv  product(uintx, ParallelOldDeadWoodLimiterStdDev, 80,                      \
1135266423Sjfv          "The standard deviation used by the par compact dead wood"        \
1136266423Sjfv          "limiter (a number between 0-100).")                              \
1137266423Sjfv                                                                            \
1138266423Sjfv  product(bool, UseParallelOldGCDensePrefix, true,                          \
1139266423Sjfv          "Use a dense prefix with the Parallel Old garbage collector")     \
1140266423Sjfv                                                                            \
1141266423Sjfv  product(uintx, ParallelGCThreads, 0,                                      \
1142266423Sjfv          "Number of parallel threads parallel gc will use")                \
1143266423Sjfv                                                                            \
1144266423Sjfv  product(uintx, ParallelCMSThreads, 0,                                     \
1145266423Sjfv          "Max number of threads CMS will use for concurrent work")         \
1146266423Sjfv                                                                            \
1147266423Sjfv  develop(bool, VerifyParallelOldWithMarkSweep, false,                      \
1148266423Sjfv          "Use the MarkSweep code to verify phases of Parallel Old")        \
1149266423Sjfv                                                                            \
1150266423Sjfv  develop(uintx, VerifyParallelOldWithMarkSweepInterval, 1,                 \
1151266423Sjfv          "Interval at which the MarkSweep code is used to verify "         \
1152266423Sjfv          "phases of Parallel Old")                                         \
1153266423Sjfv                                                                            \
1154266423Sjfv  develop(bool, ParallelOldMTUnsafeMarkBitMap, false,                       \
1155266423Sjfv          "Use the Parallel Old MT unsafe in marking the bitmap")           \
1156266423Sjfv                                                                            \
1157266423Sjfv  develop(bool, ParallelOldMTUnsafeUpdateLiveData, false,                   \
1158266423Sjfv          "Use the Parallel Old MT unsafe in update of live size")          \
1159266423Sjfv                                                                            \
1160266423Sjfv  develop(bool, TraceChunkTasksQueuing, false,                              \
1161266423Sjfv          "Trace the queuing of the chunk tasks")                           \
1162266423Sjfv                                                                            \
1163266423Sjfv  product(uintx, YoungPLABSize, 4096,                                       \
1164266423Sjfv          "Size of young gen promotion labs (in HeapWords)")                \
1165266423Sjfv                                                                            \
1166266423Sjfv  product(uintx, OldPLABSize, 1024,                                         \
1167266423Sjfv          "Size of old gen promotion labs (in HeapWords)")                  \
1168266423Sjfv                                                                            \
1169266423Sjfv  product(uintx, GCTaskTimeStampEntries, 200,                               \
1170266423Sjfv          "Number of time stamp entries per gc worker thread")              \
1171266423Sjfv                                                                            \
1172266423Sjfv  product(bool, AlwaysTenure, false,                                        \
1173266423Sjfv          "Always tenure objects in eden. (ParallelGC only)")               \
1174266423Sjfv                                                                            \
1175266423Sjfv  product(bool, NeverTenure, false,                                         \
1176266423Sjfv          "Never tenure objects in eden, May tenure on overflow"            \
1177266423Sjfv          " (ParallelGC only)")                                             \
1178266423Sjfv                                                                            \
1179266423Sjfv  product(bool, ScavengeBeforeFullGC, true,                                 \
1180266423Sjfv          "Scavenge youngest generation before each full GC,"               \
1181266423Sjfv          " used with UseParallelGC")                                       \
1182266423Sjfv                                                                            \
1183266423Sjfv  develop(bool, ScavengeWithObjectsInToSpace, false,                        \
1184266423Sjfv          "Allow scavenges to occur when to_space contains objects.")       \
1185266423Sjfv                                                                            \
1186266423Sjfv  product(bool, UseConcMarkSweepGC, false,                                  \
1187266423Sjfv          "Use Concurrent Mark-Sweep GC in the old generation")             \
1188266423Sjfv                                                                            \
1189266423Sjfv  product(bool, ExplicitGCInvokesConcurrent, false,                         \
1190266423Sjfv          "A System.gc() request invokes a concurrent collection;"          \
1191266423Sjfv          " (effective only when UseConcMarkSweepGC)")                      \
1192266423Sjfv                                                                            \
1193266423Sjfv  product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false,        \
1194266423Sjfv          "A System.gc() request invokes a concurrent collection and"       \
1195266423Sjfv          " also unloads classes during such a concurrent gc cycle  "       \
1196266423Sjfv          " (effective only when UseConcMarkSweepGC)")                      \
1197266423Sjfv                                                                            \
1198266423Sjfv  develop(bool, UseCMSAdaptiveFreeLists, true,                              \
1199266423Sjfv          "Use Adaptive Free Lists in the CMS generation")                  \
1200266423Sjfv                                                                            \
1201266423Sjfv  develop(bool, UseAsyncConcMarkSweepGC, true,                              \
1202266423Sjfv          "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\
1203266423Sjfv                                                                            \
1204266423Sjfv  develop(bool, RotateCMSCollectionTypes, false,                            \
1205266423Sjfv          "Rotate the CMS collections among concurrent and STW")            \
1206266423Sjfv                                                                            \
1207266423Sjfv  product(bool, UseCMSBestFit, true,                                        \
1208266423Sjfv          "Use CMS best fit allocation strategy")                           \
1209266423Sjfv                                                                            \
1210266423Sjfv  product(bool, UseCMSCollectionPassing, true,                              \
1211266423Sjfv          "Use passing of collection from background to foreground")        \
1212266423Sjfv                                                                            \
1213266423Sjfv  product(bool, UseParNewGC, false,                                         \
1214266423Sjfv          "Use parallel threads in the new generation.")                    \
1215266423Sjfv                                                                            \
1216266423Sjfv  product(bool, ParallelGCVerbose, false,                                   \
1217266423Sjfv          "Verbose output for parallel GC.")                                \
1218266423Sjfv                                                                            \
1219266423Sjfv  product(intx, ParallelGCBufferWastePct, 10,                               \
1220266423Sjfv          "wasted fraction of parallel allocation buffer.")                 \
1221266423Sjfv                                                                            \
1222266423Sjfv  product(bool, ParallelGCRetainPLAB, true,                                 \
1223266423Sjfv          "Retain parallel allocation buffers across scavenges.")           \
1224266423Sjfv                                                                            \
1225266423Sjfv  product(intx, TargetPLABWastePct, 10,                                     \
1226266423Sjfv          "target wasted space in last buffer as pct of overall allocation")\
1227266423Sjfv                                                                            \
1228266423Sjfv  product(uintx, PLABWeight, 75,                                            \
1229266423Sjfv          "Percentage (0-100) used to weight the current sample when"       \
1230266423Sjfv          "computing exponentially decaying average for ResizePLAB.")       \
1231266423Sjfv                                                                            \
1232266423Sjfv  product(bool, ResizePLAB, true,                                           \
1233266423Sjfv          "Dynamically resize (survivor space) promotion labs")             \
1234266423Sjfv                                                                            \
1235266423Sjfv  product(bool, PrintPLAB, false,                                           \
1236266423Sjfv          "Print (survivor space) promotion labs sizing decisions")         \
1237266423Sjfv                                                                            \
1238266423Sjfv  product(intx, ParGCArrayScanChunk, 50,                                    \
1239266423Sjfv          "Scan a subset and push remainder, if array is bigger than this") \
1240266423Sjfv                                                                            \
1241266423Sjfv  product(intx, ParGCDesiredObjsFromOverflowList, 20,                       \
1242266423Sjfv          "The desired number of objects to claim from the overflow list")  \
1243266423Sjfv                                                                            \
1244266423Sjfv  product(uintx, CMSParPromoteBlocksToClaim, 50,                            \
1245266423Sjfv          "Number of blocks to attempt to claim when refilling CMS LAB for "\
1246266423Sjfv          "parallel GC.")                                                   \
1247266423Sjfv                                                                            \
1248266423Sjfv  product(bool, AlwaysPreTouch, false,                                      \
1249266423Sjfv          "It forces all freshly committed pages to be pre-touched.")       \
1250266423Sjfv                                                                            \
1251266423Sjfv  product(bool, CMSUseOldDefaults, false,                                   \
1252266423Sjfv          "A flag temporarily  introduced to allow reverting to some older" \
1253266423Sjfv          "default settings; older as of 6.0 ")                             \
1254266423Sjfv                                                                            \
1255266423Sjfv  product(intx, CMSYoungGenPerWorker, 16*M,                                 \
1256266423Sjfv          "The amount of young gen chosen by default per GC worker "        \
1257266423Sjfv          "thread available ")                                              \
1258266423Sjfv                                                                            \
1259266423Sjfv  product(bool, CMSIncrementalMode, false,                                  \
1260266423Sjfv          "Whether CMS GC should operate in \"incremental\" mode")          \
1261266423Sjfv                                                                            \
1262266423Sjfv  product(uintx, CMSIncrementalDutyCycle, 10,                               \
1263266423Sjfv          "CMS incremental mode duty cycle (a percentage, 0-100).  If"      \
1264266423Sjfv          "CMSIncrementalPacing is enabled, then this is just the initial"  \
1265266423Sjfv          "value")                                                          \
1266266423Sjfv                                                                            \
1267266423Sjfv  product(bool, CMSIncrementalPacing, true,                                 \
1268266423Sjfv          "Whether the CMS incremental mode duty cycle should be "          \
1269266423Sjfv          "automatically adjusted")                                         \
1270266423Sjfv                                                                            \
1271266423Sjfv  product(uintx, CMSIncrementalDutyCycleMin, 0,                             \
1272266423Sjfv          "Lower bound on the duty cycle when CMSIncrementalPacing is"      \
1273266423Sjfv          "enabled (a percentage, 0-100).")                                 \
1274266423Sjfv                                                                            \
1275266423Sjfv  product(uintx, CMSIncrementalSafetyFactor, 10,                            \
1276266423Sjfv          "Percentage (0-100) used to add conservatism when computing the"  \
1277266423Sjfv          "duty cycle.")                                                    \
1278266423Sjfv                                                                            \
1279266423Sjfv  product(uintx, CMSIncrementalOffset, 0,                                   \
1280266423Sjfv          "Percentage (0-100) by which the CMS incremental mode duty cycle" \
1281266423Sjfv          "is shifted to the right within the period between young GCs")    \
1282266423Sjfv                                                                            \
1283266423Sjfv  product(uintx, CMSExpAvgFactor, 25,                                       \
1284266423Sjfv          "Percentage (0-100) used to weight the current sample when"       \
1285266423Sjfv          "computing exponential averages for CMS statistics.")             \
1286266423Sjfv                                                                            \
1287266423Sjfv  product(uintx, CMS_FLSWeight, 50,                                         \
1288266423Sjfv          "Percentage (0-100) used to weight the current sample when"       \
1289266423Sjfv          "computing exponentially decating averages for CMS FLS statistics.") \
1290266423Sjfv                                                                            \
1291266423Sjfv  product(uintx, CMS_FLSPadding, 2,                                         \
1292266423Sjfv          "The multiple of deviation from mean to use for buffering"        \
1293266423Sjfv          "against volatility in free list demand.")                        \
1294266423Sjfv                                                                            \
1295266423Sjfv  product(uintx, FLSCoalescePolicy, 2,                                      \
1296266423Sjfv          "CMS: Aggression level for coalescing, increasing from 0 to 4")   \
1297266423Sjfv                                                                            \
1298266423Sjfv  product(uintx, CMS_SweepWeight, 50,                                       \
1299266423Sjfv          "Percentage (0-100) used to weight the current sample when"       \
1300266423Sjfv          "computing exponentially decaying average for inter-sweep duration.") \
1301266423Sjfv                                                                            \
1302266423Sjfv  product(uintx, CMS_SweepPadding, 2,                                       \
1303266423Sjfv          "The multiple of deviation from mean to use for buffering"        \
1304266423Sjfv          "against volatility in inter-sweep duration.")                    \
1305266423Sjfv                                                                            \
1306266423Sjfv  product(uintx, CMS_SweepTimerThresholdMillis, 10,                         \
1307266423Sjfv          "Skip block flux-rate sampling for an epoch unless inter-sweep "  \
1308266423Sjfv          " duration exceeds this threhold in milliseconds")                \
1309266423Sjfv                                                                            \
1310266423Sjfv  develop(bool, CMSTraceIncrementalMode, false,                             \
1311266423Sjfv          "Trace CMS incremental mode")                                     \
1312266423Sjfv                                                                            \
1313266423Sjfv  develop(bool, CMSTraceIncrementalPacing, false,                           \
1314266423Sjfv          "Trace CMS incremental mode pacing computation")                  \
1315266423Sjfv                                                                            \
1316266423Sjfv  develop(bool, CMSTraceThreadState, false,                                 \
1317266423Sjfv          "Trace the CMS thread state (enable the trace_state() method)")   \
1318266423Sjfv                                                                            \
1319266423Sjfv  product(bool, CMSClassUnloadingEnabled, false,                            \
1320266423Sjfv          "Whether class unloading enabled when using CMS GC")              \
1321266423Sjfv                                                                            \
1322266423Sjfv  product(bool, CMSCompactWhenClearAllSoftRefs, true,                       \
1323266423Sjfv          "Compact when asked to collect CMS gen with clear_all_soft_refs") \
1324266423Sjfv                                                                            \
1325266423Sjfv  product(bool, UseCMSCompactAtFullCollection, true,                        \
1326266423Sjfv          "Use mark sweep compact at full collections")                     \
1327266423Sjfv                                                                            \
1328266423Sjfv  product(uintx, CMSFullGCsBeforeCompaction, 0,                             \
1329266423Sjfv          "Number of CMS full collection done before compaction if > 0")    \
1330266423Sjfv                                                                            \
1331266423Sjfv  develop(intx, CMSDictionaryChoice, 0,                                     \
1332266423Sjfv          "Use BinaryTreeDictionary as default in the CMS generation")      \
1333266423Sjfv                                                                            \
1334266423Sjfv  product(uintx, CMSIndexedFreeListReplenish, 4,                            \
1335266423Sjfv          "Replenish and indexed free list with this number of chunks")     \
1336266423Sjfv                                                                            \
1337266423Sjfv  product(bool, CMSLoopWarn, false,                                         \
1338266423Sjfv          "Warn in case of excessive CMS looping")                          \
1339266423Sjfv                                                                            \
1340266423Sjfv  develop(bool, CMSOverflowEarlyRestoration, false,                         \
1341266423Sjfv          "Whether preserved marks should be restored early")               \
1342266423Sjfv                                                                            \
1343266423Sjfv  product(uintx, CMSMarkStackSize, 32*K,                                    \
1344266423Sjfv          "Size of CMS marking stack")                                      \
1345266423Sjfv                                                                            \
1346266423Sjfv  product(uintx, CMSMarkStackSizeMax, 4*M,                                  \
1347266423Sjfv          "Max size of CMS marking stack")                                  \
1348266423Sjfv                                                                            \
1349266423Sjfv  notproduct(bool, CMSMarkStackOverflowALot, false,                         \
1350266423Sjfv          "Whether we should simulate frequent marking stack / work queue"  \
1351266423Sjfv          " overflow")                                                      \
1352266423Sjfv                                                                            \
1353266423Sjfv  notproduct(intx, CMSMarkStackOverflowInterval, 1000,                      \
1354266423Sjfv          "A per-thread `interval' counter that determines how frequently"  \
1355266423Sjfv          " we simulate overflow; a smaller number increases frequency")    \
1356266423Sjfv                                                                            \
1357266423Sjfv  product(uintx, CMSMaxAbortablePrecleanLoops, 0,                           \
1358266423Sjfv          "(Temporary, subject to experimentation)"                         \
1359266423Sjfv          "Maximum number of abortable preclean iterations, if > 0")        \
1360266423Sjfv                                                                            \
1361266423Sjfv  product(intx, CMSMaxAbortablePrecleanTime, 5000,                          \
1362266423Sjfv          "(Temporary, subject to experimentation)"                         \
1363266423Sjfv          "Maximum time in abortable preclean in ms")                       \
1364266423Sjfv                                                                            \
1365266423Sjfv  product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100,              \
1366266423Sjfv          "(Temporary, subject to experimentation)"                         \
1367266423Sjfv          "Nominal minimum work per abortable preclean iteration")          \
1368266423Sjfv                                                                            \
1369266423Sjfv  product(intx, CMSAbortablePrecleanWaitMillis, 100,                        \
1370266423Sjfv          "(Temporary, subject to experimentation)"                         \
1371266423Sjfv          " Time that we sleep between iterations when not given"           \
1372266423Sjfv          " enough work per iteration")                                     \
1373266423Sjfv                                                                            \
1374266423Sjfv  product(uintx, CMSRescanMultiple, 32,                                     \
1375266423Sjfv          "Size (in cards) of CMS parallel rescan task")                    \
1376266423Sjfv                                                                            \
1377266423Sjfv  product(uintx, CMSConcMarkMultiple, 32,                                   \
1378266423Sjfv          "Size (in cards) of CMS concurrent MT marking task")              \
1379266423Sjfv                                                                            \
1380266423Sjfv  product(uintx, CMSRevisitStackSize, 1*M,                                  \
1381266423Sjfv          "Size of CMS KlassKlass revisit stack")                           \
1382266423Sjfv                                                                            \
1383266423Sjfv  product(bool, CMSAbortSemantics, false,                                   \
1384266423Sjfv          "Whether abort-on-overflow semantics is implemented")             \
1385266423Sjfv                                                                            \
1386266423Sjfv  product(bool, CMSParallelRemarkEnabled, true,                             \
1387266423Sjfv          "Whether parallel remark enabled (only if ParNewGC)")             \
1388266423Sjfv                                                                            \
1389266423Sjfv  product(bool, CMSParallelSurvivorRemarkEnabled, true,                     \
1390266423Sjfv          "Whether parallel remark of survivor space"                       \
1391266423Sjfv          " enabled (effective only if CMSParallelRemarkEnabled)")          \
1392266423Sjfv                                                                            \
1393266423Sjfv  product(bool, CMSPLABRecordAlways, true,                                  \
1394266423Sjfv          "Whether to always record survivor space PLAB bdries"             \
1395266423Sjfv          " (effective only if CMSParallelSurvivorRemarkEnabled)")          \
1396266423Sjfv                                                                            \
1397266423Sjfv  product(bool, CMSConcurrentMTEnabled, true,                               \
1398266423Sjfv          "Whether multi-threaded concurrent work enabled (if ParNewGC)")   \
1399266423Sjfv                                                                            \
1400266423Sjfv  product(bool, CMSPermGenPrecleaningEnabled, true,                         \
1401266423Sjfv          "Whether concurrent precleaning enabled in perm gen"              \
1402266423Sjfv          " (effective only when CMSPrecleaningEnabled is true)")           \
1403266423Sjfv                                                                            \
1404266423Sjfv  product(bool, CMSPrecleaningEnabled, true,                                \
1405266423Sjfv          "Whether concurrent precleaning enabled")                         \
1406266423Sjfv                                                                            \
1407266423Sjfv  product(uintx, CMSPrecleanIter, 3,                                        \
1408266423Sjfv          "Maximum number of precleaning iteration passes")                 \
1409266423Sjfv                                                                            \
1410266423Sjfv  product(uintx, CMSPrecleanNumerator, 2,                                   \
1411266423Sjfv          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence"  \
1412266423Sjfv          " ratio")                                                         \
1413266423Sjfv                                                                            \
1414266423Sjfv  product(uintx, CMSPrecleanDenominator, 3,                                 \
1415266423Sjfv          "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence"  \
1416266423Sjfv          " ratio")                                                         \
1417266423Sjfv                                                                            \
1418266423Sjfv  product(bool, CMSPrecleanRefLists1, true,                                 \
1419266423Sjfv          "Preclean ref lists during (initial) preclean phase")             \
1420266423Sjfv                                                                            \
1421266423Sjfv  product(bool, CMSPrecleanRefLists2, false,                                \
1422266423Sjfv          "Preclean ref lists during abortable preclean phase")             \
1423266423Sjfv                                                                            \
1424266423Sjfv  product(bool, CMSPrecleanSurvivors1, false,                               \
1425266423Sjfv          "Preclean survivors during (initial) preclean phase")             \
1426266423Sjfv                                                                            \
1427266423Sjfv  product(bool, CMSPrecleanSurvivors2, true,                                \
1428266423Sjfv          "Preclean survivors during abortable preclean phase")             \
1429266423Sjfv                                                                            \
1430266423Sjfv  product(uintx, CMSPrecleanThreshold, 1000,                                \
1431266423Sjfv          "Don't re-iterate if #dirty cards less than this")                \
1432266423Sjfv                                                                            \
1433266423Sjfv  product(bool, CMSCleanOnEnter, true,                                      \
1434266423Sjfv          "Clean-on-enter optimization for reducing number of dirty cards") \
1435266423Sjfv                                                                            \
1436266423Sjfv  product(uintx, CMSRemarkVerifyVariant, 1,                                 \
1437266423Sjfv          "Choose variant (1,2) of verification following remark")          \
1438266423Sjfv                                                                            \
1439266423Sjfv  product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M,                   \
1440266423Sjfv          "If Eden used is below this value, don't try to schedule remark") \
1441266423Sjfv                                                                            \
1442266423Sjfv  product(uintx, CMSScheduleRemarkEdenPenetration, 50,                      \
1443266423Sjfv          "The Eden occupancy % at which to try and schedule remark pause") \
1444266423Sjfv                                                                            \
1445266423Sjfv  product(uintx, CMSScheduleRemarkSamplingRatio, 5,                         \
1446266423Sjfv          "Start sampling Eden top at least before yg occupancy reaches"    \
1447266423Sjfv          " 1/<ratio> of the size at which we plan to schedule remark")     \
1448266423Sjfv                                                                            \
1449266423Sjfv  product(uintx, CMSSamplingGrain, 16*K,                                    \
1450266423Sjfv          "The minimum distance between eden samples for CMS (see above)")  \
1451266423Sjfv                                                                            \
1452266423Sjfv  product(bool, CMSScavengeBeforeRemark, false,                             \
1453266423Sjfv          "Attempt scavenge before the CMS remark step")                    \
1454266423Sjfv                                                                            \
1455266423Sjfv  develop(bool, CMSTraceSweeper, false,                                     \
1456266423Sjfv          "Trace some actions of the CMS sweeper")                          \
1457266423Sjfv                                                                            \
1458266423Sjfv  product(uintx, CMSWorkQueueDrainThreshold, 10,                            \
1459266423Sjfv          "Don't drain below this size per parallel worker/thief")          \
1460266423Sjfv                                                                            \
1461266423Sjfv  product(intx, CMSWaitDuration, 2000,                                      \
1462266423Sjfv          "Time in milliseconds that CMS thread waits for young GC")        \
1463266423Sjfv                                                                            \
1464266423Sjfv  product(bool, CMSYield, true,                                             \
1465266423Sjfv          "Yield between steps of concurrent mark & sweep")                 \
1466266423Sjfv                                                                            \
1467266423Sjfv  product(uintx, CMSBitMapYieldQuantum, 10*M,                               \
1468266423Sjfv          "Bitmap operations should process at most this many bits"         \
1469266423Sjfv          "between yields")                                                 \
1470266423Sjfv                                                                            \
1471266423Sjfv  diagnostic(bool, FLSVerifyAllHeapReferences, false,                       \
1472266423Sjfv          "Verify that all refs across the FLS boundary "                   \
1473266423Sjfv          " are to valid objects")                                          \
1474266423Sjfv                                                                            \
1475266423Sjfv  diagnostic(bool, FLSVerifyLists, false,                                   \
1476266423Sjfv          "Do lots of (expensive) FreeListSpace verification")              \
1477266423Sjfv                                                                            \
1478266423Sjfv  diagnostic(bool, FLSVerifyIndexTable, false,                              \
1479266423Sjfv          "Do lots of (expensive) FLS index table verification")            \
1480266423Sjfv                                                                            \
1481266423Sjfv  develop(bool, FLSVerifyDictionary, false,                                 \
1482266423Sjfv          "Do lots of (expensive) FLS dictionary verification")             \
1483266423Sjfv                                                                            \
1484266423Sjfv  develop(bool, VerifyBlockOffsetArray, false,                              \
1485266423Sjfv          "Do (expensive!) block offset array verification")                \
1486266423Sjfv                                                                            \
1487266423Sjfv  product(bool, BlockOffsetArrayUseUnallocatedBlock, trueInDebug,           \
1488266423Sjfv          "Maintain _unallocated_block in BlockOffsetArray"                 \
1489266423Sjfv          " (currently applicable only to CMS collector)")                  \
1490266423Sjfv                                                                            \
1491266423Sjfv  develop(bool, TraceCMSState, false,                                       \
1492266423Sjfv          "Trace the state of the CMS collection")                          \
1493266423Sjfv                                                                            \
1494266423Sjfv  product(intx, RefDiscoveryPolicy, 0,                                      \
1495266423Sjfv          "Whether reference-based(0) or referent-based(1)")                \
1496266423Sjfv                                                                            \
1497266423Sjfv  product(bool, ParallelRefProcEnabled, false,                              \
1498266423Sjfv          "Enable parallel reference processing whenever possible")         \
1499266423Sjfv                                                                            \
1500266423Sjfv  product(bool, ParallelRefProcBalancingEnabled, true,                      \
1501266423Sjfv          "Enable balancing of reference processing queues")                \
1502266423Sjfv                                                                            \
1503266423Sjfv  product(intx, CMSTriggerRatio, 80,                                        \
1504266423Sjfv          "Percentage of MinHeapFreeRatio in CMS generation that is "       \
1505266423Sjfv          "  allocated before a CMS collection cycle commences")            \
1506266423Sjfv                                                                            \
1507266423Sjfv  product(intx, CMSBootstrapOccupancy, 50,                                  \
1508266423Sjfv          "Percentage CMS generation occupancy at which to "                \
1509266423Sjfv          " initiate CMS collection for bootstrapping collection stats")    \
1510266423Sjfv                                                                            \
1511266423Sjfv  product(intx, CMSInitiatingOccupancyFraction, -1,                         \
1512266423Sjfv          "Percentage CMS generation occupancy to start a CMS collection "  \
1513266423Sjfv          " cycle (A negative value means that CMSTirggerRatio is used)")   \
1514266423Sjfv                                                                            \
1515266423Sjfv  product(bool, UseCMSInitiatingOccupancyOnly, false,                       \
1516266423Sjfv          "Only use occupancy as a crierion for starting a CMS collection") \
1517266423Sjfv                                                                            \
1518266423Sjfv  develop(bool, CMSTestInFreeList, false,                                   \
1519266423Sjfv          "Check if the coalesced range is already in the "                 \
1520266423Sjfv          "free lists as claimed.")                                         \
1521266423Sjfv                                                                            \
1522266423Sjfv  notproduct(bool, CMSVerifyReturnedBytes, false,                           \
1523266423Sjfv          "Check that all the garbage collected was returned to the "       \
1524266423Sjfv          "free lists.")                                                    \
1525266423Sjfv                                                                            \
1526266423Sjfv  notproduct(bool, ScavengeALot, false,                                     \
1527266423Sjfv          "Force scavenge at every Nth exit from the runtime system "       \
1528266423Sjfv          "(N=ScavengeALotInterval)")                                       \
1529266423Sjfv                                                                            \
1530266423Sjfv  develop(bool, FullGCALot, false,                                          \
1531266423Sjfv          "Force full gc at every Nth exit from the runtime system "        \
1532266423Sjfv          "(N=FullGCALotInterval)")                                         \
1533266423Sjfv                                                                            \
1534266423Sjfv  notproduct(bool, GCALotAtAllSafepoints, false,                            \
1535266423Sjfv          "Enforce ScavengeALot/GCALot at all potential safepoints")        \
1536266423Sjfv                                                                            \
1537266423Sjfv  product(bool, HandlePromotionFailure, true,                               \
1538266423Sjfv          "The youngest generation collection does not require"             \
1539266423Sjfv          " a guarantee of full promotion of all live objects.")            \
1540266423Sjfv                                                                            \
1541266423Sjfv  notproduct(bool, PromotionFailureALot, false,                             \
1542266423Sjfv          "Use promotion failure handling on every youngest generation "    \
1543266423Sjfv          "collection")                                                     \
1544266423Sjfv                                                                            \
1545266423Sjfv  develop(uintx, PromotionFailureALotCount, 1000,                           \
1546266423Sjfv          "Number of promotion failures occurring at ParGCAllocBuffer"      \
1547266423Sjfv          "refill attempts (ParNew) or promotion attempts "                 \
1548266423Sjfv          "(other young collectors) ")                                      \
1549266423Sjfv                                                                            \
1550266423Sjfv  develop(uintx, PromotionFailureALotInterval, 5,                           \
1551266423Sjfv          "Total collections between promotion failures alot")              \
1552266423Sjfv                                                                            \
1553266423Sjfv  develop(intx, WorkStealingSleepMillis, 1,                                 \
1554266423Sjfv          "Sleep time when sleep is used for yields")                       \
1555266423Sjfv                                                                            \
1556266423Sjfv  develop(uintx, WorkStealingYieldsBeforeSleep, 1000,                       \
1557266423Sjfv          "Number of yields before a sleep is done during workstealing")    \
1558266423Sjfv                                                                            \
1559266423Sjfv  product(uintx, PreserveMarkStackSize, 40,                                 \
1560266423Sjfv           "Size for stack used in promotion failure handling")             \
1561266423Sjfv                                                                            \
1562266423Sjfv  product_pd(bool, UseTLAB, "Use thread-local object allocation")           \
1563266423Sjfv                                                                            \
1564266423Sjfv  product_pd(bool, ResizeTLAB,                                              \
1565266423Sjfv          "Dynamically resize tlab size for threads")                       \
1566266423Sjfv                                                                            \
1567266423Sjfv  product(bool, ZeroTLAB, false,                                            \
1568266423Sjfv          "Zero out the newly created TLAB")                                \
1569266423Sjfv                                                                            \
1570266423Sjfv  product(bool, PrintTLAB, false,                                           \
1571266423Sjfv          "Print various TLAB related information")                         \
1572266423Sjfv                                                                            \
1573266423Sjfv  product(bool, TLABStats, true,                                            \
1574266423Sjfv          "Print various TLAB related information")                         \
1575266423Sjfv                                                                            \
1576266423Sjfv  product_pd(bool, NeverActAsServerClassMachine,                            \
1577266423Sjfv          "Never act like a server-class machine")                          \
1578266423Sjfv                                                                            \
1579266423Sjfv  product(bool, AlwaysActAsServerClassMachine, false,                       \
1580266423Sjfv          "Always act like a server-class machine")                         \
1581266423Sjfv                                                                            \
1582266423Sjfv  product_pd(uintx, DefaultMaxRAM,                                          \
1583266423Sjfv          "Maximum real memory size for setting server class heap size")    \
1584266423Sjfv                                                                            \
1585266423Sjfv  product(uintx, DefaultMaxRAMFraction, 4,                                  \
1586266423Sjfv          "Fraction (1/n) of real memory used for server class max heap")   \
1587266423Sjfv                                                                            \
1588266423Sjfv  product(uintx, DefaultInitialRAMFraction, 64,                             \
1589266423Sjfv          "Fraction (1/n) of real memory used for server class initial heap")  \
1590266423Sjfv                                                                            \
1591266423Sjfv  product(bool, UseAutoGCSelectPolicy, false,                               \
1592266423Sjfv          "Use automatic collection selection policy")                      \
1593266423Sjfv                                                                            \
1594266423Sjfv  product(uintx, AutoGCSelectPauseMillis, 5000,                             \
1595266423Sjfv          "Automatic GC selection pause threshhold in ms")                  \
1596266423Sjfv                                                                            \
1597266423Sjfv  product(bool, UseAdaptiveSizePolicy, true,                                \
1598266423Sjfv          "Use adaptive generation sizing policies")                        \
1599266423Sjfv                                                                            \
1600266423Sjfv  product(bool, UsePSAdaptiveSurvivorSizePolicy, true,                      \
1601266423Sjfv          "Use adaptive survivor sizing policies")                          \
1602266423Sjfv                                                                            \
1603266423Sjfv  product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true,     \
1604266423Sjfv          "Use adaptive young-old sizing policies at minor collections")    \
1605266423Sjfv                                                                            \
1606266423Sjfv  product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true,     \
1607266423Sjfv          "Use adaptive young-old sizing policies at major collections")    \
1608266423Sjfv                                                                            \
1609266423Sjfv  product(bool, UseAdaptiveSizePolicyWithSystemGC, false,                   \
1610266423Sjfv          "Use statistics from System.GC for adaptive size policy")         \
1611266423Sjfv                                                                            \
1612266423Sjfv  product(bool, UseAdaptiveGCBoundary, false,                               \
1613266423Sjfv          "Allow young-old boundary to move")                               \
1614266423Sjfv                                                                            \
1615266423Sjfv  develop(bool, TraceAdaptiveGCBoundary, false,                             \
1616266423Sjfv          "Trace young-old boundary moves")                                 \
1617266423Sjfv                                                                            \
1618266423Sjfv  develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1,             \
1619266423Sjfv          "Resize the virtual spaces of the young or old generations")      \
1620266423Sjfv                                                                            \
1621266423Sjfv  product(uintx, AdaptiveSizeThroughPutPolicy, 0,                           \
1622266423Sjfv          "Policy for changeing generation size for throughput goals")      \
1623266423Sjfv                                                                            \
1624266423Sjfv  product(uintx, AdaptiveSizePausePolicy, 0,                                \
1625266423Sjfv          "Policy for changing generation size for pause goals")            \
1626266423Sjfv                                                                            \
1627266423Sjfv  develop(bool, PSAdjustTenuredGenForMinorPause, false,                     \
1628266423Sjfv          "Adjust tenured generation to achive a minor pause goal")         \
1629266423Sjfv                                                                            \
1630266423Sjfv  develop(bool, PSAdjustYoungGenForMajorPause, false,                       \
1631266423Sjfv          "Adjust young generation to achive a major pause goal")           \
1632266423Sjfv                                                                            \
1633266423Sjfv  product(uintx, AdaptiveSizePolicyInitializingSteps, 20,                   \
1634266423Sjfv          "Number of steps where heuristics is used before data is used")   \
1635266423Sjfv                                                                            \
1636266423Sjfv  develop(uintx, AdaptiveSizePolicyReadyThreshold, 5,                       \
1637266423Sjfv          "Number of collections before the adaptive sizing is started")    \
1638266423Sjfv                                                                            \
1639266423Sjfv  product(uintx, AdaptiveSizePolicyOutputInterval, 0,                       \
1640266423Sjfv          "Collecton interval for printing information, zero => never")     \
1641266423Sjfv                                                                            \
1642266423Sjfv  product(bool, UseAdaptiveSizePolicyFootprintGoal, true,                   \
1643266423Sjfv          "Use adaptive minimum footprint as a goal")                       \
1644266423Sjfv                                                                            \
1645266423Sjfv  product(uintx, AdaptiveSizePolicyWeight, 10,                              \
1646266423Sjfv          "Weight given to exponential resizing, between 0 and 100")        \
1647266423Sjfv                                                                            \
1648266423Sjfv  product(uintx, AdaptiveTimeWeight,       25,                              \
1649266423Sjfv          "Weight given to time in adaptive policy, between 0 and 100")     \
1650266423Sjfv                                                                            \
1651266423Sjfv  product(uintx, PausePadding, 1,                                           \
1652266423Sjfv          "How much buffer to keep for pause time")                         \
1653266423Sjfv                                                                            \
1654266423Sjfv  product(uintx, PromotedPadding, 3,                                        \
1655266423Sjfv          "How much buffer to keep for promotion failure")                  \
1656266423Sjfv                                                                            \
1657266423Sjfv  product(uintx, SurvivorPadding, 3,                                        \
1658266423Sjfv          "How much buffer to keep for survivor overflow")                  \
1659266423Sjfv                                                                            \
1660266423Sjfv  product(uintx, AdaptivePermSizeWeight, 20,                                \
1661266423Sjfv          "Weight for perm gen exponential resizing, between 0 and 100")    \
1662266423Sjfv                                                                            \
1663266423Sjfv  product(uintx, PermGenPadding, 3,                                         \
1664266423Sjfv          "How much buffer to keep for perm gen sizing")                    \
1665266423Sjfv                                                                            \
1666266423Sjfv  product(uintx, ThresholdTolerance, 10,                                    \
1667266423Sjfv          "Allowed collection cost difference between generations")         \
1668266423Sjfv                                                                            \
1669266423Sjfv  product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50,                \
1670266423Sjfv          "If collection costs are within margin, reduce both by full delta") \
1671266423Sjfv                                                                            \
1672266423Sjfv  product(uintx, YoungGenerationSizeIncrement, 20,                          \
1673266423Sjfv          "Adaptive size percentage change in young generation")            \
1674266423Sjfv                                                                            \
1675266423Sjfv  product(uintx, YoungGenerationSizeSupplement, 80,                         \
1676266423Sjfv          "Supplement to YoungedGenerationSizeIncrement used at startup")   \
1677266423Sjfv                                                                            \
1678266423Sjfv  product(uintx, YoungGenerationSizeSupplementDecay, 8,                     \
1679266423Sjfv          "Decay factor to YoungedGenerationSizeSupplement")                \
1680266423Sjfv                                                                            \
1681266423Sjfv  product(uintx, TenuredGenerationSizeIncrement, 20,                        \
1682266423Sjfv          "Adaptive size percentage change in tenured generation")          \
1683266423Sjfv                                                                            \
1684266423Sjfv  product(uintx, TenuredGenerationSizeSupplement, 80,                       \
1685266423Sjfv          "Supplement to TenuredGenerationSizeIncrement used at startup")   \
1686266423Sjfv                                                                            \
1687266423Sjfv  product(uintx, TenuredGenerationSizeSupplementDecay, 2,                   \
1688266423Sjfv          "Decay factor to TenuredGenerationSizeIncrement")                 \
1689266423Sjfv                                                                            \
1690266423Sjfv  product(uintx, MaxGCPauseMillis, max_uintx,                               \
1691266423Sjfv          "Adaptive size policy maximum GC pause time goal in msec")        \
1692266423Sjfv                                                                            \
1693266423Sjfv  product(uintx, MaxGCMinorPauseMillis, max_uintx,                          \
1694266423Sjfv          "Adaptive size policy maximum GC minor pause time goal in msec")  \
1695266423Sjfv                                                                            \
1696266423Sjfv  product(uintx, GCTimeRatio, 99,                                           \
1697266423Sjfv          "Adaptive size policy application time to GC time ratio")         \
1698266423Sjfv                                                                            \
1699266423Sjfv  product(uintx, AdaptiveSizeDecrementScaleFactor, 4,                       \
1700266423Sjfv          "Adaptive size scale down factor for shrinking")                  \
1701266423Sjfv                                                                            \
1702266423Sjfv  product(bool, UseAdaptiveSizeDecayMajorGCCost, true,                      \
1703266423Sjfv          "Adaptive size decays the major cost for long major intervals")   \
1704266423Sjfv                                                                            \
1705266423Sjfv  product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10,                     \
1706266423Sjfv          "Time scale over which major costs decay")                        \
1707266423Sjfv                                                                            \
1708266423Sjfv  product(uintx, MinSurvivorRatio, 3,                                       \
1709266423Sjfv          "Minimum ratio of young generation/survivor space size")          \
1710266423Sjfv                                                                            \
1711266423Sjfv  product(uintx, InitialSurvivorRatio, 8,                                   \
1712266423Sjfv          "Initial ratio of eden/survivor space size")                      \
1713266423Sjfv                                                                            \
1714266423Sjfv  product(uintx, BaseFootPrintEstimate, 256*M,                              \
1715266423Sjfv          "Estimate of footprint other than Java Heap")                     \
1716266423Sjfv                                                                            \
1717266423Sjfv  product(bool, UseGCOverheadLimit, true,                                   \
1718266423Sjfv          "Use policy to limit of proportion of time spent in GC "          \
1719266423Sjfv          "before an OutOfMemory error is thrown")                          \
1720266423Sjfv                                                                            \
1721266423Sjfv  product(uintx, GCTimeLimit, 98,                                           \
1722266423Sjfv          "Limit of proportion of time spent in GC before an OutOfMemory"   \
1723266423Sjfv          "error is thrown (used with GCHeapFreeLimit)")                    \
1724266423Sjfv                                                                            \
1725266423Sjfv  product(uintx, GCHeapFreeLimit, 2,                                        \
1726266423Sjfv          "Minimum percentage of free space after a full GC before an "     \
1727266423Sjfv          "OutOfMemoryError is thrown (used with GCTimeLimit)")             \
1728266423Sjfv                                                                            \
1729266423Sjfv  develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5,                 \
1730266423Sjfv          "Number of consecutive collections before gc time limit fires")   \
1731266423Sjfv                                                                            \
1732266423Sjfv  product(bool, PrintAdaptiveSizePolicy, false,                             \
1733266423Sjfv          "Print information about AdaptiveSizePolicy")                     \
1734266423Sjfv                                                                            \
1735266423Sjfv  product(intx, PrefetchCopyIntervalInBytes, -1,                            \
1736266423Sjfv          "How far ahead to prefetch destination area (<= 0 means off)")    \
1737266423Sjfv                                                                            \
1738266423Sjfv  product(intx, PrefetchScanIntervalInBytes, -1,                            \
1739266423Sjfv          "How far ahead to prefetch scan area (<= 0 means off)")           \
1740266423Sjfv                                                                            \
1741266423Sjfv  product(intx, PrefetchFieldsAhead, -1,                                    \
1742266423Sjfv          "How many fields ahead to prefetch in oop scan (<= 0 means off)") \
1743266423Sjfv                                                                            \
1744266423Sjfv  develop(bool, UsePrefetchQueue, true,                                     \
1745266423Sjfv          "Use the prefetch queue during PS promotion")                     \
1746266423Sjfv                                                                            \
1747266423Sjfv  diagnostic(bool, VerifyBeforeExit, trueInDebug,                           \
1748266423Sjfv          "Verify system before exiting")                                   \
1749266423Sjfv                                                                            \
1750266423Sjfv  diagnostic(bool, VerifyBeforeGC, false,                                   \
1751266423Sjfv          "Verify memory system before GC")                                 \
1752266423Sjfv                                                                            \
1753266423Sjfv  diagnostic(bool, VerifyAfterGC, false,                                    \
1754266423Sjfv          "Verify memory system after GC")                                  \
1755266423Sjfv                                                                            \
1756266423Sjfv  diagnostic(bool, VerifyDuringGC, false,                                   \
1757266423Sjfv          "Verify memory system during GC (between phases)")                \
1758266423Sjfv                                                                            \
1759266423Sjfv  diagnostic(bool, VerifyRememberedSets, false,                             \
1760266423Sjfv          "Verify GC remembered sets")                                      \
1761266423Sjfv                                                                            \
1762266423Sjfv  diagnostic(bool, VerifyObjectStartArray, true,                            \
1763266423Sjfv          "Verify GC object start array if verify before/after")            \
1764266423Sjfv                                                                            \
1765266423Sjfv  product(bool, DisableExplicitGC, false,                                   \
1766266423Sjfv          "Tells whether calling System.gc() does a full GC")               \
1767266423Sjfv                                                                            \
1768266423Sjfv  notproduct(bool, CheckMemoryInitialization, false,                        \
1769266423Sjfv          "Checks memory initialization")                                   \
1770266423Sjfv                                                                            \
1771266423Sjfv  product(bool, CollectGen0First, false,                                    \
1772266423Sjfv          "Collect youngest generation before each full GC")                \
1773266423Sjfv                                                                            \
1774266423Sjfv  diagnostic(bool, BindCMSThreadToCPU, false,                               \
1775266423Sjfv          "Bind CMS Thread to CPU if possible")                             \
1776266423Sjfv                                                                            \
1777266423Sjfv  diagnostic(uintx, CPUForCMSThread, 0,                                     \
1778266423Sjfv          "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \
1779266423Sjfv                                                                            \
1780266423Sjfv  product(bool, BindGCTaskThreadsToCPUs, false,                             \
1781266423Sjfv          "Bind GCTaskThreads to CPUs if possible")                         \
1782266423Sjfv                                                                            \
1783266423Sjfv  product(bool, UseGCTaskAffinity, false,                                   \
1784266423Sjfv          "Use worker affinity when asking for GCTasks")                    \
1785266423Sjfv                                                                            \
1786266423Sjfv  product(uintx, ProcessDistributionStride, 4,                              \
1787266423Sjfv          "Stride through processors when distributing processes")          \
1788266423Sjfv                                                                            \
1789266423Sjfv  product(uintx, CMSCoordinatorYieldSleepCount, 10,                         \
1790266423Sjfv          "number of times the coordinator GC thread will sleep while "     \
1791266423Sjfv          "yielding before giving up and resuming GC")                      \
1792266423Sjfv                                                                            \
1793266423Sjfv  product(uintx, CMSYieldSleepCount, 0,                                     \
1794266423Sjfv          "number of times a GC thread (minus the coordinator) "            \
1795266423Sjfv          "will sleep while yielding before giving up and resuming GC")     \
1796266423Sjfv                                                                            \
1797266423Sjfv  notproduct(bool, PrintFlagsFinal, false,                                  \
1798266423Sjfv          "Print all command line flags after argument processing")         \
1799266423Sjfv                                                                            \
1800266423Sjfv  /* gc tracing */                                                          \
1801266423Sjfv  manageable(bool, PrintGC, false,                                          \
1802266423Sjfv          "Print message at garbage collect")                               \
1803266423Sjfv                                                                            \
1804266423Sjfv  manageable(bool, PrintGCDetails, false,                                   \
1805266423Sjfv          "Print more details at garbage collect")                          \
1806266423Sjfv                                                                            \
1807266423Sjfv  manageable(bool, PrintGCDateStamps, false,                                \
1808266423Sjfv          "Print date stamps at garbage collect")                           \
1809266423Sjfv                                                                            \
1810266423Sjfv  manageable(bool, PrintGCTimeStamps, false,                                \
1811266423Sjfv          "Print timestamps at garbage collect")                            \
1812266423Sjfv                                                                            \
1813266423Sjfv  product(bool, PrintGCTaskTimeStamps, false,                               \
1814266423Sjfv          "Print timestamps for individual gc worker thread tasks")         \
1815266423Sjfv                                                                            \
1816266423Sjfv  develop(intx, ConcGCYieldTimeout, 0,                                      \
1817266423Sjfv          "If non-zero, assert that GC threads yield within this # of ms.") \
1818266423Sjfv                                                                            \
1819266423Sjfv  notproduct(bool, TraceMarkSweep, false,                                   \
1820266423Sjfv          "Trace mark sweep")                                               \
1821266423Sjfv                                                                            \
1822266423Sjfv  product(bool, PrintReferenceGC, false,                                    \
1823266423Sjfv          "Print times spent handling reference objects during GC "         \
1824266423Sjfv          " (enabled only when PrintGCDetails)")                            \
1825266423Sjfv                                                                            \
1826266423Sjfv  develop(bool, TraceReferenceGC, false,                                    \
1827266423Sjfv          "Trace handling of soft/weak/final/phantom references")           \
1828266423Sjfv                                                                            \
1829266423Sjfv  develop(bool, TraceFinalizerRegistration, false,                          \
1830266423Sjfv         "Trace registration of final references")                          \
1831266423Sjfv                                                                            \
1832266423Sjfv  notproduct(bool, TraceScavenge, false,                                    \
1833266423Sjfv          "Trace scavenge")                                                 \
1834266423Sjfv                                                                            \
1835266423Sjfv  product_rw(bool, TraceClassLoading, false,                                \
1836266423Sjfv          "Trace all classes loaded")                                       \
1837266423Sjfv                                                                            \
1838266423Sjfv  product(bool, TraceClassLoadingPreorder, false,                           \
1839266423Sjfv          "Trace all classes loaded in order referenced (not loaded)")      \
1840266423Sjfv                                                                            \
1841266423Sjfv  product_rw(bool, TraceClassUnloading, false,                              \
1842266423Sjfv          "Trace unloading of classes")                                     \
1843266423Sjfv                                                                            \
1844266423Sjfv  product_rw(bool, TraceLoaderConstraints, false,                           \
1845266423Sjfv          "Trace loader constraints")                                       \
1846266423Sjfv                                                                            \
1847266423Sjfv  product(bool, TraceGen0Time, false,                                       \
1848266423Sjfv          "Trace accumulated time for Gen 0 collection")                    \
1849266423Sjfv                                                                            \
1850266423Sjfv  product(bool, TraceGen1Time, false,                                       \
1851266423Sjfv          "Trace accumulated time for Gen 1 collection")                    \
1852266423Sjfv                                                                            \
1853266423Sjfv  product(bool, PrintTenuringDistribution, false,                           \
1854266423Sjfv          "Print tenuring age information")                                 \
1855266423Sjfv                                                                            \
1856266423Sjfv  product_rw(bool, PrintHeapAtGC, false,                                    \
1857266423Sjfv          "Print heap layout before and after each GC")                     \
1858266423Sjfv                                                                            \
1859266423Sjfv  product(bool, PrintHeapAtSIGBREAK, true,                                  \
1860266423Sjfv          "Print heap layout in response to SIGBREAK")                      \
1861266423Sjfv                                                                            \
1862266423Sjfv  manageable(bool, PrintClassHistogram, false,                              \
1863266423Sjfv          "Print a histogram of class instances")                           \
1864266423Sjfv                                                                            \
1865266423Sjfv  develop(bool, TraceWorkGang, false,                                       \
1866266423Sjfv          "Trace activities of work gangs")                                 \
1867266423Sjfv                                                                            \
1868266423Sjfv  product(bool, TraceParallelOldGCTasks, false,                             \
1869266423Sjfv          "Trace multithreaded GC activity")                                \
1870266423Sjfv                                                                            \
1871266423Sjfv  develop(bool, TraceBlockOffsetTable, false,                               \
1872266423Sjfv          "Print BlockOffsetTable maps")                                    \
1873266423Sjfv                                                                            \
1874266423Sjfv  develop(bool, TraceCardTableModRefBS, false,                              \
1875266423Sjfv          "Print CardTableModRefBS maps")                                   \
1876266423Sjfv                                                                            \
1877266423Sjfv  develop(bool, TraceGCTaskManager, false,                                  \
1878266423Sjfv          "Trace actions of the GC task manager")                           \
1879266423Sjfv                                                                            \
1880266423Sjfv  develop(bool, TraceGCTaskQueue, false,                                    \
1881266423Sjfv          "Trace actions of the GC task queues")                            \
1882266423Sjfv                                                                            \
1883266423Sjfv  develop(bool, TraceGCTaskThread, false,                                   \
1884266423Sjfv          "Trace actions of the GC task threads")                           \
1885266423Sjfv                                                                            \
1886266423Sjfv  product(bool, PrintParallelOldGCPhaseTimes, false,                        \
1887266423Sjfv          "Print the time taken by each parallel old gc phase."             \
1888266423Sjfv          "PrintGCDetails must also be enabled.")                           \
1889266423Sjfv                                                                            \
1890266423Sjfv  develop(bool, TraceParallelOldGCMarkingPhase, false,                      \
1891266423Sjfv          "Trace parallel old gc marking phase")                            \
1892266423Sjfv                                                                            \
1893266423Sjfv  develop(bool, TraceParallelOldGCSummaryPhase, false,                      \
1894266423Sjfv          "Trace parallel old gc summary phase")                            \
1895266423Sjfv                                                                            \
1896266423Sjfv  develop(bool, TraceParallelOldGCCompactionPhase, false,                   \
1897266423Sjfv          "Trace parallel old gc compaction phase")                         \
1898266423Sjfv                                                                            \
1899266423Sjfv  develop(bool, TraceParallelOldGCDensePrefix, false,                       \
1900266423Sjfv          "Trace parallel old gc dense prefix computation")                 \
1901266423Sjfv                                                                            \
1902266423Sjfv  develop(bool, IgnoreLibthreadGPFault, false,                              \
1903266423Sjfv          "Suppress workaround for libthread GP fault")                     \
1904266423Sjfv                                                                            \
1905266423Sjfv  /* JVMTI heap profiling */                                                \
1906266423Sjfv                                                                            \
1907266423Sjfv  diagnostic(bool, TraceJVMTIObjectTagging, false,                          \
1908266423Sjfv          "Trace JVMTI object tagging calls")                               \
1909266423Sjfv                                                                            \
1910266423Sjfv  diagnostic(bool, VerifyBeforeIteration, false,                            \
1911266423Sjfv          "Verify memory system before JVMTI iteration")                    \
1912266423Sjfv                                                                            \
1913266423Sjfv  /* compiler interface */                                                  \
1914266423Sjfv                                                                            \
1915266423Sjfv  develop(bool, CIPrintCompilerName, false,                                 \
1916266423Sjfv          "when CIPrint is active, print the name of the active compiler")  \
1917266423Sjfv                                                                            \
1918266423Sjfv  develop(bool, CIPrintCompileQueue, false,                                 \
1919266423Sjfv          "display the contents of the compile queue whenever a "           \
1920266423Sjfv          "compilation is enqueued")                                        \
1921266423Sjfv                                                                            \
1922266423Sjfv  develop(bool, CIPrintRequests, false,                                     \
1923266423Sjfv          "display every request for compilation")                          \
1924266423Sjfv                                                                            \
1925266423Sjfv  product(bool, CITime, false,                                              \
1926266423Sjfv          "collect timing information for compilation")                     \
1927266423Sjfv                                                                            \
1928266423Sjfv  develop(bool, CITimeEach, false,                                          \
1929266423Sjfv          "display timing information after each successful compilation")   \
1930266423Sjfv                                                                            \
1931266423Sjfv  develop(bool, CICountOSR, true,                                           \
1932266423Sjfv          "use a separate counter when assigning ids to osr compilations")  \
1933266423Sjfv                                                                            \
1934266423Sjfv  develop(bool, CICompileNatives, true,                                     \
1935266423Sjfv          "compile native methods if supported by the compiler")            \
1936266423Sjfv                                                                            \
1937266423Sjfv  develop_pd(bool, CICompileOSR,                                            \
1938266423Sjfv          "compile on stack replacement methods if supported by the "       \
1939266423Sjfv          "compiler")                                                       \
1940266423Sjfv                                                                            \
1941266423Sjfv  develop(bool, CIPrintMethodCodes, false,                                  \
1942266423Sjfv          "print method bytecodes of the compiled code")                    \
1943266423Sjfv                                                                            \
1944266423Sjfv  develop(bool, CIPrintTypeFlow, false,                                     \
1945266423Sjfv          "print the results of ciTypeFlow analysis")                       \
1946266423Sjfv                                                                            \
1947266423Sjfv  develop(bool, CITraceTypeFlow, false,                                     \
1948266423Sjfv          "detailed per-bytecode tracing of ciTypeFlow analysis")           \
1949266423Sjfv                                                                            \
1950266423Sjfv  develop(intx, CICloneLoopTestLimit, 100,                                  \
1951266423Sjfv          "size limit for blocks heuristically cloned in ciTypeFlow")       \
1952266423Sjfv                                                                            \
1953266423Sjfv  /* temp diagnostics */                                                    \
1954266423Sjfv                                                                            \
1955266423Sjfv  diagnostic(bool, TraceRedundantCompiles, false,                           \
1956266423Sjfv          "Have compile broker print when a request already in the queue is"\
1957266423Sjfv          " requested again")                                               \
1958266423Sjfv                                                                            \
1959266423Sjfv  diagnostic(bool, InitialCompileFast, false,                               \
1960266423Sjfv          "Initial compile at CompLevel_fast_compile")                      \
1961266423Sjfv                                                                            \
1962266423Sjfv  diagnostic(bool, InitialCompileReallyFast, false,                         \
1963266423Sjfv          "Initial compile at CompLevel_really_fast_compile (no profile)")  \
1964266423Sjfv                                                                            \
1965266423Sjfv  diagnostic(bool, FullProfileOnReInterpret, true,                          \
1966266423Sjfv          "On re-interpret unc-trap compile next at CompLevel_fast_compile")\
1967266423Sjfv                                                                            \
1968266423Sjfv  /* compiler */                                                            \
1969266423Sjfv                                                                            \
1970266423Sjfv  product(intx, CICompilerCount, CI_COMPILER_COUNT,                         \
1971266423Sjfv          "Number of compiler threads to run")                              \
1972266423Sjfv                                                                            \
1973266423Sjfv  product(intx, CompilationPolicyChoice, 0,                                 \
1974266423Sjfv          "which compilation policy (0/1)")                                 \
1975266423Sjfv                                                                            \
1976266423Sjfv  develop(bool, UseStackBanging, true,                                      \
1977266423Sjfv          "use stack banging for stack overflow checks (required for "      \
1978266423Sjfv          "proper StackOverflow handling; disable only to measure cost "    \
1979266423Sjfv          "of stackbanging)")                                               \
1980266423Sjfv                                                                            \
1981266423Sjfv  develop(bool, Use24BitFPMode, true,                                       \
1982266423Sjfv          "Set 24-bit FPU mode on a per-compile basis ")                    \
1983266423Sjfv                                                                            \
1984266423Sjfv  develop(bool, Use24BitFP, true,                                           \
1985266423Sjfv          "use FP instructions that produce 24-bit precise results")        \
1986266423Sjfv                                                                            \
1987266423Sjfv  develop(bool, UseStrictFP, true,                                          \
1988266423Sjfv          "use strict fp if modifier strictfp is set")                      \
1989266423Sjfv                                                                            \
1990266423Sjfv  develop(bool, GenerateSynchronizationCode, true,                          \
1991266423Sjfv          "generate locking/unlocking code for synchronized methods and "   \
1992266423Sjfv          "monitors")                                                       \
1993266423Sjfv                                                                            \
1994266423Sjfv  develop(bool, GenerateCompilerNullChecks, true,                           \
1995266423Sjfv          "Generate explicit null checks for loads/stores/calls")           \
1996266423Sjfv                                                                            \
1997266423Sjfv  develop(bool, GenerateRangeChecks, true,                                  \
1998266423Sjfv          "Generate range checks for array accesses")                       \
1999266423Sjfv                                                                            \
2000266423Sjfv  develop_pd(bool, ImplicitNullChecks,                                      \
2001266423Sjfv          "generate code for implicit null checks")                         \
2002266423Sjfv                                                                            \
2003266423Sjfv  product(bool, PrintSafepointStatistics, false,                            \
2004266423Sjfv          "print statistics about safepoint synchronization")               \
2005266423Sjfv                                                                            \
2006266423Sjfv  product(intx, PrintSafepointStatisticsCount, 300,                         \
2007266423Sjfv          "total number of safepoint statistics collected "                 \
2008266423Sjfv          "before printing them out")                                       \
2009266423Sjfv                                                                            \
2010266423Sjfv  product(intx, PrintSafepointStatisticsTimeout,  -1,                       \
2011266423Sjfv          "print safepoint statistics only when safepoint takes"            \
2012266423Sjfv          " more than PrintSafepointSatisticsTimeout in millis")            \
2013266423Sjfv                                                                            \
2014266423Sjfv  develop(bool, InlineAccessors, true,                                      \
2015266423Sjfv          "inline accessor methods (get/set)")                              \
2016266423Sjfv                                                                            \
2017266423Sjfv  product(bool, Inline, true,                                               \
2018266423Sjfv          "enable inlining")                                                \
2019266423Sjfv                                                                            \
2020266423Sjfv  product(bool, ClipInlining, true,                                         \
2021266423Sjfv          "clip inlining if aggregate method exceeds DesiredMethodLimit")   \
2022266423Sjfv                                                                            \
2023266423Sjfv  develop(bool, UseCHA, true,                                               \
2024266423Sjfv          "enable CHA")                                                     \
2025266423Sjfv                                                                            \
2026266423Sjfv  product(bool, UseTypeProfile, true,                                       \
2027266423Sjfv          "Check interpreter profile for historically monomorphic calls")   \
2028266423Sjfv                                                                            \
2029266423Sjfv  product(intx, TypeProfileMajorReceiverPercent, 90,                        \
2030266423Sjfv          "% of major receiver type to all profiled receivers")             \
2031266423Sjfv                                                                            \
2032266423Sjfv  notproduct(bool, TimeCompiler, false,                                     \
2033266423Sjfv          "time the compiler")                                              \
2034266423Sjfv                                                                            \
2035266423Sjfv  notproduct(bool, TimeCompiler2, false,                                    \
2036266423Sjfv          "detailed time the compiler (requires +TimeCompiler)")            \
2037266423Sjfv                                                                            \
2038266423Sjfv  diagnostic(bool, PrintInlining, false,                                    \
2039266423Sjfv          "prints inlining optimizations")                                  \
2040266423Sjfv                                                                            \
2041266423Sjfv  diagnostic(bool, PrintIntrinsics, false,                                  \
2042266423Sjfv          "prints attempted and successful inlining of intrinsics")         \
2043266423Sjfv                                                                            \
2044266423Sjfv  diagnostic(ccstrlist, DisableIntrinsic, "",                               \
2045266423Sjfv          "do not expand intrinsics whose (internal) names appear here")    \
2046266423Sjfv                                                                            \
2047266423Sjfv  develop(bool, StressReflectiveCode, false,                                \
2048266423Sjfv          "Use inexact types at allocations, etc., to test reflection")     \
2049266423Sjfv                                                                            \
2050266423Sjfv  develop(bool, EagerInitialization, false,                                 \
2051266423Sjfv          "Eagerly initialize classes if possible")                         \
2052266423Sjfv                                                                            \
2053266423Sjfv  product(bool, Tier1UpdateMethodData, trueInTiered,                        \
2054266423Sjfv          "Update methodDataOops in Tier1-generated code")                  \
2055266423Sjfv                                                                            \
2056266423Sjfv  develop(bool, TraceMethodReplacement, false,                              \
2057266423Sjfv          "Print when methods are replaced do to recompilation")            \
2058266423Sjfv                                                                            \
2059266423Sjfv  develop(bool, PrintMethodFlushing, false,                                 \
2060266423Sjfv          "print the nmethods being flushed")                               \
2061266423Sjfv                                                                            \
2062266423Sjfv  notproduct(bool, LogMultipleMutexLocking, false,                          \
2063266423Sjfv          "log locking and unlocking of mutexes (only if multiple locks "   \
2064266423Sjfv          "are held)")                                                      \
2065266423Sjfv                                                                            \
2066266423Sjfv  develop(bool, UseRelocIndex, false,                                       \
2067266423Sjfv         "use an index to speed random access to relocations")              \
2068266423Sjfv                                                                            \
2069266423Sjfv  develop(bool, StressCodeBuffers, false,                                   \
2070266423Sjfv         "Exercise code buffer expansion and other rare state changes")     \
2071266423Sjfv                                                                            \
2072266423Sjfv  diagnostic(bool, DebugNonSafepoints, trueInDebug,                         \
2073266423Sjfv         "Generate extra debugging info for non-safepoints in nmethods")    \
2074266423Sjfv                                                                            \
2075266423Sjfv  diagnostic(bool, DebugInlinedCalls, true,                                 \
2076266423Sjfv         "If false, restricts profiled locations to the root method only")  \
2077266423Sjfv                                                                            \
2078266423Sjfv  product(bool, PrintVMOptions, trueInDebug,                                \
2079266423Sjfv         "print VM flag settings")                                          \
2080266423Sjfv                                                                            \
2081266423Sjfv  diagnostic(bool, SerializeVMOutput, true,                                 \
2082266423Sjfv         "Use a mutex to serialize output to tty and hotspot.log")          \
2083266423Sjfv                                                                            \
2084266423Sjfv  diagnostic(bool, DisplayVMOutput, true,                                   \
2085266423Sjfv         "Display all VM output on the tty, independently of LogVMOutput")  \
2086266423Sjfv                                                                            \
2087266423Sjfv  diagnostic(bool, LogVMOutput, trueInDebug,                                \
2088266423Sjfv         "Save VM output to hotspot.log, or to LogFile")                    \
2089266423Sjfv                                                                            \
2090266423Sjfv  diagnostic(ccstr, LogFile, NULL,                                          \
2091266423Sjfv         "If LogVMOutput is on, save VM output to this file [hotspot.log]") \
2092266423Sjfv                                                                            \
2093266423Sjfv  product(ccstr, ErrorFile, NULL,                                           \
2094266423Sjfv         "If an error occurs, save the error data to this file "            \
2095266423Sjfv         "[default: ./hs_err_pid%p.log] (%p replaced with pid)")            \
2096266423Sjfv                                                                            \
2097266423Sjfv  product(bool, DisplayVMOutputToStderr, false,                             \
2098266423Sjfv         "If DisplayVMOutput is true, display all VM output to stderr")     \
2099266423Sjfv                                                                            \
2100266423Sjfv  product(bool, DisplayVMOutputToStdout, false,                             \
2101266423Sjfv         "If DisplayVMOutput is true, display all VM output to stdout")     \
2102266423Sjfv                                                                            \
2103266423Sjfv  product(bool, UseHeavyMonitors, false,                                    \
2104266423Sjfv          "use heavyweight instead of lightweight Java monitors")           \
2105266423Sjfv                                                                            \
2106266423Sjfv  notproduct(bool, PrintSymbolTableSizeHistogram, false,                    \
2107266423Sjfv          "print histogram of the symbol table")                            \
2108266423Sjfv                                                                            \
2109266423Sjfv  notproduct(bool, ExitVMOnVerifyError, false,                              \
2110266423Sjfv          "standard exit from VM if bytecode verify error "                 \
2111266423Sjfv          "(only in debug mode)")                                           \
2112266423Sjfv                                                                            \
2113266423Sjfv  notproduct(ccstr, AbortVMOnException, NULL,                               \
2114266423Sjfv          "Call fatal if this exception is thrown.  Example: "              \
2115266423Sjfv          "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
2116266423Sjfv                                                                            \
2117266423Sjfv  develop(bool, DebugVtables, false,                                        \
2118266423Sjfv          "add debugging code to vtable dispatch")                          \
2119266423Sjfv                                                                            \
2120266423Sjfv  develop(bool, PrintVtables, false,                                        \
2121266423Sjfv          "print vtables when printing klass")                              \
2122266423Sjfv                                                                            \
2123266423Sjfv  notproduct(bool, PrintVtableStats, false,                                 \
2124266423Sjfv          "print vtables stats at end of run")                              \
2125266423Sjfv                                                                            \
2126266423Sjfv  develop(bool, TraceCreateZombies, false,                                  \
2127266423Sjfv          "trace creation of zombie nmethods")                              \
2128266423Sjfv                                                                            \
2129266423Sjfv  notproduct(bool, IgnoreLockingAssertions, false,                          \
2130266423Sjfv          "disable locking assertions (for speed)")                         \
2131266423Sjfv                                                                            \
2132266423Sjfv  notproduct(bool, VerifyLoopOptimizations, false,                          \
2133266423Sjfv          "verify major loop optimizations")                                \
2134266423Sjfv                                                                            \
2135266423Sjfv  product(bool, RangeCheckElimination, true,                                \
2136266423Sjfv          "Split loop iterations to eliminate range checks")                \
2137266423Sjfv                                                                            \
2138266423Sjfv  develop_pd(bool, UncommonNullCast,                                        \
2139266423Sjfv          "track occurrences of null in casts; adjust compiler tactics")    \
2140266423Sjfv                                                                            \
2141266423Sjfv  develop(bool, TypeProfileCasts,  true,                                    \
2142266423Sjfv          "treat casts like calls for purposes of type profiling")          \
2143266423Sjfv                                                                            \
2144266423Sjfv  develop(bool, MonomorphicArrayCheck, true,                                \
2145266423Sjfv          "Uncommon-trap array store checks that require full type check")  \
2146266423Sjfv                                                                            \
2147266423Sjfv  develop(bool, DelayCompilationDuringStartup, true,                        \
2148266423Sjfv          "Delay invoking the compiler until main application class is "    \
2149266423Sjfv          "loaded")                                                         \
2150266423Sjfv                                                                            \
2151266423Sjfv  develop(bool, CompileTheWorld, false,                                     \
2152266423Sjfv          "Compile all methods in all classes in bootstrap class path "     \
2153266423Sjfv          "(stress test)")                                                  \
2154266423Sjfv                                                                            \
2155266423Sjfv  develop(bool, CompileTheWorldPreloadClasses, true,                        \
2156266423Sjfv          "Preload all classes used by a class before start loading")       \
2157266423Sjfv                                                                            \
2158266423Sjfv  notproduct(bool, CompileTheWorldIgnoreInitErrors, false,                  \
2159266423Sjfv          "Compile all methods although class initializer failed")          \
2160266423Sjfv                                                                            \
2161266423Sjfv  develop(bool, TraceIterativeGVN, false,                                   \
2162266423Sjfv          "Print progress during Iterative Global Value Numbering")         \
2163266423Sjfv                                                                            \
2164266423Sjfv  develop(bool, FillDelaySlots, true,                                       \
2165266423Sjfv          "Fill delay slots (on SPARC only)")                               \
2166266423Sjfv                                                                            \
2167266423Sjfv  develop(bool, VerifyIterativeGVN, false,                                  \
2168266423Sjfv          "Verify Def-Use modifications during sparse Iterative Global "    \
2169266423Sjfv          "Value Numbering")                                                \
2170266423Sjfv                                                                            \
2171266423Sjfv  notproduct(bool, TracePhaseCCP, false,                                    \
2172266423Sjfv          "Print progress during Conditional Constant Propagation")         \
2173266423Sjfv                                                                            \
2174266423Sjfv  develop(bool, TimeLivenessAnalysis, false,                                \
2175266423Sjfv          "Time computation of bytecode liveness analysis")                 \
2176266423Sjfv                                                                            \
2177266423Sjfv  develop(bool, TraceLivenessGen, false,                                    \
2178266423Sjfv          "Trace the generation of liveness analysis information")          \
2179266423Sjfv                                                                            \
2180266423Sjfv  notproduct(bool, TraceLivenessQuery, false,                               \
2181266423Sjfv          "Trace queries of liveness analysis information")                 \
2182266423Sjfv                                                                            \
2183266423Sjfv  notproduct(bool, CollectIndexSetStatistics, false,                        \
2184266423Sjfv          "Collect information about IndexSets")                            \
2185266423Sjfv                                                                            \
2186266423Sjfv  develop(bool, PrintDominators, false,                                     \
2187266423Sjfv          "Print out dominator trees for GVN")                              \
2188266423Sjfv                                                                            \
2189266423Sjfv  develop(bool, UseLoopSafepoints, true,                                    \
2190266423Sjfv          "Generate Safepoint nodes in every loop")                         \
2191266423Sjfv                                                                            \
2192266423Sjfv  notproduct(bool, TraceCISCSpill, false,                                   \
2193266423Sjfv          "Trace allocators use of cisc spillable instructions")            \
2194266423Sjfv                                                                            \
2195266423Sjfv  notproduct(bool, TraceSpilling, false,                                    \
2196266423Sjfv          "Trace spilling")                                                 \
2197266423Sjfv                                                                            \
2198266423Sjfv  develop(bool, DeutschShiffmanExceptions, true,                            \
2199266423Sjfv          "Fast check to find exception handler for precisely typed "       \
2200266423Sjfv          "exceptions")                                                     \
2201266423Sjfv                                                                            \
2202266423Sjfv  product(bool, SplitIfBlocks, true,                                        \
2203266423Sjfv          "Clone compares and control flow through merge points to fold "   \
2204266423Sjfv          "some branches")                                                  \
2205266423Sjfv                                                                            \
2206266423Sjfv  develop(intx, FastAllocateSizeLimit, 128*K,                               \
2207266423Sjfv          /* Note:  This value is zero mod 1<<13 for a cheap sparc set. */  \
2208266423Sjfv          "Inline allocations larger than this in doublewords must go slow")\
2209266423Sjfv                                                                            \
2210266423Sjfv  product(bool, AggressiveOpts, false,                                      \
2211266423Sjfv          "Enable aggressive optimizations - see arguments.cpp")            \
2212266423Sjfv                                                                            \
2213266423Sjfv  /* statistics */                                                          \
2214266423Sjfv  develop(bool, UseVTune, false,                                            \
2215266423Sjfv          "enable support for Intel's VTune profiler")                      \
2216266423Sjfv                                                                            \
2217266423Sjfv  develop(bool, CountCompiledCalls, false,                                  \
2218266423Sjfv          "counts method invocations")                                      \
2219266423Sjfv                                                                            \
2220266423Sjfv  notproduct(bool, CountRuntimeCalls, false,                                \
2221266423Sjfv          "counts VM runtime calls")                                        \
2222266423Sjfv                                                                            \
2223266423Sjfv  develop(bool, CountJNICalls, false,                                       \
2224266423Sjfv          "counts jni method invocations")                                  \
2225266423Sjfv                                                                            \
2226266423Sjfv  notproduct(bool, CountJVMCalls, false,                                    \
2227266423Sjfv          "counts jvm method invocations")                                  \
2228266423Sjfv                                                                            \
2229266423Sjfv  notproduct(bool, CountRemovableExceptions, false,                         \
2230266423Sjfv          "count exceptions that could be replaced by branches due to "     \
2231266423Sjfv          "inlining")                                                       \
2232266423Sjfv                                                                            \
2233266423Sjfv  notproduct(bool, ICMissHistogram, false,                                  \
2234266423Sjfv          "produce histogram of IC misses")                                 \
2235266423Sjfv                                                                            \
2236266423Sjfv  notproduct(bool, PrintClassStatistics, false,                             \
2237266423Sjfv          "prints class statistics at end of run")                          \
2238266423Sjfv                                                                            \
2239266423Sjfv  notproduct(bool, PrintMethodStatistics, false,                            \
2240266423Sjfv          "prints method statistics at end of run")                         \
2241266423Sjfv                                                                            \
2242266423Sjfv  /* interpreter */                                                         \
2243266423Sjfv  develop(bool, ClearInterpreterLocals, false,                              \
2244266423Sjfv          "Always clear local variables of interpreter activations upon "   \
2245266423Sjfv          "entry")                                                          \
2246266423Sjfv                                                                            \
2247266423Sjfv  product_pd(bool, RewriteBytecodes,                                        \
2248266423Sjfv          "Allow rewriting of bytecodes (bytecodes are not immutable)")     \
2249266423Sjfv                                                                            \
2250266423Sjfv  product_pd(bool, RewriteFrequentPairs,                                    \
2251266423Sjfv          "Rewrite frequently used bytecode pairs into a single bytecode")  \
2252266423Sjfv                                                                            \
2253266423Sjfv  product(bool, PrintInterpreter, false,                                    \
2254266423Sjfv          "Prints the generated interpreter code")                          \
2255266423Sjfv                                                                            \
2256266423Sjfv  product(bool, UseInterpreter, true,                                       \
2257266423Sjfv          "Use interpreter for non-compiled methods")                       \
2258266423Sjfv                                                                            \
2259266423Sjfv  develop(bool, UseFastSignatureHandlers, true,                             \
2260266423Sjfv          "Use fast signature handlers for native calls")                   \
2261266423Sjfv                                                                            \
2262266423Sjfv  develop(bool, UseV8InstrsOnly, false,                                     \
2263266423Sjfv          "Use SPARC-V8 Compliant instruction subset")                      \
2264266423Sjfv                                                                            \
2265266423Sjfv  product(bool, UseNiagaraInstrs, false,                                    \
2266266423Sjfv          "Use Niagara-efficient instruction subset")                       \
2267266423Sjfv                                                                            \
2268266423Sjfv  develop(bool, UseCASForSwap, false,                                       \
2269266423Sjfv          "Do not use swap instructions, but only CAS (in a loop) on SPARC")\
2270266423Sjfv                                                                            \
2271266423Sjfv  product(bool, UseLoopCounter, true,                                       \
2272266423Sjfv          "Increment invocation counter on backward branch")                \
2273266423Sjfv                                                                            \
2274266423Sjfv  product(bool, UseFastEmptyMethods, true,                                  \
2275266423Sjfv          "Use fast method entry code for empty methods")                   \
2276266423Sjfv                                                                            \
2277266423Sjfv  product(bool, UseFastAccessorMethods, true,                               \
2278266423Sjfv          "Use fast method entry code for accessor methods")                \
2279266423Sjfv                                                                            \
2280266423Sjfv  product_pd(bool, UseOnStackReplacement,                                   \
2281266423Sjfv           "Use on stack replacement, calls runtime if invoc. counter "     \
2282266423Sjfv           "overflows in loop")                                             \
2283266423Sjfv                                                                            \
2284266423Sjfv  notproduct(bool, TraceOnStackReplacement, false,                          \
2285266423Sjfv          "Trace on stack replacement")                                     \
2286266423Sjfv                                                                            \
2287266423Sjfv  develop(bool, PoisonOSREntry, true,                                       \
2288266423Sjfv           "Detect abnormal calls to OSR code")                             \
2289266423Sjfv                                                                            \
2290266423Sjfv  product_pd(bool, PreferInterpreterNativeStubs,                            \
2291266423Sjfv          "Use always interpreter stubs for native methods invoked via "    \
2292266423Sjfv          "interpreter")                                                    \
2293266423Sjfv                                                                            \
2294266423Sjfv  develop(bool, CountBytecodes, false,                                      \
2295266423Sjfv          "Count number of bytecodes executed")                             \
2296266423Sjfv                                                                            \
2297266423Sjfv  develop(bool, PrintBytecodeHistogram, false,                              \
2298266423Sjfv          "Print histogram of the executed bytecodes")                      \
2299266423Sjfv                                                                            \
2300266423Sjfv  develop(bool, PrintBytecodePairHistogram, false,                          \
2301266423Sjfv          "Print histogram of the executed bytecode pairs")                 \
2302266423Sjfv                                                                            \
2303266423Sjfv  develop(bool, PrintSignatureHandlers, false,                              \
2304266423Sjfv          "Print code generated for native method signature handlers")      \
2305266423Sjfv                                                                            \
2306266423Sjfv  develop(bool, VerifyOops, false,                                          \
2307266423Sjfv          "Do plausibility checks for oops")                                \
2308266423Sjfv                                                                            \
2309266423Sjfv  develop(bool, CheckUnhandledOops, false,                                  \
2310266423Sjfv          "Check for unhandled oops in VM code")                            \
2311266423Sjfv                                                                            \
2312266423Sjfv  develop(bool, VerifyJNIFields, trueInDebug,                               \
2313266423Sjfv          "Verify jfieldIDs for instance fields")                           \
2314266423Sjfv                                                                            \
2315266423Sjfv  notproduct(bool, VerifyJNIEnvThread, false,                               \
2316266423Sjfv          "Verify JNIEnv.thread == Thread::current() when entering VM "     \
2317266423Sjfv          "from JNI")                                                       \
2318266423Sjfv                                                                            \
2319266423Sjfv  develop(bool, VerifyFPU, false,                                           \
2320266423Sjfv          "Verify FPU state (check for NaN's, etc.)")                       \
2321266423Sjfv                                                                            \
2322266423Sjfv  develop(bool, VerifyThread, false,                                        \
2323266423Sjfv          "Watch the thread register for corruption (SPARC only)")          \
2324266423Sjfv                                                                            \
2325266423Sjfv  develop(bool, VerifyActivationFrameSize, false,                           \
2326266423Sjfv          "Verify that activation frame didn't become smaller than its "    \
2327266423Sjfv          "minimal size")                                                   \
2328266423Sjfv                                                                            \
2329266423Sjfv  develop(bool, TraceFrequencyInlining, false,                              \
2330266423Sjfv          "Trace frequency based inlining")                                 \
2331266423Sjfv                                                                            \
2332266423Sjfv  notproduct(bool, TraceTypeProfile, false,                                 \
2333266423Sjfv          "Trace type profile")                                             \
2334266423Sjfv                                                                            \
2335266423Sjfv  develop_pd(bool, InlineIntrinsics,                                        \
2336266423Sjfv           "Inline intrinsics that can be statically resolved")             \
2337266423Sjfv                                                                            \
2338266423Sjfv  product_pd(bool, ProfileInterpreter,                                      \
2339266423Sjfv           "Profile at the bytecode level during interpretation")           \
2340266423Sjfv                                                                            \
2341266423Sjfv  develop_pd(bool, ProfileTraps,                                            \
2342266423Sjfv          "Profile deoptimization traps at the bytecode level")             \
2343266423Sjfv                                                                            \
2344266423Sjfv  product(intx, ProfileMaturityPercentage, 20,                              \
2345266423Sjfv          "number of method invocations/branches (expressed as % of "       \
2346266423Sjfv          "CompileThreshold) before using the method's profile")            \
2347266423Sjfv                                                                            \
2348266423Sjfv  develop(bool, PrintMethodData, false,                                     \
2349266423Sjfv           "Print the results of +ProfileInterpreter at end of run")        \
2350266423Sjfv                                                                            \
2351266423Sjfv  develop(bool, VerifyDataPointer, trueInDebug,                             \
2352266423Sjfv          "Verify the method data pointer during interpreter profiling")    \
2353266423Sjfv                                                                            \
2354266423Sjfv  develop(bool, VerifyCompiledCode, false,                                  \
2355266423Sjfv          "Include miscellaneous runtime verifications in nmethod code; "   \
2356266423Sjfv          "off by default because it disturbs nmethod size heuristics.")    \
2357266423Sjfv                                                                            \
2358266423Sjfv                                                                            \
2359266423Sjfv  /* compilation */                                                         \
2360266423Sjfv  product(bool, UseCompiler, true,                                          \
2361266423Sjfv          "use compilation")                                                \
2362266423Sjfv                                                                            \
2363266423Sjfv  develop(bool, TraceCompilationPolicy, false,                              \
2364266423Sjfv          "Trace compilation policy")                                       \
2365266423Sjfv                                                                            \
2366266423Sjfv  develop(bool, TimeCompilationPolicy, false,                               \
2367266423Sjfv          "Time the compilation policy")                                    \
2368266423Sjfv                                                                            \
2369266423Sjfv  product(bool, UseCounterDecay, true,                                      \
2370266423Sjfv           "adjust recompilation counters")                                 \
2371266423Sjfv                                                                            \
2372266423Sjfv  develop(intx, CounterHalfLifeTime,    30,                                 \
2373266423Sjfv          "half-life time of invocation counters (in secs)")                \
2374266423Sjfv                                                                            \
2375266423Sjfv  develop(intx, CounterDecayMinIntervalLength,   500,                       \
2376266423Sjfv          "Min. ms. between invocation of CounterDecay")                    \
2377266423Sjfv                                                                            \
2378266423Sjfv  product(bool, AlwaysCompileLoopMethods, false,                            \
2379266423Sjfv          "when using recompilation, never interpret methods "              \
2380266423Sjfv          "containing loops")                                               \
2381266423Sjfv                                                                            \
2382266423Sjfv  product(bool, DontCompileHugeMethods, true,                               \
2383266423Sjfv          "don't compile methods > HugeMethodLimit")                        \
2384266423Sjfv                                                                            \
2385266423Sjfv  /* Bytecode escape analysis estimation. */                                \
2386266423Sjfv  product(bool, EstimateArgEscape, true,                                    \
2387266423Sjfv          "Analyze bytecodes to estimate escape state of arguments")        \
2388266423Sjfv                                                                            \
2389266423Sjfv  product(intx, BCEATraceLevel, 0,                                          \
2390266423Sjfv          "How much tracing to do of bytecode escape analysis estimates")   \
2391266423Sjfv                                                                            \
2392266423Sjfv  product(intx, MaxBCEAEstimateLevel, 5,                                    \
2393266423Sjfv          "Maximum number of nested calls that are analyzed by BC EA.")     \
2394266423Sjfv                                                                            \
2395266423Sjfv  product(intx, MaxBCEAEstimateSize, 150,                                   \
2396266423Sjfv          "Maximum bytecode size of a method to be analyzed by BC EA.")     \
2397266423Sjfv                                                                            \
2398266423Sjfv  product(intx,  AllocatePrefetchStyle, 1,                                  \
2399266423Sjfv          "0 = no prefetch, "                                               \
2400266423Sjfv          "1 = prefetch instructions for each allocation, "                 \
2401266423Sjfv          "2 = use TLAB watermark to gate allocation prefetch")             \
2402266423Sjfv                                                                            \
2403266423Sjfv  product(intx,  AllocatePrefetchDistance, -1,                              \
2404266423Sjfv          "Distance to prefetch ahead of allocation pointer")               \
2405266423Sjfv                                                                            \
2406266423Sjfv  product(intx,  AllocatePrefetchLines, 1,                                  \
2407266423Sjfv          "Number of lines to prefetch ahead of allocation pointer")        \
2408266423Sjfv                                                                            \
2409266423Sjfv  product(intx,  AllocatePrefetchStepSize, 16,                              \
2410266423Sjfv          "Step size in bytes of sequential prefetch instructions")         \
2411266423Sjfv                                                                            \
2412266423Sjfv  product(intx,  AllocatePrefetchInstr, 0,                                  \
2413266423Sjfv          "Prefetch instruction to prefetch ahead of allocation pointer")   \
2414266423Sjfv                                                                            \
2415266423Sjfv  product(intx,  ReadPrefetchInstr, 0,                                      \
2416266423Sjfv          "Prefetch instruction to prefetch ahead")                         \
2417266423Sjfv                                                                            \
2418266423Sjfv  /* deoptimization */                                                      \
2419266423Sjfv  develop(bool, TraceDeoptimization, false,                                 \
2420266423Sjfv          "Trace deoptimization")                                           \
2421266423Sjfv                                                                            \
2422266423Sjfv  develop(bool, DebugDeoptimization, false,                                 \
2423266423Sjfv          "Tracing various information while debugging deoptimization")     \
2424266423Sjfv                                                                            \
2425266423Sjfv  product(intx, SelfDestructTimer, 0,                                       \
2426266423Sjfv          "Will cause VM to terminate after a given time (in minutes) "     \
2427266423Sjfv          "(0 means off)")                                                  \
2428266423Sjfv                                                                            \
2429266423Sjfv  product(intx, MaxJavaStackTraceDepth, 1024,                               \
2430266423Sjfv          "Max. no. of lines in the stack trace for Java exceptions "       \
2431266423Sjfv          "(0 means all)")                                                  \
2432266423Sjfv                                                                            \
2433266423Sjfv  develop(intx, GuaranteedSafepointInterval, 1000,                          \
2434266423Sjfv          "Guarantee a safepoint (at least) every so many milliseconds "    \
2435266423Sjfv          "(0 means none)")                                                 \
2436266423Sjfv                                                                            \
2437266423Sjfv  product(intx, SafepointTimeoutDelay, 10000,                               \
2438266423Sjfv          "Delay in milliseconds for option SafepointTimeout")              \
2439266423Sjfv                                                                            \
2440266423Sjfv  product(intx, NmethodSweepFraction, 4,                                    \
2441266423Sjfv          "Number of invocations of sweeper to cover all nmethods")         \
2442266423Sjfv                                                                            \
2443266423Sjfv  notproduct(intx, MemProfilingInterval, 500,                               \
2444266423Sjfv          "Time between each invocation of the MemProfiler")                \
2445266423Sjfv                                                                            \
2446266423Sjfv  develop(intx, MallocCatchPtr, -1,                                         \
2447266423Sjfv          "Hit breakpoint when mallocing/freeing this pointer")             \
2448266423Sjfv                                                                            \
2449266423Sjfv  notproduct(intx, AssertRepeat, 1,                                         \
2450266423Sjfv          "number of times to evaluate expression in assert "               \
2451266423Sjfv          "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \
2452266423Sjfv                                                                            \
2453266423Sjfv  notproduct(ccstrlist, SuppressErrorAt, "",                                \
2454266423Sjfv          "List of assertions (file:line) to muzzle")                       \
2455266423Sjfv                                                                            \
2456266423Sjfv  notproduct(uintx, HandleAllocationLimit, 1024,                            \
2457266423Sjfv          "Threshold for HandleMark allocation when +TraceHandleAllocation "\
2458266423Sjfv          "is used")                                                        \
2459266423Sjfv                                                                            \
2460266423Sjfv  develop(uintx, TotalHandleAllocationLimit, 1024,                          \
2461266423Sjfv          "Threshold for total handle allocation when "                     \
2462266423Sjfv          "+TraceHandleAllocation is used")                                 \
2463266423Sjfv                                                                            \
2464266423Sjfv  develop(intx, StackPrintLimit, 100,                                       \
2465266423Sjfv          "number of stack frames to print in VM-level stack dump")         \
2466266423Sjfv                                                                            \
2467266423Sjfv  notproduct(intx, MaxElementPrintSize, 256,                                \
2468266423Sjfv          "maximum number of elements to print")                            \
2469266423Sjfv                                                                            \
2470266423Sjfv  notproduct(intx, MaxSubklassPrintSize, 4,                                 \
2471266423Sjfv          "maximum number of subklasses to print when printing klass")      \
2472266423Sjfv                                                                            \
2473266423Sjfv  develop(intx, MaxInlineLevel, 9,                                          \
2474266423Sjfv          "maximum number of nested calls that are inlined")                \
2475266423Sjfv                                                                            \
2476266423Sjfv  develop(intx, MaxRecursiveInlineLevel, 1,                                 \
2477266423Sjfv          "maximum number of nested recursive calls that are inlined")      \
2478266423Sjfv                                                                            \
2479266423Sjfv  develop(intx, InlineSmallCode, 1000,                                      \
2480266423Sjfv          "Only inline already compiled methods if their code size is "     \
2481266423Sjfv          "less than this")                                                 \
2482266423Sjfv                                                                            \
2483266423Sjfv  product(intx, MaxInlineSize, 35,                                          \
2484266423Sjfv          "maximum bytecode size of a method to be inlined")                \
2485266423Sjfv                                                                            \
2486266423Sjfv  product_pd(intx, FreqInlineSize,                                          \
2487266423Sjfv          "maximum bytecode size of a frequent method to be inlined")       \
2488266423Sjfv                                                                            \
2489266423Sjfv  develop(intx, MaxTrivialSize, 6,                                          \
2490266423Sjfv          "maximum bytecode size of a trivial method to be inlined")        \
2491266423Sjfv                                                                            \
2492266423Sjfv  develop(intx, MinInliningThreshold, 250,                                  \
2493266423Sjfv          "min. invocation count a method needs to have to be inlined")     \
2494266423Sjfv                                                                            \
2495266423Sjfv  develop(intx, AlignEntryCode, 4,                                          \
2496266423Sjfv          "aligns entry code to specified value (in bytes)")                \
2497266423Sjfv                                                                            \
2498266423Sjfv  develop(intx, MethodHistogramCutoff, 100,                                 \
2499266423Sjfv          "cutoff value for method invoc. histogram (+CountCalls)")         \
2500266423Sjfv                                                                            \
2501266423Sjfv  develop(intx, ProfilerNumberOfInterpretedMethods, 25,                     \
2502266423Sjfv          "# of interpreted methods to show in profile")                    \
2503266423Sjfv                                                                            \
2504266423Sjfv  develop(intx, ProfilerNumberOfCompiledMethods, 25,                        \
2505266423Sjfv          "# of compiled methods to show in profile")                       \
2506266423Sjfv                                                                            \
2507266423Sjfv  develop(intx, ProfilerNumberOfStubMethods, 25,                            \
2508266423Sjfv          "# of stub methods to show in profile")                           \
2509266423Sjfv                                                                            \
2510266423Sjfv  develop(intx, ProfilerNumberOfRuntimeStubNodes, 25,                       \
2511266423Sjfv          "# of runtime stub nodes to show in profile")                     \
2512266423Sjfv                                                                            \
2513266423Sjfv  product(intx, ProfileIntervalsTicks, 100,                                 \
2514266423Sjfv          "# of ticks between printing of interval profile "                \
2515266423Sjfv          "(+ProfileIntervals)")                                            \
2516266423Sjfv                                                                            \
2517266423Sjfv  notproduct(intx, ScavengeALotInterval,     1,                             \
2518266423Sjfv          "Interval between which scavenge will occur with +ScavengeALot")  \
2519266423Sjfv                                                                            \
2520266423Sjfv  notproduct(intx, FullGCALotInterval,     1,                               \
2521266423Sjfv          "Interval between which full gc will occur with +FullGCALot")     \
2522266423Sjfv                                                                            \
2523266423Sjfv  notproduct(intx, FullGCALotStart,     0,                                  \
2524266423Sjfv          "For which invocation to start FullGCAlot")                       \
2525266423Sjfv                                                                            \
2526266423Sjfv  notproduct(intx, FullGCALotDummies,  32*K,                                \
2527266423Sjfv          "Dummy object allocated with +FullGCALot, forcing all objects "   \
2528266423Sjfv          "to move")                                                        \
2529266423Sjfv                                                                            \
2530266423Sjfv  develop(intx, DontYieldALotInterval,    10,                               \
2531266423Sjfv          "Interval between which yields will be dropped (milliseconds)")   \
2532266423Sjfv                                                                            \
2533266423Sjfv  develop(intx, MinSleepInterval,     1,                                    \
2534266423Sjfv          "Minimum sleep() interval (milliseconds) when "                   \
2535266423Sjfv          "ConvertSleepToYield is off (used for SOLARIS)")                  \
2536266423Sjfv                                                                            \
2537266423Sjfv  product(intx, EventLogLength,  2000,                                      \
2538266423Sjfv          "maximum nof events in event log")                                \
2539266423Sjfv                                                                            \
2540266423Sjfv  develop(intx, ProfilerPCTickThreshold,    15,                             \
2541266423Sjfv          "Number of ticks in a PC buckets to be a hotspot")                \
2542266423Sjfv                                                                            \
2543266423Sjfv  notproduct(intx, DeoptimizeALotInterval,     5,                           \
2544266423Sjfv          "Number of exits until DeoptimizeALot kicks in")                  \
2545266423Sjfv                                                                            \
2546266423Sjfv  notproduct(intx, ZombieALotInterval,     5,                               \
2547266423Sjfv          "Number of exits until ZombieALot kicks in")                      \
2548266423Sjfv                                                                            \
2549266423Sjfv  develop(bool, StressNonEntrant, false,                                    \
2550266423Sjfv          "Mark nmethods non-entrant at registration")                      \
2551266423Sjfv                                                                            \
2552266423Sjfv  diagnostic(intx, MallocVerifyInterval,     0,                             \
2553266423Sjfv          "if non-zero, verify C heap after every N calls to "              \
2554266423Sjfv          "malloc/realloc/free")                                            \
2555266423Sjfv                                                                            \
2556266423Sjfv  diagnostic(intx, MallocVerifyStart,     0,                                \
2557266423Sjfv          "if non-zero, start verifying C heap after Nth call to "          \
2558266423Sjfv          "malloc/realloc/free")                                            \
2559266423Sjfv                                                                            \
2560266423Sjfv  product(intx, TypeProfileWidth,      2,                                   \
2561266423Sjfv          "number of receiver types to record in call/cast profile")        \
2562266423Sjfv                                                                            \
2563266423Sjfv  develop(intx, BciProfileWidth,      2,                                    \
2564266423Sjfv          "number of return bci's to record in ret profile")                \
2565266423Sjfv                                                                            \
2566266423Sjfv  product(intx, PerMethodRecompilationCutoff, 400,                          \
2567266423Sjfv          "After recompiling N times, stay in the interpreter (-1=>'Inf')") \
2568266423Sjfv                                                                            \
2569266423Sjfv  product(intx, PerBytecodeRecompilationCutoff, 100,                        \
2570266423Sjfv          "Per-BCI limit on repeated recompilation (-1=>'Inf')")            \
2571266423Sjfv                                                                            \
2572266423Sjfv  product(intx, PerMethodTrapLimit,  100,                                   \
2573266423Sjfv          "Limit on traps (of one kind) in a method (includes inlines)")    \
2574266423Sjfv                                                                            \
2575266423Sjfv  product(intx, PerBytecodeTrapLimit,  4,                                   \
2576266423Sjfv          "Limit on traps (of one kind) at a particular BCI")               \
2577266423Sjfv                                                                            \
2578266423Sjfv  develop(intx, FreqCountInvocations,  1,                                   \
2579266423Sjfv          "Scaling factor for branch frequencies (deprecated)")             \
2580266423Sjfv                                                                            \
2581266423Sjfv  develop(intx, InlineFrequencyRatio,    20,                                \
2582266423Sjfv          "Ratio of call site execution to caller method invocation")       \
2583266423Sjfv                                                                            \
2584266423Sjfv  develop_pd(intx, InlineFrequencyCount,                                    \
2585266423Sjfv          "Count of call site execution necessary to trigger frequent "     \
2586266423Sjfv          "inlining")                                                       \
2587266423Sjfv                                                                            \
2588266423Sjfv  develop(intx, InlineThrowCount,    50,                                    \
2589266423Sjfv          "Force inlining of interpreted methods that throw this often")    \
2590266423Sjfv                                                                            \
2591266423Sjfv  develop(intx, InlineThrowMaxSize,   200,                                  \
2592266423Sjfv          "Force inlining of throwing methods smaller than this")           \
2593266423Sjfv                                                                            \
2594266423Sjfv  product(intx, AliasLevel,     3,                                          \
2595266423Sjfv          "0 for no aliasing, 1 for oop/field/static/array split, "         \
2596266423Sjfv          "2 for class split, 3 for unique instances")                      \
2597266423Sjfv                                                                            \
2598266423Sjfv  develop(bool, VerifyAliases, false,                                       \
2599266423Sjfv          "perform extra checks on the results of alias analysis")          \
2600266423Sjfv                                                                            \
2601266423Sjfv  develop(intx, ProfilerNodeSize,  1024,                                    \
2602266423Sjfv          "Size in K to allocate for the Profile Nodes of each thread")     \
2603266423Sjfv                                                                            \
2604266423Sjfv  develop(intx, V8AtomicOperationUnderLockSpinCount,    50,                 \
2605266423Sjfv          "Number of times to spin wait on a v8 atomic operation lock")     \
2606266423Sjfv                                                                            \
2607266423Sjfv  product(intx, ReadSpinIterations,   100,                                  \
2608266423Sjfv          "Number of read attempts before a yield (spin inner loop)")       \
2609266423Sjfv                                                                            \
2610266423Sjfv  product_pd(intx, PreInflateSpin,                                          \
2611266423Sjfv          "Number of times to spin wait before inflation")                  \
2612266423Sjfv                                                                            \
2613266423Sjfv  product(intx, PreBlockSpin,    10,                                        \
2614266423Sjfv          "Number of times to spin in an inflated lock before going to "    \
2615266423Sjfv          "an OS lock")                                                     \
2616266423Sjfv                                                                            \
2617266423Sjfv  /* gc parameters */                                                       \
2618266423Sjfv  product(uintx, MaxHeapSize, ScaleForWordSize(64*M),                       \
2619266423Sjfv          "Default maximum size for object heap (in bytes)")                \
2620266423Sjfv                                                                            \
2621266423Sjfv  product_pd(uintx, NewSize,                                                \
2622266423Sjfv          "Default size of new generation (in bytes)")                      \
2623266423Sjfv                                                                            \
2624266423Sjfv  product(uintx, MaxNewSize, max_uintx,                                     \
2625266423Sjfv          "Maximum size of new generation (in bytes)")                      \
2626266423Sjfv                                                                            \
2627266423Sjfv  product(uintx, PretenureSizeThreshold, 0,                                 \
2628266423Sjfv          "Max size in bytes of objects allocated in DefNew generation")    \
2629266423Sjfv                                                                            \
2630266423Sjfv  product_pd(uintx, TLABSize,                                               \
2631266423Sjfv          "Default (or starting) size of TLAB (in bytes)")                  \
2632266423Sjfv                                                                            \
2633266423Sjfv  product(uintx, MinTLABSize, 2*K,                                          \
2634266423Sjfv          "Minimum allowed TLAB size (in bytes)")                           \
2635266423Sjfv                                                                            \
2636266423Sjfv  product(uintx, TLABAllocationWeight, 35,                                  \
2637266423Sjfv          "Allocation averaging weight")                                    \
2638266423Sjfv                                                                            \
2639266423Sjfv  product(uintx, TLABWasteTargetPercent, 1,                                 \
2640266423Sjfv          "Percentage of Eden that can be wasted")                          \
2641266423Sjfv                                                                            \
2642266423Sjfv  product(uintx, TLABRefillWasteFraction,    64,                            \
2643266423Sjfv          "Max TLAB waste at a refill (internal fragmentation)")            \
2644266423Sjfv                                                                            \
2645266423Sjfv  product(uintx, TLABWasteIncrement,    4,                                  \
2646266423Sjfv          "Increment allowed waste at slow allocation")                     \
2647266423Sjfv                                                                            \
2648266423Sjfv  product_pd(intx, SurvivorRatio,                                           \
2649266423Sjfv          "Ratio of eden/survivor space size")                              \
2650266423Sjfv                                                                            \
2651266423Sjfv  product_pd(intx, NewRatio,                                                \
2652266423Sjfv          "Ratio of new/old generation sizes")                              \
2653266423Sjfv                                                                            \
2654266423Sjfv  product(uintx, MaxLiveObjectEvacuationRatio, 100,                         \
2655266423Sjfv          "Max percent of eden objects that will be live at scavenge")      \
2656266423Sjfv                                                                            \
2657266423Sjfv  product_pd(uintx, NewSizeThreadIncrease,                                  \
2658266423Sjfv          "Additional size added to desired new generation size per "       \
2659266423Sjfv          "non-daemon thread (in bytes)")                                   \
2660266423Sjfv                                                                            \
2661266423Sjfv  product(uintx, OldSize, ScaleForWordSize(4096*K),                         \
2662266423Sjfv          "Default size of tenured generation (in bytes)")                  \
2663266423Sjfv                                                                            \
2664266423Sjfv  product_pd(uintx, PermSize,                                               \
2665266423Sjfv          "Default size of permanent generation (in bytes)")                \
2666266423Sjfv                                                                            \
2667266423Sjfv  product_pd(uintx, MaxPermSize,                                            \
2668266423Sjfv          "Maximum size of permanent generation (in bytes)")                \
2669266423Sjfv                                                                            \
2670266423Sjfv  product(uintx, MinHeapFreeRatio,    40,                                   \
2671266423Sjfv          "Min percentage of heap free after GC to avoid expansion")        \
2672266423Sjfv                                                                            \
2673266423Sjfv  product(uintx, MaxHeapFreeRatio,    70,                                   \
2674266423Sjfv          "Max percentage of heap free after GC to avoid shrinking")        \
2675266423Sjfv                                                                            \
2676266423Sjfv  product(intx, SoftRefLRUPolicyMSPerMB, 1000,                              \
2677266423Sjfv          "Number of milliseconds per MB of free space in the heap")        \
2678266423Sjfv                                                                            \
2679266423Sjfv  product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K),                \
2680266423Sjfv          "Min change in heap space due to GC (in bytes)")                  \
2681266423Sjfv                                                                            \
2682266423Sjfv  product(uintx, MinPermHeapExpansion, ScaleForWordSize(256*K),             \
2683266423Sjfv          "Min expansion of permanent heap (in bytes)")                     \
2684266423Sjfv                                                                            \
2685266423Sjfv  product(uintx, MaxPermHeapExpansion, ScaleForWordSize(4*M),               \
2686266423Sjfv          "Max expansion of permanent heap without full GC (in bytes)")     \
2687266423Sjfv                                                                            \
2688266423Sjfv  product(intx, QueuedAllocationWarningCount, 0,                            \
2689266423Sjfv          "Number of times an allocation that queues behind a GC "          \
2690266423Sjfv          "will retry before printing a warning")                           \
2691266423Sjfv                                                                            \
2692266423Sjfv  diagnostic(uintx, VerifyGCStartAt,   0,                                   \
2693266423Sjfv          "GC invoke count where +VerifyBefore/AfterGC kicks in")           \
2694266423Sjfv                                                                            \
2695266423Sjfv  diagnostic(intx, VerifyGCLevel,     0,                                    \
2696266423Sjfv          "Generation level at which to start +VerifyBefore/AfterGC")       \
2697266423Sjfv                                                                            \
2698266423Sjfv  develop(uintx, ExitAfterGCNum,   0,                                       \
2699266423Sjfv          "If non-zero, exit after this GC.")                               \
2700266423Sjfv                                                                            \
2701266423Sjfv  product(intx, MaxTenuringThreshold,    15,                                \
2702266423Sjfv          "Maximum value for tenuring threshold")                           \
2703266423Sjfv                                                                            \
2704266423Sjfv  product(intx, InitialTenuringThreshold,     7,                            \
2705266423Sjfv          "Initial value for tenuring threshold")                           \
2706266423Sjfv                                                                            \
2707266423Sjfv  product(intx, TargetSurvivorRatio,    50,                                 \
2708266423Sjfv          "Desired percentage of survivor space used after scavenge")       \
2709266423Sjfv                                                                            \
2710266423Sjfv  product(intx, MarkSweepDeadRatio,     5,                                  \
2711266423Sjfv          "Percentage (0-100) of the old gen allowed as dead wood."         \
2712266423Sjfv          "Serial mark sweep treats this as both the min and max value."    \
2713266423Sjfv          "CMS uses this value only if it falls back to mark sweep."        \
2714266423Sjfv          "Par compact uses a variable scale based on the density of the"   \
2715266423Sjfv          "generation and treats this as the max value when the heap is"    \
2716266423Sjfv          "either completely full or completely empty.  Par compact also"   \
2717266423Sjfv          "has a smaller default value; see arguments.cpp.")                \
2718266423Sjfv                                                                            \
2719266423Sjfv  product(intx, PermMarkSweepDeadRatio,    20,                              \
2720266423Sjfv          "Percentage (0-100) of the perm gen allowed as dead wood."        \
2721266423Sjfv          "See MarkSweepDeadRatio for collector-specific comments.")        \
2722266423Sjfv                                                                            \
2723266423Sjfv  product(intx, MarkSweepAlwaysCompactCount,     4,                         \
2724266423Sjfv          "How often should we fully compact the heap (ignoring the dead "  \
2725266423Sjfv          "space parameters)")                                              \
2726266423Sjfv                                                                            \
2727266423Sjfv  product(intx, PrintCMSStatistics, 0,                                      \
2728266423Sjfv          "Statistics for CMS")                                             \
2729266423Sjfv                                                                            \
2730266423Sjfv  product(bool, PrintCMSInitiationStatistics, false,                        \
2731266423Sjfv          "Statistics for initiating a CMS collection")                     \
2732266423Sjfv                                                                            \
2733266423Sjfv  product(intx, PrintFLSStatistics, 0,                                      \
2734266423Sjfv          "Statistics for CMS' FreeListSpace")                              \
2735266423Sjfv                                                                            \
2736266423Sjfv  product(intx, PrintFLSCensus, 0,                                          \
2737266423Sjfv          "Census for CMS' FreeListSpace")                                  \
2738266423Sjfv                                                                            \
2739266423Sjfv  develop(uintx, GCExpandToAllocateDelayMillis, 0,                          \
2740266423Sjfv          "Delay in ms between expansion and allocation")                   \
2741266423Sjfv                                                                            \
2742266423Sjfv  product(intx, DeferThrSuspendLoopCount,     4000,                         \
2743266423Sjfv          "(Unstable) Number of times to iterate in safepoint loop "        \
2744266423Sjfv          " before blocking VM threads ")                                   \
2745266423Sjfv                                                                            \
2746266423Sjfv  product(intx, DeferPollingPageLoopCount,     -1,                          \
2747266423Sjfv          "(Unsafe,Unstable) Number of iterations in safepoint loop "       \
2748266423Sjfv          "before changing safepoint polling page to RO ")                  \
2749266423Sjfv                                                                            \
2750266423Sjfv  product(intx, SafepointSpinBeforeYield, 2000,  "(Unstable)")              \
2751266423Sjfv                                                                            \
2752266423Sjfv  product(bool, UseDepthFirstScavengeOrder, true,                           \
2753266423Sjfv          "true: the scavenge order will be depth-first, "                  \
2754266423Sjfv          "false: the scavenge order will be breadth-first")                \
2755266423Sjfv                                                                            \
2756266423Sjfv  product(bool, PSChunkLargeArrays, true,                                   \
2757266423Sjfv          "true: process large arrays in chunks")                           \
2758266423Sjfv                                                                            \
2759266423Sjfv  product(uintx, GCDrainStackTargetSize, 64,                                \
2760266423Sjfv          "how many entries we'll try to leave on the stack during "        \
2761266423Sjfv          "parallel GC")                                                    \
2762266423Sjfv                                                                            \
2763266423Sjfv  /* stack parameters */                                                    \
2764266423Sjfv  product_pd(intx, StackYellowPages,                                        \
2765266423Sjfv          "Number of yellow zone (recoverable overflows) pages")            \
2766266423Sjfv                                                                            \
2767266423Sjfv  product_pd(intx, StackRedPages,                                           \
2768266423Sjfv          "Number of red zone (unrecoverable overflows) pages")             \
2769266423Sjfv                                                                            \
2770266423Sjfv  product_pd(intx, StackShadowPages,                                        \
2771266423Sjfv          "Number of shadow zone (for overflow checking) pages"             \
2772266423Sjfv          " this should exceed the depth of the VM and native call stack")  \
2773266423Sjfv                                                                            \
2774266423Sjfv  product_pd(intx, ThreadStackSize,                                         \
2775266423Sjfv          "Thread Stack Size (in Kbytes)")                                  \
2776266423Sjfv                                                                            \
2777266423Sjfv  product_pd(intx, VMThreadStackSize,                                       \
2778266423Sjfv          "Non-Java Thread Stack Size (in Kbytes)")                         \
2779266423Sjfv                                                                            \
2780266423Sjfv  product_pd(intx, CompilerThreadStackSize,                                 \
2781266423Sjfv          "Compiler Thread Stack Size (in Kbytes)")                         \
2782266423Sjfv                                                                            \
2783266423Sjfv  develop_pd(uintx, JVMInvokeMethodSlack,                                   \
2784266423Sjfv          "Stack space (bytes) required for JVM_InvokeMethod to complete")  \
2785266423Sjfv                                                                            \
2786266423Sjfv  product(uintx, ThreadSafetyMargin, 50*M,                                  \
2787266423Sjfv          "Thread safety margin is used on fixed-stack LinuxThreads (on "   \
2788266423Sjfv          "Linux/x86 only) to prevent heap-stack collision. Set to 0 to "   \
2789266423Sjfv          "disable this feature")                                           \
2790266423Sjfv                                                                            \
2791266423Sjfv  /* code cache parameters */                                               \
2792266423Sjfv  develop(uintx, CodeCacheSegmentSize, 64,                                  \
2793266423Sjfv          "Code cache segment size (in bytes) - smallest unit of "          \
2794266423Sjfv          "allocation")                                                     \
2795266423Sjfv                                                                            \
2796266423Sjfv  develop_pd(intx, CodeEntryAlignment,                                      \
2797266423Sjfv          "Code entry alignment for generated code (in bytes)")             \
2798266423Sjfv                                                                            \
2799266423Sjfv  product_pd(uintx, InitialCodeCacheSize,                                   \
2800266423Sjfv          "Initial code cache size (in bytes)")                             \
2801266423Sjfv                                                                            \
2802266423Sjfv  product_pd(uintx, ReservedCodeCacheSize,                                  \
2803266423Sjfv          "Reserved code cache size (in bytes) - maximum code cache size")  \
2804266423Sjfv                                                                            \
2805266423Sjfv  product(uintx, CodeCacheMinimumFreeSpace, 500*K,                          \
2806266423Sjfv          "When less than X space left, we stop compiling.")                \
2807266423Sjfv                                                                            \
2808266423Sjfv  product_pd(uintx, CodeCacheExpansionSize,                                 \
2809266423Sjfv          "Code cache expansion size (in bytes)")                           \
2810266423Sjfv                                                                            \
2811266423Sjfv  develop_pd(uintx, CodeCacheMinBlockLength,                                \
2812266423Sjfv          "Minimum number of segments in a code cache block.")              \
2813266423Sjfv                                                                            \
2814266423Sjfv  notproduct(bool, ExitOnFullCodeCache, false,                              \
2815266423Sjfv          "Exit the VM if we fill the code cache.")                         \
2816266423Sjfv                                                                            \
2817266423Sjfv  /* interpreter debugging */                                               \
2818266423Sjfv  develop(intx, BinarySwitchThreshold, 5,                                   \
2819266423Sjfv          "Minimal number of lookupswitch entries for rewriting to binary " \
2820266423Sjfv          "switch")                                                         \
2821266423Sjfv                                                                            \
2822266423Sjfv  develop(intx, StopInterpreterAt, 0,                                       \
2823266423Sjfv          "Stops interpreter execution at specified bytecode number")       \
2824266423Sjfv                                                                            \
2825266423Sjfv  develop(intx, TraceBytecodesAt, 0,                                        \
2826266423Sjfv          "Traces bytecodes starting with specified bytecode number")       \
2827266423Sjfv                                                                            \
2828266423Sjfv  /* compiler interface */                                                  \
2829266423Sjfv  develop(intx, CIStart, 0,                                                 \
2830266423Sjfv          "the id of the first compilation to permit")                      \
2831266423Sjfv                                                                            \
2832266423Sjfv  develop(intx, CIStop,    -1,                                              \
2833266423Sjfv          "the id of the last compilation to permit")                       \
2834266423Sjfv                                                                            \
2835266423Sjfv  develop(intx, CIStartOSR,     0,                                          \
2836266423Sjfv          "the id of the first osr compilation to permit "                  \
2837266423Sjfv          "(CICountOSR must be on)")                                        \
2838266423Sjfv                                                                            \
2839266423Sjfv  develop(intx, CIStopOSR,    -1,                                           \
2840266423Sjfv          "the id of the last osr compilation to permit "                   \
2841266423Sjfv          "(CICountOSR must be on)")                                        \
2842266423Sjfv                                                                            \
2843266423Sjfv  develop(intx, CIBreakAtOSR,    -1,                                        \
2844266423Sjfv          "id of osr compilation to break at")                              \
2845266423Sjfv                                                                            \
2846266423Sjfv  develop(intx, CIBreakAt,    -1,                                           \
2847266423Sjfv          "id of compilation to break at")                                  \
2848266423Sjfv                                                                            \
2849266423Sjfv  product(ccstrlist, CompileOnly, "",                                       \
2850266423Sjfv          "List of methods (pkg/class.name) to restrict compilation to")    \
2851266423Sjfv                                                                            \
2852266423Sjfv  product(ccstr, CompileCommandFile, NULL,                                  \
2853266423Sjfv          "Read compiler commands from this file [.hotspot_compiler]")      \
2854266423Sjfv                                                                            \
2855266423Sjfv  product(ccstrlist, CompileCommand, "",                                    \
2856266423Sjfv          "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
2857266423Sjfv                                                                            \
2858266423Sjfv  product(bool, CICompilerCountPerCPU, false,                               \
2859266423Sjfv          "1 compiler thread for log(N CPUs)")                              \
2860266423Sjfv                                                                            \
2861266423Sjfv  develop(intx, CIFireOOMAt,    -1,                                         \
2862266423Sjfv          "Fire OutOfMemoryErrors throughout CI for testing the compiler "  \
2863266423Sjfv          "(non-negative value throws OOM after this many CI accesses "     \
2864266423Sjfv          "in each compile)")                                               \
2865266423Sjfv                                                                            \
2866266423Sjfv  develop(intx, CIFireOOMAtDelay, -1,                                       \
2867266423Sjfv          "Wait for this many CI accesses to occur in all compiles before " \
2868266423Sjfv          "beginning to throw OutOfMemoryErrors in each compile")           \
2869266423Sjfv                                                                            \
2870266423Sjfv  /* Priorities */                                                          \
2871266423Sjfv  product_pd(bool, UseThreadPriorities,  "Use native thread priorities")    \
2872266423Sjfv                                                                            \
2873266423Sjfv  product(intx, ThreadPriorityPolicy, 0,                                    \
2874266423Sjfv          "0 : Normal.                                                     "\
2875266423Sjfv          "    VM chooses priorities that are appropriate for normal       "\
2876266423Sjfv          "    applications. On Solaris NORM_PRIORITY and above are mapped "\
2877266423Sjfv          "    to normal native priority. Java priorities below NORM_PRIORITY"\
2878266423Sjfv          "    map to lower native priority values. On Windows applications"\
2879266423Sjfv          "    are allowed to use higher native priorities. However, with  "\
2880266423Sjfv          "    ThreadPriorityPolicy=0, VM will not use the highest possible"\
2881266423Sjfv          "    native priority, THREAD_PRIORITY_TIME_CRITICAL, as it may   "\
2882266423Sjfv          "    interfere with system threads. On Linux thread priorities   "\
2883266423Sjfv          "    are ignored because the OS does not support static priority "\
2884266423Sjfv          "    in SCHED_OTHER scheduling class which is the only choice for"\
2885266423Sjfv          "    non-root, non-realtime applications.                        "\
2886266423Sjfv          "1 : Aggressive.                                                 "\
2887266423Sjfv          "    Java thread priorities map over to the entire range of      "\
2888266423Sjfv          "    native thread priorities. Higher Java thread priorities map "\
2889266423Sjfv          "    to higher native thread priorities. This policy should be   "\
2890266423Sjfv          "    used with care, as sometimes it can cause performance       "\
2891266423Sjfv          "    degradation in the application and/or the entire system. On "\
2892266423Sjfv          "    Linux this policy requires root privilege.")                 \
2893266423Sjfv                                                                            \
2894266423Sjfv  product(bool, ThreadPriorityVerbose, false,                               \
2895266423Sjfv          "print priority changes")                                         \
2896266423Sjfv                                                                            \
2897266423Sjfv  product(intx, DefaultThreadPriority, -1,                                  \
2898266423Sjfv          "what native priority threads run at if not specified elsewhere (-1 means no change)") \
2899266423Sjfv                                                                            \
2900266423Sjfv  product(intx, CompilerThreadPriority, -1,                                 \
2901266423Sjfv          "what priority should compiler threads run at (-1 means no change)") \
2902266423Sjfv                                                                            \
2903266423Sjfv  product(intx, VMThreadPriority, -1,                                       \
2904266423Sjfv          "what priority should VM threads run at (-1 means no change)")    \
2905266423Sjfv                                                                            \
2906266423Sjfv  product(bool, CompilerThreadHintNoPreempt, true,                          \
2907266423Sjfv          "(Solaris only) Give compiler threads an extra quanta")           \
2908266423Sjfv                                                                            \
2909266423Sjfv  product(bool, VMThreadHintNoPreempt, false,                               \
2910266423Sjfv          "(Solaris only) Give VM thread an extra quanta")                  \
2911266423Sjfv                                                                            \
2912266423Sjfv  product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \
2913266423Sjfv  product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \
2914266423Sjfv  product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \
2915266423Sjfv  product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \
2916266423Sjfv  product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \
2917266423Sjfv  product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \
2918266423Sjfv  product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \
2919266423Sjfv  product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \
2920266423Sjfv  product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \
2921266423Sjfv  product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \
2922266423Sjfv                                                                            \
2923266423Sjfv  /* compiler debugging */                                                  \
2924266423Sjfv  notproduct(intx, CompileTheWorldStartAt,     1,                           \
2925266423Sjfv          "First class to consider when using +CompileTheWorld")            \
2926266423Sjfv                                                                            \
2927266423Sjfv  notproduct(intx, CompileTheWorldStopAt, max_jint,                         \
2928266423Sjfv          "Last class to consider when using +CompileTheWorld")             \
2929266423Sjfv                                                                            \
2930266423Sjfv  develop(intx, NewCodeParameter,      0,                                   \
2931266423Sjfv          "Testing Only: Create a dedicated integer parameter before "      \
2932266423Sjfv          "putback")                                                        \
2933266423Sjfv                                                                            \
2934266423Sjfv  /* new oopmap storage allocation */                                       \
2935266423Sjfv  develop(intx, MinOopMapAllocation,     8,                                 \
2936266423Sjfv          "Minimum number of OopMap entries in an OopMapSet")               \
2937266423Sjfv                                                                            \
2938266423Sjfv  /* Background Compilation */                                              \
2939266423Sjfv  develop(intx, LongCompileThreshold,     50,                               \
2940266423Sjfv          "Used with +TraceLongCompiles")                                   \
2941266423Sjfv                                                                            \
2942266423Sjfv  product(intx, StarvationMonitorInterval,    200,                          \
2943266423Sjfv          "Pause between each check in ms")                                 \
2944266423Sjfv                                                                            \
2945266423Sjfv  /* recompilation */                                                       \
2946266423Sjfv  product_pd(intx, CompileThreshold,                                        \
2947266423Sjfv          "number of interpreted method invocations before (re-)compiling") \
2948266423Sjfv                                                                            \
2949266423Sjfv  product_pd(intx, BackEdgeThreshold,                                       \
2950266423Sjfv          "Interpreter Back edge threshold at which an OSR compilation is invoked")\
2951266423Sjfv                                                                            \
2952266423Sjfv  product(intx, Tier1BytecodeLimit,      10,                                \
2953266423Sjfv          "Must have at least this many bytecodes before tier1"             \
2954266423Sjfv          "invocation counters are used")                                   \
2955266423Sjfv                                                                            \
2956266423Sjfv  product_pd(intx, Tier2CompileThreshold,                                   \
2957266423Sjfv          "threshold at which a tier 2 compilation is invoked")             \
2958266423Sjfv                                                                            \
2959266423Sjfv  product_pd(intx, Tier2BackEdgeThreshold,                                  \
2960266423Sjfv          "Back edge threshold at which a tier 2 compilation is invoked")   \
2961266423Sjfv                                                                            \
2962266423Sjfv  product_pd(intx, Tier3CompileThreshold,                                   \
2963266423Sjfv          "threshold at which a tier 3 compilation is invoked")             \
2964266423Sjfv                                                                            \
2965266423Sjfv  product_pd(intx, Tier3BackEdgeThreshold,                                  \
2966266423Sjfv          "Back edge threshold at which a tier 3 compilation is invoked")   \
2967266423Sjfv                                                                            \
2968266423Sjfv  product_pd(intx, Tier4CompileThreshold,                                   \
2969266423Sjfv          "threshold at which a tier 4 compilation is invoked")             \
2970266423Sjfv                                                                            \
2971266423Sjfv  product_pd(intx, Tier4BackEdgeThreshold,                                  \
2972266423Sjfv          "Back edge threshold at which a tier 4 compilation is invoked")   \
2973266423Sjfv                                                                            \
2974266423Sjfv  product_pd(bool, TieredCompilation,                                       \
2975266423Sjfv          "Enable two-tier compilation")                                    \
2976266423Sjfv                                                                            \
2977266423Sjfv  product(bool, StressTieredRuntime, false,                                 \
2978266423Sjfv          "Alternate client and server compiler on compile requests")       \
2979266423Sjfv                                                                            \
2980266423Sjfv  product_pd(intx, OnStackReplacePercentage,                                \
2981266423Sjfv          "NON_TIERED number of method invocations/branches (expressed as %"\
2982266423Sjfv          "of CompileThreshold) before (re-)compiling OSR code")            \
2983266423Sjfv                                                                            \
2984266423Sjfv  product(intx, InterpreterProfilePercentage, 33,                           \
2985266423Sjfv          "NON_TIERED number of method invocations/branches (expressed as %"\
2986266423Sjfv          "of CompileThreshold) before profiling in the interpreter")       \
2987266423Sjfv                                                                            \
2988266423Sjfv  develop(intx, MaxRecompilationSearchLength,    10,                        \
2989266423Sjfv          "max. # frames to inspect searching for recompilee")              \
2990266423Sjfv                                                                            \
2991266423Sjfv  develop(intx, MaxInterpretedSearchLength,     3,                          \
2992266423Sjfv          "max. # interp. frames to skip when searching for recompilee")    \
2993266423Sjfv                                                                            \
2994266423Sjfv  develop(intx, DesiredMethodLimit,  8000,                                  \
2995266423Sjfv          "desired max. method size (in bytecodes) after inlining")         \
2996266423Sjfv                                                                            \
2997266423Sjfv  develop(intx, HugeMethodLimit,  8000,                                     \
2998266423Sjfv          "don't compile methods larger than this if "                      \
2999266423Sjfv          "+DontCompileHugeMethods")                                        \
3000266423Sjfv                                                                            \
3001266423Sjfv  /* New JDK 1.4 reflection implementation */                               \
3002266423Sjfv                                                                            \
3003266423Sjfv  develop(bool, UseNewReflection, true,                                     \
3004266423Sjfv          "Temporary flag for transition to reflection based on dynamic "   \
3005266423Sjfv          "bytecode generation in 1.4; can no longer be turned off in 1.4 " \
3006266423Sjfv          "JDK, and is unneeded in 1.3 JDK, but marks most places VM "      \
3007266423Sjfv          "changes were needed")                                            \
3008266423Sjfv                                                                            \
3009266423Sjfv  develop(bool, VerifyReflectionBytecodes, false,                           \
3010266423Sjfv          "Force verification of 1.4 reflection bytecodes. Does not work "  \
3011266423Sjfv          "in situations like that described in 4486457 or for "            \
3012266423Sjfv          "constructors generated for serialization, so can not be enabled "\
3013266423Sjfv          "in product.")                                                    \
3014266423Sjfv                                                                            \
3015266423Sjfv  product(bool, ReflectionWrapResolutionErrors, true,                       \
3016266423Sjfv          "Temporary flag for transition to AbstractMethodError wrapped "   \
3017266423Sjfv          "in InvocationTargetException. See 6531596")                      \
3018266423Sjfv                                                                            \
3019266423Sjfv                                                                            \
3020266423Sjfv  develop(intx, FastSuperclassLimit, 8,                                     \
3021266423Sjfv          "Depth of hardwired instanceof accelerator array")                \
3022266423Sjfv                                                                            \
3023266423Sjfv  /* Properties for Java libraries  */                                      \
3024266423Sjfv                                                                            \
3025266423Sjfv  product(intx, MaxDirectMemorySize, -1,                                    \
3026266423Sjfv          "Maximum total size of NIO direct-buffer allocations")            \
3027266423Sjfv                                                                            \
3028266423Sjfv  /* temporary developer defined flags  */                                  \
3029266423Sjfv                                                                            \
3030266423Sjfv  diagnostic(bool, UseNewCode, false,                                       \
3031266423Sjfv          "Testing Only: Use the new version while testing")                \
3032266423Sjfv                                                                            \
3033266423Sjfv  diagnostic(bool, UseNewCode2, false,                                      \
3034266423Sjfv          "Testing Only: Use the new version while testing")                \
3035266423Sjfv                                                                            \
3036266423Sjfv  diagnostic(bool, UseNewCode3, false,                                      \
3037266423Sjfv          "Testing Only: Use the new version while testing")                \
3038266423Sjfv                                                                            \
3039266423Sjfv  /* flags for performance data collection */                               \
3040266423Sjfv                                                                            \
3041266423Sjfv  product(bool, UsePerfData, true,                                          \
3042266423Sjfv          "Flag to disable jvmstat instrumentation for performance testing" \
3043266423Sjfv          "and problem isolation purposes.")                                \
3044266423Sjfv                                                                            \
3045266423Sjfv  product(bool, PerfDataSaveToFile, false,                                  \
3046266423Sjfv          "Save PerfData memory to hsperfdata_<pid> file on exit")          \
3047266423Sjfv                                                                            \
3048266423Sjfv  product(ccstr, PerfDataSaveFile, NULL,                                    \
3049266423Sjfv          "Save PerfData memory to the specified absolute pathname,"        \
3050266423Sjfv           "%p in the file name if present will be replaced by pid")        \
3051266423Sjfv                                                                            \
3052266423Sjfv  product(intx, PerfDataSamplingInterval, 50 /*ms*/,                        \
3053266423Sjfv          "Data sampling interval in milliseconds")                         \
3054266423Sjfv                                                                            \
3055266423Sjfv  develop(bool, PerfTraceDataCreation, false,                               \
3056266423Sjfv          "Trace creation of Performance Data Entries")                     \
3057266423Sjfv                                                                            \
3058266423Sjfv  develop(bool, PerfTraceMemOps, false,                                     \
3059266423Sjfv          "Trace PerfMemory create/attach/detach calls")                    \
3060266423Sjfv                                                                            \
3061266423Sjfv  product(bool, PerfDisableSharedMem, false,                                \
3062266423Sjfv          "Store performance data in standard memory")                      \
3063266423Sjfv                                                                            \
3064266423Sjfv  product(intx, PerfDataMemorySize, 32*K,                                   \
3065266423Sjfv          "Size of performance data memory region. Will be rounded "        \
3066266423Sjfv          "up to a multiple of the native os page size.")                   \
3067266423Sjfv                                                                            \
3068266423Sjfv  product(intx, PerfMaxStringConstLength, 1024,                             \
3069266423Sjfv          "Maximum PerfStringConstant string length before truncation")     \
3070266423Sjfv                                                                            \
3071266423Sjfv  product(bool, PerfAllowAtExitRegistration, false,                         \
3072266423Sjfv          "Allow registration of atexit() methods")                         \
3073266423Sjfv                                                                            \
3074266423Sjfv  product(bool, PerfBypassFileSystemCheck, false,                           \
3075266423Sjfv          "Bypass Win32 file system criteria checks (Windows Only)")        \
3076266423Sjfv                                                                            \
3077266423Sjfv  product(intx, UnguardOnExecutionViolation, 0,                             \
3078266423Sjfv          "Unguard page and retry on no-execute fault (Win32 only)"         \
3079266423Sjfv          "0=off, 1=conservative, 2=aggressive")                            \
3080266423Sjfv                                                                            \
3081266423Sjfv  /* Serviceability Support */                                              \
3082266423Sjfv                                                                            \
3083266423Sjfv  product(bool, ManagementServer, false,                                    \
3084266423Sjfv          "Create JMX Management Server")                                   \
3085266423Sjfv                                                                            \
3086266423Sjfv  product(bool, DisableAttachMechanism, false,                              \
3087266423Sjfv         "Disable mechanism that allows tools to attach to this VM")        \
3088266423Sjfv                                                                            \
3089266423Sjfv  product(bool, StartAttachListener, false,                                 \
3090266423Sjfv          "Always start Attach Listener at VM startup")                     \
3091266423Sjfv                                                                            \
3092266423Sjfv  manageable(bool, PrintConcurrentLocks, false,                             \
3093266423Sjfv          "Print java.util.concurrent locks in thread dump")                \
3094266423Sjfv                                                                            \
3095266423Sjfv  /* Shared spaces */                                                       \
3096266423Sjfv                                                                            \
3097266423Sjfv  product(bool, UseSharedSpaces, true,                                      \
3098266423Sjfv          "Use shared spaces in the permanent generation")                  \
3099266423Sjfv                                                                            \
3100266423Sjfv  product(bool, RequireSharedSpaces, false,                                 \
3101266423Sjfv          "Require shared spaces in the permanent generation")              \
3102266423Sjfv                                                                            \
3103266423Sjfv  product(bool, ForceSharedSpaces, false,                                   \
3104266423Sjfv          "Require shared spaces in the permanent generation")              \
3105266423Sjfv                                                                            \
3106266423Sjfv  product(bool, DumpSharedSpaces, false,                                    \
3107266423Sjfv           "Special mode: JVM reads a class list, loads classes, builds "   \
3108266423Sjfv            "shared spaces, and dumps the shared spaces to a file to be "   \
3109266423Sjfv            "used in future JVM runs.")                                     \
3110266423Sjfv                                                                            \
3111266423Sjfv  product(bool, PrintSharedSpaces, false,                                   \
3112266423Sjfv          "Print usage of shared spaces")                                   \
3113266423Sjfv                                                                            \
3114266423Sjfv  product(uintx, SharedDummyBlockSize, 512*M,                               \
3115266423Sjfv          "Size of dummy block used to shift heap addresses (in bytes)")    \
3116266423Sjfv                                                                            \
3117266423Sjfv  product(uintx, SharedReadWriteSize,  12*M,                                \
3118266423Sjfv          "Size of read-write space in permanent generation (in bytes)")    \
3119266423Sjfv                                                                            \
3120266423Sjfv  product(uintx, SharedReadOnlySize,    8*M,                                \
3121266423Sjfv          "Size of read-only space in permanent generation (in bytes)")     \
3122266423Sjfv                                                                            \
3123266423Sjfv  product(uintx, SharedMiscDataSize,    4*M,                                \
3124266423Sjfv          "Size of the shared data area adjacent to the heap (in bytes)")   \
3125266423Sjfv                                                                            \
3126266423Sjfv  product(uintx, SharedMiscCodeSize,    4*M,                                \
3127266423Sjfv          "Size of the shared code area adjacent to the heap (in bytes)")   \
3128266423Sjfv                                                                            \
3129266423Sjfv  diagnostic(bool, SharedOptimizeColdStart, true,                           \
3130266423Sjfv          "At dump time, order shared objects to achieve better "           \
3131266423Sjfv          "cold startup time.")                                             \
3132266423Sjfv                                                                            \
3133266423Sjfv  develop(intx, SharedOptimizeColdStartPolicy, 2,                           \
3134266423Sjfv          "Reordering policy for SharedOptimizeColdStart "                  \
3135266423Sjfv          "0=favor classload-time locality, 1=balanced, "                   \
3136266423Sjfv          "2=favor runtime locality")                                       \
3137266423Sjfv                                                                            \
3138266423Sjfv  diagnostic(bool, SharedSkipVerify, false,                                 \
3139266423Sjfv          "Skip assert() and verify() which page-in unwanted shared "       \
3140266423Sjfv          "objects. ")                                                      \
3141266423Sjfv                                                                            \
3142266423Sjfv  product(bool, TaggedStackInterpreter, false,                              \
3143266423Sjfv          "Insert tags in interpreter execution stack for oopmap generaion")\
3144266423Sjfv                                                                            \
3145266423Sjfv  diagnostic(bool, PauseAtStartup,      false,                              \
3146266423Sjfv          "Causes the VM to pause at startup time and wait for the pause "  \
3147266423Sjfv          "file to be removed (default: ./vm.paused.<pid>)")                \
3148266423Sjfv                                                                            \
3149266423Sjfv  diagnostic(ccstr, PauseAtStartupFile, NULL,                               \
3150266423Sjfv          "The file to create and for whose removal to await when pausing " \
3151266423Sjfv          "at startup. (default: ./vm.paused.<pid>)")                       \
3152266423Sjfv                                                                            \
3153266423Sjfv  product(bool, ExtendedDTraceProbes,    false,                             \
3154266423Sjfv          "Enable performance-impacting dtrace probes")                     \
3155266423Sjfv                                                                            \
3156266423Sjfv  product(bool, DTraceMethodProbes, false,                                  \
3157266423Sjfv          "Enable dtrace probes for method-entry and method-exit")          \
3158266423Sjfv                                                                            \
3159266423Sjfv  product(bool, DTraceAllocProbes, false,                                   \
3160266423Sjfv          "Enable dtrace probes for object allocation")                     \
3161266423Sjfv                                                                            \
3162266423Sjfv  product(bool, DTraceMonitorProbes, false,                                 \
3163266423Sjfv          "Enable dtrace probes for monitor events")                        \
3164266423Sjfv                                                                            \
3165266423Sjfv  product(bool, RelaxAccessControlCheck, false,                             \
3166266423Sjfv          "Relax the access control checks in the verifier")                \
3167266423Sjfv                                                                            \
3168266423Sjfv  product(bool, UseVMInterruptibleIO, true,                                 \
3169266423Sjfv          "(Unstable, Solaris-specific) Thread interrupt before or with "   \
3170266423Sjfv          "EINTR for I/O operations results in OS_INTRPT")
3171266423Sjfv
3172266423Sjfv
3173266423Sjfv/*
3174266423Sjfv *  Macros for factoring of globals
3175266423Sjfv */
3176266423Sjfv
3177266423Sjfv// Interface macros
3178266423Sjfv#define DECLARE_PRODUCT_FLAG(type, name, value, doc)    extern "C" type name;
3179266423Sjfv#define DECLARE_PD_PRODUCT_FLAG(type, name, doc)        extern "C" type name;
3180266423Sjfv#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name;
3181266423Sjfv#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name;
3182266423Sjfv#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name;
3183266423Sjfv#ifdef PRODUCT
3184266423Sjfv#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)  const type name = value;
3185266423Sjfv#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)      const type name = pd_##name;
3186266423Sjfv#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)
3187266423Sjfv#else
3188266423Sjfv#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)  extern "C" type name;
3189266423Sjfv#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)      extern "C" type name;
3190266423Sjfv#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)  extern "C" type name;
3191266423Sjfv#endif
3192266423Sjfv
3193266423Sjfv// Implementation macros
3194266423Sjfv#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc)   type name = value;
3195266423Sjfv#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc)       type name = pd_##name;
3196266423Sjfv#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value;
3197266423Sjfv#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value;
3198266423Sjfv#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value;
3199266423Sjfv#ifdef PRODUCT
3200266423Sjfv#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) /* flag name is constant */
3201266423Sjfv#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)     /* flag name is constant */
3202266423Sjfv#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)
3203266423Sjfv#else
3204266423Sjfv#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value;
3205266423Sjfv#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)     type name = pd_##name;
3206266423Sjfv#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value;
3207266423Sjfv#endif
3208266423Sjfv
3209266423SjfvRUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG)
3210266423Sjfv
3211266423SjfvRUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)
3212266423Sjfv