Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/runtime/globals.hpp
32285 views
1
/*
2
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation.
8
*
9
* This code is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
* version 2 for more details (a copy is included in the LICENSE file that
13
* accompanied this code).
14
*
15
* You should have received a copy of the GNU General Public License version
16
* 2 along with this work; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*
23
*/
24
25
#ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
26
#define SHARE_VM_RUNTIME_GLOBALS_HPP
27
28
#include "utilities/debug.hpp"
29
30
// use this for flags that are true per default in the tiered build
31
// but false in non-tiered builds, and vice versa
32
#ifdef TIERED
33
#define trueInTiered true
34
#define falseInTiered false
35
#else
36
#define trueInTiered false
37
#define falseInTiered true
38
#endif
39
40
#ifdef TARGET_ARCH_x86
41
# include "globals_x86.hpp"
42
#endif
43
#ifdef TARGET_ARCH_aarch32
44
# include "globals_aarch32.hpp"
45
#endif
46
#ifdef TARGET_ARCH_aarch64
47
# include "globals_aarch64.hpp"
48
#endif
49
#ifdef TARGET_ARCH_sparc
50
# include "globals_sparc.hpp"
51
#endif
52
#ifdef TARGET_ARCH_zero
53
# include "globals_zero.hpp"
54
#endif
55
#ifdef TARGET_ARCH_arm
56
# include "globals_arm.hpp"
57
#endif
58
#ifdef TARGET_ARCH_ppc
59
# include "globals_ppc.hpp"
60
#endif
61
#ifdef TARGET_OS_FAMILY_linux
62
# include "globals_linux.hpp"
63
#endif
64
#ifdef TARGET_OS_FAMILY_solaris
65
# include "globals_solaris.hpp"
66
#endif
67
#ifdef TARGET_OS_FAMILY_windows
68
# include "globals_windows.hpp"
69
#endif
70
#ifdef TARGET_OS_FAMILY_aix
71
# include "globals_aix.hpp"
72
#endif
73
#ifdef TARGET_OS_FAMILY_bsd
74
# include "globals_bsd.hpp"
75
#endif
76
#ifdef TARGET_OS_ARCH_linux_x86
77
# include "globals_linux_x86.hpp"
78
#endif
79
#ifdef TARGET_OS_ARCH_linux_aarch64
80
# include "globals_linux_aarch64.hpp"
81
#endif
82
#ifdef TARGET_OS_ARCH_linux_sparc
83
# include "globals_linux_sparc.hpp"
84
#endif
85
#ifdef TARGET_OS_ARCH_linux_zero
86
# include "globals_linux_zero.hpp"
87
#endif
88
#ifdef TARGET_OS_ARCH_solaris_x86
89
# include "globals_solaris_x86.hpp"
90
#endif
91
#ifdef TARGET_OS_ARCH_solaris_sparc
92
# include "globals_solaris_sparc.hpp"
93
#endif
94
#ifdef TARGET_OS_ARCH_windows_x86
95
# include "globals_windows_x86.hpp"
96
#endif
97
#ifdef TARGET_OS_ARCH_linux_arm
98
# include "globals_linux_arm.hpp"
99
#endif
100
#ifdef TARGET_OS_ARCH_linux_ppc
101
# include "globals_linux_ppc.hpp"
102
#endif
103
#ifdef TARGET_OS_ARCH_aix_ppc
104
# include "globals_aix_ppc.hpp"
105
#endif
106
#ifdef TARGET_OS_ARCH_bsd_x86
107
# include "globals_bsd_x86.hpp"
108
#endif
109
#ifdef TARGET_OS_ARCH_bsd_aarch64
110
# include "globals_bsd_aarch64.hpp"
111
#endif
112
#ifdef TARGET_OS_ARCH_bsd_zero
113
# include "globals_bsd_zero.hpp"
114
#endif
115
#ifdef COMPILER1
116
#ifdef TARGET_ARCH_x86
117
# include "c1_globals_x86.hpp"
118
#endif
119
#ifdef TARGET_ARCH_aarch32
120
# include "c1_globals_aarch32.hpp"
121
#endif
122
#ifdef TARGET_ARCH_aarch64
123
# include "c1_globals_aarch64.hpp"
124
#endif
125
#ifdef TARGET_ARCH_sparc
126
# include "c1_globals_sparc.hpp"
127
#endif
128
#ifdef TARGET_ARCH_arm
129
# include "c1_globals_arm.hpp"
130
#endif
131
#ifdef TARGET_ARCH_ppc
132
# include "c1_globals_ppc.hpp"
133
#endif
134
#ifdef TARGET_OS_FAMILY_linux
135
# include "c1_globals_linux.hpp"
136
#endif
137
#ifdef TARGET_OS_FAMILY_solaris
138
# include "c1_globals_solaris.hpp"
139
#endif
140
#ifdef TARGET_OS_FAMILY_windows
141
# include "c1_globals_windows.hpp"
142
#endif
143
#ifdef TARGET_OS_FAMILY_aix
144
# include "c1_globals_aix.hpp"
145
#endif
146
#ifdef TARGET_OS_FAMILY_bsd
147
# include "c1_globals_bsd.hpp"
148
#endif
149
#endif
150
#ifdef COMPILER2
151
#ifdef TARGET_ARCH_x86
152
# include "c2_globals_x86.hpp"
153
#endif
154
#ifdef TARGET_ARCH_aarch32
155
# include "c2_globals_aarch32.hpp"
156
#endif
157
#ifdef TARGET_ARCH_aarch64
158
# include "c2_globals_aarch64.hpp"
159
#endif
160
#ifdef TARGET_ARCH_sparc
161
# include "c2_globals_sparc.hpp"
162
#endif
163
#ifdef TARGET_ARCH_arm
164
# include "c2_globals_arm.hpp"
165
#endif
166
#ifdef TARGET_ARCH_ppc
167
# include "c2_globals_ppc.hpp"
168
#endif
169
#ifdef TARGET_OS_FAMILY_linux
170
# include "c2_globals_linux.hpp"
171
#endif
172
#ifdef TARGET_OS_FAMILY_solaris
173
# include "c2_globals_solaris.hpp"
174
#endif
175
#ifdef TARGET_OS_FAMILY_windows
176
# include "c2_globals_windows.hpp"
177
#endif
178
#ifdef TARGET_OS_FAMILY_aix
179
# include "c2_globals_aix.hpp"
180
#endif
181
#ifdef TARGET_OS_FAMILY_bsd
182
# include "c2_globals_bsd.hpp"
183
#endif
184
#endif
185
#ifdef SHARK
186
#ifdef TARGET_ARCH_zero
187
# include "shark_globals_zero.hpp"
188
#endif
189
#endif
190
191
#if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK)
192
define_pd_global(bool, BackgroundCompilation, false);
193
define_pd_global(bool, UseTLAB, false);
194
define_pd_global(bool, CICompileOSR, false);
195
define_pd_global(bool, UseTypeProfile, false);
196
define_pd_global(bool, UseOnStackReplacement, false);
197
define_pd_global(bool, InlineIntrinsics, false);
198
define_pd_global(bool, PreferInterpreterNativeStubs, true);
199
define_pd_global(bool, ProfileInterpreter, false);
200
define_pd_global(bool, ProfileTraps, false);
201
define_pd_global(bool, TieredCompilation, false);
202
203
define_pd_global(intx, CompileThreshold, 0);
204
define_pd_global(intx, BackEdgeThreshold, 0);
205
206
define_pd_global(intx, OnStackReplacePercentage, 0);
207
define_pd_global(bool, ResizeTLAB, false);
208
define_pd_global(intx, FreqInlineSize, 0);
209
define_pd_global(intx, NewSizeThreadIncrease, 4*K);
210
define_pd_global(intx, InlineClassNatives, true);
211
define_pd_global(intx, InlineUnsafeOps, true);
212
define_pd_global(intx, InitialCodeCacheSize, 160*K);
213
define_pd_global(intx, ReservedCodeCacheSize, 32*M);
214
define_pd_global(intx, CodeCacheExpansionSize, 32*K);
215
define_pd_global(intx, CodeCacheMinBlockLength, 1);
216
define_pd_global(intx, CodeCacheMinimumUseSpace, 200*K);
217
define_pd_global(uintx,MetaspaceSize, ScaleForWordSize(4*M));
218
define_pd_global(bool, NeverActAsServerClassMachine, true);
219
define_pd_global(uint64_t,MaxRAM, 1ULL*G);
220
#define CI_COMPILER_COUNT 0
221
#else
222
223
#ifdef COMPILER2
224
#define CI_COMPILER_COUNT 2
225
#else
226
#define CI_COMPILER_COUNT 1
227
#endif // COMPILER2
228
229
#endif // no compilers
230
231
#if !INCLUDE_JFR
232
#define LogJFR false
233
#endif
234
235
// string type aliases used only in this file
236
typedef const char* ccstr;
237
typedef const char* ccstrlist; // represents string arguments which accumulate
238
239
struct Flag {
240
enum Flags {
241
// value origin
242
DEFAULT = 0,
243
COMMAND_LINE = 1,
244
ENVIRON_VAR = 2,
245
CONFIG_FILE = 3,
246
MANAGEMENT = 4,
247
ERGONOMIC = 5,
248
ATTACH_ON_DEMAND = 6,
249
INTERNAL = 7,
250
251
LAST_VALUE_ORIGIN = INTERNAL,
252
VALUE_ORIGIN_BITS = 4,
253
VALUE_ORIGIN_MASK = right_n_bits(VALUE_ORIGIN_BITS),
254
255
// flag kind
256
KIND_PRODUCT = 1 << 4,
257
KIND_MANAGEABLE = 1 << 5,
258
KIND_DIAGNOSTIC = 1 << 6,
259
KIND_EXPERIMENTAL = 1 << 7,
260
KIND_NOT_PRODUCT = 1 << 8,
261
KIND_DEVELOP = 1 << 9,
262
KIND_PLATFORM_DEPENDENT = 1 << 10,
263
KIND_READ_WRITE = 1 << 11,
264
KIND_C1 = 1 << 12,
265
KIND_C2 = 1 << 13,
266
KIND_ARCH = 1 << 14,
267
KIND_SHARK = 1 << 15,
268
KIND_LP64_PRODUCT = 1 << 16,
269
KIND_COMMERCIAL = 1 << 17,
270
271
KIND_MASK = ~VALUE_ORIGIN_MASK
272
};
273
274
const char* _type;
275
const char* _name;
276
void* _addr;
277
NOT_PRODUCT(const char* _doc;)
278
Flags _flags;
279
280
// points to all Flags static array
281
static Flag* flags;
282
283
// number of flags
284
static size_t numFlags;
285
286
static Flag* find_flag(const char* name, size_t length, bool allow_locked = false, bool return_flag = false);
287
static Flag* fuzzy_match(const char* name, size_t length, bool allow_locked = false);
288
289
void check_writable();
290
291
bool is_bool() const;
292
bool get_bool() const;
293
void set_bool(bool value);
294
295
bool is_intx() const;
296
intx get_intx() const;
297
void set_intx(intx value);
298
299
bool is_uintx() const;
300
uintx get_uintx() const;
301
void set_uintx(uintx value);
302
303
bool is_uint64_t() const;
304
uint64_t get_uint64_t() const;
305
void set_uint64_t(uint64_t value);
306
307
bool is_double() const;
308
double get_double() const;
309
void set_double(double value);
310
311
bool is_ccstr() const;
312
bool ccstr_accumulates() const;
313
ccstr get_ccstr() const;
314
void set_ccstr(ccstr value);
315
316
Flags get_origin();
317
void set_origin(Flags origin);
318
319
bool is_default();
320
bool is_ergonomic();
321
bool is_command_line();
322
323
bool is_product() const;
324
bool is_manageable() const;
325
bool is_diagnostic() const;
326
bool is_experimental() const;
327
bool is_notproduct() const;
328
bool is_develop() const;
329
bool is_read_write() const;
330
bool is_commercial() const;
331
332
bool is_constant_in_binary() const;
333
334
bool is_unlocker() const;
335
bool is_unlocked() const;
336
bool is_writeable() const;
337
bool is_external() const;
338
339
bool is_unlocker_ext() const;
340
bool is_unlocked_ext() const;
341
bool is_writeable_ext() const;
342
bool is_external_ext() const;
343
344
void unlock_diagnostic();
345
346
void get_locked_message(char*, int) const;
347
void get_locked_message_ext(char*, int) const;
348
349
void print_on(outputStream* st, bool withComments = false );
350
void print_kind(outputStream* st);
351
void print_as_flag(outputStream* st);
352
};
353
354
// debug flags control various aspects of the VM and are global accessible
355
356
// use FlagSetting to temporarily change some debug flag
357
// e.g. FlagSetting fs(DebugThisAndThat, true);
358
// restored to previous value upon leaving scope
359
class FlagSetting {
360
bool val;
361
bool* flag;
362
public:
363
FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; }
364
~FlagSetting() { *flag = val; }
365
};
366
367
368
class CounterSetting {
369
intx* counter;
370
public:
371
CounterSetting(intx* cnt) { counter = cnt; (*counter)++; }
372
~CounterSetting() { (*counter)--; }
373
};
374
375
376
class UIntFlagSetting {
377
uintx val;
378
uintx* flag;
379
public:
380
UIntFlagSetting(uintx& fl, uintx newValue) { flag = &fl; val = fl; fl = newValue; }
381
~UIntFlagSetting() { *flag = val; }
382
};
383
384
385
class DoubleFlagSetting {
386
double val;
387
double* flag;
388
public:
389
DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; }
390
~DoubleFlagSetting() { *flag = val; }
391
};
392
393
394
class CommandLineFlags {
395
public:
396
static bool boolAt(const char* name, size_t len, bool* value, bool allow_locked = false, bool return_flag = false);
397
static bool boolAt(const char* name, bool* value, bool allow_locked = false, bool return_flag = false) { return boolAt(name, strlen(name), value, allow_locked, return_flag); }
398
static bool boolAtPut(const char* name, size_t len, bool* value, Flag::Flags origin);
399
static bool boolAtPut(const char* name, bool* value, Flag::Flags origin) { return boolAtPut(name, strlen(name), value, origin); }
400
401
static bool intxAt(const char* name, size_t len, intx* value, bool allow_locked = false, bool return_flag = false);
402
static bool intxAt(const char* name, intx* value, bool allow_locked = false, bool return_flag = false) { return intxAt(name, strlen(name), value, allow_locked, return_flag); }
403
static bool intxAtPut(const char* name, size_t len, intx* value, Flag::Flags origin);
404
static bool intxAtPut(const char* name, intx* value, Flag::Flags origin) { return intxAtPut(name, strlen(name), value, origin); }
405
406
static bool uintxAt(const char* name, size_t len, uintx* value, bool allow_locked = false, bool return_flag = false);
407
static bool uintxAt(const char* name, uintx* value, bool allow_locked = false, bool return_flag = false) { return uintxAt(name, strlen(name), value, allow_locked, return_flag); }
408
static bool uintxAtPut(const char* name, size_t len, uintx* value, Flag::Flags origin);
409
static bool uintxAtPut(const char* name, uintx* value, Flag::Flags origin) { return uintxAtPut(name, strlen(name), value, origin); }
410
411
static bool uint64_tAt(const char* name, size_t len, uint64_t* value, bool allow_locked = false, bool return_flag = false);
412
static bool uint64_tAt(const char* name, uint64_t* value, bool allow_locked = false, bool return_flag = false) { return uint64_tAt(name, strlen(name), value, allow_locked, return_flag); }
413
static bool uint64_tAtPut(const char* name, size_t len, uint64_t* value, Flag::Flags origin);
414
static bool uint64_tAtPut(const char* name, uint64_t* value, Flag::Flags origin) { return uint64_tAtPut(name, strlen(name), value, origin); }
415
416
static bool doubleAt(const char* name, size_t len, double* value, bool allow_locked = false, bool return_flag = false);
417
static bool doubleAt(const char* name, double* value, bool allow_locked = false, bool return_flag = false) { return doubleAt(name, strlen(name), value, allow_locked, return_flag); }
418
static bool doubleAtPut(const char* name, size_t len, double* value, Flag::Flags origin);
419
static bool doubleAtPut(const char* name, double* value, Flag::Flags origin) { return doubleAtPut(name, strlen(name), value, origin); }
420
421
static bool ccstrAt(const char* name, size_t len, ccstr* value, bool allow_locked = false, bool return_flag = false);
422
static bool ccstrAt(const char* name, ccstr* value, bool allow_locked = false, bool return_flag = false) { return ccstrAt(name, strlen(name), value, allow_locked, return_flag); }
423
// Contract: Flag will make private copy of the incoming value.
424
// Outgoing value is always malloc-ed, and caller MUST call free.
425
static bool ccstrAtPut(const char* name, size_t len, ccstr* value, Flag::Flags origin);
426
static bool ccstrAtPut(const char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); }
427
428
// Returns false if name is not a command line flag.
429
static bool wasSetOnCmdline(const char* name, bool* value);
430
static void printSetFlags(outputStream* out);
431
432
static void printFlags(outputStream* out, bool withComments);
433
434
static void verify() PRODUCT_RETURN;
435
};
436
437
// use this for flags that are true by default in the debug version but
438
// false in the optimized version, and vice versa
439
#ifdef ASSERT
440
#define trueInDebug true
441
#define falseInDebug false
442
#else
443
#define trueInDebug false
444
#define falseInDebug true
445
#endif
446
447
// use this for flags that are true per default in the product build
448
// but false in development builds, and vice versa
449
#ifdef PRODUCT
450
#define trueInProduct true
451
#define falseInProduct false
452
#else
453
#define trueInProduct false
454
#define falseInProduct true
455
#endif
456
457
#ifdef JAVASE_EMBEDDED
458
#define falseInEmbedded false
459
#else
460
#define falseInEmbedded true
461
#endif
462
463
// develop flags are settable / visible only during development and are constant in the PRODUCT version
464
// product flags are always settable / visible
465
// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
466
467
// A flag must be declared with one of the following types:
468
// bool, intx, uintx, ccstr.
469
// The type "ccstr" is an alias for "const char*" and is used
470
// only in this file, because the macrology requires single-token type names.
471
472
// Note: Diagnostic options not meant for VM tuning or for product modes.
473
// They are to be used for VM quality assurance or field diagnosis
474
// of VM bugs. They are hidden so that users will not be encouraged to
475
// try them as if they were VM ordinary execution options. However, they
476
// are available in the product version of the VM. Under instruction
477
// from support engineers, VM customers can turn them on to collect
478
// diagnostic information about VM problems. To use a VM diagnostic
479
// option, you must first specify +UnlockDiagnosticVMOptions.
480
// (This master switch also affects the behavior of -Xprintflags.)
481
//
482
// experimental flags are in support of features that are not
483
// part of the officially supported product, but are available
484
// for experimenting with. They could, for example, be performance
485
// features that may not have undergone full or rigorous QA, but which may
486
// help performance in some cases and released for experimentation
487
// by the community of users and developers. This flag also allows one to
488
// be able to build a fully supported product that nonetheless also
489
// ships with some unsupported, lightly tested, experimental features.
490
// Like the UnlockDiagnosticVMOptions flag above, there is a corresponding
491
// UnlockExperimentalVMOptions flag, which allows the control and
492
// modification of the experimental flags.
493
//
494
// Nota bene: neither diagnostic nor experimental options should be used casually,
495
// and they are not supported on production loads, except under explicit
496
// direction from support engineers.
497
//
498
// manageable flags are writeable external product flags.
499
// They are dynamically writeable through the JDK management interface
500
// (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
501
// These flags are external exported interface (see CCC). The list of
502
// manageable flags can be queried programmatically through the management
503
// interface.
504
//
505
// A flag can be made as "manageable" only if
506
// - the flag is defined in a CCC as an external exported interface.
507
// - the VM implementation supports dynamic setting of the flag.
508
// This implies that the VM must *always* query the flag variable
509
// and not reuse state related to the flag state at any given time.
510
// - you want the flag to be queried programmatically by the customers.
511
//
512
// product_rw flags are writeable internal product flags.
513
// They are like "manageable" flags but for internal/private use.
514
// The list of product_rw flags are internal/private flags which
515
// may be changed/removed in a future release. It can be set
516
// through the management interface to get/set value
517
// when the name of flag is supplied.
518
//
519
// A flag can be made as "product_rw" only if
520
// - the VM implementation supports dynamic setting of the flag.
521
// This implies that the VM must *always* query the flag variable
522
// and not reuse state related to the flag state at any given time.
523
//
524
// Note that when there is a need to support develop flags to be writeable,
525
// it can be done in the same way as product_rw.
526
527
#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \
528
\
529
lp64_product(bool, UseCompressedOops, false, \
530
"Use 32-bit object references in 64-bit VM. " \
531
"lp64_product means flag is always constant in 32 bit VM") \
532
\
533
lp64_product(bool, UseCompressedClassPointers, false, \
534
"Use 32-bit class pointers in 64-bit VM. " \
535
"lp64_product means flag is always constant in 32 bit VM") \
536
\
537
notproduct(bool, CheckCompressedOops, true, \
538
"Generate checks in encoding/decoding code in debug VM") \
539
\
540
product_pd(uintx, HeapBaseMinAddress, \
541
"OS specific low limit for heap base address") \
542
\
543
diagnostic(bool, PrintCompressedOopsMode, false, \
544
"Print compressed oops base address and encoding mode") \
545
\
546
lp64_product(intx, ObjectAlignmentInBytes, 8, \
547
"Default object alignment in bytes, 8 is minimum") \
548
\
549
product(bool, AssumeMP, false, \
550
"Instruct the VM to assume multiple processors are available") \
551
\
552
/* UseMembar is theoretically a temp flag used for memory barrier \
553
* removal testing. It was supposed to be removed before FCS but has \
554
* been re-added (see 6401008) */ \
555
NOT_AARCH32( \
556
product_pd(bool, UseMembar, \
557
"(Unstable) Issues membars on thread state transitions")) \
558
\
559
develop(bool, CleanChunkPoolAsync, falseInEmbedded, \
560
"Clean the chunk pool asynchronously") \
561
\
562
/* Temporary: See 6948537 */ \
563
experimental(bool, UseMemSetInBOT, true, \
564
"(Unstable) uses memset in BOT updates in GC code") \
565
\
566
diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \
567
"Enable normal processing of flags relating to field diagnostics")\
568
\
569
experimental(bool, UnlockExperimentalVMOptions, false, \
570
"Enable normal processing of flags relating to experimental " \
571
"features") \
572
\
573
product(bool, JavaMonitorsInStackTrace, true, \
574
"Print information about Java monitor locks when the stacks are" \
575
"dumped") \
576
\
577
product_pd(bool, UseLargePages, \
578
"Use large page memory") \
579
\
580
product_pd(bool, UseLargePagesIndividualAllocation, \
581
"Allocate large pages individually for better affinity") \
582
\
583
develop(bool, LargePagesIndividualAllocationInjectError, false, \
584
"Fail large pages individual allocation") \
585
\
586
product(bool, UseLargePagesInMetaspace, false, \
587
"Use large page memory in metaspace. " \
588
"Only used if UseLargePages is enabled.") \
589
\
590
develop(bool, TracePageSizes, false, \
591
"Trace page size selection and usage") \
592
\
593
product(bool, UseNUMA, false, \
594
"Use NUMA if available") \
595
\
596
product(bool, UseNUMAInterleaving, false, \
597
"Interleave memory across NUMA nodes if available") \
598
\
599
product(uintx, NUMAInterleaveGranularity, 2*M, \
600
"Granularity to use for NUMA interleaving on Windows OS") \
601
\
602
product(bool, ForceNUMA, false, \
603
"Force NUMA optimizations on single-node/UMA systems") \
604
\
605
product(uintx, NUMAChunkResizeWeight, 20, \
606
"Percentage (0-100) used to weigh the current sample when " \
607
"computing exponentially decaying average for " \
608
"AdaptiveNUMAChunkSizing") \
609
\
610
product(uintx, NUMASpaceResizeRate, 1*G, \
611
"Do not reallocate more than this amount per collection") \
612
\
613
product(bool, UseAdaptiveNUMAChunkSizing, true, \
614
"Enable adaptive chunk sizing for NUMA") \
615
\
616
product(bool, NUMAStats, false, \
617
"Print NUMA stats in detailed heap information") \
618
\
619
product(uintx, NUMAPageScanRate, 256, \
620
"Maximum number of pages to include in the page scan procedure") \
621
\
622
product_pd(bool, NeedsDeoptSuspend, \
623
"True for register window machines (sparc/ia64)") \
624
\
625
product(intx, UseSSE, 99, \
626
"Highest supported SSE instructions set on x86/x64") \
627
\
628
product(bool, UseAES, false, \
629
"Control whether AES instructions can be used on x86/x64") \
630
\
631
product(bool, UseSHA, false, \
632
"Control whether SHA instructions can be used on SPARC") \
633
\
634
product(bool, UseGHASHIntrinsics, false, \
635
"Use intrinsics for GHASH versions of crypto") \
636
\
637
product(uintx, LargePageSizeInBytes, 0, \
638
"Large page size (0 to let VM choose the page size)") \
639
\
640
product(uintx, LargePageHeapSizeThreshold, 128*M, \
641
"Use large pages if maximum heap is at least this big") \
642
\
643
product(bool, ForceTimeHighResolution, false, \
644
"Using high time resolution (for Win32 only)") \
645
\
646
develop(bool, TraceItables, false, \
647
"Trace initialization and use of itables") \
648
\
649
develop(bool, TracePcPatching, false, \
650
"Trace usage of frame::patch_pc") \
651
\
652
develop(bool, TraceJumps, false, \
653
"Trace assembly jumps in thread ring buffer") \
654
\
655
develop(bool, TraceRelocator, false, \
656
"Trace the bytecode relocator") \
657
\
658
develop(bool, TraceLongCompiles, false, \
659
"Print out every time compilation is longer than " \
660
"a given threshold") \
661
\
662
develop(bool, SafepointALot, false, \
663
"Generate a lot of safepoints. This works with " \
664
"GuaranteedSafepointInterval") \
665
\
666
product_pd(bool, BackgroundCompilation, \
667
"A thread requesting compilation is not blocked during " \
668
"compilation") \
669
\
670
product(bool, PrintVMQWaitTime, false, \
671
"Print out the waiting time in VM operation queue") \
672
\
673
develop(bool, NoYieldsInMicrolock, false, \
674
"Disable yields in microlock") \
675
\
676
develop(bool, TraceOopMapGeneration, false, \
677
"Show OopMapGeneration") \
678
\
679
product(bool, MethodFlushing, true, \
680
"Reclamation of zombie and not-entrant methods") \
681
\
682
develop(bool, VerifyStack, false, \
683
"Verify stack of each thread when it is entering a runtime call") \
684
\
685
diagnostic(bool, ForceUnreachable, false, \
686
"Make all non code cache addresses to be unreachable by " \
687
"forcing use of 64bit literal fixups") \
688
\
689
notproduct(bool, StressDerivedPointers, false, \
690
"Force scavenge when a derived pointer is detected on stack " \
691
"after rtm call") \
692
\
693
develop(bool, TraceDerivedPointers, false, \
694
"Trace traversal of derived pointers on stack") \
695
\
696
notproduct(bool, TraceCodeBlobStacks, false, \
697
"Trace stack-walk of codeblobs") \
698
\
699
product(bool, PrintJNIResolving, false, \
700
"Used to implement -v:jni") \
701
\
702
notproduct(bool, PrintRewrites, false, \
703
"Print methods that are being rewritten") \
704
\
705
product(bool, UseInlineCaches, true, \
706
"Use Inline Caches for virtual calls ") \
707
\
708
develop(bool, InlineArrayCopy, true, \
709
"Inline arraycopy native that is known to be part of " \
710
"base library DLL") \
711
\
712
develop(bool, InlineObjectHash, true, \
713
"Inline Object::hashCode() native that is known to be part " \
714
"of base library DLL") \
715
\
716
develop(bool, InlineNatives, true, \
717
"Inline natives that are known to be part of base library DLL") \
718
\
719
develop(bool, InlineMathNatives, true, \
720
"Inline SinD, CosD, etc.") \
721
\
722
develop(bool, InlineClassNatives, true, \
723
"Inline Class.isInstance, etc") \
724
\
725
develop(bool, InlineThreadNatives, true, \
726
"Inline Thread.currentThread, etc") \
727
\
728
develop(bool, InlineUnsafeOps, true, \
729
"Inline memory ops (native methods) from sun.misc.Unsafe") \
730
\
731
product(bool, CriticalJNINatives, true, \
732
"Check for critical JNI entry points") \
733
\
734
product(bool, UseLegacyJNINameEscaping, false, \
735
"Use the original JNI name escaping scheme") \
736
\
737
notproduct(bool, StressCriticalJNINatives, false, \
738
"Exercise register saving code in critical natives") \
739
\
740
product(bool, UseSSE42Intrinsics, false, \
741
"SSE4.2 versions of intrinsics") \
742
\
743
product(bool, UseAESIntrinsics, false, \
744
"Use intrinsics for AES versions of crypto") \
745
\
746
product(bool, UseSHA1Intrinsics, false, \
747
"Use intrinsics for SHA-1 crypto hash function") \
748
\
749
product(bool, UseSHA256Intrinsics, false, \
750
"Use intrinsics for SHA-224 and SHA-256 crypto hash functions") \
751
\
752
product(bool, UseSHA512Intrinsics, false, \
753
"Use intrinsics for SHA-384 and SHA-512 crypto hash functions") \
754
\
755
product(bool, UseCRC32Intrinsics, false, \
756
"use intrinsics for java.util.zip.CRC32") \
757
\
758
develop(bool, TraceCallFixup, false, \
759
"Trace all call fixups") \
760
\
761
develop(bool, DeoptimizeALot, false, \
762
"Deoptimize at every exit from the runtime system") \
763
\
764
notproduct(ccstrlist, DeoptimizeOnlyAt, "", \
765
"A comma separated list of bcis to deoptimize at") \
766
\
767
product(bool, DeoptimizeRandom, false, \
768
"Deoptimize random frames on random exit from the runtime system")\
769
\
770
notproduct(bool, ZombieALot, false, \
771
"Create zombies (non-entrant) at exit from the runtime system") \
772
\
773
product(bool, UnlinkSymbolsALot, false, \
774
"Unlink unreferenced symbols from the symbol table at safepoints")\
775
\
776
notproduct(bool, WalkStackALot, false, \
777
"Trace stack (no print) at every exit from the runtime system") \
778
\
779
product(bool, Debugging, false, \
780
"Set when executing debug methods in debug.cpp " \
781
"(to prevent triggering assertions)") \
782
\
783
notproduct(bool, StrictSafepointChecks, trueInDebug, \
784
"Enable strict checks that safepoints cannot happen for threads " \
785
"that use No_Safepoint_Verifier") \
786
\
787
notproduct(bool, VerifyLastFrame, false, \
788
"Verify oops on last frame on entry to VM") \
789
\
790
develop(bool, TraceHandleAllocation, false, \
791
"Print out warnings when suspiciously many handles are allocated")\
792
\
793
product(bool, UseCompilerSafepoints, true, \
794
"Stop at safepoints in compiled code") \
795
\
796
product(bool, FailOverToOldVerifier, true, \
797
"Fail over to old verifier when split verifier fails") \
798
\
799
develop(bool, ShowSafepointMsgs, false, \
800
"Show message about safepoint synchronization") \
801
\
802
product(bool, SafepointTimeout, false, \
803
"Time out and warn or fail after SafepointTimeoutDelay " \
804
"milliseconds if failed to reach safepoint") \
805
\
806
diagnostic(bool, AbortVMOnSafepointTimeout, false, \
807
"Abort upon failure to reach safepoint (see SafepointTimeout)") \
808
\
809
/* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \
810
/* typically, at most a few retries are needed */ \
811
product(intx, SuspendRetryCount, 50, \
812
"Maximum retry count for an external suspend request") \
813
\
814
product(intx, SuspendRetryDelay, 5, \
815
"Milliseconds to delay per retry (* current_retry_count)") \
816
\
817
product(bool, AssertOnSuspendWaitFailure, false, \
818
"Assert/Guarantee on external suspend wait failure") \
819
\
820
product(bool, TraceSuspendWaitFailures, false, \
821
"Trace external suspend wait failures") \
822
\
823
product(bool, MaxFDLimit, true, \
824
"Bump the number of file descriptors to maximum in Solaris") \
825
\
826
diagnostic(bool, LogEvents, true, \
827
"Enable the various ring buffer event logs") \
828
\
829
diagnostic(uintx, LogEventsBufferEntries, 10, \
830
"Number of ring buffer event logs") \
831
\
832
product(bool, BytecodeVerificationRemote, true, \
833
"Enable the Java bytecode verifier for remote classes") \
834
\
835
product(bool, BytecodeVerificationLocal, false, \
836
"Enable the Java bytecode verifier for local classes") \
837
\
838
develop(bool, ForceFloatExceptions, trueInDebug, \
839
"Force exceptions on FP stack under/overflow") \
840
\
841
develop(bool, VerifyStackAtCalls, false, \
842
"Verify that the stack pointer is unchanged after calls") \
843
\
844
develop(bool, TraceJavaAssertions, false, \
845
"Trace java language assertions") \
846
\
847
notproduct(bool, CheckAssertionStatusDirectives, false, \
848
"Temporary - see javaClasses.cpp") \
849
\
850
notproduct(bool, PrintMallocFree, false, \
851
"Trace calls to C heap malloc/free allocation") \
852
\
853
product(bool, PrintOopAddress, false, \
854
"Always print the location of the oop") \
855
\
856
notproduct(bool, VerifyCodeCacheOften, false, \
857
"Verify compiled-code cache often") \
858
\
859
develop(bool, ZapDeadCompiledLocals, false, \
860
"Zap dead locals in compiler frames") \
861
\
862
notproduct(bool, ZapDeadLocalsOld, false, \
863
"Zap dead locals (old version, zaps all frames when " \
864
"entering the VM") \
865
\
866
notproduct(bool, CheckOopishValues, false, \
867
"Warn if value contains oop (requires ZapDeadLocals)") \
868
\
869
develop(bool, UseMallocOnly, false, \
870
"Use only malloc/free for allocation (no resource area/arena)") \
871
\
872
develop(bool, PrintMalloc, false, \
873
"Print all malloc/free calls") \
874
\
875
develop(bool, PrintMallocStatistics, false, \
876
"Print malloc/free statistics") \
877
\
878
develop(bool, ZapResourceArea, trueInDebug, \
879
"Zap freed resource/arena space with 0xABABABAB") \
880
\
881
notproduct(bool, ZapVMHandleArea, trueInDebug, \
882
"Zap freed VM handle space with 0xBCBCBCBC") \
883
\
884
develop(bool, ZapJNIHandleArea, trueInDebug, \
885
"Zap freed JNI handle space with 0xFEFEFEFE") \
886
\
887
notproduct(bool, ZapStackSegments, trueInDebug, \
888
"Zap allocated/freed stack segments with 0xFADFADED") \
889
\
890
develop(bool, ZapUnusedHeapArea, trueInDebug, \
891
"Zap unused heap space with 0xBAADBABE") \
892
\
893
develop(bool, TraceZapUnusedHeapArea, false, \
894
"Trace zapping of unused heap space") \
895
\
896
develop(bool, CheckZapUnusedHeapArea, false, \
897
"Check zapping of unused heap space") \
898
\
899
develop(bool, ZapFillerObjects, trueInDebug, \
900
"Zap filler objects with 0xDEAFBABE") \
901
\
902
develop(bool, PrintVMMessages, true, \
903
"Print VM messages on console") \
904
\
905
product(bool, PrintGCApplicationConcurrentTime, false, \
906
"Print the time the application has been running") \
907
\
908
product(bool, PrintGCApplicationStoppedTime, false, \
909
"Print the time the application has been stopped") \
910
\
911
diagnostic(bool, VerboseVerification, false, \
912
"Display detailed verification details") \
913
\
914
notproduct(uintx, ErrorHandlerTest, 0, \
915
"If > 0, provokes an error after VM initialization; the value " \
916
"determines which error to provoke. See test_error_handler() " \
917
"in debug.cpp.") \
918
\
919
develop(bool, Verbose, false, \
920
"Print additional debugging information from other modes") \
921
\
922
develop(bool, PrintMiscellaneous, false, \
923
"Print uncategorized debugging information (requires +Verbose)") \
924
\
925
develop(bool, WizardMode, false, \
926
"Print much more debugging information") \
927
\
928
product(bool, ShowMessageBoxOnError, false, \
929
"Keep process alive on VM fatal error") \
930
\
931
product(bool, CreateMinidumpOnCrash, false, \
932
"Create minidump on VM fatal error") \
933
\
934
product_pd(bool, UseOSErrorReporting, \
935
"Let VM fatal error propagate to the OS (ie. WER on Windows)") \
936
\
937
product(bool, SuppressFatalErrorMessage, false, \
938
"Report NO fatal error message (avoid deadlock)") \
939
\
940
product(ccstrlist, OnError, "", \
941
"Run user-defined commands on fatal error; see VMError.cpp " \
942
"for examples") \
943
\
944
product(ccstrlist, OnOutOfMemoryError, "", \
945
"Run user-defined commands on first java.lang.OutOfMemoryError") \
946
\
947
manageable(bool, HeapDumpBeforeFullGC, false, \
948
"Dump heap to file before any major stop-the-world GC") \
949
\
950
manageable(bool, HeapDumpAfterFullGC, false, \
951
"Dump heap to file after any major stop-the-world GC") \
952
\
953
manageable(bool, HeapDumpOnOutOfMemoryError, false, \
954
"Dump heap to file when java.lang.OutOfMemoryError is thrown") \
955
\
956
manageable(ccstr, HeapDumpPath, NULL, \
957
"When HeapDumpOnOutOfMemoryError is on, the path (filename or " \
958
"directory) of the dump file (defaults to java_pid<pid>.hprof " \
959
"in the working directory)") \
960
\
961
develop(uintx, SegmentedHeapDumpThreshold, 2*G, \
962
"Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \
963
"when the heap usage is larger than this") \
964
\
965
develop(uintx, HeapDumpSegmentSize, 1*G, \
966
"Approximate segment size when generating a segmented heap dump") \
967
\
968
develop(bool, BreakAtWarning, false, \
969
"Execute breakpoint upon encountering VM warning") \
970
\
971
develop(bool, TraceVMOperation, false, \
972
"Trace VM operations") \
973
\
974
develop(bool, UseFakeTimers, false, \
975
"Tell whether the VM should use system time or a fake timer") \
976
\
977
product(ccstr, NativeMemoryTracking, "off", \
978
"Native memory tracking options") \
979
\
980
diagnostic(bool, PrintNMTStatistics, false, \
981
"Print native memory tracking summary data if it is on") \
982
\
983
diagnostic(bool, LogCompilation, false, \
984
"Log compilation activity in detail to LogFile") \
985
\
986
product(bool, PrintCompilation, false, \
987
"Print compilations") \
988
\
989
diagnostic(bool, TraceNMethodInstalls, false, \
990
"Trace nmethod installation") \
991
\
992
diagnostic(intx, ScavengeRootsInCode, 2, \
993
"0: do not allow scavengable oops in the code cache; " \
994
"1: allow scavenging from the code cache; " \
995
"2: emit as many constants as the compiler can see") \
996
\
997
product(bool, AlwaysRestoreFPU, false, \
998
"Restore the FPU control word after every JNI call (expensive)") \
999
\
1000
diagnostic(bool, PrintCompilation2, false, \
1001
"Print additional statistics per compilation") \
1002
\
1003
diagnostic(bool, PrintAdapterHandlers, false, \
1004
"Print code generated for i2c/c2i adapters") \
1005
\
1006
diagnostic(bool, VerifyAdapterCalls, trueInDebug, \
1007
"Verify that i2c/c2i adapters are called properly") \
1008
\
1009
develop(bool, VerifyAdapterSharing, false, \
1010
"Verify that the code for shared adapters is the equivalent") \
1011
\
1012
diagnostic(bool, PrintAssembly, false, \
1013
"Print assembly code (using external disassembler.so)") \
1014
\
1015
diagnostic(ccstr, PrintAssemblyOptions, NULL, \
1016
"Print options string passed to disassembler.so") \
1017
\
1018
diagnostic(bool, PrintNMethods, false, \
1019
"Print assembly code for nmethods when generated") \
1020
\
1021
diagnostic(bool, PrintNativeNMethods, false, \
1022
"Print assembly code for native nmethods when generated") \
1023
\
1024
develop(bool, PrintDebugInfo, false, \
1025
"Print debug information for all nmethods when generated") \
1026
\
1027
develop(bool, PrintRelocations, false, \
1028
"Print relocation information for all nmethods when generated") \
1029
\
1030
develop(bool, PrintDependencies, false, \
1031
"Print dependency information for all nmethods when generated") \
1032
\
1033
develop(bool, PrintExceptionHandlers, false, \
1034
"Print exception handler tables for all nmethods when generated") \
1035
\
1036
develop(bool, StressCompiledExceptionHandlers, false, \
1037
"Exercise compiled exception handlers") \
1038
\
1039
develop(bool, InterceptOSException, false, \
1040
"Start debugger when an implicit OS (e.g. NULL) " \
1041
"exception happens") \
1042
\
1043
product(bool, PrintCodeCache, false, \
1044
"Print the code cache memory usage when exiting") \
1045
\
1046
develop(bool, PrintCodeCache2, false, \
1047
"Print detailed usage information on the code cache when exiting")\
1048
\
1049
product(bool, PrintCodeCacheOnCompilation, false, \
1050
"Print the code cache memory usage each time a method is " \
1051
"compiled") \
1052
\
1053
diagnostic(bool, PrintStubCode, false, \
1054
"Print generated stub code") \
1055
\
1056
product(bool, StackTraceInThrowable, true, \
1057
"Collect backtrace in throwable when exception happens") \
1058
\
1059
product(bool, OmitStackTraceInFastThrow, true, \
1060
"Omit backtraces for some 'hot' exceptions in optimized code") \
1061
\
1062
product(bool, ProfilerPrintByteCodeStatistics, false, \
1063
"Print bytecode statistics when dumping profiler output") \
1064
\
1065
product(bool, ProfilerRecordPC, false, \
1066
"Collect ticks for each 16 byte interval of compiled code") \
1067
\
1068
product(bool, ProfileVM, false, \
1069
"Profile ticks that fall within VM (either in the VM Thread " \
1070
"or VM code called through stubs)") \
1071
\
1072
product(bool, ProfileIntervals, false, \
1073
"Print profiles for each interval (see ProfileIntervalsTicks)") \
1074
\
1075
notproduct(bool, ProfilerCheckIntervals, false, \
1076
"Collect and print information on spacing of profiler ticks") \
1077
\
1078
develop(bool, PrintJVMWarnings, false, \
1079
"Print warnings for unimplemented JVM functions") \
1080
\
1081
product(bool, PrintWarnings, true, \
1082
"Print JVM warnings to output stream") \
1083
\
1084
notproduct(uintx, WarnOnStalledSpinLock, 0, \
1085
"Print warnings for stalled SpinLocks") \
1086
\
1087
product(bool, RegisterFinalizersAtInit, true, \
1088
"Register finalizable objects at end of Object.<init> or " \
1089
"after allocation") \
1090
\
1091
develop(bool, RegisterReferences, true, \
1092
"Tell whether the VM should register soft/weak/final/phantom " \
1093
"references") \
1094
\
1095
develop(bool, IgnoreRewrites, false, \
1096
"Suppress rewrites of bytecodes in the oopmap generator. " \
1097
"This is unsafe!") \
1098
\
1099
develop(bool, PrintCodeCacheExtension, false, \
1100
"Print extension of code cache") \
1101
\
1102
develop(bool, UsePrivilegedStack, true, \
1103
"Enable the security JVM functions") \
1104
\
1105
develop(bool, ProtectionDomainVerification, true, \
1106
"Verify protection domain before resolution in system dictionary")\
1107
\
1108
product(bool, ClassUnloading, true, \
1109
"Do unloading of classes") \
1110
\
1111
product(bool, ClassUnloadingWithConcurrentMark, true, \
1112
"Do unloading of classes with a concurrent marking cycle") \
1113
\
1114
develop(bool, DisableStartThread, false, \
1115
"Disable starting of additional Java threads " \
1116
"(for debugging only)") \
1117
\
1118
develop(bool, MemProfiling, false, \
1119
"Write memory usage profiling to log file") \
1120
\
1121
notproduct(bool, PrintSystemDictionaryAtExit, false, \
1122
"Print the system dictionary at exit") \
1123
\
1124
experimental(intx, PredictedLoadedClassCount, 0, \
1125
"Experimental: Tune loaded class cache starting size") \
1126
\
1127
diagnostic(bool, UnsyncloadClass, false, \
1128
"Unstable: VM calls loadClass unsynchronized. Custom " \
1129
"class loader must call VM synchronized for findClass " \
1130
"and defineClass.") \
1131
\
1132
product(bool, AlwaysLockClassLoader, false, \
1133
"Require the VM to acquire the class loader lock before calling " \
1134
"loadClass() even for class loaders registering " \
1135
"as parallel capable") \
1136
\
1137
product(bool, AllowParallelDefineClass, false, \
1138
"Allow parallel defineClass requests for class loaders " \
1139
"registering as parallel capable") \
1140
\
1141
product(bool, MustCallLoadClassInternal, false, \
1142
"Call loadClassInternal() rather than loadClass()") \
1143
\
1144
product_pd(bool, DontYieldALot, \
1145
"Throw away obvious excess yield calls (for Solaris only)") \
1146
\
1147
product_pd(bool, ConvertSleepToYield, \
1148
"Convert sleep(0) to thread yield " \
1149
"(may be off for Solaris to improve GUI)") \
1150
\
1151
product(bool, ConvertYieldToSleep, false, \
1152
"Convert yield to a sleep of MinSleepInterval to simulate Win32 " \
1153
"behavior (Solaris only)") \
1154
\
1155
product(bool, UseBoundThreads, true, \
1156
"Bind user level threads to kernel threads (for Solaris only)") \
1157
\
1158
develop(bool, UseDetachedThreads, true, \
1159
"Use detached threads that are recycled upon termination " \
1160
"(for Solaris only)") \
1161
\
1162
experimental(bool, DisablePrimordialThreadGuardPages, false, \
1163
"Disable the use of stack guard pages if the JVM is loaded " \
1164
"on the primordial process thread") \
1165
\
1166
product(bool, UseLWPSynchronization, true, \
1167
"Use LWP-based instead of libthread-based synchronization " \
1168
"(SPARC only)") \
1169
\
1170
product(ccstr, SyncKnobs, NULL, \
1171
"(Unstable) Various monitor synchronization tunables") \
1172
\
1173
product(intx, EmitSync, 0, \
1174
"(Unsafe, Unstable) " \
1175
"Control emission of inline sync fast-path code") \
1176
\
1177
product(intx, MonitorBound, 0, "Bound Monitor population") \
1178
\
1179
product(bool, MonitorInUseLists, false, "Track Monitors for Deflation") \
1180
\
1181
product(intx, SyncFlags, 0, "(Unsafe, Unstable) Experimental Sync flags") \
1182
\
1183
product(intx, SyncVerbose, 0, "(Unstable)") \
1184
\
1185
product(intx, ClearFPUAtPark, 0, "(Unsafe, Unstable)") \
1186
\
1187
product(intx, hashCode, 5, \
1188
"(Unstable) select hashCode generation algorithm") \
1189
\
1190
product(intx, WorkAroundNPTLTimedWaitHang, 1, \
1191
"(Unstable, Linux-specific) " \
1192
"avoid NPTL-FUTEX hang pthread_cond_timedwait") \
1193
\
1194
product(bool, FilterSpuriousWakeups, true, \
1195
"Prevent spurious or premature wakeups from object.wait " \
1196
"(Solaris only)") \
1197
\
1198
experimental(intx, NativeMonitorTimeout, -1, "(Unstable)") \
1199
\
1200
experimental(intx, NativeMonitorFlags, 0, "(Unstable)") \
1201
\
1202
experimental(intx, NativeMonitorSpinLimit, 20, "(Unstable)") \
1203
\
1204
develop(bool, UsePthreads, false, \
1205
"Use pthread-based instead of libthread-based synchronization " \
1206
"(SPARC only)") \
1207
\
1208
product(bool, AdjustConcurrency, false, \
1209
"Call thr_setconcurrency at thread creation time to avoid " \
1210
"LWP starvation on MP systems (for Solaris Only)") \
1211
\
1212
product(bool, ReduceSignalUsage, false, \
1213
"Reduce the use of OS signals in Java and/or the VM") \
1214
\
1215
develop(bool, LoadLineNumberTables, true, \
1216
"Tell whether the class file parser loads line number tables") \
1217
\
1218
develop(bool, LoadLocalVariableTables, true, \
1219
"Tell whether the class file parser loads local variable tables") \
1220
\
1221
develop(bool, LoadLocalVariableTypeTables, true, \
1222
"Tell whether the class file parser loads local variable type" \
1223
"tables") \
1224
\
1225
product(bool, AllowUserSignalHandlers, false, \
1226
"Do not complain if the application installs signal handlers " \
1227
"(Solaris & Linux only)") \
1228
\
1229
product(bool, UseSignalChaining, true, \
1230
"Use signal-chaining to invoke signal handlers installed " \
1231
"by the application (Solaris & Linux only)") \
1232
\
1233
product(bool, UseAltSigs, false, \
1234
"Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM " \
1235
"internal signals (Solaris only)") \
1236
\
1237
product(bool, AllowJNIEnvProxy, false, \
1238
"Allow JNIEnv proxies for jdbx") \
1239
\
1240
product(bool, JNIDetachReleasesMonitors, true, \
1241
"JNI DetachCurrentThread releases monitors owned by thread") \
1242
\
1243
product(bool, RestoreMXCSROnJNICalls, false, \
1244
"Restore MXCSR when returning from JNI calls") \
1245
\
1246
product(bool, CheckJNICalls, false, \
1247
"Verify all arguments to JNI calls") \
1248
\
1249
product(bool, CheckEndorsedAndExtDirs, false, \
1250
"Verify the endorsed and extension directories are not used") \
1251
\
1252
product(bool, UseFastJNIAccessors, true, \
1253
"Use optimized versions of Get<Primitive>Field") \
1254
\
1255
product(intx, MaxJNILocalCapacity, 65536, \
1256
"Maximum allowable local JNI handle capacity to " \
1257
"EnsureLocalCapacity() and PushLocalFrame(), " \
1258
"where <= 0 is unlimited, default: 65536") \
1259
\
1260
product(bool, EagerXrunInit, false, \
1261
"Eagerly initialize -Xrun libraries; allows startup profiling, " \
1262
"but not all -Xrun libraries may support the state of the VM " \
1263
"at this time") \
1264
\
1265
product(bool, PreserveAllAnnotations, false, \
1266
"Preserve RuntimeInvisibleAnnotations as well " \
1267
"as RuntimeVisibleAnnotations") \
1268
\
1269
develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \
1270
"Number of OutOfMemoryErrors preallocated with backtrace") \
1271
\
1272
product(bool, LazyBootClassLoader, true, \
1273
"Enable/disable lazy opening of boot class path entries") \
1274
\
1275
product(bool, UseXMMForArrayCopy, false, \
1276
"Use SSE2 MOVQ instruction for Arraycopy") \
1277
\
1278
product(intx, FieldsAllocationStyle, 1, \
1279
"0 - type based with oops first, 1 - with oops last, " \
1280
"2 - oops in super and sub classes are together") \
1281
\
1282
product(bool, CompactFields, true, \
1283
"Allocate nonstatic fields in gaps between previous fields") \
1284
\
1285
notproduct(bool, PrintFieldLayout, false, \
1286
"Print field layout for each class") \
1287
\
1288
product(intx, ContendedPaddingWidth, 128, \
1289
"How many bytes to pad the fields/classes marked @Contended with")\
1290
\
1291
product(bool, EnableContended, true, \
1292
"Enable @Contended annotation support") \
1293
\
1294
product(bool, RestrictContended, true, \
1295
"Restrict @Contended to trusted classes") \
1296
\
1297
product(bool, UseBiasedLocking, true, \
1298
"Enable biased locking in JVM") \
1299
\
1300
product(intx, BiasedLockingStartupDelay, 4000, \
1301
"Number of milliseconds to wait before enabling biased locking") \
1302
\
1303
diagnostic(bool, PrintBiasedLockingStatistics, false, \
1304
"Print statistics of biased locking in JVM") \
1305
\
1306
product(intx, BiasedLockingBulkRebiasThreshold, 20, \
1307
"Threshold of number of revocations per type to try to " \
1308
"rebias all objects in the heap of that type") \
1309
\
1310
product(intx, BiasedLockingBulkRevokeThreshold, 40, \
1311
"Threshold of number of revocations per type to permanently " \
1312
"revoke biases of all objects in the heap of that type") \
1313
\
1314
product(intx, BiasedLockingDecayTime, 25000, \
1315
"Decay time (in milliseconds) to re-enable bulk rebiasing of a " \
1316
"type after previous bulk rebias") \
1317
\
1318
product(bool, ExitOnOutOfMemoryError, false, \
1319
"JVM exits on the first occurrence of an out-of-memory error") \
1320
\
1321
product(bool, CrashOnOutOfMemoryError, false, \
1322
"JVM aborts, producing an error log and core/mini dump, on the " \
1323
"first occurrence of an out-of-memory error") \
1324
\
1325
/* tracing */ \
1326
\
1327
notproduct(bool, TraceRuntimeCalls, false, \
1328
"Trace run-time calls") \
1329
\
1330
develop(bool, TraceJNICalls, false, \
1331
"Trace JNI calls") \
1332
\
1333
develop(bool, StressRewriter, false, \
1334
"Stress linktime bytecode rewriting") \
1335
\
1336
notproduct(bool, TraceJVMCalls, false, \
1337
"Trace JVM calls") \
1338
\
1339
product(ccstr, TraceJVMTI, NULL, \
1340
"Trace flags for JVMTI functions and events") \
1341
\
1342
/* This option can change an EMCP method into an obsolete method. */ \
1343
/* This can affect tests that except specific methods to be EMCP. */ \
1344
/* This option should be used with caution. */ \
1345
product(bool, StressLdcRewrite, false, \
1346
"Force ldc -> ldc_w rewrite during RedefineClasses") \
1347
\
1348
product(intx, TraceRedefineClasses, 0, \
1349
"Trace level for JVMTI RedefineClasses") \
1350
\
1351
develop(bool, StressMethodComparator, false, \
1352
"Run the MethodComparator on all loaded methods") \
1353
\
1354
/* change to false by default sometime after Mustang */ \
1355
product(bool, VerifyMergedCPBytecodes, true, \
1356
"Verify bytecodes after RedefineClasses constant pool merging") \
1357
\
1358
develop(bool, TraceJNIHandleAllocation, false, \
1359
"Trace allocation/deallocation of JNI handle blocks") \
1360
\
1361
develop(bool, TraceThreadEvents, false, \
1362
"Trace all thread events") \
1363
\
1364
develop(bool, TraceBytecodes, false, \
1365
"Trace bytecode execution") \
1366
\
1367
develop(bool, TraceClassInitialization, false, \
1368
"Trace class initialization") \
1369
\
1370
product(bool, TraceExceptions, false, \
1371
"Trace exceptions") \
1372
\
1373
develop(bool, TraceICs, false, \
1374
"Trace inline cache changes") \
1375
\
1376
notproduct(bool, TraceInvocationCounterOverflow, false, \
1377
"Trace method invocation counter overflow") \
1378
\
1379
develop(bool, TraceInlineCacheClearing, false, \
1380
"Trace clearing of inline caches in nmethods") \
1381
\
1382
develop(bool, TraceDependencies, false, \
1383
"Trace dependencies") \
1384
\
1385
develop(bool, VerifyDependencies, trueInDebug, \
1386
"Exercise and verify the compilation dependency mechanism") \
1387
\
1388
develop(bool, TraceNewOopMapGeneration, false, \
1389
"Trace OopMapGeneration") \
1390
\
1391
develop(bool, TraceNewOopMapGenerationDetailed, false, \
1392
"Trace OopMapGeneration: print detailed cell states") \
1393
\
1394
develop(bool, TimeOopMap, false, \
1395
"Time calls to GenerateOopMap::compute_map() in sum") \
1396
\
1397
develop(bool, TimeOopMap2, false, \
1398
"Time calls to GenerateOopMap::compute_map() individually") \
1399
\
1400
develop(bool, TraceMonitorMismatch, false, \
1401
"Trace monitor matching failures during OopMapGeneration") \
1402
\
1403
develop(bool, TraceOopMapRewrites, false, \
1404
"Trace rewriting of method oops during oop map generation") \
1405
\
1406
develop(bool, TraceSafepoint, false, \
1407
"Trace safepoint operations") \
1408
\
1409
develop(bool, TraceICBuffer, false, \
1410
"Trace usage of IC buffer") \
1411
\
1412
develop(bool, TraceCompiledIC, false, \
1413
"Trace changes of compiled IC") \
1414
\
1415
notproduct(bool, TraceZapDeadLocals, false, \
1416
"Trace zapping dead locals") \
1417
\
1418
develop(bool, TraceStartupTime, false, \
1419
"Trace setup time") \
1420
\
1421
develop(bool, TraceProtectionDomainVerification, false, \
1422
"Trace protection domain verification") \
1423
\
1424
develop(bool, TraceClearedExceptions, false, \
1425
"Print when an exception is forcibly cleared") \
1426
\
1427
product(bool, TraceClassResolution, false, \
1428
"Trace all constant pool resolutions (for debugging)") \
1429
\
1430
product(bool, TraceBiasedLocking, false, \
1431
"Trace biased locking in JVM") \
1432
\
1433
product(bool, TraceMonitorInflation, false, \
1434
"Trace monitor inflation in JVM") \
1435
\
1436
/* gc */ \
1437
\
1438
product(bool, UseSerialGC, false, \
1439
"Use the Serial garbage collector") \
1440
\
1441
product(bool, UseG1GC, false, \
1442
"Use the Garbage-First garbage collector") \
1443
\
1444
product(bool, UseParallelGC, false, \
1445
"Use the Parallel Scavenge garbage collector") \
1446
\
1447
product(bool, UseParallelOldGC, false, \
1448
"Use the Parallel Old garbage collector") \
1449
\
1450
product(bool, UseShenandoahGC, false, \
1451
"Use the Shenandoah garbage collector") \
1452
\
1453
product(uintx, HeapMaximumCompactionInterval, 20, \
1454
"How often should we maximally compact the heap (not allowing " \
1455
"any dead space)") \
1456
\
1457
product(uintx, HeapFirstMaximumCompactionCount, 3, \
1458
"The collection count for the first maximum compaction") \
1459
\
1460
product(bool, UseMaximumCompactionOnSystemGC, true, \
1461
"Use maximum compaction in the Parallel Old garbage collector " \
1462
"for a system GC") \
1463
\
1464
product(uintx, ParallelOldDeadWoodLimiterMean, 50, \
1465
"The mean used by the parallel compact dead wood " \
1466
"limiter (a number between 0-100)") \
1467
\
1468
product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \
1469
"The standard deviation used by the parallel compact dead wood " \
1470
"limiter (a number between 0-100)") \
1471
\
1472
product(uintx, ParallelGCThreads, 0, \
1473
"Number of parallel threads parallel gc will use") \
1474
\
1475
product(bool, UseDynamicNumberOfGCThreads, false, \
1476
"Dynamically choose the number of parallel threads " \
1477
"parallel gc will use") \
1478
\
1479
diagnostic(bool, ForceDynamicNumberOfGCThreads, false, \
1480
"Force dynamic selection of the number of " \
1481
"parallel threads parallel gc will use to aid debugging") \
1482
\
1483
product(uintx, HeapSizePerGCThread, ScaleForWordSize(64*M), \
1484
"Size of heap (bytes) per GC thread used in calculating the " \
1485
"number of GC threads") \
1486
\
1487
product(bool, TraceDynamicGCThreads, false, \
1488
"Trace the dynamic GC thread usage") \
1489
\
1490
develop(bool, ParallelOldGCSplitALot, false, \
1491
"Provoke splitting (copying data from a young gen space to " \
1492
"multiple destination spaces)") \
1493
\
1494
develop(uintx, ParallelOldGCSplitInterval, 3, \
1495
"How often to provoke splitting a young gen space") \
1496
\
1497
product(uintx, ConcGCThreads, 0, \
1498
"Number of threads concurrent gc will use") \
1499
\
1500
product(uintx, YoungPLABSize, 4096, \
1501
"Size of young gen promotion LAB's (in HeapWords)") \
1502
\
1503
product(uintx, OldPLABSize, 1024, \
1504
"Size of old gen promotion LAB's (in HeapWords)") \
1505
\
1506
product(uintx, GCTaskTimeStampEntries, 200, \
1507
"Number of time stamp entries per gc worker thread") \
1508
\
1509
product(bool, AlwaysTenure, false, \
1510
"Always tenure objects in eden (ParallelGC only)") \
1511
\
1512
product(bool, NeverTenure, false, \
1513
"Never tenure objects in eden, may tenure on overflow " \
1514
"(ParallelGC only)") \
1515
\
1516
product(bool, ScavengeBeforeFullGC, true, \
1517
"Scavenge youngest generation before each full GC, " \
1518
"used with UseParallelGC") \
1519
\
1520
develop(bool, ScavengeWithObjectsInToSpace, false, \
1521
"Allow scavenges to occur when to-space contains objects") \
1522
\
1523
product(bool, UseConcMarkSweepGC, false, \
1524
"Use Concurrent Mark-Sweep GC in the old generation") \
1525
\
1526
product(bool, ExplicitGCInvokesConcurrent, false, \
1527
"A System.gc() request invokes a concurrent collection; " \
1528
"(effective only when UseConcMarkSweepGC)") \
1529
\
1530
product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \
1531
"A System.gc() request invokes a concurrent collection and " \
1532
"also unloads classes during such a concurrent gc cycle " \
1533
"(effective only when UseConcMarkSweepGC)") \
1534
\
1535
product(bool, GCLockerInvokesConcurrent, false, \
1536
"The exit of a JNI critical section necessitating a scavenge, " \
1537
"also kicks off a background concurrent collection") \
1538
\
1539
product(uintx, GCLockerEdenExpansionPercent, 5, \
1540
"How much the GC can expand the eden by while the GC locker " \
1541
"is active (as a percentage)") \
1542
\
1543
diagnostic(uintx, GCLockerRetryAllocationCount, 2, \
1544
"Number of times to retry allocations when " \
1545
"blocked by the GC locker") \
1546
\
1547
develop(bool, UseCMSAdaptiveFreeLists, true, \
1548
"Use adaptive free lists in the CMS generation") \
1549
\
1550
develop(bool, UseAsyncConcMarkSweepGC, true, \
1551
"Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\
1552
\
1553
develop(bool, RotateCMSCollectionTypes, false, \
1554
"Rotate the CMS collections among concurrent and STW") \
1555
\
1556
product(bool, UseCMSBestFit, true, \
1557
"Use CMS best fit allocation strategy") \
1558
\
1559
product(bool, UseCMSCollectionPassing, true, \
1560
"Use passing of collection from background to foreground") \
1561
\
1562
product(bool, UseParNewGC, false, \
1563
"Use parallel threads in the new generation") \
1564
\
1565
product(bool, ParallelGCVerbose, false, \
1566
"Verbose output for parallel gc") \
1567
\
1568
product(uintx, ParallelGCBufferWastePct, 10, \
1569
"Wasted fraction of parallel allocation buffer") \
1570
\
1571
diagnostic(bool, ParallelGCRetainPLAB, false, \
1572
"Retain parallel allocation buffers across scavenges; " \
1573
"it is disabled because this currently conflicts with " \
1574
"parallel card scanning under certain conditions.") \
1575
\
1576
product(uintx, TargetPLABWastePct, 10, \
1577
"Target wasted space in last buffer as percent of overall " \
1578
"allocation") \
1579
\
1580
product(uintx, PLABWeight, 75, \
1581
"Percentage (0-100) used to weigh the current sample when " \
1582
"computing exponentially decaying average for ResizePLAB") \
1583
\
1584
product(bool, ResizePLAB, true, \
1585
"Dynamically resize (survivor space) promotion LAB's") \
1586
\
1587
product(bool, PrintPLAB, false, \
1588
"Print (survivor space) promotion LAB's sizing decisions") \
1589
\
1590
product(intx, ParGCArrayScanChunk, 50, \
1591
"Scan a subset of object array and push remainder, if array is " \
1592
"bigger than this") \
1593
\
1594
product(bool, ParGCUseLocalOverflow, false, \
1595
"Instead of a global overflow list, use local overflow stacks") \
1596
\
1597
product(bool, ParGCTrimOverflow, true, \
1598
"Eagerly trim the local overflow lists " \
1599
"(when ParGCUseLocalOverflow)") \
1600
\
1601
notproduct(bool, ParGCWorkQueueOverflowALot, false, \
1602
"Simulate work queue overflow in ParNew") \
1603
\
1604
notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000, \
1605
"An `interval' counter that determines how frequently " \
1606
"we simulate overflow; a smaller number increases frequency") \
1607
\
1608
product(uintx, ParGCDesiredObjsFromOverflowList, 20, \
1609
"The desired number of objects to claim from the overflow list") \
1610
\
1611
diagnostic(uintx, ParGCStridesPerThread, 2, \
1612
"The number of strides per worker thread that we divide up the " \
1613
"card table scanning work into") \
1614
\
1615
diagnostic(intx, ParGCCardsPerStrideChunk, 256, \
1616
"The number of cards in each chunk of the parallel chunks used " \
1617
"during card table scanning") \
1618
\
1619
product(uintx, CMSParPromoteBlocksToClaim, 16, \
1620
"Number of blocks to attempt to claim when refilling CMS LAB's " \
1621
"for parallel GC") \
1622
\
1623
product(uintx, OldPLABWeight, 50, \
1624
"Percentage (0-100) used to weight the current sample when " \
1625
"computing exponentially decaying average for resizing " \
1626
"CMSParPromoteBlocksToClaim") \
1627
\
1628
product(bool, ResizeOldPLAB, true, \
1629
"Dynamically resize (old gen) promotion LAB's") \
1630
\
1631
product(bool, PrintOldPLAB, false, \
1632
"Print (old gen) promotion LAB's sizing decisions") \
1633
\
1634
product(uintx, CMSOldPLABMin, 16, \
1635
"Minimum size of CMS gen promotion LAB caches per worker " \
1636
"per block size") \
1637
\
1638
product(uintx, CMSOldPLABMax, 1024, \
1639
"Maximum size of CMS gen promotion LAB caches per worker " \
1640
"per block size") \
1641
\
1642
product(uintx, CMSOldPLABNumRefills, 4, \
1643
"Nominal number of refills of CMS gen promotion LAB cache " \
1644
"per worker per block size") \
1645
\
1646
product(bool, CMSOldPLABResizeQuicker, false, \
1647
"React on-the-fly during a scavenge to a sudden " \
1648
"change in block demand rate") \
1649
\
1650
product(uintx, CMSOldPLABToleranceFactor, 4, \
1651
"The tolerance of the phase-change detector for on-the-fly " \
1652
"PLAB resizing during a scavenge") \
1653
\
1654
product(uintx, CMSOldPLABReactivityFactor, 2, \
1655
"The gain in the feedback loop for on-the-fly PLAB resizing " \
1656
"during a scavenge") \
1657
\
1658
product(bool, AlwaysPreTouch, false, \
1659
"Force all freshly committed pages to be pre-touched") \
1660
\
1661
product_pd(uintx, CMSYoungGenPerWorker, \
1662
"The maximum size of young gen chosen by default per GC worker " \
1663
"thread available") \
1664
\
1665
product(bool, CMSIncrementalMode, false, \
1666
"Whether CMS GC should operate in \"incremental\" mode") \
1667
\
1668
product(uintx, CMSIncrementalDutyCycle, 10, \
1669
"Percentage (0-100) of CMS incremental mode duty cycle. If " \
1670
"CMSIncrementalPacing is enabled, then this is just the initial " \
1671
"value.") \
1672
\
1673
product(bool, CMSIncrementalPacing, true, \
1674
"Whether the CMS incremental mode duty cycle should be " \
1675
"automatically adjusted") \
1676
\
1677
product(uintx, CMSIncrementalDutyCycleMin, 0, \
1678
"Minimum percentage (0-100) of the CMS incremental duty cycle " \
1679
"used when CMSIncrementalPacing is enabled") \
1680
\
1681
product(uintx, CMSIncrementalSafetyFactor, 10, \
1682
"Percentage (0-100) used to add conservatism when computing the " \
1683
"duty cycle") \
1684
\
1685
product(uintx, CMSIncrementalOffset, 0, \
1686
"Percentage (0-100) by which the CMS incremental mode duty cycle "\
1687
"is shifted to the right within the period between young GCs") \
1688
\
1689
product(uintx, CMSExpAvgFactor, 50, \
1690
"Percentage (0-100) used to weigh the current sample when " \
1691
"computing exponential averages for CMS statistics") \
1692
\
1693
product(uintx, CMS_FLSWeight, 75, \
1694
"Percentage (0-100) used to weigh the current sample when " \
1695
"computing exponentially decaying averages for CMS FLS " \
1696
"statistics") \
1697
\
1698
product(uintx, CMS_FLSPadding, 1, \
1699
"The multiple of deviation from mean to use for buffering " \
1700
"against volatility in free list demand") \
1701
\
1702
product(uintx, FLSCoalescePolicy, 2, \
1703
"CMS: aggressiveness level for coalescing, increasing " \
1704
"from 0 to 4") \
1705
\
1706
product(bool, FLSAlwaysCoalesceLarge, false, \
1707
"CMS: larger free blocks are always available for coalescing") \
1708
\
1709
product(double, FLSLargestBlockCoalesceProximity, 0.99, \
1710
"CMS: the smaller the percentage the greater the coalescing " \
1711
"force") \
1712
\
1713
product(double, CMSSmallCoalSurplusPercent, 1.05, \
1714
"CMS: the factor by which to inflate estimated demand of small " \
1715
"block sizes to prevent coalescing with an adjoining block") \
1716
\
1717
product(double, CMSLargeCoalSurplusPercent, 0.95, \
1718
"CMS: the factor by which to inflate estimated demand of large " \
1719
"block sizes to prevent coalescing with an adjoining block") \
1720
\
1721
product(double, CMSSmallSplitSurplusPercent, 1.10, \
1722
"CMS: the factor by which to inflate estimated demand of small " \
1723
"block sizes to prevent splitting to supply demand for smaller " \
1724
"blocks") \
1725
\
1726
product(double, CMSLargeSplitSurplusPercent, 1.00, \
1727
"CMS: the factor by which to inflate estimated demand of large " \
1728
"block sizes to prevent splitting to supply demand for smaller " \
1729
"blocks") \
1730
\
1731
product(bool, CMSExtrapolateSweep, false, \
1732
"CMS: cushion for block demand during sweep") \
1733
\
1734
product(uintx, CMS_SweepWeight, 75, \
1735
"Percentage (0-100) used to weight the current sample when " \
1736
"computing exponentially decaying average for inter-sweep " \
1737
"duration") \
1738
\
1739
product(uintx, CMS_SweepPadding, 1, \
1740
"The multiple of deviation from mean to use for buffering " \
1741
"against volatility in inter-sweep duration") \
1742
\
1743
product(uintx, CMS_SweepTimerThresholdMillis, 10, \
1744
"Skip block flux-rate sampling for an epoch unless inter-sweep " \
1745
"duration exceeds this threshold in milliseconds") \
1746
\
1747
develop(bool, CMSTraceIncrementalMode, false, \
1748
"Trace CMS incremental mode") \
1749
\
1750
develop(bool, CMSTraceIncrementalPacing, false, \
1751
"Trace CMS incremental mode pacing computation") \
1752
\
1753
develop(bool, CMSTraceThreadState, false, \
1754
"Trace the CMS thread state (enable the trace_state() method)") \
1755
\
1756
product(bool, CMSClassUnloadingEnabled, true, \
1757
"Whether class unloading enabled when using CMS GC") \
1758
\
1759
product(uintx, CMSClassUnloadingMaxInterval, 0, \
1760
"When CMS class unloading is enabled, the maximum CMS cycle " \
1761
"count for which classes may not be unloaded") \
1762
\
1763
product(bool, CMSCompactWhenClearAllSoftRefs, true, \
1764
"Compact when asked to collect CMS gen with " \
1765
"clear_all_soft_refs()") \
1766
\
1767
product(bool, UseCMSCompactAtFullCollection, true, \
1768
"Use Mark-Sweep-Compact algorithm at full collections") \
1769
\
1770
product(uintx, CMSFullGCsBeforeCompaction, 0, \
1771
"Number of CMS full collection done before compaction if > 0") \
1772
\
1773
develop(intx, CMSDictionaryChoice, 0, \
1774
"Use BinaryTreeDictionary as default in the CMS generation") \
1775
\
1776
product(uintx, CMSIndexedFreeListReplenish, 4, \
1777
"Replenish an indexed free list with this number of chunks") \
1778
\
1779
product(bool, CMSReplenishIntermediate, true, \
1780
"Replenish all intermediate free-list caches") \
1781
\
1782
product(bool, CMSSplitIndexedFreeListBlocks, true, \
1783
"When satisfying batched demand, split blocks from the " \
1784
"IndexedFreeList whose size is a multiple of requested size") \
1785
\
1786
product(bool, CMSLoopWarn, false, \
1787
"Warn in case of excessive CMS looping") \
1788
\
1789
develop(bool, CMSOverflowEarlyRestoration, false, \
1790
"Restore preserved marks early") \
1791
\
1792
product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M), \
1793
"Size of marking stack") \
1794
\
1795
product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M), \
1796
"Maximum size of marking stack") \
1797
\
1798
notproduct(bool, CMSMarkStackOverflowALot, false, \
1799
"Simulate frequent marking stack / work queue overflow") \
1800
\
1801
notproduct(uintx, CMSMarkStackOverflowInterval, 1000, \
1802
"An \"interval\" counter that determines how frequently " \
1803
"to simulate overflow; a smaller number increases frequency") \
1804
\
1805
product(uintx, CMSMaxAbortablePrecleanLoops, 0, \
1806
"(Temporary, subject to experimentation) " \
1807
"Maximum number of abortable preclean iterations, if > 0") \
1808
\
1809
product(intx, CMSMaxAbortablePrecleanTime, 5000, \
1810
"(Temporary, subject to experimentation) " \
1811
"Maximum time in abortable preclean (in milliseconds)") \
1812
\
1813
product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \
1814
"(Temporary, subject to experimentation) " \
1815
"Nominal minimum work per abortable preclean iteration") \
1816
\
1817
manageable(intx, CMSAbortablePrecleanWaitMillis, 100, \
1818
"(Temporary, subject to experimentation) " \
1819
"Time that we sleep between iterations when not given " \
1820
"enough work per iteration") \
1821
\
1822
product(uintx, CMSRescanMultiple, 32, \
1823
"Size (in cards) of CMS parallel rescan task") \
1824
\
1825
product(uintx, CMSConcMarkMultiple, 32, \
1826
"Size (in cards) of CMS concurrent MT marking task") \
1827
\
1828
product(bool, CMSAbortSemantics, false, \
1829
"Whether abort-on-overflow semantics is implemented") \
1830
\
1831
product(bool, CMSParallelInitialMarkEnabled, true, \
1832
"Use the parallel initial mark.") \
1833
\
1834
product(bool, CMSParallelRemarkEnabled, true, \
1835
"Whether parallel remark enabled (only if ParNewGC)") \
1836
\
1837
product(bool, CMSParallelSurvivorRemarkEnabled, true, \
1838
"Whether parallel remark of survivor space " \
1839
"enabled (effective only if CMSParallelRemarkEnabled)") \
1840
\
1841
product(bool, CMSPLABRecordAlways, true, \
1842
"Always record survivor space PLAB boundaries (effective only " \
1843
"if CMSParallelSurvivorRemarkEnabled)") \
1844
\
1845
product(bool, CMSEdenChunksRecordAlways, true, \
1846
"Always record eden chunks used for the parallel initial mark " \
1847
"or remark of eden") \
1848
\
1849
product(bool, CMSPrintEdenSurvivorChunks, false, \
1850
"Print the eden and the survivor chunks used for the parallel " \
1851
"initial mark or remark of the eden/survivor spaces") \
1852
\
1853
product(bool, CMSConcurrentMTEnabled, true, \
1854
"Whether multi-threaded concurrent work enabled " \
1855
"(effective only if ParNewGC)") \
1856
\
1857
product(bool, CMSPrecleaningEnabled, true, \
1858
"Whether concurrent precleaning enabled") \
1859
\
1860
product(uintx, CMSPrecleanIter, 3, \
1861
"Maximum number of precleaning iteration passes") \
1862
\
1863
product(uintx, CMSPrecleanNumerator, 2, \
1864
"CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \
1865
"ratio") \
1866
\
1867
product(uintx, CMSPrecleanDenominator, 3, \
1868
"CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \
1869
"ratio") \
1870
\
1871
product(bool, CMSPrecleanRefLists1, true, \
1872
"Preclean ref lists during (initial) preclean phase") \
1873
\
1874
product(bool, CMSPrecleanRefLists2, false, \
1875
"Preclean ref lists during abortable preclean phase") \
1876
\
1877
product(bool, CMSPrecleanSurvivors1, false, \
1878
"Preclean survivors during (initial) preclean phase") \
1879
\
1880
product(bool, CMSPrecleanSurvivors2, true, \
1881
"Preclean survivors during abortable preclean phase") \
1882
\
1883
product(uintx, CMSPrecleanThreshold, 1000, \
1884
"Do not iterate again if number of dirty cards is less than this")\
1885
\
1886
product(bool, CMSCleanOnEnter, true, \
1887
"Clean-on-enter optimization for reducing number of dirty cards") \
1888
\
1889
product(uintx, CMSRemarkVerifyVariant, 1, \
1890
"Choose variant (1,2) of verification following remark") \
1891
\
1892
product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M, \
1893
"If Eden size is below this, do not try to schedule remark") \
1894
\
1895
product(uintx, CMSScheduleRemarkEdenPenetration, 50, \
1896
"The Eden occupancy percentage (0-100) at which " \
1897
"to try and schedule remark pause") \
1898
\
1899
product(uintx, CMSScheduleRemarkSamplingRatio, 5, \
1900
"Start sampling eden top at least before young gen " \
1901
"occupancy reaches 1/<ratio> of the size at which " \
1902
"we plan to schedule remark") \
1903
\
1904
product(uintx, CMSSamplingGrain, 16*K, \
1905
"The minimum distance between eden samples for CMS (see above)") \
1906
\
1907
product(bool, CMSScavengeBeforeRemark, false, \
1908
"Attempt scavenge before the CMS remark step") \
1909
\
1910
develop(bool, CMSTraceSweeper, false, \
1911
"Trace some actions of the CMS sweeper") \
1912
\
1913
product(uintx, CMSWorkQueueDrainThreshold, 10, \
1914
"Don't drain below this size per parallel worker/thief") \
1915
\
1916
manageable(intx, CMSWaitDuration, 2000, \
1917
"Time in milliseconds that CMS thread waits for young GC") \
1918
\
1919
develop(uintx, CMSCheckInterval, 1000, \
1920
"Interval in milliseconds that CMS thread checks if it " \
1921
"should start a collection cycle") \
1922
\
1923
product(bool, CMSYield, true, \
1924
"Yield between steps of CMS") \
1925
\
1926
product(uintx, CMSBitMapYieldQuantum, 10*M, \
1927
"Bitmap operations should process at most this many bits " \
1928
"between yields") \
1929
\
1930
product(bool, CMSDumpAtPromotionFailure, false, \
1931
"Dump useful information about the state of the CMS old " \
1932
"generation upon a promotion failure") \
1933
\
1934
product(bool, CMSPrintChunksInDump, false, \
1935
"In a dump enabled by CMSDumpAtPromotionFailure, include " \
1936
"more detailed information about the free chunks") \
1937
\
1938
product(bool, CMSPrintObjectsInDump, false, \
1939
"In a dump enabled by CMSDumpAtPromotionFailure, include " \
1940
"more detailed information about the allocated objects") \
1941
\
1942
diagnostic(bool, FLSVerifyAllHeapReferences, false, \
1943
"Verify that all references across the FLS boundary " \
1944
"are to valid objects") \
1945
\
1946
diagnostic(bool, FLSVerifyLists, false, \
1947
"Do lots of (expensive) FreeListSpace verification") \
1948
\
1949
diagnostic(bool, FLSVerifyIndexTable, false, \
1950
"Do lots of (expensive) FLS index table verification") \
1951
\
1952
develop(bool, FLSVerifyDictionary, false, \
1953
"Do lots of (expensive) FLS dictionary verification") \
1954
\
1955
develop(bool, VerifyBlockOffsetArray, false, \
1956
"Do (expensive) block offset array verification") \
1957
\
1958
diagnostic(bool, BlockOffsetArrayUseUnallocatedBlock, false, \
1959
"Maintain _unallocated_block in BlockOffsetArray " \
1960
"(currently applicable only to CMS collector)") \
1961
\
1962
develop(bool, TraceCMSState, false, \
1963
"Trace the state of the CMS collection") \
1964
\
1965
product(intx, RefDiscoveryPolicy, 0, \
1966
"Select type of reference discovery policy: " \
1967
"reference-based(0) or referent-based(1)") \
1968
\
1969
product(bool, ParallelRefProcEnabled, false, \
1970
"Enable parallel reference processing whenever possible") \
1971
\
1972
product(bool, ParallelRefProcBalancingEnabled, true, \
1973
"Enable balancing of reference processing queues") \
1974
\
1975
product(uintx, CMSTriggerRatio, 80, \
1976
"Percentage of MinHeapFreeRatio in CMS generation that is " \
1977
"allocated before a CMS collection cycle commences") \
1978
\
1979
product(uintx, CMSBootstrapOccupancy, 50, \
1980
"Percentage CMS generation occupancy at which to " \
1981
"initiate CMS collection for bootstrapping collection stats") \
1982
\
1983
product(intx, CMSInitiatingOccupancyFraction, -1, \
1984
"Percentage CMS generation occupancy to start a CMS collection " \
1985
"cycle. A negative value means that CMSTriggerRatio is used") \
1986
\
1987
product(uintx, InitiatingHeapOccupancyPercent, 45, \
1988
"Percentage of the (entire) heap occupancy to start a " \
1989
"concurrent GC cycle. It is used by GCs that trigger a " \
1990
"concurrent GC cycle based on the occupancy of the entire heap, " \
1991
"not just one of the generations (e.g., G1). A value of 0 " \
1992
"denotes 'do constant GC cycles'.") \
1993
\
1994
manageable(intx, CMSTriggerInterval, -1, \
1995
"Commence a CMS collection cycle (at least) every so many " \
1996
"milliseconds (0 permanently, -1 disabled)") \
1997
\
1998
product(bool, UseCMSInitiatingOccupancyOnly, false, \
1999
"Only use occupancy as a criterion for starting a CMS collection")\
2000
\
2001
product(uintx, CMSIsTooFullPercentage, 98, \
2002
"An absolute ceiling above which CMS will always consider the " \
2003
"unloading of classes when class unloading is enabled") \
2004
\
2005
develop(bool, CMSTestInFreeList, false, \
2006
"Check if the coalesced range is already in the " \
2007
"free lists as claimed") \
2008
\
2009
notproduct(bool, CMSVerifyReturnedBytes, false, \
2010
"Check that all the garbage collected was returned to the " \
2011
"free lists") \
2012
\
2013
notproduct(bool, ScavengeALot, false, \
2014
"Force scavenge at every Nth exit from the runtime system " \
2015
"(N=ScavengeALotInterval)") \
2016
\
2017
develop(bool, FullGCALot, false, \
2018
"Force full gc at every Nth exit from the runtime system " \
2019
"(N=FullGCALotInterval)") \
2020
\
2021
notproduct(bool, GCALotAtAllSafepoints, false, \
2022
"Enforce ScavengeALot/GCALot at all potential safepoints") \
2023
\
2024
product(bool, PrintPromotionFailure, false, \
2025
"Print additional diagnostic information following " \
2026
"promotion failure") \
2027
\
2028
notproduct(bool, PromotionFailureALot, false, \
2029
"Use promotion failure handling on every youngest generation " \
2030
"collection") \
2031
\
2032
develop(uintx, PromotionFailureALotCount, 1000, \
2033
"Number of promotion failures occurring at ParGCAllocBuffer " \
2034
"refill attempts (ParNew) or promotion attempts " \
2035
"(other young collectors)") \
2036
\
2037
develop(uintx, PromotionFailureALotInterval, 5, \
2038
"Total collections between promotion failures alot") \
2039
\
2040
experimental(uintx, WorkStealingSleepMillis, 1, \
2041
"Sleep time when sleep is used for yields") \
2042
\
2043
experimental(uintx, WorkStealingYieldsBeforeSleep, 5000, \
2044
"Number of yields before a sleep is done during workstealing") \
2045
\
2046
experimental(uintx, WorkStealingHardSpins, 4096, \
2047
"Number of iterations in a spin loop between checks on " \
2048
"time out of hard spin") \
2049
\
2050
experimental(uintx, WorkStealingSpinToYieldRatio, 10, \
2051
"Ratio of hard spins to calls to yield") \
2052
\
2053
develop(uintx, ObjArrayMarkingStride, 2048, \
2054
"Number of object array elements to push onto the marking stack " \
2055
"before pushing a continuation entry") \
2056
\
2057
develop(bool, MetadataAllocationFailALot, false, \
2058
"Fail metadata allocations at intervals controlled by " \
2059
"MetadataAllocationFailALotInterval") \
2060
\
2061
develop(uintx, MetadataAllocationFailALotInterval, 1000, \
2062
"Metadata allocation failure a lot interval") \
2063
\
2064
develop(bool, TraceMetadataChunkAllocation, false, \
2065
"Trace chunk metadata allocations") \
2066
\
2067
product(bool, TraceMetadataHumongousAllocation, false, \
2068
"Trace humongous metadata allocations") \
2069
\
2070
develop(bool, TraceMetavirtualspaceAllocation, false, \
2071
"Trace virtual space metadata allocations") \
2072
\
2073
notproduct(bool, ExecuteInternalVMTests, false, \
2074
"Enable execution of internal VM tests") \
2075
\
2076
notproduct(bool, VerboseInternalVMTests, false, \
2077
"Turn on logging for internal VM tests.") \
2078
\
2079
product_pd(bool, UseTLAB, "Use thread-local object allocation") \
2080
\
2081
product_pd(bool, ResizeTLAB, \
2082
"Dynamically resize TLAB size for threads") \
2083
\
2084
product(bool, ZeroTLAB, false, \
2085
"Zero out the newly created TLAB") \
2086
\
2087
product(bool, FastTLABRefill, true, \
2088
"Use fast TLAB refill code") \
2089
\
2090
product(bool, PrintTLAB, false, \
2091
"Print various TLAB related information") \
2092
\
2093
product(bool, TLABStats, true, \
2094
"Provide more detailed and expensive TLAB statistics " \
2095
"(with PrintTLAB)") \
2096
\
2097
product_pd(bool, NeverActAsServerClassMachine, \
2098
"Never act like a server-class machine") \
2099
\
2100
product(bool, AlwaysActAsServerClassMachine, false, \
2101
"Always act like a server-class machine") \
2102
\
2103
product_pd(uint64_t, MaxRAM, \
2104
"Real memory size (in bytes) used to set maximum heap size") \
2105
\
2106
product(bool, AggressiveHeap, false, \
2107
"Optimize heap options for long-running memory intensive apps") \
2108
\
2109
product(uintx, ErgoHeapSizeLimit, 0, \
2110
"Maximum ergonomically set heap size (in bytes); zero means use " \
2111
"MaxRAM * MaxRAMPercentage / 100") \
2112
\
2113
experimental(bool, UseCGroupMemoryLimitForHeap, false, \
2114
"Use CGroup memory limit as physical memory limit for heap " \
2115
"sizing" \
2116
"Deprecated, replaced by container support") \
2117
\
2118
diagnostic(bool, PrintContainerInfo, false, \
2119
"Print container related information") \
2120
\
2121
diagnostic(bool, PrintActiveCpus, false, \
2122
"Print the number of CPUs detected in os::active_processor_count") \
2123
\
2124
product(uintx, MaxRAMFraction, 4, \
2125
"Maximum fraction (1/n) of real memory used for maximum heap " \
2126
"size") \
2127
\
2128
product(uintx, DefaultMaxRAMFraction, 4, \
2129
"Maximum fraction (1/n) of real memory used for maximum heap " \
2130
"size; deprecated: to be renamed to MaxRAMFraction") \
2131
\
2132
product(uintx, MinRAMFraction, 2, \
2133
"Minimum fraction (1/n) of real memory used for maxmimum heap " \
2134
"size on systems with small physical memory size") \
2135
\
2136
product(uintx, InitialRAMFraction, 64, \
2137
"Fraction (1/n) of real memory used for initial heap size") \
2138
\
2139
product(double, MaxRAMPercentage, 25.0, \
2140
"Maximum percentage of real memory used for maximum heap size") \
2141
\
2142
product(double, MinRAMPercentage, 50.0, \
2143
"Minimum percentage of real memory used for maximum heap" \
2144
"size on systems with small physical memory size") \
2145
\
2146
product(double, InitialRAMPercentage, 1.5625, \
2147
"Percentage of real memory used for initial heap size") \
2148
\
2149
product(intx, ActiveProcessorCount, -1, \
2150
"Specify the CPU count the VM should use and report as active") \
2151
\
2152
develop(uintx, MaxVirtMemFraction, 2, \
2153
"Maximum fraction (1/n) of virtual memory used for ergonomically "\
2154
"determining maximum heap size") \
2155
\
2156
product(bool, UseAutoGCSelectPolicy, false, \
2157
"Use automatic collection selection policy") \
2158
\
2159
product(uintx, AutoGCSelectPauseMillis, 5000, \
2160
"Automatic GC selection pause threshold in milliseconds") \
2161
\
2162
product(bool, UseAdaptiveSizePolicy, true, \
2163
"Use adaptive generation sizing policies") \
2164
\
2165
product(bool, UsePSAdaptiveSurvivorSizePolicy, true, \
2166
"Use adaptive survivor sizing policies") \
2167
\
2168
product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true, \
2169
"Use adaptive young-old sizing policies at minor collections") \
2170
\
2171
product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true, \
2172
"Use adaptive young-old sizing policies at major collections") \
2173
\
2174
product(bool, UseAdaptiveSizePolicyWithSystemGC, false, \
2175
"Include statistics from System.gc() for adaptive size policy") \
2176
\
2177
product(bool, UseAdaptiveGCBoundary, false, \
2178
"Allow young-old boundary to move") \
2179
\
2180
develop(bool, TraceAdaptiveGCBoundary, false, \
2181
"Trace young-old boundary moves") \
2182
\
2183
develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1, \
2184
"Resize the virtual spaces of the young or old generations") \
2185
\
2186
product(uintx, AdaptiveSizeThroughPutPolicy, 0, \
2187
"Policy for changing generation size for throughput goals") \
2188
\
2189
product(uintx, AdaptiveSizePausePolicy, 0, \
2190
"Policy for changing generation size for pause goals") \
2191
\
2192
develop(bool, PSAdjustTenuredGenForMinorPause, false, \
2193
"Adjust tenured generation to achieve a minor pause goal") \
2194
\
2195
develop(bool, PSAdjustYoungGenForMajorPause, false, \
2196
"Adjust young generation to achieve a major pause goal") \
2197
\
2198
product(uintx, AdaptiveSizePolicyInitializingSteps, 20, \
2199
"Number of steps where heuristics is used before data is used") \
2200
\
2201
develop(uintx, AdaptiveSizePolicyReadyThreshold, 5, \
2202
"Number of collections before the adaptive sizing is started") \
2203
\
2204
product(uintx, AdaptiveSizePolicyOutputInterval, 0, \
2205
"Collection interval for printing information; zero means never") \
2206
\
2207
product(bool, UseAdaptiveSizePolicyFootprintGoal, true, \
2208
"Use adaptive minimum footprint as a goal") \
2209
\
2210
product(uintx, AdaptiveSizePolicyWeight, 10, \
2211
"Weight given to exponential resizing, between 0 and 100") \
2212
\
2213
product(uintx, AdaptiveTimeWeight, 25, \
2214
"Weight given to time in adaptive policy, between 0 and 100") \
2215
\
2216
product(uintx, PausePadding, 1, \
2217
"How much buffer to keep for pause time") \
2218
\
2219
product(uintx, PromotedPadding, 3, \
2220
"How much buffer to keep for promotion failure") \
2221
\
2222
product(uintx, SurvivorPadding, 3, \
2223
"How much buffer to keep for survivor overflow") \
2224
\
2225
product(uintx, ThresholdTolerance, 10, \
2226
"Allowed collection cost difference between generations") \
2227
\
2228
product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50, \
2229
"If collection costs are within margin, reduce both by full " \
2230
"delta") \
2231
\
2232
product(uintx, YoungGenerationSizeIncrement, 20, \
2233
"Adaptive size percentage change in young generation") \
2234
\
2235
product(uintx, YoungGenerationSizeSupplement, 80, \
2236
"Supplement to YoungedGenerationSizeIncrement used at startup") \
2237
\
2238
product(uintx, YoungGenerationSizeSupplementDecay, 8, \
2239
"Decay factor to YoungedGenerationSizeSupplement") \
2240
\
2241
product(uintx, TenuredGenerationSizeIncrement, 20, \
2242
"Adaptive size percentage change in tenured generation") \
2243
\
2244
product(uintx, TenuredGenerationSizeSupplement, 80, \
2245
"Supplement to TenuredGenerationSizeIncrement used at startup") \
2246
\
2247
product(uintx, TenuredGenerationSizeSupplementDecay, 2, \
2248
"Decay factor to TenuredGenerationSizeIncrement") \
2249
\
2250
product(uintx, MaxGCPauseMillis, max_uintx, \
2251
"Adaptive size policy maximum GC pause time goal in millisecond, "\
2252
"or (G1 Only) the maximum GC time per MMU time slice") \
2253
\
2254
product(uintx, GCPauseIntervalMillis, 0, \
2255
"Time slice for MMU specification") \
2256
\
2257
product(uintx, MaxGCMinorPauseMillis, max_uintx, \
2258
"Adaptive size policy maximum GC minor pause time goal " \
2259
"in millisecond") \
2260
\
2261
product(uintx, GCTimeRatio, 99, \
2262
"Adaptive size policy application time to GC time ratio") \
2263
\
2264
product(uintx, AdaptiveSizeDecrementScaleFactor, 4, \
2265
"Adaptive size scale down factor for shrinking") \
2266
\
2267
product(bool, UseAdaptiveSizeDecayMajorGCCost, true, \
2268
"Adaptive size decays the major cost for long major intervals") \
2269
\
2270
product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10, \
2271
"Time scale over which major costs decay") \
2272
\
2273
product(uintx, MinSurvivorRatio, 3, \
2274
"Minimum ratio of young generation/survivor space size") \
2275
\
2276
product(uintx, InitialSurvivorRatio, 8, \
2277
"Initial ratio of young generation/survivor space size") \
2278
\
2279
product(uintx, BaseFootPrintEstimate, 256*M, \
2280
"Estimate of footprint other than Java Heap") \
2281
\
2282
product(bool, UseGCOverheadLimit, true, \
2283
"Use policy to limit of proportion of time spent in GC " \
2284
"before an OutOfMemory error is thrown") \
2285
\
2286
product(uintx, GCTimeLimit, 98, \
2287
"Limit of the proportion of time spent in GC before " \
2288
"an OutOfMemoryError is thrown (used with GCHeapFreeLimit)") \
2289
\
2290
product(uintx, GCHeapFreeLimit, 2, \
2291
"Minimum percentage of free space after a full GC before an " \
2292
"OutOfMemoryError is thrown (used with GCTimeLimit)") \
2293
\
2294
develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5, \
2295
"Number of consecutive collections before gc time limit fires") \
2296
\
2297
product(bool, PrintAdaptiveSizePolicy, false, \
2298
"Print information about AdaptiveSizePolicy") \
2299
\
2300
product(intx, PrefetchCopyIntervalInBytes, -1, \
2301
"How far ahead to prefetch destination area (<= 0 means off)") \
2302
\
2303
product(intx, PrefetchScanIntervalInBytes, -1, \
2304
"How far ahead to prefetch scan area (<= 0 means off)") \
2305
\
2306
product(intx, PrefetchFieldsAhead, -1, \
2307
"How many fields ahead to prefetch in oop scan (<= 0 means off)") \
2308
\
2309
diagnostic(bool, VerifySilently, false, \
2310
"Do not print the verification progress") \
2311
\
2312
diagnostic(bool, VerifyDuringStartup, false, \
2313
"Verify memory system before executing any Java code " \
2314
"during VM initialization") \
2315
\
2316
diagnostic(bool, VerifyBeforeExit, trueInDebug, \
2317
"Verify system before exiting") \
2318
\
2319
diagnostic(bool, VerifyBeforeGC, false, \
2320
"Verify memory system before GC") \
2321
\
2322
diagnostic(bool, VerifyAfterGC, false, \
2323
"Verify memory system after GC") \
2324
\
2325
diagnostic(bool, VerifyDuringGC, false, \
2326
"Verify memory system during GC (between phases)") \
2327
\
2328
diagnostic(ccstrlist, VerifySubSet, "", \
2329
"Memory sub-systems to verify when Verify*GC flag(s) " \
2330
"are enabled. One or more sub-systems can be specified " \
2331
"in a comma separated string. Sub-systems are: " \
2332
"threads, heap, symbol_table, string_table, codecache, " \
2333
"dictionary, classloader_data_graph, metaspace, jni_handles, " \
2334
"c-heap, codecache_oops") \
2335
\
2336
diagnostic(bool, GCParallelVerificationEnabled, true, \
2337
"Enable parallel memory system verification") \
2338
\
2339
diagnostic(bool, DeferInitialCardMark, false, \
2340
"When +ReduceInitialCardMarks, explicitly defer any that " \
2341
"may arise from new_pre_store_barrier") \
2342
\
2343
diagnostic(bool, VerifyRememberedSets, false, \
2344
"Verify GC remembered sets") \
2345
\
2346
diagnostic(bool, VerifyObjectStartArray, true, \
2347
"Verify GC object start array if verify before/after") \
2348
\
2349
product(bool, DisableExplicitGC, false, \
2350
"Ignore calls to System.gc()") \
2351
\
2352
notproduct(bool, CheckMemoryInitialization, false, \
2353
"Check memory initialization") \
2354
\
2355
product(bool, CollectGen0First, false, \
2356
"Collect youngest generation before each full GC") \
2357
\
2358
diagnostic(bool, BindCMSThreadToCPU, false, \
2359
"Bind CMS Thread to CPU if possible") \
2360
\
2361
diagnostic(uintx, CPUForCMSThread, 0, \
2362
"When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \
2363
\
2364
product(bool, BindGCTaskThreadsToCPUs, false, \
2365
"Bind GCTaskThreads to CPUs if possible") \
2366
\
2367
product(bool, UseGCTaskAffinity, false, \
2368
"Use worker affinity when asking for GCTasks") \
2369
\
2370
product(uintx, ProcessDistributionStride, 4, \
2371
"Stride through processors when distributing processes") \
2372
\
2373
product(uintx, CMSCoordinatorYieldSleepCount, 10, \
2374
"Number of times the coordinator GC thread will sleep while " \
2375
"yielding before giving up and resuming GC") \
2376
\
2377
product(uintx, CMSYieldSleepCount, 0, \
2378
"Number of times a GC thread (minus the coordinator) " \
2379
"will sleep while yielding before giving up and resuming GC") \
2380
\
2381
/* gc tracing */ \
2382
manageable(bool, PrintGC, false, \
2383
"Print message at garbage collection") \
2384
\
2385
manageable(bool, PrintGCDetails, false, \
2386
"Print more details at garbage collection") \
2387
\
2388
manageable(bool, PrintGCDateStamps, false, \
2389
"Print date stamps at garbage collection") \
2390
\
2391
manageable(bool, PrintGCTimeStamps, false, \
2392
"Print timestamps at garbage collection") \
2393
\
2394
manageable(bool, PrintGCID, false, \
2395
"Print an identifier for each garbage collection") \
2396
\
2397
product(bool, PrintGCTaskTimeStamps, false, \
2398
"Print timestamps for individual gc worker thread tasks") \
2399
\
2400
develop(intx, ConcGCYieldTimeout, 0, \
2401
"If non-zero, assert that GC threads yield within this " \
2402
"number of milliseconds") \
2403
\
2404
notproduct(bool, TraceMarkSweep, false, \
2405
"Trace mark sweep") \
2406
\
2407
product(bool, PrintReferenceGC, false, \
2408
"Print times spent handling reference objects during GC " \
2409
"(enabled only when PrintGCDetails)") \
2410
\
2411
develop(bool, TraceReferenceGC, false, \
2412
"Trace handling of soft/weak/final/phantom references") \
2413
\
2414
develop(bool, TraceFinalizerRegistration, false, \
2415
"Trace registration of final references") \
2416
\
2417
notproduct(bool, TraceScavenge, false, \
2418
"Trace scavenge") \
2419
\
2420
product(bool, IgnoreEmptyClassPaths, false, \
2421
"Ignore empty path elements in -classpath") \
2422
\
2423
product(bool, TraceClassPaths, false, \
2424
"Trace processing of class paths") \
2425
\
2426
product_rw(bool, TraceClassLoading, false, \
2427
"Trace all classes loaded") \
2428
\
2429
product(bool, TraceClassLoadingPreorder, false, \
2430
"Trace all classes loaded in order referenced (not loaded)") \
2431
\
2432
product_rw(bool, TraceClassUnloading, false, \
2433
"Trace unloading of classes") \
2434
\
2435
product_rw(bool, TraceLoaderConstraints, false, \
2436
"Trace loader constraints") \
2437
\
2438
develop(bool, TraceClassLoaderData, false, \
2439
"Trace class loader loader_data lifetime") \
2440
\
2441
product(uintx, InitialBootClassLoaderMetaspaceSize, \
2442
NOT_LP64(2200*K) LP64_ONLY(4*M), \
2443
"Initial size of the boot class loader data metaspace") \
2444
\
2445
product(bool, TraceGen0Time, false, \
2446
"Trace accumulated time for Gen 0 collection") \
2447
\
2448
product(bool, TraceGen1Time, false, \
2449
"Trace accumulated time for Gen 1 collection") \
2450
\
2451
product(bool, PrintTenuringDistribution, false, \
2452
"Print tenuring age information") \
2453
\
2454
product_rw(bool, PrintHeapAtGC, false, \
2455
"Print heap layout before and after each GC") \
2456
\
2457
product_rw(bool, PrintHeapAtGCExtended, false, \
2458
"Print extended information about the layout of the heap " \
2459
"when -XX:+PrintHeapAtGC is set") \
2460
\
2461
product(bool, PrintHeapAtSIGBREAK, true, \
2462
"Print heap layout in response to SIGBREAK") \
2463
\
2464
manageable(bool, PrintClassHistogramBeforeFullGC, false, \
2465
"Print a class histogram before any major stop-world GC") \
2466
\
2467
manageable(bool, PrintClassHistogramAfterFullGC, false, \
2468
"Print a class histogram after any major stop-world GC") \
2469
\
2470
manageable(bool, PrintClassHistogram, false, \
2471
"Print a histogram of class instances") \
2472
\
2473
develop(bool, TraceWorkGang, false, \
2474
"Trace activities of work gangs") \
2475
\
2476
product(bool, TraceParallelOldGCTasks, false, \
2477
"Trace multithreaded GC activity") \
2478
\
2479
develop(bool, TraceBlockOffsetTable, false, \
2480
"Print BlockOffsetTable maps") \
2481
\
2482
develop(bool, TraceCardTableModRefBS, false, \
2483
"Print CardTableModRefBS maps") \
2484
\
2485
develop(bool, TraceGCTaskManager, false, \
2486
"Trace actions of the GC task manager") \
2487
\
2488
develop(bool, TraceGCTaskQueue, false, \
2489
"Trace actions of the GC task queues") \
2490
\
2491
diagnostic(bool, TraceGCTaskThread, false, \
2492
"Trace actions of the GC task threads") \
2493
\
2494
product(bool, PrintParallelOldGCPhaseTimes, false, \
2495
"Print the time taken by each phase in ParallelOldGC " \
2496
"(PrintGCDetails must also be enabled)") \
2497
\
2498
develop(bool, TraceParallelOldGCMarkingPhase, false, \
2499
"Trace marking phase in ParallelOldGC") \
2500
\
2501
develop(bool, TraceParallelOldGCSummaryPhase, false, \
2502
"Trace summary phase in ParallelOldGC") \
2503
\
2504
develop(bool, TraceParallelOldGCCompactionPhase, false, \
2505
"Trace compaction phase in ParallelOldGC") \
2506
\
2507
develop(bool, TraceParallelOldGCDensePrefix, false, \
2508
"Trace dense prefix computation for ParallelOldGC") \
2509
\
2510
develop(bool, IgnoreLibthreadGPFault, false, \
2511
"Suppress workaround for libthread GP fault") \
2512
\
2513
product(bool, PrintJNIGCStalls, false, \
2514
"Print diagnostic message when GC is stalled " \
2515
"by JNI critical section") \
2516
\
2517
experimental(double, ObjectCountCutOffPercent, 0.5, \
2518
"The percentage of the used heap that the instances of a class " \
2519
"must occupy for the class to generate a trace event") \
2520
\
2521
/* GC log rotation setting */ \
2522
\
2523
product(bool, UseGCLogFileRotation, false, \
2524
"Rotate gclog files (for long running applications). It requires "\
2525
"-Xloggc:<filename>") \
2526
\
2527
product(uintx, NumberOfGCLogFiles, 0, \
2528
"Number of gclog files in rotation " \
2529
"(default: 0, no rotation)") \
2530
\
2531
product(uintx, GCLogFileSize, 8*K, \
2532
"GC log file size, requires UseGCLogFileRotation. " \
2533
"Set to 0 to only trigger rotation via jcmd") \
2534
\
2535
/* JVMTI heap profiling */ \
2536
\
2537
diagnostic(bool, TraceJVMTIObjectTagging, false, \
2538
"Trace JVMTI object tagging calls") \
2539
\
2540
diagnostic(bool, VerifyBeforeIteration, false, \
2541
"Verify memory system before JVMTI iteration") \
2542
\
2543
/* compiler interface */ \
2544
\
2545
develop(bool, CIPrintCompilerName, false, \
2546
"when CIPrint is active, print the name of the active compiler") \
2547
\
2548
develop(bool, CIPrintCompileQueue, false, \
2549
"display the contents of the compile queue whenever a " \
2550
"compilation is enqueued") \
2551
\
2552
develop(bool, CIPrintRequests, false, \
2553
"display every request for compilation") \
2554
\
2555
product(bool, CITime, false, \
2556
"collect timing information for compilation") \
2557
\
2558
develop(bool, CITimeEach, false, \
2559
"display timing information after each successful compilation") \
2560
\
2561
develop(bool, CICountOSR, false, \
2562
"use a separate counter when assigning ids to osr compilations") \
2563
\
2564
develop(bool, CICompileNatives, true, \
2565
"compile native methods if supported by the compiler") \
2566
\
2567
develop_pd(bool, CICompileOSR, \
2568
"compile on stack replacement methods if supported by the " \
2569
"compiler") \
2570
\
2571
develop(bool, CIPrintMethodCodes, false, \
2572
"print method bytecodes of the compiled code") \
2573
\
2574
develop(bool, CIPrintTypeFlow, false, \
2575
"print the results of ciTypeFlow analysis") \
2576
\
2577
develop(bool, CITraceTypeFlow, false, \
2578
"detailed per-bytecode tracing of ciTypeFlow analysis") \
2579
\
2580
develop(intx, OSROnlyBCI, -1, \
2581
"OSR only at this bci. Negative values mean exclude that bci") \
2582
\
2583
/* compiler */ \
2584
\
2585
product(intx, CICompilerCount, CI_COMPILER_COUNT, \
2586
"Number of compiler threads to run") \
2587
\
2588
product(intx, CompilationPolicyChoice, 0, \
2589
"which compilation policy (0/1)") \
2590
\
2591
develop(bool, UseStackBanging, true, \
2592
"use stack banging for stack overflow checks (required for " \
2593
"proper StackOverflow handling; disable only to measure cost " \
2594
"of stackbanging)") \
2595
\
2596
develop(bool, UseStrictFP, true, \
2597
"use strict fp if modifier strictfp is set") \
2598
\
2599
develop(bool, GenerateSynchronizationCode, true, \
2600
"generate locking/unlocking code for synchronized methods and " \
2601
"monitors") \
2602
\
2603
develop(bool, GenerateCompilerNullChecks, true, \
2604
"Generate explicit null checks for loads/stores/calls") \
2605
\
2606
develop(bool, GenerateRangeChecks, true, \
2607
"Generate range checks for array accesses") \
2608
\
2609
develop_pd(bool, ImplicitNullChecks, \
2610
"Generate code for implicit null checks") \
2611
\
2612
product_pd(bool, TrapBasedNullChecks, \
2613
"Generate code for null checks that uses a cmp and trap " \
2614
"instruction raising SIGTRAP. This is only used if an access to" \
2615
"null (+offset) will not raise a SIGSEGV, i.e.," \
2616
"ImplicitNullChecks don't work (PPC64).") \
2617
\
2618
product(bool, PrintSafepointStatistics, false, \
2619
"Print statistics about safepoint synchronization") \
2620
\
2621
product(intx, PrintSafepointStatisticsCount, 300, \
2622
"Total number of safepoint statistics collected " \
2623
"before printing them out") \
2624
\
2625
product(intx, PrintSafepointStatisticsTimeout, -1, \
2626
"Print safepoint statistics only when safepoint takes " \
2627
"more than PrintSafepointSatisticsTimeout in millis") \
2628
\
2629
product(bool, TraceSafepointCleanupTime, false, \
2630
"Print the break down of clean up tasks performed during " \
2631
"safepoint") \
2632
\
2633
product(bool, Inline, true, \
2634
"Enable inlining") \
2635
\
2636
product(bool, ClipInlining, true, \
2637
"Clip inlining if aggregate method exceeds DesiredMethodLimit") \
2638
\
2639
develop(bool, UseCHA, true, \
2640
"Enable CHA") \
2641
\
2642
product(bool, UseTypeProfile, true, \
2643
"Check interpreter profile for historically monomorphic calls") \
2644
\
2645
notproduct(bool, TimeCompiler, false, \
2646
"Time the compiler") \
2647
\
2648
diagnostic(bool, PrintInlining, false, \
2649
"Print inlining optimizations") \
2650
\
2651
product(bool, UsePopCountInstruction, false, \
2652
"Use population count instruction") \
2653
\
2654
develop(bool, EagerInitialization, false, \
2655
"Eagerly initialize classes if possible") \
2656
\
2657
develop(bool, TraceMethodReplacement, false, \
2658
"Print when methods are replaced do to recompilation") \
2659
\
2660
develop(bool, PrintMethodFlushing, false, \
2661
"Print the nmethods being flushed") \
2662
\
2663
diagnostic(bool, PrintMethodFlushingStatistics, false, \
2664
"print statistics about method flushing") \
2665
\
2666
develop(bool, UseRelocIndex, false, \
2667
"Use an index to speed random access to relocations") \
2668
\
2669
develop(bool, StressCodeBuffers, false, \
2670
"Exercise code buffer expansion and other rare state changes") \
2671
\
2672
diagnostic(bool, DebugNonSafepoints, trueInDebug, \
2673
"Generate extra debugging information for non-safepoints in " \
2674
"nmethods") \
2675
\
2676
product(bool, PrintVMOptions, false, \
2677
"Print flags that appeared on the command line") \
2678
\
2679
product(bool, IgnoreUnrecognizedVMOptions, false, \
2680
"Ignore unrecognized VM options") \
2681
\
2682
product(bool, PrintCommandLineFlags, false, \
2683
"Print flags specified on command line or set by ergonomics") \
2684
\
2685
product(bool, PrintFlagsInitial, false, \
2686
"Print all VM flags before argument processing and exit VM") \
2687
\
2688
product(bool, PrintFlagsFinal, false, \
2689
"Print all VM flags after argument and ergonomic processing") \
2690
\
2691
notproduct(bool, PrintFlagsWithComments, false, \
2692
"Print all VM flags with default values and descriptions and " \
2693
"exit") \
2694
\
2695
diagnostic(bool, SerializeVMOutput, true, \
2696
"Use a mutex to serialize output to tty and LogFile") \
2697
\
2698
diagnostic(bool, DisplayVMOutput, true, \
2699
"Display all VM output on the tty, independently of LogVMOutput") \
2700
\
2701
diagnostic(bool, LogVMOutput, false, \
2702
"Save VM output to LogFile") \
2703
\
2704
diagnostic(ccstr, LogFile, NULL, \
2705
"If LogVMOutput or LogCompilation is on, save VM output to " \
2706
"this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\
2707
\
2708
product(ccstr, ErrorFile, NULL, \
2709
"If an error occurs, save the error data to this file " \
2710
"[default: ./hs_err_pid%p.log] (%p replaced with pid)") \
2711
\
2712
product(bool, DisplayVMOutputToStderr, false, \
2713
"If DisplayVMOutput is true, display all VM output to stderr") \
2714
\
2715
product(bool, DisplayVMOutputToStdout, false, \
2716
"If DisplayVMOutput is true, display all VM output to stdout") \
2717
\
2718
product(bool, UseHeavyMonitors, false, \
2719
"use heavyweight instead of lightweight Java monitors") \
2720
\
2721
product(bool, PrintStringTableStatistics, false, \
2722
"print statistics about the StringTable and SymbolTable") \
2723
\
2724
diagnostic(bool, VerifyStringTableAtExit, false, \
2725
"verify StringTable contents at exit") \
2726
\
2727
notproduct(bool, PrintSymbolTableSizeHistogram, false, \
2728
"print histogram of the symbol table") \
2729
\
2730
notproduct(bool, ExitVMOnVerifyError, false, \
2731
"standard exit from VM if bytecode verify error " \
2732
"(only in debug mode)") \
2733
\
2734
notproduct(ccstr, AbortVMOnException, NULL, \
2735
"Call fatal if this exception is thrown. Example: " \
2736
"java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
2737
\
2738
notproduct(ccstr, AbortVMOnExceptionMessage, NULL, \
2739
"Call fatal if the exception pointed by AbortVMOnException " \
2740
"has this message") \
2741
\
2742
develop(bool, DebugVtables, false, \
2743
"add debugging code to vtable dispatch") \
2744
\
2745
develop(bool, PrintVtables, false, \
2746
"print vtables when printing klass") \
2747
\
2748
notproduct(bool, PrintVtableStats, false, \
2749
"print vtables stats at end of run") \
2750
\
2751
develop(bool, TraceCreateZombies, false, \
2752
"trace creation of zombie nmethods") \
2753
\
2754
notproduct(bool, IgnoreLockingAssertions, false, \
2755
"disable locking assertions (for speed)") \
2756
\
2757
product(bool, RangeCheckElimination, true, \
2758
"Eliminate range checks") \
2759
\
2760
develop_pd(bool, UncommonNullCast, \
2761
"track occurrences of null in casts; adjust compiler tactics") \
2762
\
2763
develop(bool, TypeProfileCasts, true, \
2764
"treat casts like calls for purposes of type profiling") \
2765
\
2766
develop(bool, DelayCompilationDuringStartup, true, \
2767
"Delay invoking the compiler until main application class is " \
2768
"loaded") \
2769
\
2770
develop(bool, CompileTheWorld, false, \
2771
"Compile all methods in all classes in bootstrap class path " \
2772
"(stress test)") \
2773
\
2774
develop(bool, CompileTheWorldPreloadClasses, true, \
2775
"Preload all classes used by a class before start loading") \
2776
\
2777
notproduct(intx, CompileTheWorldSafepointInterval, 100, \
2778
"Force a safepoint every n compiles so sweeper can keep up") \
2779
\
2780
develop(bool, FillDelaySlots, true, \
2781
"Fill delay slots (on SPARC only)") \
2782
\
2783
develop(bool, TimeLivenessAnalysis, false, \
2784
"Time computation of bytecode liveness analysis") \
2785
\
2786
develop(bool, TraceLivenessGen, false, \
2787
"Trace the generation of liveness analysis information") \
2788
\
2789
notproduct(bool, TraceLivenessQuery, false, \
2790
"Trace queries of liveness analysis information") \
2791
\
2792
notproduct(bool, CollectIndexSetStatistics, false, \
2793
"Collect information about IndexSets") \
2794
\
2795
develop(bool, UseLoopSafepoints, true, \
2796
"Generate Safepoint nodes in every loop") \
2797
\
2798
develop(intx, FastAllocateSizeLimit, 128*K, \
2799
/* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \
2800
"Inline allocations larger than this in doublewords must go slow")\
2801
\
2802
product(bool, AggressiveOpts, false, \
2803
"Enable aggressive optimizations - see arguments.cpp") \
2804
\
2805
product_pd(uintx, TypeProfileLevel, \
2806
"=XYZ, with Z: Type profiling of arguments at call; " \
2807
"Y: Type profiling of return value at call; " \
2808
"X: Type profiling of parameters to methods; " \
2809
"X, Y and Z in 0=off ; 1=jsr292 only; 2=all methods") \
2810
\
2811
product(intx, TypeProfileArgsLimit, 2, \
2812
"max number of call arguments to consider for type profiling") \
2813
\
2814
product(intx, TypeProfileParmsLimit, 2, \
2815
"max number of incoming parameters to consider for type profiling"\
2816
", -1 for all") \
2817
\
2818
/* statistics */ \
2819
develop(bool, CountCompiledCalls, false, \
2820
"Count method invocations") \
2821
\
2822
notproduct(bool, CountRuntimeCalls, false, \
2823
"Count VM runtime calls") \
2824
\
2825
develop(bool, CountJNICalls, false, \
2826
"Count jni method invocations") \
2827
\
2828
notproduct(bool, CountJVMCalls, false, \
2829
"Count jvm method invocations") \
2830
\
2831
notproduct(bool, CountRemovableExceptions, false, \
2832
"Count exceptions that could be replaced by branches due to " \
2833
"inlining") \
2834
\
2835
notproduct(bool, ICMissHistogram, false, \
2836
"Produce histogram of IC misses") \
2837
\
2838
notproduct(bool, PrintClassStatistics, false, \
2839
"Print class statistics at end of run") \
2840
\
2841
notproduct(bool, PrintMethodStatistics, false, \
2842
"Print method statistics at end of run") \
2843
\
2844
/* interpreter */ \
2845
develop(bool, ClearInterpreterLocals, false, \
2846
"Always clear local variables of interpreter activations upon " \
2847
"entry") \
2848
\
2849
product_pd(bool, RewriteBytecodes, \
2850
"Allow rewriting of bytecodes (bytecodes are not immutable)") \
2851
\
2852
product_pd(bool, RewriteFrequentPairs, \
2853
"Rewrite frequently used bytecode pairs into a single bytecode") \
2854
\
2855
diagnostic(bool, PrintInterpreter, false, \
2856
"Print the generated interpreter code") \
2857
\
2858
product(bool, UseInterpreter, true, \
2859
"Use interpreter for non-compiled methods") \
2860
\
2861
develop(bool, UseFastSignatureHandlers, true, \
2862
"Use fast signature handlers for native calls") \
2863
\
2864
product(bool, UseLoopCounter, true, \
2865
"Increment invocation counter on backward branch") \
2866
\
2867
product(bool, UseFastEmptyMethods, true, \
2868
"Use fast method entry code for empty methods") \
2869
\
2870
product(bool, UseFastAccessorMethods, true, \
2871
"Use fast method entry code for accessor methods") \
2872
\
2873
product_pd(bool, UseOnStackReplacement, \
2874
"Use on stack replacement, calls runtime if invoc. counter " \
2875
"overflows in loop") \
2876
\
2877
notproduct(bool, TraceOnStackReplacement, false, \
2878
"Trace on stack replacement") \
2879
\
2880
product_pd(bool, PreferInterpreterNativeStubs, \
2881
"Use always interpreter stubs for native methods invoked via " \
2882
"interpreter") \
2883
\
2884
develop(bool, CountBytecodes, false, \
2885
"Count number of bytecodes executed") \
2886
\
2887
develop(bool, PrintBytecodeHistogram, false, \
2888
"Print histogram of the executed bytecodes") \
2889
\
2890
develop(bool, PrintBytecodePairHistogram, false, \
2891
"Print histogram of the executed bytecode pairs") \
2892
\
2893
diagnostic(bool, PrintSignatureHandlers, false, \
2894
"Print code generated for native method signature handlers") \
2895
\
2896
develop(bool, VerifyOops, false, \
2897
"Do plausibility checks for oops") \
2898
\
2899
develop(bool, CheckUnhandledOops, false, \
2900
"Check for unhandled oops in VM code") \
2901
\
2902
develop(bool, VerifyJNIFields, trueInDebug, \
2903
"Verify jfieldIDs for instance fields") \
2904
\
2905
notproduct(bool, VerifyJNIEnvThread, false, \
2906
"Verify JNIEnv.thread == Thread::current() when entering VM " \
2907
"from JNI") \
2908
\
2909
develop(bool, VerifyFPU, false, \
2910
"Verify FPU state (check for NaN's, etc.)") \
2911
\
2912
develop(bool, VerifyThread, false, \
2913
"Watch the thread register for corruption (SPARC only)") \
2914
\
2915
develop(bool, VerifyActivationFrameSize, false, \
2916
"Verify that activation frame didn't become smaller than its " \
2917
"minimal size") \
2918
\
2919
develop(bool, TraceFrequencyInlining, false, \
2920
"Trace frequency based inlining") \
2921
\
2922
develop_pd(bool, InlineIntrinsics, \
2923
"Inline intrinsics that can be statically resolved") \
2924
\
2925
product_pd(bool, ProfileInterpreter, \
2926
"Profile at the bytecode level during interpretation") \
2927
\
2928
develop(bool, TraceProfileInterpreter, false, \
2929
"Trace profiling at the bytecode level during interpretation. " \
2930
"This outputs the profiling information collected to improve " \
2931
"jit compilation.") \
2932
\
2933
develop_pd(bool, ProfileTraps, \
2934
"Profile deoptimization traps at the bytecode level") \
2935
\
2936
product(intx, ProfileMaturityPercentage, 20, \
2937
"number of method invocations/branches (expressed as % of " \
2938
"CompileThreshold) before using the method's profile") \
2939
\
2940
develop(bool, PrintMethodData, false, \
2941
"Print the results of +ProfileInterpreter at end of run") \
2942
\
2943
develop(bool, VerifyDataPointer, trueInDebug, \
2944
"Verify the method data pointer during interpreter profiling") \
2945
\
2946
develop(bool, VerifyCompiledCode, false, \
2947
"Include miscellaneous runtime verifications in nmethod code; " \
2948
"default off because it disturbs nmethod size heuristics") \
2949
\
2950
notproduct(bool, CrashGCForDumpingJavaThread, false, \
2951
"Manually make GC thread crash then dump java stack trace; " \
2952
"Test only") \
2953
\
2954
/* compilation */ \
2955
product(bool, UseCompiler, true, \
2956
"Use Just-In-Time compilation") \
2957
\
2958
develop(bool, TraceCompilationPolicy, false, \
2959
"Trace compilation policy") \
2960
\
2961
develop(bool, TimeCompilationPolicy, false, \
2962
"Time the compilation policy") \
2963
\
2964
product(bool, UseCounterDecay, true, \
2965
"Adjust recompilation counters") \
2966
\
2967
develop(intx, CounterHalfLifeTime, 30, \
2968
"Half-life time of invocation counters (in seconds)") \
2969
\
2970
develop(intx, CounterDecayMinIntervalLength, 500, \
2971
"The minimum interval (in milliseconds) between invocation of " \
2972
"CounterDecay") \
2973
\
2974
product(bool, AlwaysCompileLoopMethods, false, \
2975
"When using recompilation, never interpret methods " \
2976
"containing loops") \
2977
\
2978
product(bool, DontCompileHugeMethods, true, \
2979
"Do not compile methods > HugeMethodLimit") \
2980
\
2981
/* Bytecode escape analysis estimation. */ \
2982
product(bool, EstimateArgEscape, true, \
2983
"Analyze bytecodes to estimate escape state of arguments") \
2984
\
2985
product(intx, BCEATraceLevel, 0, \
2986
"How much tracing to do of bytecode escape analysis estimates") \
2987
\
2988
product(intx, MaxBCEAEstimateLevel, 5, \
2989
"Maximum number of nested calls that are analyzed by BC EA") \
2990
\
2991
product(intx, MaxBCEAEstimateSize, 150, \
2992
"Maximum bytecode size of a method to be analyzed by BC EA") \
2993
\
2994
product(intx, AllocatePrefetchStyle, 1, \
2995
"0 = no prefetch, " \
2996
"1 = prefetch instructions for each allocation, " \
2997
"2 = use TLAB watermark to gate allocation prefetch, " \
2998
"3 = use BIS instruction on Sparc for allocation prefetch") \
2999
\
3000
product(intx, AllocatePrefetchDistance, -1, \
3001
"Distance to prefetch ahead of allocation pointer") \
3002
\
3003
product(intx, AllocatePrefetchLines, 3, \
3004
"Number of lines to prefetch ahead of array allocation pointer") \
3005
\
3006
product(intx, AllocateInstancePrefetchLines, 1, \
3007
"Number of lines to prefetch ahead of instance allocation " \
3008
"pointer") \
3009
\
3010
product(intx, AllocatePrefetchStepSize, 16, \
3011
"Step size in bytes of sequential prefetch instructions") \
3012
\
3013
product(intx, AllocatePrefetchInstr, 0, \
3014
"Prefetch instruction to prefetch ahead of allocation pointer") \
3015
\
3016
/* deoptimization */ \
3017
develop(bool, TraceDeoptimization, false, \
3018
"Trace deoptimization") \
3019
\
3020
develop(bool, DebugDeoptimization, false, \
3021
"Tracing various information while debugging deoptimization") \
3022
\
3023
product(intx, SelfDestructTimer, 0, \
3024
"Will cause VM to terminate after a given time (in minutes) " \
3025
"(0 means off)") \
3026
\
3027
product(intx, MaxJavaStackTraceDepth, 1024, \
3028
"The maximum number of lines in the stack trace for Java " \
3029
"exceptions (0 means all)") \
3030
\
3031
NOT_EMBEDDED(diagnostic(intx, GuaranteedSafepointInterval, 1000, \
3032
"Guarantee a safepoint (at least) every so many milliseconds " \
3033
"(0 means none)")) \
3034
\
3035
EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0, \
3036
"Guarantee a safepoint (at least) every so many milliseconds " \
3037
"(0 means none)")) \
3038
\
3039
product(intx, SafepointTimeoutDelay, 10000, \
3040
"Delay in milliseconds for option SafepointTimeout") \
3041
\
3042
product(intx, NmethodSweepFraction, 16, \
3043
"Number of invocations of sweeper to cover all nmethods") \
3044
\
3045
product(intx, NmethodSweepCheckInterval, 5, \
3046
"Compilers wake up every n seconds to possibly sweep nmethods") \
3047
\
3048
product(intx, NmethodSweepActivity, 10, \
3049
"Removes cold nmethods from code cache if > 0. Higher values " \
3050
"result in more aggressive sweeping") \
3051
\
3052
notproduct(bool, LogSweeper, false, \
3053
"Keep a ring buffer of sweeper activity") \
3054
\
3055
notproduct(intx, SweeperLogEntries, 1024, \
3056
"Number of records in the ring buffer of sweeper activity") \
3057
\
3058
notproduct(intx, MemProfilingInterval, 500, \
3059
"Time between each invocation of the MemProfiler") \
3060
\
3061
develop(intx, MallocCatchPtr, -1, \
3062
"Hit breakpoint when mallocing/freeing this pointer") \
3063
\
3064
notproduct(intx, AssertRepeat, 1, \
3065
"number of times to evaluate expression in assert " \
3066
"(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \
3067
\
3068
notproduct(ccstrlist, SuppressErrorAt, "", \
3069
"List of assertions (file:line) to muzzle") \
3070
\
3071
notproduct(uintx, HandleAllocationLimit, 1024, \
3072
"Threshold for HandleMark allocation when +TraceHandleAllocation "\
3073
"is used") \
3074
\
3075
develop(uintx, TotalHandleAllocationLimit, 1024, \
3076
"Threshold for total handle allocation when " \
3077
"+TraceHandleAllocation is used") \
3078
\
3079
develop(intx, StackPrintLimit, 100, \
3080
"number of stack frames to print in VM-level stack dump") \
3081
\
3082
notproduct(intx, MaxElementPrintSize, 256, \
3083
"maximum number of elements to print") \
3084
\
3085
notproduct(intx, MaxSubklassPrintSize, 4, \
3086
"maximum number of subklasses to print when printing klass") \
3087
\
3088
product(intx, MaxInlineLevel, 9, \
3089
"maximum number of nested calls that are inlined") \
3090
\
3091
product(intx, MaxRecursiveInlineLevel, 1, \
3092
"maximum number of nested recursive calls that are inlined") \
3093
\
3094
develop(intx, MaxForceInlineLevel, 100, \
3095
"maximum number of nested calls that are forced for inlining " \
3096
"(using CompilerOracle or marked w/ @ForceInline)") \
3097
\
3098
product_pd(intx, InlineSmallCode, \
3099
"Only inline already compiled methods if their code size is " \
3100
"less than this") \
3101
\
3102
product(intx, MaxInlineSize, 35, \
3103
"The maximum bytecode size of a method to be inlined") \
3104
\
3105
product_pd(intx, FreqInlineSize, \
3106
"The maximum bytecode size of a frequent method to be inlined") \
3107
\
3108
product(intx, MaxTrivialSize, 6, \
3109
"The maximum bytecode size of a trivial method to be inlined") \
3110
\
3111
product(intx, MinInliningThreshold, 250, \
3112
"The minimum invocation count a method needs to have to be " \
3113
"inlined") \
3114
\
3115
develop(intx, MethodHistogramCutoff, 100, \
3116
"The cutoff value for method invocation histogram (+CountCalls)") \
3117
\
3118
develop(intx, ProfilerNumberOfInterpretedMethods, 25, \
3119
"Number of interpreted methods to show in profile") \
3120
\
3121
develop(intx, ProfilerNumberOfCompiledMethods, 25, \
3122
"Number of compiled methods to show in profile") \
3123
\
3124
develop(intx, ProfilerNumberOfStubMethods, 25, \
3125
"Number of stub methods to show in profile") \
3126
\
3127
develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \
3128
"Number of runtime stub nodes to show in profile") \
3129
\
3130
product(intx, ProfileIntervalsTicks, 100, \
3131
"Number of ticks between printing of interval profile " \
3132
"(+ProfileIntervals)") \
3133
\
3134
notproduct(intx, ScavengeALotInterval, 1, \
3135
"Interval between which scavenge will occur with +ScavengeALot") \
3136
\
3137
notproduct(intx, FullGCALotInterval, 1, \
3138
"Interval between which full gc will occur with +FullGCALot") \
3139
\
3140
notproduct(intx, FullGCALotStart, 0, \
3141
"For which invocation to start FullGCAlot") \
3142
\
3143
notproduct(intx, FullGCALotDummies, 32*K, \
3144
"Dummy object allocated with +FullGCALot, forcing all objects " \
3145
"to move") \
3146
\
3147
develop(intx, DontYieldALotInterval, 10, \
3148
"Interval between which yields will be dropped (milliseconds)") \
3149
\
3150
develop(intx, MinSleepInterval, 1, \
3151
"Minimum sleep() interval (milliseconds) when " \
3152
"ConvertSleepToYield is off (used for Solaris)") \
3153
\
3154
develop(intx, ProfilerPCTickThreshold, 15, \
3155
"Number of ticks in a PC buckets to be a hotspot") \
3156
\
3157
notproduct(intx, DeoptimizeALotInterval, 5, \
3158
"Number of exits until DeoptimizeALot kicks in") \
3159
\
3160
notproduct(intx, ZombieALotInterval, 5, \
3161
"Number of exits until ZombieALot kicks in") \
3162
\
3163
diagnostic(intx, MallocVerifyInterval, 0, \
3164
"If non-zero, verify C heap after every N calls to " \
3165
"malloc/realloc/free") \
3166
\
3167
diagnostic(intx, MallocVerifyStart, 0, \
3168
"If non-zero, start verifying C heap after Nth call to " \
3169
"malloc/realloc/free") \
3170
\
3171
diagnostic(uintx, MallocMaxTestWords, 0, \
3172
"If non-zero, maximum number of words that malloc/realloc can " \
3173
"allocate (for testing only)") \
3174
\
3175
product(intx, TypeProfileWidth, 2, \
3176
"Number of receiver types to record in call/cast profile") \
3177
\
3178
develop(intx, BciProfileWidth, 2, \
3179
"Number of return bci's to record in ret profile") \
3180
\
3181
product(intx, PerMethodRecompilationCutoff, 400, \
3182
"After recompiling N times, stay in the interpreter (-1=>'Inf')") \
3183
\
3184
product(intx, PerBytecodeRecompilationCutoff, 200, \
3185
"Per-BCI limit on repeated recompilation (-1=>'Inf')") \
3186
\
3187
product(intx, PerMethodTrapLimit, 100, \
3188
"Limit on traps (of one kind) in a method (includes inlines)") \
3189
\
3190
experimental(intx, PerMethodSpecTrapLimit, 5000, \
3191
"Limit on speculative traps (of one kind) in a method (includes inlines)") \
3192
\
3193
product(intx, PerBytecodeTrapLimit, 4, \
3194
"Limit on traps (of one kind) at a particular BCI") \
3195
\
3196
experimental(intx, SpecTrapLimitExtraEntries, 3, \
3197
"Extra method data trap entries for speculation") \
3198
\
3199
develop(intx, InlineFrequencyRatio, 20, \
3200
"Ratio of call site execution to caller method invocation") \
3201
\
3202
develop_pd(intx, InlineFrequencyCount, \
3203
"Count of call site execution necessary to trigger frequent " \
3204
"inlining") \
3205
\
3206
develop(intx, InlineThrowCount, 50, \
3207
"Force inlining of interpreted methods that throw this often") \
3208
\
3209
develop(intx, InlineThrowMaxSize, 200, \
3210
"Force inlining of throwing methods smaller than this") \
3211
\
3212
develop(intx, ProfilerNodeSize, 1024, \
3213
"Size in K to allocate for the Profile Nodes of each thread") \
3214
\
3215
product_pd(intx, PreInflateSpin, \
3216
"Number of times to spin wait before inflation") \
3217
\
3218
/* gc parameters */ \
3219
product(uintx, InitialHeapSize, 0, \
3220
"Initial heap size (in bytes); zero means use ergonomics") \
3221
\
3222
product(uintx, MaxHeapSize, ScaleForWordSize(96*M), \
3223
"Maximum heap size (in bytes)") \
3224
\
3225
product(uintx, OldSize, ScaleForWordSize(4*M), \
3226
"Initial tenured generation size (in bytes)") \
3227
\
3228
product(uintx, NewSize, ScaleForWordSize(1*M), \
3229
"Initial new generation size (in bytes)") \
3230
\
3231
product(uintx, MaxNewSize, max_uintx, \
3232
"Maximum new generation size (in bytes), max_uintx means set " \
3233
"ergonomically") \
3234
\
3235
product(uintx, PretenureSizeThreshold, 0, \
3236
"Maximum size in bytes of objects allocated in DefNew " \
3237
"generation; zero means no maximum") \
3238
\
3239
product(uintx, TLABSize, 0, \
3240
"Starting TLAB size (in bytes); zero means set ergonomically") \
3241
\
3242
product(uintx, MinTLABSize, 2*K, \
3243
"Minimum allowed TLAB size (in bytes)") \
3244
\
3245
product(uintx, TLABAllocationWeight, 35, \
3246
"Allocation averaging weight") \
3247
\
3248
product(uintx, TLABWasteTargetPercent, 1, \
3249
"Percentage of Eden that can be wasted") \
3250
\
3251
product(uintx, TLABRefillWasteFraction, 64, \
3252
"Maximum TLAB waste at a refill (internal fragmentation)") \
3253
\
3254
product(uintx, TLABWasteIncrement, 4, \
3255
"Increment allowed waste at slow allocation") \
3256
\
3257
product(uintx, SurvivorRatio, 8, \
3258
"Ratio of eden/survivor space size") \
3259
\
3260
product(uintx, NewRatio, 2, \
3261
"Ratio of old/new generation sizes") \
3262
\
3263
product_pd(uintx, NewSizeThreadIncrease, \
3264
"Additional size added to desired new generation size per " \
3265
"non-daemon thread (in bytes)") \
3266
\
3267
product_pd(uintx, MetaspaceSize, \
3268
"Initial size of Metaspaces (in bytes)") \
3269
\
3270
product(uintx, MaxMetaspaceSize, max_uintx, \
3271
"Maximum size of Metaspaces (in bytes)") \
3272
\
3273
product(uintx, CompressedClassSpaceSize, 1*G, \
3274
"Maximum size of class area in Metaspace when compressed " \
3275
"class pointers are used") \
3276
\
3277
manageable(uintx, MinHeapFreeRatio, 40, \
3278
"The minimum percentage of heap free after GC to avoid expansion."\
3279
" For most GCs this applies to the old generation. In G1 and" \
3280
" ParallelGC it applies to the whole heap.") \
3281
\
3282
manageable(uintx, MaxHeapFreeRatio, 70, \
3283
"The maximum percentage of heap free after GC to avoid shrinking."\
3284
" For most GCs this applies to the old generation. In G1 and" \
3285
" ParallelGC it applies to the whole heap.") \
3286
\
3287
product(intx, SoftRefLRUPolicyMSPerMB, 1000, \
3288
"Number of milliseconds per MB of free space in the heap") \
3289
\
3290
product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K), \
3291
"The minimum change in heap space due to GC (in bytes)") \
3292
\
3293
product(uintx, MinMetaspaceExpansion, ScaleForWordSize(256*K), \
3294
"The minimum expansion of Metaspace (in bytes)") \
3295
\
3296
product(uintx, MinMetaspaceFreeRatio, 40, \
3297
"The minimum percentage of Metaspace free after GC to avoid " \
3298
"expansion") \
3299
\
3300
product(uintx, MaxMetaspaceFreeRatio, 70, \
3301
"The maximum percentage of Metaspace free after GC to avoid " \
3302
"shrinking") \
3303
\
3304
product(uintx, MaxMetaspaceExpansion, ScaleForWordSize(4*M), \
3305
"The maximum expansion of Metaspace without full GC (in bytes)") \
3306
\
3307
product(uintx, QueuedAllocationWarningCount, 0, \
3308
"Number of times an allocation that queues behind a GC " \
3309
"will retry before printing a warning") \
3310
\
3311
diagnostic(uintx, VerifyGCStartAt, 0, \
3312
"GC invoke count where +VerifyBefore/AfterGC kicks in") \
3313
\
3314
diagnostic(intx, VerifyGCLevel, 0, \
3315
"Generation level at which to start +VerifyBefore/AfterGC") \
3316
\
3317
product(uintx, MaxTenuringThreshold, 15, \
3318
"Maximum value for tenuring threshold") \
3319
\
3320
product(uintx, InitialTenuringThreshold, 7, \
3321
"Initial value for tenuring threshold") \
3322
\
3323
product(uintx, TargetSurvivorRatio, 50, \
3324
"Desired percentage of survivor space used after scavenge") \
3325
\
3326
product(uintx, MarkSweepDeadRatio, 5, \
3327
"Percentage (0-100) of the old gen allowed as dead wood. " \
3328
"Serial mark sweep treats this as both the minimum and maximum " \
3329
"value. " \
3330
"CMS uses this value only if it falls back to mark sweep. " \
3331
"Par compact uses a variable scale based on the density of the " \
3332
"generation and treats this as the maximum value when the heap " \
3333
"is either completely full or completely empty. Par compact " \
3334
"also has a smaller default value; see arguments.cpp.") \
3335
\
3336
product(uintx, MarkSweepAlwaysCompactCount, 4, \
3337
"How often should we fully compact the heap (ignoring the dead " \
3338
"space parameters)") \
3339
\
3340
product(intx, PrintCMSStatistics, 0, \
3341
"Statistics for CMS") \
3342
\
3343
product(bool, PrintCMSInitiationStatistics, false, \
3344
"Statistics for initiating a CMS collection") \
3345
\
3346
product(intx, PrintFLSStatistics, 0, \
3347
"Statistics for CMS' FreeListSpace") \
3348
\
3349
product(intx, PrintFLSCensus, 0, \
3350
"Census for CMS' FreeListSpace") \
3351
\
3352
develop(uintx, GCExpandToAllocateDelayMillis, 0, \
3353
"Delay between expansion and allocation (in milliseconds)") \
3354
\
3355
develop(uintx, GCWorkerDelayMillis, 0, \
3356
"Delay in scheduling GC workers (in milliseconds)") \
3357
\
3358
product(intx, DeferThrSuspendLoopCount, 4000, \
3359
"(Unstable) Number of times to iterate in safepoint loop " \
3360
"before blocking VM threads ") \
3361
\
3362
product(intx, DeferPollingPageLoopCount, -1, \
3363
"(Unsafe,Unstable) Number of iterations in safepoint loop " \
3364
"before changing safepoint polling page to RO ") \
3365
\
3366
product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \
3367
\
3368
product(bool, PSChunkLargeArrays, true, \
3369
"Process large arrays in chunks") \
3370
\
3371
product(uintx, GCDrainStackTargetSize, 64, \
3372
"Number of entries we will try to leave on the stack " \
3373
"during parallel gc") \
3374
\
3375
/* stack parameters */ \
3376
product_pd(intx, StackYellowPages, \
3377
"Number of yellow zone (recoverable overflows) pages") \
3378
\
3379
product_pd(intx, StackRedPages, \
3380
"Number of red zone (unrecoverable overflows) pages") \
3381
\
3382
product_pd(intx, StackShadowPages, \
3383
"Number of shadow zone (for overflow checking) pages " \
3384
"this should exceed the depth of the VM and native call stack") \
3385
\
3386
product_pd(intx, ThreadStackSize, \
3387
"Thread Stack Size (in Kbytes)") \
3388
\
3389
product_pd(intx, VMThreadStackSize, \
3390
"Non-Java Thread Stack Size (in Kbytes)") \
3391
\
3392
product_pd(intx, CompilerThreadStackSize, \
3393
"Compiler Thread Stack Size (in Kbytes)") \
3394
\
3395
develop_pd(uintx, JVMInvokeMethodSlack, \
3396
"Stack space (bytes) required for JVM_InvokeMethod to complete") \
3397
\
3398
product(uintx, ThreadSafetyMargin, 50*M, \
3399
"Thread safety margin is used on fixed-stack LinuxThreads (on " \
3400
"Linux/x86 only) to prevent heap-stack collision. Set to 0 to " \
3401
"disable this feature") \
3402
\
3403
/* code cache parameters */ \
3404
/* ppc64 has large code-entry alignment. */ \
3405
develop(uintx, CodeCacheSegmentSize, 64 PPC64_ONLY(+64), \
3406
"Code cache segment size (in bytes) - smallest unit of " \
3407
"allocation") \
3408
\
3409
develop_pd(intx, CodeEntryAlignment, \
3410
"Code entry alignment for generated code (in bytes)") \
3411
\
3412
product_pd(intx, OptoLoopAlignment, \
3413
"Align inner loops to zero relative to this modulus") \
3414
\
3415
product_pd(uintx, InitialCodeCacheSize, \
3416
"Initial code cache size (in bytes)") \
3417
\
3418
develop_pd(uintx, CodeCacheMinimumUseSpace, \
3419
"Minimum code cache size (in bytes) required to start VM.") \
3420
\
3421
product_pd(uintx, ReservedCodeCacheSize, \
3422
"Reserved code cache size (in bytes) - maximum code cache size") \
3423
\
3424
product(uintx, CodeCacheMinimumFreeSpace, 500*K, \
3425
"When less than X space left, we stop compiling") \
3426
\
3427
product_pd(uintx, CodeCacheExpansionSize, \
3428
"Code cache expansion size (in bytes)") \
3429
\
3430
develop_pd(uintx, CodeCacheMinBlockLength, \
3431
"Minimum number of segments in a code cache block") \
3432
\
3433
notproduct(bool, ExitOnFullCodeCache, false, \
3434
"Exit the VM if we fill the code cache") \
3435
\
3436
product(bool, UseCodeCacheFlushing, true, \
3437
"Remove cold/old nmethods from the code cache") \
3438
\
3439
/* interpreter debugging */ \
3440
develop(intx, BinarySwitchThreshold, 5, \
3441
"Minimal number of lookupswitch entries for rewriting to binary " \
3442
"switch") \
3443
\
3444
develop(intx, StopInterpreterAt, 0, \
3445
"Stop interpreter execution at specified bytecode number") \
3446
\
3447
develop(intx, TraceBytecodesAt, 0, \
3448
"Trace bytecodes starting with specified bytecode number") \
3449
\
3450
/* compiler interface */ \
3451
develop(intx, CIStart, 0, \
3452
"The id of the first compilation to permit") \
3453
\
3454
develop(intx, CIStop, max_jint, \
3455
"The id of the last compilation to permit") \
3456
\
3457
develop(intx, CIStartOSR, 0, \
3458
"The id of the first osr compilation to permit " \
3459
"(CICountOSR must be on)") \
3460
\
3461
develop(intx, CIStopOSR, max_jint, \
3462
"The id of the last osr compilation to permit " \
3463
"(CICountOSR must be on)") \
3464
\
3465
develop(intx, CIBreakAtOSR, -1, \
3466
"The id of osr compilation to break at") \
3467
\
3468
develop(intx, CIBreakAt, -1, \
3469
"The id of compilation to break at") \
3470
\
3471
product(ccstrlist, CompileOnly, "", \
3472
"List of methods (pkg/class.name) to restrict compilation to") \
3473
\
3474
product(ccstr, CompileCommandFile, NULL, \
3475
"Read compiler commands from this file [.hotspot_compiler]") \
3476
\
3477
product(ccstrlist, CompileCommand, "", \
3478
"Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
3479
\
3480
develop(bool, ReplayCompiles, false, \
3481
"Enable replay of compilations from ReplayDataFile") \
3482
\
3483
product(ccstr, ReplayDataFile, NULL, \
3484
"File containing compilation replay information" \
3485
"[default: ./replay_pid%p.log] (%p replaced with pid)") \
3486
\
3487
product(ccstr, InlineDataFile, NULL, \
3488
"File containing inlining replay information" \
3489
"[default: ./inline_pid%p.log] (%p replaced with pid)") \
3490
\
3491
develop(intx, ReplaySuppressInitializers, 2, \
3492
"Control handling of class initialization during replay: " \
3493
"0 - don't do anything special; " \
3494
"1 - treat all class initializers as empty; " \
3495
"2 - treat class initializers for application classes as empty; " \
3496
"3 - allow all class initializers to run during bootstrap but " \
3497
" pretend they are empty after starting replay") \
3498
\
3499
develop(bool, ReplayIgnoreInitErrors, false, \
3500
"Ignore exceptions thrown during initialization for replay") \
3501
\
3502
product(bool, DumpReplayDataOnError, true, \
3503
"Record replay data for crashing compiler threads") \
3504
\
3505
product(bool, CICompilerCountPerCPU, false, \
3506
"1 compiler thread for log(N CPUs)") \
3507
\
3508
develop(intx, CIFireOOMAt, -1, \
3509
"Fire OutOfMemoryErrors throughout CI for testing the compiler " \
3510
"(non-negative value throws OOM after this many CI accesses " \
3511
"in each compile)") \
3512
notproduct(intx, CICrashAt, -1, \
3513
"id of compilation to trigger assert in compiler thread for " \
3514
"the purpose of testing, e.g. generation of replay data") \
3515
notproduct(bool, CIObjectFactoryVerify, false, \
3516
"enable potentially expensive verification in ciObjectFactory") \
3517
\
3518
diagnostic(bool, AbortVMOnCompilationFailure, false, \
3519
"Abort VM when method had failed to compile.") \
3520
\
3521
/* Priorities */ \
3522
product_pd(bool, UseThreadPriorities, "Use native thread priorities") \
3523
\
3524
product(intx, ThreadPriorityPolicy, 0, \
3525
"0 : Normal. "\
3526
" VM chooses priorities that are appropriate for normal "\
3527
" applications. On Solaris NORM_PRIORITY and above are mapped "\
3528
" to normal native priority. Java priorities below " \
3529
" NORM_PRIORITY map to lower native priority values. On "\
3530
" Windows applications are allowed to use higher native "\
3531
" priorities. However, with ThreadPriorityPolicy=0, VM will "\
3532
" not use the highest possible native priority, "\
3533
" THREAD_PRIORITY_TIME_CRITICAL, as it may interfere with "\
3534
" system threads. On Linux thread priorities are ignored "\
3535
" because the OS does not support static priority in "\
3536
" SCHED_OTHER scheduling class which is the only choice for "\
3537
" non-root, non-realtime applications. "\
3538
"1 : Aggressive. "\
3539
" Java thread priorities map over to the entire range of "\
3540
" native thread priorities. Higher Java thread priorities map "\
3541
" to higher native thread priorities. This policy should be "\
3542
" used with care, as sometimes it can cause performance "\
3543
" degradation in the application and/or the entire system. On "\
3544
" Linux this policy requires root privilege.") \
3545
\
3546
product(bool, ThreadPriorityVerbose, false, \
3547
"Print priority changes") \
3548
\
3549
product(intx, DefaultThreadPriority, -1, \
3550
"The native priority at which threads run if not elsewhere " \
3551
"specified (-1 means no change)") \
3552
\
3553
product(intx, CompilerThreadPriority, -1, \
3554
"The native priority at which compiler threads should run " \
3555
"(-1 means no change)") \
3556
\
3557
product(intx, VMThreadPriority, -1, \
3558
"The native priority at which the VM thread should run " \
3559
"(-1 means no change)") \
3560
\
3561
product(bool, CompilerThreadHintNoPreempt, true, \
3562
"(Solaris only) Give compiler threads an extra quanta") \
3563
\
3564
product(bool, VMThreadHintNoPreempt, false, \
3565
"(Solaris only) Give VM thread an extra quanta") \
3566
\
3567
product(intx, JavaPriority1_To_OSPriority, -1, \
3568
"Map Java priorities to OS priorities") \
3569
\
3570
product(intx, JavaPriority2_To_OSPriority, -1, \
3571
"Map Java priorities to OS priorities") \
3572
\
3573
product(intx, JavaPriority3_To_OSPriority, -1, \
3574
"Map Java priorities to OS priorities") \
3575
\
3576
product(intx, JavaPriority4_To_OSPriority, -1, \
3577
"Map Java priorities to OS priorities") \
3578
\
3579
product(intx, JavaPriority5_To_OSPriority, -1, \
3580
"Map Java priorities to OS priorities") \
3581
\
3582
product(intx, JavaPriority6_To_OSPriority, -1, \
3583
"Map Java priorities to OS priorities") \
3584
\
3585
product(intx, JavaPriority7_To_OSPriority, -1, \
3586
"Map Java priorities to OS priorities") \
3587
\
3588
product(intx, JavaPriority8_To_OSPriority, -1, \
3589
"Map Java priorities to OS priorities") \
3590
\
3591
product(intx, JavaPriority9_To_OSPriority, -1, \
3592
"Map Java priorities to OS priorities") \
3593
\
3594
product(intx, JavaPriority10_To_OSPriority,-1, \
3595
"Map Java priorities to OS priorities") \
3596
\
3597
experimental(bool, UseCriticalJavaThreadPriority, false, \
3598
"Java thread priority 10 maps to critical scheduling priority") \
3599
\
3600
experimental(bool, UseCriticalCompilerThreadPriority, false, \
3601
"Compiler thread(s) run at critical scheduling priority") \
3602
\
3603
experimental(bool, UseCriticalCMSThreadPriority, false, \
3604
"ConcurrentMarkSweep thread runs at critical scheduling priority")\
3605
\
3606
/* compiler debugging */ \
3607
notproduct(intx, CompileTheWorldStartAt, 1, \
3608
"First class to consider when using +CompileTheWorld") \
3609
\
3610
notproduct(intx, CompileTheWorldStopAt, max_jint, \
3611
"Last class to consider when using +CompileTheWorld") \
3612
\
3613
develop(intx, NewCodeParameter, 0, \
3614
"Testing Only: Create a dedicated integer parameter before " \
3615
"putback") \
3616
\
3617
/* new oopmap storage allocation */ \
3618
develop(intx, MinOopMapAllocation, 8, \
3619
"Minimum number of OopMap entries in an OopMapSet") \
3620
\
3621
/* Background Compilation */ \
3622
develop(intx, LongCompileThreshold, 50, \
3623
"Used with +TraceLongCompiles") \
3624
\
3625
product(intx, StarvationMonitorInterval, 200, \
3626
"Pause between each check (in milliseconds)") \
3627
\
3628
/* recompilation */ \
3629
product_pd(intx, CompileThreshold, \
3630
"number of interpreted method invocations before (re-)compiling") \
3631
\
3632
product_pd(intx, BackEdgeThreshold, \
3633
"Interpreter Back edge threshold at which an OSR compilation is " \
3634
"invoked") \
3635
\
3636
product(intx, Tier0InvokeNotifyFreqLog, 7, \
3637
"Interpreter (tier 0) invocation notification frequency") \
3638
\
3639
product(intx, Tier2InvokeNotifyFreqLog, 11, \
3640
"C1 without MDO (tier 2) invocation notification frequency") \
3641
\
3642
product(intx, Tier3InvokeNotifyFreqLog, 10, \
3643
"C1 with MDO profiling (tier 3) invocation notification " \
3644
"frequency") \
3645
\
3646
product(intx, Tier23InlineeNotifyFreqLog, 20, \
3647
"Inlinee invocation (tiers 2 and 3) notification frequency") \
3648
\
3649
product(intx, Tier0BackedgeNotifyFreqLog, 10, \
3650
"Interpreter (tier 0) invocation notification frequency") \
3651
\
3652
product(intx, Tier2BackedgeNotifyFreqLog, 14, \
3653
"C1 without MDO (tier 2) invocation notification frequency") \
3654
\
3655
product(intx, Tier3BackedgeNotifyFreqLog, 13, \
3656
"C1 with MDO profiling (tier 3) invocation notification " \
3657
"frequency") \
3658
\
3659
product(intx, Tier2CompileThreshold, 0, \
3660
"threshold at which tier 2 compilation is invoked") \
3661
\
3662
product(intx, Tier2BackEdgeThreshold, 0, \
3663
"Back edge threshold at which tier 2 compilation is invoked") \
3664
\
3665
product(intx, Tier3InvocationThreshold, 200, \
3666
"Compile if number of method invocations crosses this " \
3667
"threshold") \
3668
\
3669
product(intx, Tier3MinInvocationThreshold, 100, \
3670
"Minimum invocation to compile at tier 3") \
3671
\
3672
product(intx, Tier3CompileThreshold, 2000, \
3673
"Threshold at which tier 3 compilation is invoked (invocation " \
3674
"minimum must be satisfied") \
3675
\
3676
product(intx, Tier3BackEdgeThreshold, 60000, \
3677
"Back edge threshold at which tier 3 OSR compilation is invoked") \
3678
\
3679
product(intx, Tier4InvocationThreshold, 5000, \
3680
"Compile if number of method invocations crosses this " \
3681
"threshold") \
3682
\
3683
product(intx, Tier4MinInvocationThreshold, 600, \
3684
"Minimum invocation to compile at tier 4") \
3685
\
3686
product(intx, Tier4CompileThreshold, 15000, \
3687
"Threshold at which tier 4 compilation is invoked (invocation " \
3688
"minimum must be satisfied") \
3689
\
3690
product(intx, Tier4BackEdgeThreshold, 40000, \
3691
"Back edge threshold at which tier 4 OSR compilation is invoked") \
3692
\
3693
product(intx, Tier3DelayOn, 5, \
3694
"If C2 queue size grows over this amount per compiler thread " \
3695
"stop compiling at tier 3 and start compiling at tier 2") \
3696
\
3697
product(intx, Tier3DelayOff, 2, \
3698
"If C2 queue size is less than this amount per compiler thread " \
3699
"allow methods compiled at tier 2 transition to tier 3") \
3700
\
3701
product(intx, Tier3LoadFeedback, 5, \
3702
"Tier 3 thresholds will increase twofold when C1 queue size " \
3703
"reaches this amount per compiler thread") \
3704
\
3705
product(intx, Tier4LoadFeedback, 3, \
3706
"Tier 4 thresholds will increase twofold when C2 queue size " \
3707
"reaches this amount per compiler thread") \
3708
\
3709
product(intx, TieredCompileTaskTimeout, 50, \
3710
"Kill compile task if method was not used within " \
3711
"given timeout in milliseconds") \
3712
\
3713
product(intx, TieredStopAtLevel, 4, \
3714
"Stop at given compilation level") \
3715
\
3716
product(intx, Tier0ProfilingStartPercentage, 200, \
3717
"Start profiling in interpreter if the counters exceed tier 3 " \
3718
"thresholds by the specified percentage") \
3719
\
3720
product(uintx, IncreaseFirstTierCompileThresholdAt, 50, \
3721
"Increase the compile threshold for C1 compilation if the code " \
3722
"cache is filled by the specified percentage") \
3723
\
3724
product(intx, TieredRateUpdateMinTime, 1, \
3725
"Minimum rate sampling interval (in milliseconds)") \
3726
\
3727
product(intx, TieredRateUpdateMaxTime, 25, \
3728
"Maximum rate sampling interval (in milliseconds)") \
3729
\
3730
product_pd(bool, TieredCompilation, \
3731
"Enable tiered compilation") \
3732
\
3733
product(bool, PrintTieredEvents, false, \
3734
"Print tiered events notifications") \
3735
\
3736
product_pd(intx, OnStackReplacePercentage, \
3737
"NON_TIERED number of method invocations/branches (expressed as " \
3738
"% of CompileThreshold) before (re-)compiling OSR code") \
3739
\
3740
product(intx, InterpreterProfilePercentage, 33, \
3741
"NON_TIERED number of method invocations/branches (expressed as " \
3742
"% of CompileThreshold) before profiling in the interpreter") \
3743
\
3744
develop(intx, MaxRecompilationSearchLength, 10, \
3745
"The maximum number of frames to inspect when searching for " \
3746
"recompilee") \
3747
\
3748
develop(intx, MaxInterpretedSearchLength, 3, \
3749
"The maximum number of interpreted frames to skip when searching "\
3750
"for recompilee") \
3751
\
3752
develop(intx, DesiredMethodLimit, 8000, \
3753
"The desired maximum method size (in bytecodes) after inlining") \
3754
\
3755
develop(intx, HugeMethodLimit, 8000, \
3756
"Don't compile methods larger than this if " \
3757
"+DontCompileHugeMethods") \
3758
\
3759
/* New JDK 1.4 reflection implementation */ \
3760
\
3761
develop(bool, UseNewReflection, true, \
3762
"Temporary flag for transition to reflection based on dynamic " \
3763
"bytecode generation in 1.4; can no longer be turned off in 1.4 " \
3764
"JDK, and is unneeded in 1.3 JDK, but marks most places VM " \
3765
"changes were needed") \
3766
\
3767
develop(bool, VerifyReflectionBytecodes, false, \
3768
"Force verification of 1.4 reflection bytecodes. Does not work " \
3769
"in situations like that described in 4486457 or for " \
3770
"constructors generated for serialization, so can not be enabled "\
3771
"in product.") \
3772
\
3773
product(bool, ReflectionWrapResolutionErrors, true, \
3774
"Temporary flag for transition to AbstractMethodError wrapped " \
3775
"in InvocationTargetException. See 6531596") \
3776
\
3777
develop(intx, FastSuperclassLimit, 8, \
3778
"Depth of hardwired instanceof accelerator array") \
3779
\
3780
/* Properties for Java libraries */ \
3781
\
3782
product(uintx, MaxDirectMemorySize, 0, \
3783
"Maximum total size of NIO direct-buffer allocations") \
3784
\
3785
/* temporary developer defined flags */ \
3786
\
3787
diagnostic(bool, UseNewCode, false, \
3788
"Testing Only: Use the new version while testing") \
3789
\
3790
diagnostic(bool, UseNewCode2, false, \
3791
"Testing Only: Use the new version while testing") \
3792
\
3793
diagnostic(bool, UseNewCode3, false, \
3794
"Testing Only: Use the new version while testing") \
3795
\
3796
/* flags for performance data collection */ \
3797
\
3798
product(bool, UsePerfData, falseInEmbedded, \
3799
"Flag to disable jvmstat instrumentation for performance testing "\
3800
"and problem isolation purposes") \
3801
\
3802
product(bool, PerfDataSaveToFile, false, \
3803
"Save PerfData memory to hsperfdata_<pid> file on exit") \
3804
\
3805
product(ccstr, PerfDataSaveFile, NULL, \
3806
"Save PerfData memory to the specified absolute pathname. " \
3807
"The string %p in the file name (if present) " \
3808
"will be replaced by pid") \
3809
\
3810
product(intx, PerfDataSamplingInterval, 50, \
3811
"Data sampling interval (in milliseconds)") \
3812
\
3813
develop(bool, PerfTraceDataCreation, false, \
3814
"Trace creation of Performance Data Entries") \
3815
\
3816
develop(bool, PerfTraceMemOps, false, \
3817
"Trace PerfMemory create/attach/detach calls") \
3818
\
3819
product(bool, PerfDisableSharedMem, false, \
3820
"Store performance data in standard memory") \
3821
\
3822
product(intx, PerfDataMemorySize, 32*K, \
3823
"Size of performance data memory region. Will be rounded " \
3824
"up to a multiple of the native os page size.") \
3825
\
3826
product(intx, PerfMaxStringConstLength, 1024, \
3827
"Maximum PerfStringConstant string length before truncation") \
3828
\
3829
product(bool, PerfAllowAtExitRegistration, false, \
3830
"Allow registration of atexit() methods") \
3831
\
3832
product(bool, PerfBypassFileSystemCheck, false, \
3833
"Bypass Win32 file system criteria checks (Windows Only)") \
3834
\
3835
product(intx, UnguardOnExecutionViolation, 0, \
3836
"Unguard page and retry on no-execute fault (Win32 only) " \
3837
"0=off, 1=conservative, 2=aggressive") \
3838
\
3839
/* Serviceability Support */ \
3840
\
3841
product(bool, ManagementServer, false, \
3842
"Create JMX Management Server") \
3843
\
3844
product(bool, DisableAttachMechanism, false, \
3845
"Disable mechanism that allows tools to attach to this VM") \
3846
\
3847
product(bool, StartAttachListener, false, \
3848
"Always start Attach Listener at VM startup") \
3849
\
3850
manageable(bool, PrintConcurrentLocks, false, \
3851
"Print java.util.concurrent locks in thread dump") \
3852
\
3853
product(bool, TransmitErrorReport, false, \
3854
"Enable error report transmission on erroneous termination") \
3855
\
3856
product(ccstr, ErrorReportServer, NULL, \
3857
"Override built-in error report server address") \
3858
\
3859
/* Shared spaces */ \
3860
\
3861
product(bool, UseSharedSpaces, true, \
3862
"Use shared spaces for metadata") \
3863
\
3864
product(bool, VerifySharedSpaces, false, \
3865
"Verify shared spaces (false for default archive, true for " \
3866
"archive specified by -XX:SharedArchiveFile)") \
3867
\
3868
product(bool, RequireSharedSpaces, false, \
3869
"Require shared spaces for metadata") \
3870
\
3871
product(bool, DumpSharedSpaces, false, \
3872
"Special mode: JVM reads a class list, loads classes, builds " \
3873
"shared spaces, and dumps the shared spaces to a file to be " \
3874
"used in future JVM runs") \
3875
\
3876
product(bool, PrintSharedSpaces, false, \
3877
"Print usage of shared spaces") \
3878
\
3879
product(bool, PrintSharedArchiveAndExit, false, \
3880
"Print shared archive file contents") \
3881
\
3882
product(bool, PrintSharedDictionary, false, \
3883
"If PrintSharedArchiveAndExit is true, also print the shared " \
3884
"dictionary") \
3885
\
3886
product(uintx, SharedReadWriteSize, NOT_LP64(12*M) LP64_ONLY(16*M), \
3887
"Size of read-write space for metadata (in bytes)") \
3888
\
3889
product(uintx, SharedReadOnlySize, NOT_LP64(12*M) LP64_ONLY(16*M), \
3890
"Size of read-only space for metadata (in bytes)") \
3891
\
3892
product(uintx, SharedMiscDataSize, NOT_LP64(2*M) LP64_ONLY(4*M), \
3893
"Size of the shared miscellaneous data area (in bytes)") \
3894
\
3895
product(uintx, SharedMiscCodeSize, AARCH64_ONLY(192*K) NOT_AARCH64(120*K), \
3896
"Size of the shared miscellaneous code area (in bytes)") \
3897
\
3898
product(uintx, SharedBaseAddress, LP64_ONLY(32*G) \
3899
NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)), \
3900
"Address to allocate shared memory region for class data") \
3901
\
3902
diagnostic(bool, EnableInvokeDynamic, true, \
3903
"support JSR 292 (method handles, invokedynamic, " \
3904
"anonymous classes") \
3905
\
3906
diagnostic(bool, IgnoreUnverifiableClassesDuringDump, false, \
3907
"Do not quit -Xshare:dump even if we encounter unverifiable " \
3908
"classes. Just exclude them from the shared dictionary.") \
3909
\
3910
diagnostic(bool, PrintMethodHandleStubs, false, \
3911
"Print generated stub code for method handles") \
3912
\
3913
develop(bool, TraceMethodHandles, false, \
3914
"trace internal method handle operations") \
3915
\
3916
diagnostic(bool, VerifyMethodHandles, trueInDebug, \
3917
"perform extra checks when constructing method handles") \
3918
\
3919
diagnostic(bool, ShowHiddenFrames, false, \
3920
"show method handle implementation frames (usually hidden)") \
3921
\
3922
experimental(bool, TrustFinalNonStaticFields, false, \
3923
"trust final non-static declarations for constant folding") \
3924
\
3925
diagnostic(bool, FoldStableValues, true, \
3926
"Optimize loads from stable fields (marked w/ @Stable)") \
3927
\
3928
develop(bool, TraceInvokeDynamic, false, \
3929
"trace internal invoke dynamic operations") \
3930
\
3931
diagnostic(bool, PauseAtStartup, false, \
3932
"Causes the VM to pause at startup time and wait for the pause " \
3933
"file to be removed (default: ./vm.paused.<pid>)") \
3934
\
3935
diagnostic(ccstr, PauseAtStartupFile, NULL, \
3936
"The file to create and for whose removal to await when pausing " \
3937
"at startup. (default: ./vm.paused.<pid>)") \
3938
\
3939
diagnostic(bool, PauseAtExit, false, \
3940
"Pause and wait for keypress on exit if a debugger is attached") \
3941
\
3942
product(bool, ExtendedDTraceProbes, false, \
3943
"Enable performance-impacting dtrace probes") \
3944
\
3945
product(bool, DTraceMethodProbes, false, \
3946
"Enable dtrace probes for method-entry and method-exit") \
3947
\
3948
product(bool, DTraceAllocProbes, false, \
3949
"Enable dtrace probes for object allocation") \
3950
\
3951
product(bool, DTraceMonitorProbes, false, \
3952
"Enable dtrace probes for monitor events") \
3953
\
3954
product(bool, RelaxAccessControlCheck, false, \
3955
"Relax the access control checks in the verifier") \
3956
\
3957
diagnostic(bool, PrintDTraceDOF, false, \
3958
"Print the DTrace DOF passed to the system for JSDT probes") \
3959
\
3960
product(uintx, StringTableSize, defaultStringTableSize, \
3961
"Number of buckets in the interned String table") \
3962
\
3963
experimental(uintx, SymbolTableSize, defaultSymbolTableSize, \
3964
"Number of buckets in the JVM internal Symbol table") \
3965
\
3966
product(bool, UseStringDeduplication, false, \
3967
"Use string deduplication") \
3968
\
3969
product(bool, PrintStringDeduplicationStatistics, false, \
3970
"Print string deduplication statistics") \
3971
\
3972
product(uintx, StringDeduplicationAgeThreshold, 3, \
3973
"A string must reach this age (or be promoted to an old region) " \
3974
"to be considered for deduplication") \
3975
\
3976
diagnostic(bool, StringDeduplicationResizeALot, false, \
3977
"Force table resize every time the table is scanned") \
3978
\
3979
diagnostic(bool, StringDeduplicationRehashALot, false, \
3980
"Force table rehash every time the table is scanned") \
3981
\
3982
develop(bool, TraceDefaultMethods, false, \
3983
"Trace the default method processing steps") \
3984
\
3985
develop(bool, VerifyGenericSignatures, false, \
3986
"Abort VM on erroneous or inconsistent generic signatures") \
3987
\
3988
product(bool, UseVMInterruptibleIO, false, \
3989
"(Unstable, Solaris-specific) Thread interrupt before or with " \
3990
"EINTR for I/O operations results in OS_INTRPT. The default " \
3991
"value of this flag is true for JDK 6 and earlier") \
3992
\
3993
diagnostic(bool, WhiteBoxAPI, false, \
3994
"Enable internal testing APIs") \
3995
\
3996
product(bool, PrintGCCause, true, \
3997
"Include GC cause in GC logging") \
3998
\
3999
experimental(intx, SurvivorAlignmentInBytes, 0, \
4000
"Default survivor space alignment in bytes") \
4001
\
4002
product(bool , AllowNonVirtualCalls, false, \
4003
"Obey the ACC_SUPER flag and allow invokenonvirtual calls") \
4004
\
4005
product(ccstr, DumpLoadedClassList, NULL, \
4006
"Dump the names all loaded classes, that could be stored into " \
4007
"the CDS archive, in the specified file") \
4008
\
4009
product(ccstr, SharedClassListFile, NULL, \
4010
"Override the default CDS class list") \
4011
\
4012
diagnostic(ccstr, SharedArchiveFile, NULL, \
4013
"Override the default location of the CDS archive file") \
4014
\
4015
product(ccstr, ExtraSharedClassListFile, NULL, \
4016
"Extra classlist for building the CDS archive file") \
4017
\
4018
experimental(uintx, ArrayAllocatorMallocLimit, \
4019
SOLARIS_ONLY(64*K) NOT_SOLARIS(max_uintx), \
4020
"Allocation less than this value will be allocated " \
4021
"using malloc. Larger allocations will use mmap.") \
4022
\
4023
product_pd(bool, PreserveFramePointer, \
4024
"Use the FP register for holding the frame pointer " \
4025
"and not as a general purpose register.") \
4026
\
4027
product(bool, EnableTracing, false, \
4028
"Enable event-based tracing" \
4029
"Deprecated: use FlightRecorder instead") \
4030
\
4031
product(bool, UseLockedTracing, false, \
4032
"Use locked-tracing when doing event-based tracing" \
4033
"Deprecated: use FlightRecorder instead") \
4034
\
4035
JFR_ONLY(product(bool, FlightRecorder, false, \
4036
"Enable Flight Recorder")) \
4037
\
4038
JFR_ONLY(product(ccstr, FlightRecorderOptions, NULL, \
4039
"Flight Recorder options")) \
4040
\
4041
JFR_ONLY(product(ccstr, StartFlightRecording, NULL, \
4042
"Start flight recording with options")) \
4043
\
4044
JFR_ONLY(product(bool, UnlockCommercialFeatures, false, \
4045
"This flag is ignored. Left for compatibility")) \
4046
\
4047
experimental(bool, UseFastUnorderedTimeStamps, false, \
4048
"Use platform unstable time where supported for timestamps only") \
4049
\
4050
JFR_ONLY(product(bool, LogJFR, false, \
4051
"Enable JFR logging (consider +Verbose)")) \
4052
4053
/*
4054
* Macros for factoring of globals
4055
*/
4056
4057
// Interface macros
4058
#define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
4059
#define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name;
4060
#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name;
4061
#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
4062
#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name;
4063
#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name;
4064
#ifdef PRODUCT
4065
#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type CONST_##name; const type name = value;
4066
#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type CONST_##name; const type name = pd_##name;
4067
#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type CONST_##name;
4068
#else
4069
#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name;
4070
#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name;
4071
#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name;
4072
#endif
4073
// Special LP64 flags, product only needed for now.
4074
#ifdef _LP64
4075
#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
4076
#else
4077
#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value;
4078
#endif // _LP64
4079
4080
// Implementation macros
4081
#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value;
4082
#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name;
4083
#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value;
4084
#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value;
4085
#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value;
4086
#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value;
4087
#ifdef PRODUCT
4088
#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type CONST_##name = value;
4089
#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type CONST_##name = pd_##name;
4090
#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type CONST_##name = value;
4091
#else
4092
#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value;
4093
#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name;
4094
#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value;
4095
#endif
4096
#ifdef _LP64
4097
#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value;
4098
#else
4099
#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */
4100
#endif // _LP64
4101
4102
RUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG, DECLARE_LP64_PRODUCT_FLAG)
4103
4104
RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)
4105
4106
ARCH_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG)
4107
4108
// Extensions
4109
4110
#include "runtime/globals_ext.hpp"
4111
4112
#endif // SHARE_VM_RUNTIME_GLOBALS_HPP
4113
4114