src/hotspot/share/runtime/globals.hpp
author egahlin
Tue, 15 May 2018 20:24:34 +0200
changeset 50113 caf115bb98ad
parent 50083 07015dd8157f
child 50416 ef980b9ac191
child 56578 e8414c8ead61
permissions -rw-r--r--
8199712: Flight Recorder Reviewed-by: coleenp, ihse, erikj, dsamersoff, mseledtsov, egahlin, mgronlun Contributed-by: erik.gahlin@oracle.com, markus.gronlund@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
48619
1703d83b3ffe 8058259: compute_offset() is confusing for static fields
coleenp
parents: 48184
diff changeset
     2
 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5539
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5539
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5539
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6987
diff changeset
    25
#ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6987
diff changeset
    26
#define SHARE_VM_RUNTIME_GLOBALS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6987
diff changeset
    27
49715
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
    28
#include "gc/shared/gc_globals.hpp"
46625
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    29
#include "utilities/align.hpp"
46560
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents: 46553
diff changeset
    30
#include "utilities/globalDefinitions.hpp"
40010
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 39960
diff changeset
    31
#include "utilities/macros.hpp"
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 39960
diff changeset
    32
33144
c56850e328fc 8134995: [REDO] GC: implement ranges (optionally constraints) for those flags that have them missing
sangheki
parents: 33083
diff changeset
    33
#include <float.h> // for DBL_MAX
11632
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    34
46625
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    35
// The larger HeapWordSize for 64bit requires larger heaps
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    36
// for the same application running in 64bit.  See bug 4967770.
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    37
// The minimum alignment to a heap word size is done.  Other
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    38
// parts of the memory system may require additional alignment
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    39
// and are responsible for those alignments.
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    40
#ifdef _LP64
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    41
#define ScaleForWordSize(x) align_down_((x) * 13 / 10, HeapWordSize)
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    42
#else
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    43
#define ScaleForWordSize(x) (x)
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    44
#endif
edefffab74e2 8183552: Move align functions to align.hpp
stefank
parents: 46616
diff changeset
    45
11632
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    46
// use this for flags that are true per default in the tiered build
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    47
// but false in non-tiered builds, and vice versa
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    48
#ifdef TIERED
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    49
#define  trueInTiered true
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    50
#define falseInTiered false
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    51
#else
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    52
#define  trueInTiered false
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    53
#define falseInTiered true
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    54
#endif
e369165faf7a 7141059: 7116795 broke pure c2 builds
iveresov
parents: 11566
diff changeset
    55
40010
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 39960
diff changeset
    56
#include CPU_HEADER(globals)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 39960
diff changeset
    57
#include OS_HEADER(globals)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 39960
diff changeset
    58
#include OS_CPU_HEADER(globals)
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6987
diff changeset
    59
#ifdef COMPILER1
40010
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 39960
diff changeset
    60
#include CPU_HEADER(c1_globals)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 39960
diff changeset
    61
#include OS_HEADER(c1_globals)
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6987
diff changeset
    62
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6987
diff changeset
    63
#ifdef COMPILER2
40010
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 39960
diff changeset
    64
#include CPU_HEADER(c2_globals)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 39960
diff changeset
    65
#include OS_HEADER(c2_globals)
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6987
diff changeset
    66
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6987
diff changeset
    67
47687
fb290fd1f9d4 8171853: Remove Shark compiler
rkennke
parents: 47572
diff changeset
    68
#if !defined(COMPILER1) && !defined(COMPILER2) && !INCLUDE_JVMCI
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
define_pd_global(bool, BackgroundCompilation,        false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
define_pd_global(bool, UseTLAB,                      false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
define_pd_global(bool, CICompileOSR,                 false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
define_pd_global(bool, UseTypeProfile,               false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
define_pd_global(bool, UseOnStackReplacement,        false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
define_pd_global(bool, InlineIntrinsics,             false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
define_pd_global(bool, PreferInterpreterNativeStubs, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
define_pd_global(bool, ProfileInterpreter,           false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
define_pd_global(bool, ProfileTraps,                 false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
define_pd_global(bool, TieredCompilation,            false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
define_pd_global(intx, CompileThreshold,             0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
48807
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    82
define_pd_global(intx,   OnStackReplacePercentage,   0);
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    83
define_pd_global(bool,   ResizeTLAB,                 false);
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    84
define_pd_global(intx,   FreqInlineSize,             0);
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
    85
define_pd_global(size_t, NewSizeThreadIncrease,      4*K);
48807
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    86
define_pd_global(bool,   InlineClassNatives,         true);
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    87
define_pd_global(bool,   InlineUnsafeOps,            true);
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    88
define_pd_global(uintx,  InitialCodeCacheSize,       160*K);
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    89
define_pd_global(uintx,  ReservedCodeCacheSize,      32*M);
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    90
define_pd_global(uintx,  NonProfiledCodeHeapSize,    0);
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    91
define_pd_global(uintx,  ProfiledCodeHeapSize,       0);
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    92
define_pd_global(uintx,  NonNMethodCodeHeapSize,     32*M);
26796
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
    93
48807
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    94
define_pd_global(uintx,  CodeCacheExpansionSize,     32*K);
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    95
define_pd_global(uintx,  CodeCacheMinBlockLength,    1);
fd8ccb37fce9 8195776: [x86,sparc] A row of minor fixes and enhancements.
goetz
parents: 48799
diff changeset
    96
define_pd_global(uintx,  CodeCacheMinimumUseSpace,   200*K);
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
    97
define_pd_global(size_t, MetaspaceSize,              ScaleForWordSize(4*M));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
define_pd_global(bool, NeverActAsServerClassMachine, true);
4434
4b41e5b42f81 6887571: Increase default heap config sizes
phh
parents: 4013
diff changeset
    99
define_pd_global(uint64_t,MaxRAM,                    1ULL*G);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
#define CI_COMPILER_COUNT 0
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
47799
1772ebf07d1f 8152470: Add COMPILER2_OR_JVMCI definition
jcm
parents: 47776
diff changeset
   103
#if COMPILER2_OR_JVMCI
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
#define CI_COMPILER_COUNT 2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
#define CI_COMPILER_COUNT 1
47799
1772ebf07d1f 8152470: Add COMPILER2_OR_JVMCI definition
jcm
parents: 47776
diff changeset
   107
#endif // COMPILER2_OR_JVMCI
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
#endif // no compilers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
// use this for flags that are true by default in the debug version but
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
// false in the optimized version, and vice versa
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
#ifdef ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
#define trueInDebug  true
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
#define falseInDebug false
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
#define trueInDebug  false
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
#define falseInDebug true
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
// use this for flags that are true per default in the product build
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
// but false in development builds, and vice versa
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
#ifdef PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
#define trueInProduct  true
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
#define falseInProduct false
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
#define trueInProduct  false
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
#define falseInProduct true
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
// develop flags are settable / visible only during development and are constant in the PRODUCT version
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
// product flags are always settable / visible
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
// A flag must be declared with one of the following types:
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
   136
// bool, int, uint, intx, uintx, size_t, ccstr, double, or uint64_t.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
// The type "ccstr" is an alias for "const char*" and is used
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
// only in this file, because the macrology requires single-token type names.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
// Note: Diagnostic options not meant for VM tuning or for product modes.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
// They are to be used for VM quality assurance or field diagnosis
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
// of VM bugs.  They are hidden so that users will not be encouraged to
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
// try them as if they were VM ordinary execution options.  However, they
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
// are available in the product version of the VM.  Under instruction
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
// from support engineers, VM customers can turn them on to collect
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
// diagnostic information about VM problems.  To use a VM diagnostic
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
// option, you must first specify +UnlockDiagnosticVMOptions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
// (This master switch also affects the behavior of -Xprintflags.)
1382
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   149
//
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   150
// experimental flags are in support of features that are not
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   151
//    part of the officially supported product, but are available
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   152
//    for experimenting with. They could, for example, be performance
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   153
//    features that may not have undergone full or rigorous QA, but which may
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   154
//    help performance in some cases and released for experimentation
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   155
//    by the community of users and developers. This flag also allows one to
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   156
//    be able to build a fully supported product that nonetheless also
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   157
//    ships with some unsupported, lightly tested, experimental features.
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   158
//    Like the UnlockDiagnosticVMOptions flag above, there is a corresponding
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   159
//    UnlockExperimentalVMOptions flag, which allows the control and
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   160
//    modification of the experimental flags.
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   161
//
6763
711b8a44c4dd 6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents: 6762
diff changeset
   162
// Nota bene: neither diagnostic nor experimental options should be used casually,
711b8a44c4dd 6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents: 6762
diff changeset
   163
//    and they are not supported on production loads, except under explicit
711b8a44c4dd 6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents: 6762
diff changeset
   164
//    direction from support engineers.
711b8a44c4dd 6692906: CMS: parallel concurrent marking may be prone to hanging or stalling mutators for periods of time
ysr
parents: 6762
diff changeset
   165
//
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
// manageable flags are writeable external product flags.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
//    They are dynamically writeable through the JDK management interface
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
//    (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
//    These flags are external exported interface (see CCC).  The list of
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
//    manageable flags can be queried programmatically through the management
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
//    interface.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
//    A flag can be made as "manageable" only if
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
//    - the flag is defined in a CCC as an external exported interface.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
//    - the VM implementation supports dynamic setting of the flag.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
//      This implies that the VM must *always* query the flag variable
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
//      and not reuse state related to the flag state at any given time.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
//    - you want the flag to be queried programmatically by the customers.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
// product_rw flags are writeable internal product flags.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
//    They are like "manageable" flags but for internal/private use.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
//    The list of product_rw flags are internal/private flags which
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
//    may be changed/removed in a future release.  It can be set
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
//    through the management interface to get/set value
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
//    when the name of flag is supplied.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
//    A flag can be made as "product_rw" only if
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
//    - the VM implementation supports dynamic setting of the flag.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
//      This implies that the VM must *always* query the flag variable
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
//      and not reuse state related to the flag state at any given time.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
// Note that when there is a need to support develop flags to be writeable,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
// it can be done in the same way as product_rw.
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   194
//
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   195
// range is a macro that will expand to min and max arguments for range
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49877
diff changeset
   196
//    checking code if provided - see jvmFlagRangeList.hpp
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   197
//
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   198
// constraint is a macro that will expand to custom function call
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49877
diff changeset
   199
//    for constraint checking if provided - see jvmFlagConstraintList.hpp
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   200
//
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   201
// writeable is a macro that controls if and how the value can change during the runtime
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   202
//
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   203
// writeable(Always) is optional and allows the flag to have its value changed
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   204
//    without any limitations at any time
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   205
//
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   206
// writeable(Once) flag value's can be only set once during the lifetime of VM
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   207
//
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   208
// writeable(CommandLineOnly) flag value's can be only set from command line
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   209
//    (multiple times allowed)
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   210
//
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   212
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   213
#define RUNTIME_FLAGS(develop, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   214
                      develop_pd, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   215
                      product, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   216
                      product_pd, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   217
                      diagnostic, \
39117
59fa99a45873 8150900: Implement diagnostic_pd
csahu
parents: 38289
diff changeset
   218
                      diagnostic_pd, \
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   219
                      experimental, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   220
                      notproduct, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   221
                      manageable, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   222
                      product_rw, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   223
                      lp64_product, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   224
                      range, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   225
                      constraint, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
   226
                      writeable) \
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
   227
                                                                            \
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
   228
  lp64_product(bool, UseCompressedOops, false,                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   229
          "Use 32-bit object references in 64-bit VM. "                     \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   230
          "lp64_product means flag is always constant in 32 bit VM")        \
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13521
diff changeset
   231
                                                                            \
19979
ebe1dbb6e1aa 8015107: NPG: Use consistent naming for metaspace concepts
ehelin
parents: 19704
diff changeset
   232
  lp64_product(bool, UseCompressedClassPointers, false,                     \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   233
          "Use 32-bit class pointers in 64-bit VM. "                        \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   234
          "lp64_product means flag is always constant in 32 bit VM")        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
                                                                            \
2254
f13dda645a4b 6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents: 2141
diff changeset
   236
  notproduct(bool, CheckCompressedOops, true,                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   237
          "Generate checks in encoding/decoding code in debug VM")          \
2254
f13dda645a4b 6791178: Specialize for zero as the compressed oop vm heap base
kvn
parents: 2141
diff changeset
   238
                                                                            \
28372
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 28368
diff changeset
   239
  product(uintx, HeapSearchSteps, 3 PPC64_ONLY(+17),                        \
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 28368
diff changeset
   240
          "Heap allocation steps through preferred address regions to find" \
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 28368
diff changeset
   241
          " where it can allocate the heap. Number of steps to take per "   \
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 28368
diff changeset
   242
          "region.")                                                        \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   243
          range(1, max_uintx)                                               \
28372
ce0aad4b8c44 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling.
goetz
parents: 28368
diff changeset
   244
                                                                            \
5694
1e0532a6abff 6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
kvn
parents: 5539
diff changeset
   245
  lp64_product(intx, ObjectAlignmentInBytes, 8,                             \
1e0532a6abff 6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
kvn
parents: 5539
diff changeset
   246
          "Default object alignment in bytes, 8 is minimum")                \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   247
          range(8, 256)                                                     \
31995
aa4049b4184a 8130459: Add additional validation after heap creation
sangheki
parents: 31989
diff changeset
   248
          constraint(ObjectAlignmentInBytesConstraintFunc,AtParse)          \
5694
1e0532a6abff 6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
kvn
parents: 5539
diff changeset
   249
                                                                            \
47572
552a97e8edad 8185062: Set AssumeMP to true and deprecate the flag
dholmes
parents: 47546
diff changeset
   250
  product(bool, AssumeMP, true,                                             \
552a97e8edad 8185062: Set AssumeMP to true and deprecate the flag
dholmes
parents: 47546
diff changeset
   251
          "(Deprecated) Instruct the VM to assume multiple processors are available")\
16596
905d4419a089 2178143: JVM crashes if the number of bound CPUs changed during runtime
minqi
parents: 16445
diff changeset
   252
                                                                            \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   253
  /* UseMembar is theoretically a temp flag used for memory barrier      */ \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   254
  /* removal testing.  It was supposed to be removed before FCS but has  */ \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   255
  /* been re-added (see 6401008)                                         */ \
6965
4ef36b2a6a3a 6989297: Integrate additional portability improvements
bobv
parents: 6466
diff changeset
   256
  product_pd(bool, UseMembar,                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
          "(Unstable) Issues membars on thread state transitions")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
                                                                            \
40015
524230a0f4ca 8140723: Remove source code conditionalized on JAVASE_EMBEDDED
dholmes
parents: 40010
diff changeset
   259
  develop(bool, CleanChunkPoolAsync, true,                                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   260
          "Clean the chunk pool asynchronously")                            \
10022
377345fb5fb5 7061204: clean the chunk table synchronously in embedded builds
jcoomes
parents: 10020
diff changeset
   261
                                                                            \
47881
0ce0ac68ace7 8189941: Implementation JEP 312: Thread-local handshake
rehn
parents: 47811
diff changeset
   262
  product_pd(bool, ThreadLocalHandshakes,                                   \
0ce0ac68ace7 8189941: Implementation JEP 312: Thread-local handshake
rehn
parents: 47811
diff changeset
   263
          "Use thread-local polls instead of global poll for safepoints.")  \
0ce0ac68ace7 8189941: Implementation JEP 312: Thread-local handshake
rehn
parents: 47811
diff changeset
   264
          constraint(ThreadLocalHandshakesConstraintFunc,AfterErgo)         \
0ce0ac68ace7 8189941: Implementation JEP 312: Thread-local handshake
rehn
parents: 47811
diff changeset
   265
                                                                            \
0ce0ac68ace7 8189941: Implementation JEP 312: Thread-local handshake
rehn
parents: 47811
diff changeset
   266
  diagnostic(uint, HandshakeTimeout, 0,                                     \
0ce0ac68ace7 8189941: Implementation JEP 312: Thread-local handshake
rehn
parents: 47811
diff changeset
   267
          "If nonzero set a timeout in milliseconds for handshakes")        \
0ce0ac68ace7 8189941: Implementation JEP 312: Thread-local handshake
rehn
parents: 47811
diff changeset
   268
                                                                            \
23190
e8bbf9cd711e 8031818: Experimental VM flag for enforcing safe object construction
shade
parents: 23189
diff changeset
   269
  experimental(bool, AlwaysSafeConstructors, false,                         \
e8bbf9cd711e 8031818: Experimental VM flag for enforcing safe object construction
shade
parents: 23189
diff changeset
   270
          "Force safe construction, as if all fields are final.")           \
e8bbf9cd711e 8031818: Experimental VM flag for enforcing safe object construction
shade
parents: 23189
diff changeset
   271
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
  diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug,                  \
1382
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   273
          "Enable normal processing of flags relating to field diagnostics")\
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   274
                                                                            \
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
   275
  experimental(bool, UnlockExperimentalVMOptions, false,                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   276
          "Enable normal processing of flags relating to experimental "     \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   277
          "features")                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   278
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   279
  product(bool, JavaMonitorsInStackTrace, true,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   280
          "Print information about Java monitor locks when the stacks are"  \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   281
          "dumped")                                                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
  product_pd(bool, UseLargePages,                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   284
          "Use large page memory")                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   285
                                                                            \
1421
a7ef1a3b2644 6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents: 1409
diff changeset
   286
  product_pd(bool, UseLargePagesIndividualAllocation,                       \
a7ef1a3b2644 6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents: 1409
diff changeset
   287
          "Allocate large pages individually for better affinity")          \
a7ef1a3b2644 6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents: 1409
diff changeset
   288
                                                                            \
a7ef1a3b2644 6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents: 1409
diff changeset
   289
  develop(bool, LargePagesIndividualAllocationInjectError, false,           \
a7ef1a3b2644 6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents: 1409
diff changeset
   290
          "Fail large pages individual allocation")                         \
a7ef1a3b2644 6660681: Incrementally reserve pages on win server 2003 for better large page affinity
jmasa
parents: 1409
diff changeset
   291
                                                                            \
20406
934f0b12daa9 8024547: MaxMetaspaceSize should limit the committed memory used by the metaspaces
stefank
parents: 20404
diff changeset
   292
  product(bool, UseLargePagesInMetaspace, false,                            \
934f0b12daa9 8024547: MaxMetaspaceSize should limit the committed memory used by the metaspaces
stefank
parents: 20404
diff changeset
   293
          "Use large page memory in metaspace. "                            \
934f0b12daa9 8024547: MaxMetaspaceSize should limit the committed memory used by the metaspaces
stefank
parents: 20404
diff changeset
   294
          "Only used if UseLargePages is enabled.")                         \
934f0b12daa9 8024547: MaxMetaspaceSize should limit the committed memory used by the metaspaces
stefank
parents: 20404
diff changeset
   295
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   296
  product(bool, UseNUMA, false,                                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   297
          "Use NUMA if available")                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   298
                                                                            \
10494
3f347ed8bd3c 7082969: NUMA interleaving
iveresov
parents: 10267
diff changeset
   299
  product(bool, UseNUMAInterleaving, false,                                 \
3f347ed8bd3c 7082969: NUMA interleaving
iveresov
parents: 10267
diff changeset
   300
          "Interleave memory across NUMA nodes if available")               \
3f347ed8bd3c 7082969: NUMA interleaving
iveresov
parents: 10267
diff changeset
   301
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
   302
  product(size_t, NUMAInterleaveGranularity, 2*M,                           \
10494
3f347ed8bd3c 7082969: NUMA interleaving
iveresov
parents: 10267
diff changeset
   303
          "Granularity to use for NUMA interleaving on Windows OS")         \
35203
3e70c7dc0772 8144949: TestOptionsWithRanges -XX:NUMAInterleaveGranularity=2147483648 crashes VM
sangheki
parents: 35201
diff changeset
   304
          range(os::vm_allocation_granularity(), NOT_LP64(2*G) LP64_ONLY(8192*G)) \
10494
3f347ed8bd3c 7082969: NUMA interleaving
iveresov
parents: 10267
diff changeset
   305
                                                                            \
1615
b46d9f19bde2 6779436: NUMA allocator: libnuma expects certain size of the buffer in numa_node_to_cpus()
iveresov
parents: 1608
diff changeset
   306
  product(bool, ForceNUMA, false,                                           \
b46d9f19bde2 6779436: NUMA allocator: libnuma expects certain size of the buffer in numa_node_to_cpus()
iveresov
parents: 1608
diff changeset
   307
          "Force NUMA optimizations on single-node/UMA systems")            \
b46d9f19bde2 6779436: NUMA allocator: libnuma expects certain size of the buffer in numa_node_to_cpus()
iveresov
parents: 1608
diff changeset
   308
                                                                            \
17392
2f967c0e4246 6843347: Boundary values in some public GC options cause crashes
tschatzl
parents: 17322
diff changeset
   309
  product(uintx, NUMAChunkResizeWeight, 20,                                 \
22775
52bc5222f5f1 8026849: Fix typos in the GC code, part 2
jwilhelm
parents: 22556
diff changeset
   310
          "Percentage (0-100) used to weight the current sample when "      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   311
          "computing exponentially decaying average for "                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   312
          "AdaptiveNUMAChunkSizing")                                        \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   313
          range(0, 100)                                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
   315
  product(size_t, NUMASpaceResizeRate, 1*G,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   316
          "Do not reallocate more than this amount per collection")         \
34661
9a1d11d88ea0 8142341: GC: current flags need ranges to be implemented
sangheki
parents: 34629
diff changeset
   317
          range(0, max_uintx)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   318
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   319
  product(bool, UseAdaptiveNUMAChunkSizing, true,                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
          "Enable adaptive chunk sizing for NUMA")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   321
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
  product(bool, NUMAStats, false,                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
          "Print NUMA stats in detailed heap information")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
                                                                            \
17392
2f967c0e4246 6843347: Boundary values in some public GC options cause crashes
tschatzl
parents: 17322
diff changeset
   325
  product(uintx, NUMAPageScanRate, 256,                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
          "Maximum number of pages to include in the page scan procedure")  \
34661
9a1d11d88ea0 8142341: GC: current flags need ranges to be implemented
sangheki
parents: 34629
diff changeset
   327
          range(0, max_uintx)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
  product_pd(bool, NeedsDeoptSuspend,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
          "True for register window machines (sparc/ia64)")                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   331
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
  product(intx, UseSSE, 99,                                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
          "Highest supported SSE instructions set on x86/x64")              \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
   334
          range(0, 99)                                                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   335
                                                                            \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   336
  product(bool, UseAES, false,                                              \
43935
51c3deea6cdc 8173825: Adjust the comment for flags UseAES, UseFMA, UseSHA in globals.hpp
mbaesken
parents: 42654
diff changeset
   337
          "Control whether AES instructions are used when available")       \
14132
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13974
diff changeset
   338
                                                                            \
41323
ddd5600d4762 8154122: Intrinsify fused mac operations
vdeshpande
parents: 40883
diff changeset
   339
  product(bool, UseFMA, false,                                              \
43935
51c3deea6cdc 8173825: Adjust the comment for flags UseAES, UseFMA, UseSHA in globals.hpp
mbaesken
parents: 42654
diff changeset
   340
          "Control whether FMA instructions are used when available")       \
41323
ddd5600d4762 8154122: Intrinsify fused mac operations
vdeshpande
parents: 40883
diff changeset
   341
                                                                            \
24953
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24931
diff changeset
   342
  product(bool, UseSHA, false,                                              \
43935
51c3deea6cdc 8173825: Adjust the comment for flags UseAES, UseFMA, UseSHA in globals.hpp
mbaesken
parents: 42654
diff changeset
   343
          "Control whether SHA instructions are used when available")       \
24953
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24931
diff changeset
   344
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   345
  diagnostic(bool, UseGHASHIntrinsics, false,                               \
31404
63e8fcd70bfc 8073108: Use x86 and SPARC CPU instructions for GHASH acceleration
ascarpino
parents: 30310
diff changeset
   346
          "Use intrinsics for GHASH versions of crypto")                    \
63e8fcd70bfc 8073108: Use x86 and SPARC CPU instructions for GHASH acceleration
ascarpino
parents: 30310
diff changeset
   347
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
   348
  product(size_t, LargePageSizeInBytes, 0,                                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   349
          "Large page size (0 to let VM choose the page size)")             \
34661
9a1d11d88ea0 8142341: GC: current flags need ranges to be implemented
sangheki
parents: 34629
diff changeset
   350
          range(0, max_uintx)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   351
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
   352
  product(size_t, LargePageHeapSizeThreshold, 128*M,                        \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   353
          "Use large pages if maximum heap is at least this big")           \
34661
9a1d11d88ea0 8142341: GC: current flags need ranges to be implemented
sangheki
parents: 34629
diff changeset
   354
          range(0, max_uintx)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   355
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   356
  product(bool, ForceTimeHighResolution, false,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   357
          "Using high time resolution (for Win32 only)")                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   358
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   359
  develop(bool, TracePcPatching, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   360
          "Trace usage of frame::patch_pc")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   361
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   362
  develop(bool, TraceRelocator, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   363
          "Trace the bytecode relocator")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   364
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   365
  develop(bool, TraceLongCompiles, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   366
          "Print out every time compilation is longer than "                \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   367
          "a given threshold")                                              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   368
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   369
  develop(bool, SafepointALot, false,                                       \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   370
          "Generate a lot of safepoints. This works with "                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   371
          "GuaranteedSafepointInterval")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   372
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   373
  product_pd(bool, BackgroundCompilation,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   374
          "A thread requesting compilation is not blocked during "          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   375
          "compilation")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   376
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   377
  product(bool, PrintVMQWaitTime, false,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   378
          "Print out the waiting time in VM operation queue")               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   379
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   380
  product(bool, MethodFlushing, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   381
          "Reclamation of zombie and not-entrant methods")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   382
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   383
  develop(bool, VerifyStack, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   384
          "Verify stack of each thread when it is entering a runtime call") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   385
                                                                            \
10983
9ab65f4cec18 7104960: JSR 292: +VerifyMethodHandles in product JVM can overflow buffer
never
parents: 10963
diff changeset
   386
  diagnostic(bool, ForceUnreachable, false,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   387
          "Make all non code cache addresses to be unreachable by "         \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   388
          "forcing use of 64bit literal fixups")                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   389
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   390
  notproduct(bool, StressDerivedPointers, false,                            \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   391
          "Force scavenge when a derived pointer is detected on stack "     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   392
          "after rtm call")                                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   393
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   394
  develop(bool, TraceDerivedPointers, false,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   395
          "Trace traversal of derived pointers on stack")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   396
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   397
  notproduct(bool, TraceCodeBlobStacks, false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   398
          "Trace stack-walk of codeblobs")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   399
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   400
  product(bool, PrintJNIResolving, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   401
          "Used to implement -v:jni")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   402
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   403
  notproduct(bool, PrintRewrites, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   404
          "Print methods that are being rewritten")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   405
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   406
  product(bool, UseInlineCaches, true,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   407
          "Use Inline Caches for virtual calls ")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   408
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   409
  diagnostic(bool, InlineArrayCopy, true,                                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   410
          "Inline arraycopy native that is known to be part of "            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   411
          "base library DLL")                                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   412
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   413
  diagnostic(bool, InlineObjectHash, true,                                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   414
          "Inline Object::hashCode() native that is known to be part "      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   415
          "of base library DLL")                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   416
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   417
  diagnostic(bool, InlineNatives, true,                                     \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   418
          "Inline natives that are known to be part of base library DLL")   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   419
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   420
  diagnostic(bool, InlineMathNatives, true,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   421
          "Inline SinD, CosD, etc.")                                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   422
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   423
  diagnostic(bool, InlineClassNatives, true,                                \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   424
          "Inline Class.isInstance, etc")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   425
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   426
  diagnostic(bool, InlineThreadNatives, true,                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   427
          "Inline Thread.currentThread, etc")                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   428
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   429
  diagnostic(bool, InlineUnsafeOps, true,                                   \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33592
diff changeset
   430
          "Inline memory ops (native methods) from Unsafe")                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   431
                                                                            \
11637
030466036615 7013347: allow crypto functions to be called inline to enhance performance
never
parents: 11636
diff changeset
   432
  product(bool, CriticalJNINatives, true,                                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   433
          "Check for critical JNI entry points")                            \
11637
030466036615 7013347: allow crypto functions to be called inline to enhance performance
never
parents: 11636
diff changeset
   434
                                                                            \
030466036615 7013347: allow crypto functions to be called inline to enhance performance
never
parents: 11636
diff changeset
   435
  notproduct(bool, StressCriticalJNINatives, false,                         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   436
          "Exercise register saving code in critical natives")              \
11637
030466036615 7013347: allow crypto functions to be called inline to enhance performance
never
parents: 11636
diff changeset
   437
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   438
  diagnostic(bool, UseAESIntrinsics, false,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   439
          "Use intrinsics for AES versions of crypto")                      \
14132
3c1437abcefd 7184394: add intrinsics to use AES instructions
kvn
parents: 13974
diff changeset
   440
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   441
  diagnostic(bool, UseAESCTRIntrinsics, false,                              \
35154
a9b3c1984a01 8143925: Enhancing CounterMode.crypt() for AES
kvn
parents: 35135
diff changeset
   442
          "Use intrinsics for the paralleled version of AES/CTR crypto")    \
a9b3c1984a01 8143925: Enhancing CounterMode.crypt() for AES
kvn
parents: 35135
diff changeset
   443
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   444
  diagnostic(bool, UseSHA1Intrinsics, false,                                \
31588
2a864a4a414c 8130120: Handling of SHA intrinsics inconsistent across platforms
zmajo
parents: 31587
diff changeset
   445
          "Use intrinsics for SHA-1 crypto hash function. "                 \
32623
390a27af5657 8134626: Misc cleanups after generation array removal
jwilhelm
parents: 32619
diff changeset
   446
          "Requires that UseSHA is enabled.")                               \
24953
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24931
diff changeset
   447
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   448
  diagnostic(bool, UseSHA256Intrinsics, false,                              \
31588
2a864a4a414c 8130120: Handling of SHA intrinsics inconsistent across platforms
zmajo
parents: 31587
diff changeset
   449
          "Use intrinsics for SHA-224 and SHA-256 crypto hash functions. "  \
2a864a4a414c 8130120: Handling of SHA intrinsics inconsistent across platforms
zmajo
parents: 31587
diff changeset
   450
          "Requires that UseSHA is enabled.")                               \
24953
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24931
diff changeset
   451
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   452
  diagnostic(bool, UseSHA512Intrinsics, false,                              \
31588
2a864a4a414c 8130120: Handling of SHA intrinsics inconsistent across platforms
zmajo
parents: 31587
diff changeset
   453
          "Use intrinsics for SHA-384 and SHA-512 crypto hash functions. "  \
2a864a4a414c 8130120: Handling of SHA intrinsics inconsistent across platforms
zmajo
parents: 31587
diff changeset
   454
          "Requires that UseSHA is enabled.")                               \
24953
9680119572be 8035968: Leverage CPU Instructions to Improve SHA Performance on SPARC
kvn
parents: 24931
diff changeset
   455
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   456
  diagnostic(bool, UseCRC32Intrinsics, false,                               \
18507
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18506
diff changeset
   457
          "use intrinsics for java.util.zip.CRC32")                         \
61bfc8995bb3 7088419: Use x86 Hardware CRC32 Instruction with java.util.zip.CRC32
drchase
parents: 18506
diff changeset
   458
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   459
  diagnostic(bool, UseCRC32CIntrinsics, false,                              \
31515
6aed85dadbe6 8073583: C2 support for CRC32C on SPARC
kvn
parents: 31412
diff changeset
   460
          "use intrinsics for java.util.zip.CRC32C")                        \
6aed85dadbe6 8073583: C2 support for CRC32C on SPARC
kvn
parents: 31412
diff changeset
   461
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   462
  diagnostic(bool, UseAdler32Intrinsics, false,                             \
32581
632402f18fe6 8132081: C2 support for Adler32 on SPARC
kvn
parents: 32361
diff changeset
   463
          "use intrinsics for java.util.zip.Adler32")                       \
632402f18fe6 8132081: C2 support for Adler32 on SPARC
kvn
parents: 32361
diff changeset
   464
                                                                            \
38285
20b85a0ba796 8153655: Make intrinsics flags diagnostic and update intrinsics tests to enable diagnostic options
rraghavan
parents: 38241
diff changeset
   465
  diagnostic(bool, UseVectorizedMismatchIntrinsic, false,                   \
35110
f19bcdf40799 8143355: Update for addition of vectorizedMismatch intrinsic for x86
kvn
parents: 34317
diff changeset
   466
          "Enables intrinsification of ArraysSupport.vectorizedMismatch()") \
f19bcdf40799 8143355: Update for addition of vectorizedMismatch intrinsic for x86
kvn
parents: 34317
diff changeset
   467
                                                                            \
32085
d869c505b624 8132457: Unify command-line flags controlling the usage of compiler intrinsics
zmajo
parents: 31959
diff changeset
   468
  diagnostic(ccstrlist, DisableIntrinsic, "",                               \
d869c505b624 8132457: Unify command-line flags controlling the usage of compiler intrinsics
zmajo
parents: 31959
diff changeset
   469
         "do not expand intrinsics whose (internal) names appear here")     \
d869c505b624 8132457: Unify command-line flags controlling the usage of compiler intrinsics
zmajo
parents: 31959
diff changeset
   470
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   471
  develop(bool, TraceCallFixup, false,                                      \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   472
          "Trace all call fixups")                                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   473
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   474
  develop(bool, DeoptimizeALot, false,                                      \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   475
          "Deoptimize at every exit from the runtime system")               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   476
                                                                            \
1553
fc10c169d15d 6772413: code cleanup
kvn
parents: 1550
diff changeset
   477
  notproduct(ccstrlist, DeoptimizeOnlyAt, "",                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   478
          "A comma separated list of bcis to deoptimize at")                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   479
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   480
  product(bool, DeoptimizeRandom, false,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   481
          "Deoptimize random frames on random exit from the runtime system")\
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   482
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   483
  notproduct(bool, ZombieALot, false,                                       \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   484
          "Create zombies (non-entrant) at exit from the runtime system")   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   485
                                                                            \
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7896
diff changeset
   486
  product(bool, UnlinkSymbolsALot, false,                                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   487
          "Unlink unreferenced symbols from the symbol table at safepoints")\
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7896
diff changeset
   488
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   489
  notproduct(bool, WalkStackALot, false,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   490
          "Trace stack (no print) at every exit from the runtime system")   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   491
                                                                            \
10739
91935236600e 7098194: integrate macosx-port changes
dcubed
parents: 10569
diff changeset
   492
  product(bool, Debugging, false,                                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   493
          "Set when executing debug methods in debug.cpp "                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   494
          "(to prevent triggering assertions)")                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   495
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   496
  notproduct(bool, StrictSafepointChecks, trueInDebug,                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   497
          "Enable strict checks that safepoints cannot happen for threads " \
35492
c8c0273e6b91 8146690: Make all classes in GC follow the naming convention.
david
parents: 35463
diff changeset
   498
          "that use NoSafepointVerifier")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   499
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   500
  notproduct(bool, VerifyLastFrame, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   501
          "Verify oops on last frame on entry to VM")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   502
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   503
  product(bool, FailOverToOldVerifier, true,                                \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   504
          "Fail over to old verifier when split verifier fails")            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   505
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   506
  product(bool, SafepointTimeout, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   507
          "Time out and warn or fail after SafepointTimeoutDelay "          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   508
          "milliseconds if failed to reach safepoint")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   509
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   510
  develop(bool, DieOnSafepointTimeout, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   511
          "Die upon failure to reach safepoint (see SafepointTimeout)")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   512
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   513
  /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */      \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   514
  /* typically, at most a few retries are needed                    */      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   515
  product(intx, SuspendRetryCount, 50,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   516
          "Maximum retry count for an external suspend request")            \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   517
          range(0, max_intx)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   518
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   519
  product(intx, SuspendRetryDelay, 5,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   520
          "Milliseconds to delay per retry (* current_retry_count)")        \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   521
          range(0, max_intx)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   522
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   523
  product(bool, AssertOnSuspendWaitFailure, false,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   524
          "Assert/Guarantee on external suspend wait failure")              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   525
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   526
  product(bool, TraceSuspendWaitFailures, false,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   527
          "Trace external suspend wait failures")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   528
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   529
  product(bool, MaxFDLimit, true,                                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   530
          "Bump the number of file descriptors to maximum in Solaris")      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   531
                                                                            \
11636
3c07b54482a5 7141200: log some interesting information in ring buffers for crashes
never
parents: 11632
diff changeset
   532
  diagnostic(bool, LogEvents, true,                                         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   533
          "Enable the various ring buffer event logs")                      \
11636
3c07b54482a5 7141200: log some interesting information in ring buffers for crashes
never
parents: 11632
diff changeset
   534
                                                                            \
17392
2f967c0e4246 6843347: Boundary values in some public GC options cause crashes
tschatzl
parents: 17322
diff changeset
   535
  diagnostic(uintx, LogEventsBufferEntries, 10,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   536
          "Number of ring buffer event logs")                               \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   537
          range(1, NOT_LP64(1*K) LP64_ONLY(1*M))                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   538
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   539
  product(bool, BytecodeVerificationRemote, true,                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   540
          "Enable the Java bytecode verifier for remote classes")           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   541
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   542
  product(bool, BytecodeVerificationLocal, false,                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   543
          "Enable the Java bytecode verifier for local classes")            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   544
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   545
  develop(bool, ForceFloatExceptions, trueInDebug,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   546
          "Force exceptions on FP stack under/overflow")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   547
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   548
  develop(bool, VerifyStackAtCalls, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   549
          "Verify that the stack pointer is unchanged after calls")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   550
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   551
  develop(bool, TraceJavaAssertions, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   552
          "Trace java language assertions")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   553
                                                                            \
23214
b6426873cb37 8029799: vm/mlvm/anonloader/stress/oome prints warning: CodeHeap: # of free blocks > 10000
anoll
parents: 23192
diff changeset
   554
  notproduct(bool, VerifyCodeCache, false,                                  \
b6426873cb37 8029799: vm/mlvm/anonloader/stress/oome prints warning: CodeHeap: # of free blocks > 10000
anoll
parents: 23192
diff changeset
   555
          "Verify code cache on memory allocation/deallocation")            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   556
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   557
  develop(bool, UseMallocOnly, false,                                       \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   558
          "Use only malloc/free for allocation (no resource area/arena)")   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   559
                                                                            \
8320
544210b4dd48 7017124: Fix some VM stats to avoid 32-bit overflow
kvn
parents: 8076
diff changeset
   560
  develop(bool, PrintMallocStatistics, false,                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   561
          "Print malloc/free statistics")                                   \
8320
544210b4dd48 7017124: Fix some VM stats to avoid 32-bit overflow
kvn
parents: 8076
diff changeset
   562
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   563
  develop(bool, ZapResourceArea, trueInDebug,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   564
          "Zap freed resource/arena space with 0xABABABAB")                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   565
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   566
  notproduct(bool, ZapVMHandleArea, trueInDebug,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   567
          "Zap freed VM handle space with 0xBCBCBCBC")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   568
                                                                            \
6762
f8d1b560700e 6423256: GC stacks should use a better data structure
jcoomes
parents: 6448
diff changeset
   569
  notproduct(bool, ZapStackSegments, trueInDebug,                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   570
          "Zap allocated/freed stack segments with 0xFADFADED")             \
6762
f8d1b560700e 6423256: GC stacks should use a better data structure
jcoomes
parents: 6448
diff changeset
   571
                                                                            \
971
f0b20be4165d 6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents: 765
diff changeset
   572
  develop(bool, ZapUnusedHeapArea, trueInDebug,                             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   573
          "Zap unused heap space with 0xBAADBABE")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   574
                                                                            \
971
f0b20be4165d 6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents: 765
diff changeset
   575
  develop(bool, CheckZapUnusedHeapArea, false,                              \
f0b20be4165d 6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents: 765
diff changeset
   576
          "Check zapping of unused heap space")                             \
f0b20be4165d 6672698: mangle_unused_area() should not remangle the entire heap at each collection.
jmasa
parents: 765
diff changeset
   577
                                                                            \
1668
8ec481b8f514 6578152: fill_region_with_object has usability and safety issues
jcoomes
parents: 1615
diff changeset
   578
  develop(bool, ZapFillerObjects, trueInDebug,                              \
8ec481b8f514 6578152: fill_region_with_object has usability and safety issues
jcoomes
parents: 1615
diff changeset
   579
          "Zap filler objects with 0xDEAFBABE")                             \
8ec481b8f514 6578152: fill_region_with_object has usability and safety issues
jcoomes
parents: 1615
diff changeset
   580
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   581
  develop(bool, PrintVMMessages, true,                                      \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   582
          "Print VM messages on console")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   583
                                                                            \
5403
6b0dd9c75dde 6888954: argument formatting for assert() and friends
jcoomes
parents: 5251
diff changeset
   584
  notproduct(uintx, ErrorHandlerTest, 0,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   585
          "If > 0, provokes an error after VM initialization; the value "   \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   586
          "determines which error to provoke. See test_error_handler() "    \
46589
f1c04490ded1 8182848: Some functions misplaced in debug.hpp
coleenp
parents: 46577
diff changeset
   587
          "in vmError.cpp.")                                                \
5403
6b0dd9c75dde 6888954: argument formatting for assert() and friends
jcoomes
parents: 5251
diff changeset
   588
                                                                            \
28943
679546f0cc1f 8065895: Synchronous signals during error reporting may terminate or hang VM process
dholmes
parents: 28650
diff changeset
   589
  notproduct(uintx, TestCrashInErrorHandler, 0,                             \
679546f0cc1f 8065895: Synchronous signals during error reporting may terminate or hang VM process
dholmes
parents: 28650
diff changeset
   590
          "If > 0, provokes an error inside VM error handler (a secondary " \
46589
f1c04490ded1 8182848: Some functions misplaced in debug.hpp
coleenp
parents: 46577
diff changeset
   591
          "crash). see test_error_handler() in vmError.cpp")                \
28943
679546f0cc1f 8065895: Synchronous signals during error reporting may terminate or hang VM process
dholmes
parents: 28650
diff changeset
   592
                                                                            \
29573
2d800e5d575f 8074552: SafeFetch32 and SafeFetchN do not work in error handling
dholmes
parents: 29459
diff changeset
   593
  notproduct(bool, TestSafeFetchInErrorHandler, false,                      \
2d800e5d575f 8074552: SafeFetch32 and SafeFetchN do not work in error handling
dholmes
parents: 29459
diff changeset
   594
          "If true, tests SafeFetch inside error handler.")                 \
2d800e5d575f 8074552: SafeFetch32 and SafeFetchN do not work in error handling
dholmes
parents: 29459
diff changeset
   595
                                                                            \
46284
ad578adff5df 8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents: 43605
diff changeset
   596
  notproduct(bool, TestUnresponsiveErrorHandler, false,                     \
ad578adff5df 8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents: 43605
diff changeset
   597
          "If true, simulates an unresponsive error handler.")              \
ad578adff5df 8166944: Hanging Error Reporting steps may lead to torn error logs.
stuefe
parents: 43605
diff changeset
   598
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   599
  develop(bool, Verbose, false,                                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   600
          "Print additional debugging information from other modes")        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   601
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   602
  develop(bool, PrintMiscellaneous, false,                                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   603
          "Print uncategorized debugging information (requires +Verbose)")  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   604
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   605
  develop(bool, WizardMode, false,                                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   606
          "Print much more debugging information")                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   607
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   608
  product(bool, ShowMessageBoxOnError, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   609
          "Keep process alive on VM fatal error")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   610
                                                                            \
30240
a7ba42fa1df6 8074354: Make CreateMinidumpOnCrash a new name and available on all platforms
minqi
parents: 30120
diff changeset
   611
  product(bool, CreateCoredumpOnCrash, true,                                \
a7ba42fa1df6 8074354: Make CreateMinidumpOnCrash a new name and available on all platforms
minqi
parents: 30120
diff changeset
   612
          "Create core/mini dump on VM fatal error")                        \
8119
81eef1b06988 7014918: Improve core/minidump handling in Hotspot
ctornqvi
parents: 8114
diff changeset
   613
                                                                            \
34231
adc744ac832a 8141641: Runtime: implement range for ErrorLogTimeout
gziemski
parents: 34142
diff changeset
   614
  product(uint64_t, ErrorLogTimeout, 2 * 60,                                \
31611
c1fcef5c1925 8080925: Make error log write timeout parameter configurable
stuefe
parents: 31608
diff changeset
   615
          "Timeout, in seconds, to limit the time spent on writing an "     \
c1fcef5c1925 8080925: Make error log write timeout parameter configurable
stuefe
parents: 31608
diff changeset
   616
          "error log in case of a crash.")                                  \
34231
adc744ac832a 8141641: Runtime: implement range for ErrorLogTimeout
gziemski
parents: 34142
diff changeset
   617
          range(0, (uint64_t)max_jlong/1000)                                \
31611
c1fcef5c1925 8080925: Make error log write timeout parameter configurable
stuefe
parents: 31608
diff changeset
   618
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   619
  product_pd(bool, UseOSErrorReporting,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   620
          "Let VM fatal error propagate to the OS (ie. WER on Windows)")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   621
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   622
  product(bool, SuppressFatalErrorMessage, false,                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   623
          "Report NO fatal error message (avoid deadlock)")                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   624
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   625
  product(ccstrlist, OnError, "",                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   626
          "Run user-defined commands on fatal error; see VMError.cpp "      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   627
          "for examples")                                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   628
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   629
  product(ccstrlist, OnOutOfMemoryError, "",                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   630
          "Run user-defined commands on first java.lang.OutOfMemoryError")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   631
                                                                            \
2141
e9a644aaff87 6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents: 2034
diff changeset
   632
  manageable(bool, HeapDumpBeforeFullGC, false,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   633
          "Dump heap to file before any major stop-the-world GC")           \
2141
e9a644aaff87 6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents: 2034
diff changeset
   634
                                                                            \
e9a644aaff87 6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents: 2034
diff changeset
   635
  manageable(bool, HeapDumpAfterFullGC, false,                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   636
          "Dump heap to file after any major stop-the-world GC")            \
2141
e9a644aaff87 6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC
ysr
parents: 2034
diff changeset
   637
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   638
  manageable(bool, HeapDumpOnOutOfMemoryError, false,                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   639
          "Dump heap to file when java.lang.OutOfMemoryError is thrown")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   640
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   641
  manageable(ccstr, HeapDumpPath, NULL,                                     \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   642
          "When HeapDumpOnOutOfMemoryError is on, the path (filename or "   \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   643
          "directory) of the dump file (defaults to java_pid<pid>.hprof "   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   644
          "in the working directory)")                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   645
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   646
  develop(bool, BreakAtWarning, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   647
          "Execute breakpoint upon encountering VM warning")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   648
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   649
  develop(bool, UseFakeTimers, false,                                       \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   650
          "Tell whether the VM should use system time or a fake timer")     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   651
                                                                            \
13195
be27e1b6a4b9 6995781: Native Memory Tracking (Phase 1)
zgu
parents: 13091
diff changeset
   652
  product(ccstr, NativeMemoryTracking, "off",                               \
be27e1b6a4b9 6995781: Native Memory Tracking (Phase 1)
zgu
parents: 13091
diff changeset
   653
          "Native memory tracking options")                                 \
be27e1b6a4b9 6995781: Native Memory Tracking (Phase 1)
zgu
parents: 13091
diff changeset
   654
                                                                            \
13861
619cff4bfb8b 7188594: Print statistic collected by NMT with VM flag
zgu
parents: 13739
diff changeset
   655
  diagnostic(bool, PrintNMTStatistics, false,                               \
619cff4bfb8b 7188594: Print statistic collected by NMT with VM flag
zgu
parents: 13739
diff changeset
   656
          "Print native memory tracking summary data if it is on")          \
619cff4bfb8b 7188594: Print statistic collected by NMT with VM flag
zgu
parents: 13739
diff changeset
   657
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   658
  diagnostic(bool, LogCompilation, false,                                   \
20010
c66a7254680c 8023134: Rename VM LogFile to hotspot_pid{pid}.log (was hotspot.log)
vlivanov
parents: 19770
diff changeset
   659
          "Log compilation activity in detail to LogFile")                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   660
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   661
  product(bool, PrintCompilation, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   662
          "Print compilations")                                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   663
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   664
  diagnostic(bool, TraceNMethodInstalls, false,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   665
          "Trace nmethod installation")                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   666
                                                                            \
11195
48e0d7ae1378 7110058: change default for ScavengeRootsInCode to 2
twisti
parents: 10989
diff changeset
   667
  diagnostic(intx, ScavengeRootsInCode, 2,                                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   668
          "0: do not allow scavengable oops in the code cache; "            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   669
          "1: allow scavenging from the code cache; "                       \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   670
          "2: emit as many constants as the compiler can see")              \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   671
          range(0, 2)                                                       \
3908
24b55ad4c228 6863023: need non-perm oops in code cache for JSR 292
jrose
parents: 3610
diff changeset
   672
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   673
  product(bool, AlwaysRestoreFPU, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   674
          "Restore the FPU control word after every JNI call (expensive)")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   675
                                                                            \
10988
a3b2bd43ef4f 7107042: assert(no_dead_loop) failed: dead loop detected
kvn
parents: 10983
diff changeset
   676
  diagnostic(bool, PrintCompilation2, false,                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   677
          "Print additional statistics per compilation")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   678
                                                                            \
347
df859fcca515 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 249
diff changeset
   679
  diagnostic(bool, PrintAdapterHandlers, false,                             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   680
          "Print code generated for i2c/c2i adapters")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   681
                                                                            \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13197
diff changeset
   682
  diagnostic(bool, VerifyAdapterCalls, trueInDebug,                         \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13197
diff changeset
   683
          "Verify that i2c/c2i adapters are called properly")               \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13197
diff changeset
   684
                                                                            \
4755
eee57ea6d910 6921922: fix for 6911204 breaks tagged stack interpreter
never
parents: 4754
diff changeset
   685
  develop(bool, VerifyAdapterSharing, false,                                \
eee57ea6d910 6921922: fix for 6911204 breaks tagged stack interpreter
never
parents: 4754
diff changeset
   686
          "Verify that the code for shared adapters is the equivalent")     \
eee57ea6d910 6921922: fix for 6911204 breaks tagged stack interpreter
never
parents: 4754
diff changeset
   687
                                                                            \
347
df859fcca515 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 249
diff changeset
   688
  diagnostic(bool, PrintAssembly, false,                                    \
df859fcca515 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 249
diff changeset
   689
          "Print assembly code (using external disassembler.so)")           \
df859fcca515 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 249
diff changeset
   690
                                                                            \
1402
ccb40ce62b79 6744783: HotSpot segfaults if given -XX options with an empty string argument
never
parents: 1129
diff changeset
   691
  diagnostic(ccstr, PrintAssemblyOptions, NULL,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   692
          "Print options string passed to disassembler.so")                 \
347
df859fcca515 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 249
diff changeset
   693
                                                                            \
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 33083
diff changeset
   694
  notproduct(bool, PrintNMethodStatistics, false,                           \
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 33083
diff changeset
   695
          "Print a summary statistic for the generated nmethods")           \
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 33083
diff changeset
   696
                                                                            \
347
df859fcca515 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 249
diff changeset
   697
  diagnostic(bool, PrintNMethods, false,                                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   698
          "Print assembly code for nmethods when generated")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   699
                                                                            \
347
df859fcca515 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 249
diff changeset
   700
  diagnostic(bool, PrintNativeNMethods, false,                              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   701
          "Print assembly code for native nmethods when generated")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   702
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   703
  develop(bool, PrintDebugInfo, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   704
          "Print debug information for all nmethods when generated")        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   705
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   706
  develop(bool, PrintRelocations, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   707
          "Print relocation information for all nmethods when generated")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   708
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   709
  develop(bool, PrintDependencies, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   710
          "Print dependency information for all nmethods when generated")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   711
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   712
  develop(bool, PrintExceptionHandlers, false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   713
          "Print exception handler tables for all nmethods when generated") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   714
                                                                            \
14835
70896cb93c35 8004741: Missing compiled exception handle table entry for multidimensional array allocation
kvn
parents: 14490
diff changeset
   715
  develop(bool, StressCompiledExceptionHandlers, false,                     \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   716
          "Exercise compiled exception handlers")                           \
14835
70896cb93c35 8004741: Missing compiled exception handle table entry for multidimensional array allocation
kvn
parents: 14490
diff changeset
   717
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   718
  develop(bool, InterceptOSException, false,                                \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   719
          "Start debugger when an implicit OS (e.g. NULL) "                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   720
          "exception happens")                                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   721
                                                                            \
15201
f3d755b11424 8005204: Code Cache Reduction: command line options implementation
vladidan
parents: 15107
diff changeset
   722
  product(bool, PrintCodeCache, false,                                      \
f3d755b11424 8005204: Code Cache Reduction: command line options implementation
vladidan
parents: 15107
diff changeset
   723
          "Print the code cache memory usage when exiting")                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   724
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   725
  develop(bool, PrintCodeCache2, false,                                     \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   726
          "Print detailed usage information on the code cache when exiting")\
15201
f3d755b11424 8005204: Code Cache Reduction: command line options implementation
vladidan
parents: 15107
diff changeset
   727
                                                                            \
f3d755b11424 8005204: Code Cache Reduction: command line options implementation
vladidan
parents: 15107
diff changeset
   728
  product(bool, PrintCodeCacheOnCompilation, false,                         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   729
          "Print the code cache memory usage each time a method is "        \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   730
          "compiled")                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   731
                                                                            \
347
df859fcca515 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 249
diff changeset
   732
  diagnostic(bool, PrintStubCode, false,                                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   733
          "Print generated stub code")                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   734
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   735
  product(bool, StackTraceInThrowable, true,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   736
          "Collect backtrace in throwable when exception happens")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   737
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   738
  product(bool, OmitStackTraceInFastThrow, true,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   739
          "Omit backtraces for some 'hot' exceptions in optimized code")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   740
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   741
  product(bool, ProfilerPrintByteCodeStatistics, false,                     \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   742
          "Print bytecode statistics when dumping profiler output")         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   743
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   744
  product(bool, ProfilerRecordPC, false,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   745
          "Collect ticks for each 16 byte interval of compiled code")       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   746
                                                                            \
4434
4b41e5b42f81 6887571: Increase default heap config sizes
phh
parents: 4013
diff changeset
   747
  product(bool, ProfileVM, false,                                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   748
          "Profile ticks that fall within VM (either in the VM Thread "     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   749
          "or VM code called through stubs)")                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   750
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   751
  product(bool, ProfileIntervals, false,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   752
          "Print profiles for each interval (see ProfileIntervalsTicks)")   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   753
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   754
  notproduct(bool, ProfilerCheckIntervals, false,                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   755
          "Collect and print information on spacing of profiler ticks")     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   756
                                                                            \
6967
c5ebdcf8372e 6392697: Additional flag needed to supress Hotspot warning messages
kamg
parents: 6965
diff changeset
   757
  product(bool, PrintWarnings, true,                                        \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   758
          "Print JVM warnings to output stream")                            \
6967
c5ebdcf8372e 6392697: Additional flag needed to supress Hotspot warning messages
kamg
parents: 6965
diff changeset
   759
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   760
  notproduct(uintx, WarnOnStalledSpinLock, 0,                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   761
          "Print warnings for stalled SpinLocks")                           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   762
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   763
  product(bool, RegisterFinalizersAtInit, true,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   764
          "Register finalizable objects at end of Object.<init> or "        \
4434
4b41e5b42f81 6887571: Increase default heap config sizes
phh
parents: 4013
diff changeset
   765
          "after allocation")                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   766
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   767
  develop(bool, RegisterReferences, true,                                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   768
          "Tell whether the VM should register soft/weak/final/phantom "    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   769
          "references")                                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   770
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   771
  develop(bool, IgnoreRewrites, false,                                      \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   772
          "Suppress rewrites of bytecodes in the oopmap generator. "        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   773
          "This is unsafe!")                                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   774
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   775
  develop(bool, PrintCodeCacheExtension, false,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   776
          "Print extension of code cache")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   777
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   778
  develop(bool, UsePrivilegedStack, true,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   779
          "Enable the security JVM functions")                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   780
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   781
  develop(bool, ProtectionDomainVerification, true,                         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   782
          "Verify protection domain before resolution in system dictionary")\
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   783
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   784
  product(bool, ClassUnloading, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   785
          "Do unloading of classes")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   786
                                                                            \
25908
8adb2fb6fc3c 8048269: Add flag to turn off class unloading after G1 concurrent mark
stefank
parents: 25905
diff changeset
   787
  product(bool, ClassUnloadingWithConcurrentMark, true,                     \
8adb2fb6fc3c 8048269: Add flag to turn off class unloading after G1 concurrent mark
stefank
parents: 25905
diff changeset
   788
          "Do unloading of classes with a concurrent marking cycle")        \
8adb2fb6fc3c 8048269: Add flag to turn off class unloading after G1 concurrent mark
stefank
parents: 25905
diff changeset
   789
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   790
  develop(bool, DisableStartThread, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   791
          "Disable starting of additional Java threads "                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   792
          "(for debugging only)")                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   793
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   794
  develop(bool, MemProfiling, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   795
          "Write memory usage profiling to log file")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   796
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   797
  notproduct(bool, PrintSystemDictionaryAtExit, false,                      \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   798
          "Print the system dictionary at exit")                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   799
                                                                            \
47774
69c081ca110a 8184765: Dynamically resize SystemDictionary
gziemski
parents: 47687
diff changeset
   800
  diagnostic(bool, DynamicallyResizeSystemDictionaries, true,               \
69c081ca110a 8184765: Dynamically resize SystemDictionary
gziemski
parents: 47687
diff changeset
   801
          "Dynamically resize system dictionaries as needed")               \
11628
13155c0c00b4 7114376: Make system dictionary hashtable bucket array size configurable
acorn
parents: 11601
diff changeset
   802
                                                                            \
1890
9ce941df84eb 4670071: loadClassInternal is too restrictive.
acorn
parents: 1671
diff changeset
   803
  product(bool, AlwaysLockClassLoader, false,                               \
9ce941df84eb 4670071: loadClassInternal is too restrictive.
acorn
parents: 1671
diff changeset
   804
          "Require the VM to acquire the class loader lock before calling " \
9ce941df84eb 4670071: loadClassInternal is too restrictive.
acorn
parents: 1671
diff changeset
   805
          "loadClass() even for class loaders registering "                 \
4434
4b41e5b42f81 6887571: Increase default heap config sizes
phh
parents: 4013
diff changeset
   806
          "as parallel capable")                                            \
1890
9ce941df84eb 4670071: loadClassInternal is too restrictive.
acorn
parents: 1671
diff changeset
   807
                                                                            \
9ce941df84eb 4670071: loadClassInternal is too restrictive.
acorn
parents: 1671
diff changeset
   808
  product(bool, AllowParallelDefineClass, false,                            \
9ce941df84eb 4670071: loadClassInternal is too restrictive.
acorn
parents: 1671
diff changeset
   809
          "Allow parallel defineClass requests for class loaders "          \
4434
4b41e5b42f81 6887571: Increase default heap config sizes
phh
parents: 4013
diff changeset
   810
          "registering as parallel capable")                                \
1890
9ce941df84eb 4670071: loadClassInternal is too restrictive.
acorn
parents: 1671
diff changeset
   811
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   812
  product_pd(bool, DontYieldALot,                                           \
24931
4bba680186bd 8044339: Update FilterSpuriousWakeups documentation. Review "Solaris only" vm options descriptions
iignatyev
parents: 24921
diff changeset
   813
          "Throw away obvious excess yield calls")                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   814
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   815
  develop(bool, UseDetachedThreads, true,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   816
          "Use detached threads that are recycled upon termination "        \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   817
          "(for Solaris only)")                                             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   818
                                                                            \
48005
9fd89aabb6cd 8189170: Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
dholmes
parents: 47994
diff changeset
   819
  experimental(bool, DisablePrimordialThreadGuardPages, false,              \
9fd89aabb6cd 8189170: Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
dholmes
parents: 47994
diff changeset
   820
               "Disable the use of stack guard pages if the JVM is loaded " \
9fd89aabb6cd 8189170: Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
dholmes
parents: 47994
diff changeset
   821
               "on the primordial process thread")                          \
9fd89aabb6cd 8189170: Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
dholmes
parents: 47994
diff changeset
   822
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   823
  product(bool, UseLWPSynchronization, true,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   824
          "Use LWP-based instead of libthread-based synchronization "       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   825
          "(SPARC only)")                                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   826
                                                                            \
25472
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   827
  experimental(ccstr, SyncKnobs, NULL,                                      \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   828
               "(Unstable) Various monitor synchronization tunables")       \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   829
                                                                            \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   830
  experimental(intx, EmitSync, 0,                                           \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   831
               "(Unsafe, Unstable) "                                        \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   832
               "Control emission of inline sync fast-path code")            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   833
                                                                            \
5710
d664086c0add 6852873: Reduce safepoint cleanup time
acorn
parents: 5539
diff changeset
   834
  product(intx, MonitorBound, 0, "Bound Monitor population")                \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
   835
          range(0, max_jint)                                                \
5710
d664086c0add 6852873: Reduce safepoint cleanup time
acorn
parents: 5539
diff changeset
   836
                                                                            \
38103
dc2de2fd6c43 8149442: MonitorInUseLists should be on by default, deflate idle monitors taking too long
dsimms
parents: 38012
diff changeset
   837
  product(bool, MonitorInUseLists, true, "Track Monitors for Deflation")    \
5710
d664086c0add 6852873: Reduce safepoint cleanup time
acorn
parents: 5539
diff changeset
   838
                                                                            \
46541
d20828de9e39 8181859: Monitor deflation is not checked in cleanup path
rehn
parents: 46540
diff changeset
   839
  experimental(intx, MonitorUsedDeflationThreshold, 90,                     \
d20828de9e39 8181859: Monitor deflation is not checked in cleanup path
rehn
parents: 46540
diff changeset
   840
                "Percentage of used monitors before triggering cleanup "    \
d20828de9e39 8181859: Monitor deflation is not checked in cleanup path
rehn
parents: 46540
diff changeset
   841
                "safepoint which deflates monitors (0 is off). "            \
d20828de9e39 8181859: Monitor deflation is not checked in cleanup path
rehn
parents: 46540
diff changeset
   842
                "The check is performed on GuaranteedSafepointInterval.")   \
d20828de9e39 8181859: Monitor deflation is not checked in cleanup path
rehn
parents: 46540
diff changeset
   843
                range(0, 100)                                               \
d20828de9e39 8181859: Monitor deflation is not checked in cleanup path
rehn
parents: 46540
diff changeset
   844
                                                                            \
25472
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   845
  experimental(intx, SyncFlags, 0, "(Unsafe, Unstable) "                    \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   846
               "Experimental Sync flags")                                   \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   847
                                                                            \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   848
  experimental(intx, SyncVerbose, 0, "(Unstable)")                          \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   849
                                                                            \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   850
  experimental(intx, hashCode, 5,                                           \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   851
               "(Unstable) select hashCode generation algorithm")           \
381638db28e6 8047104: cleanup misc issues prior to Contended Locking reorder and cache
dcubed
parents: 25350
diff changeset
   852
                                                                            \
4434
4b41e5b42f81 6887571: Increase default heap config sizes
phh
parents: 4013
diff changeset
   853
  product(bool, FilterSpuriousWakeups, true,                                \
24931
4bba680186bd 8044339: Update FilterSpuriousWakeups documentation. Review "Solaris only" vm options descriptions
iignatyev
parents: 24921
diff changeset
   854
          "When true prevents OS-level spurious, or premature, wakeups "    \
4bba680186bd 8044339: Update FilterSpuriousWakeups documentation. Review "Solaris only" vm options descriptions
iignatyev
parents: 24921
diff changeset
   855
          "from Object.wait (Ignored for Windows)")                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   856
                                                                            \
27024
1ebde58e3e42 8038903: More native monitor monitoring
zgu
parents: 26919
diff changeset
   857
  experimental(intx, NativeMonitorTimeout, -1, "(Unstable)")                \
1ebde58e3e42 8038903: More native monitor monitoring
zgu
parents: 26919
diff changeset
   858
                                                                            \
1ebde58e3e42 8038903: More native monitor monitoring
zgu
parents: 26919
diff changeset
   859
  experimental(intx, NativeMonitorFlags, 0, "(Unstable)")                   \
1ebde58e3e42 8038903: More native monitor monitoring
zgu
parents: 26919
diff changeset
   860
                                                                            \
1ebde58e3e42 8038903: More native monitor monitoring
zgu
parents: 26919
diff changeset
   861
  experimental(intx, NativeMonitorSpinLimit, 20, "(Unstable)")              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   862
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   863
  develop(bool, UsePthreads, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   864
          "Use pthread-based instead of libthread-based synchronization "   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   865
          "(SPARC only)")                                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   866
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   867
  product(bool, ReduceSignalUsage, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   868
          "Reduce the use of OS signals in Java and/or the VM")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   869
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   870
  develop_pd(bool, ShareVtableStubs,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   871
          "Share vtable stubs (smaller code but worse branch prediction")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   872
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   873
  develop(bool, LoadLineNumberTables, true,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   874
          "Tell whether the class file parser loads line number tables")    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   875
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   876
  develop(bool, LoadLocalVariableTables, true,                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   877
          "Tell whether the class file parser loads local variable tables") \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   878
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   879
  develop(bool, LoadLocalVariableTypeTables, true,                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   880
          "Tell whether the class file parser loads local variable type"    \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   881
          "tables")                                                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   882
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   883
  product(bool, AllowUserSignalHandlers, false,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   884
          "Do not complain if the application installs signal handlers "    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   885
          "(Solaris & Linux only)")                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   886
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   887
  product(bool, UseSignalChaining, true,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   888
          "Use signal-chaining to invoke signal handlers installed "        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   889
          "by the application (Solaris & Linux only)")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   890
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   891
  product(bool, AllowJNIEnvProxy, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   892
          "Allow JNIEnv proxies for jdbx")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   893
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   894
  product(bool, RestoreMXCSROnJNICalls, false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   895
          "Restore MXCSR when returning from JNI calls")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   896
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   897
  product(bool, CheckJNICalls, false,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   898
          "Verify all arguments to JNI calls")                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   899
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   900
  product(bool, UseFastJNIAccessors, true,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   901
          "Use optimized versions of Get<Primitive>Field")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   902
                                                                            \
25630
ff281ea14d41 8046919: jni_PushLocalFrame OOM - increase MAX_REASONABLE_LOCAL_CAPACITY
dsimms
parents: 25472
diff changeset
   903
  product(intx, MaxJNILocalCapacity, 65536,                                 \
ff281ea14d41 8046919: jni_PushLocalFrame OOM - increase MAX_REASONABLE_LOCAL_CAPACITY
dsimms
parents: 25472
diff changeset
   904
          "Maximum allowable local JNI handle capacity to "                 \
ff281ea14d41 8046919: jni_PushLocalFrame OOM - increase MAX_REASONABLE_LOCAL_CAPACITY
dsimms
parents: 25472
diff changeset
   905
          "EnsureLocalCapacity() and PushLocalFrame(), "                    \
ff281ea14d41 8046919: jni_PushLocalFrame OOM - increase MAX_REASONABLE_LOCAL_CAPACITY
dsimms
parents: 25472
diff changeset
   906
          "where <= 0 is unlimited, default: 65536")                        \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   907
          range(min_intx, max_intx)                                         \
25630
ff281ea14d41 8046919: jni_PushLocalFrame OOM - increase MAX_REASONABLE_LOCAL_CAPACITY
dsimms
parents: 25472
diff changeset
   908
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   909
  product(bool, EagerXrunInit, false,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   910
          "Eagerly initialize -Xrun libraries; allows startup profiling, "  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   911
          "but not all -Xrun libraries may support the state of the VM "    \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   912
          "at this time")                                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   913
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   914
  product(bool, PreserveAllAnnotations, false,                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   915
          "Preserve RuntimeInvisibleAnnotations as well "                   \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
   916
          "as RuntimeVisibleAnnotations")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   917
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   918
  develop(uintx, PreallocatedOutOfMemoryErrorCount, 4,                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   919
          "Number of OutOfMemoryErrors preallocated with backtrace")        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   920
                                                                            \
1437
d1846c1c04c4 6532536: Optimize arraycopy stubs for Intel cpus
kvn
parents: 1434
diff changeset
   921
  product(bool, UseXMMForArrayCopy, false,                                  \
d1846c1c04c4 6532536: Optimize arraycopy stubs for Intel cpus
kvn
parents: 1434
diff changeset
   922
          "Use SSE2 MOVQ instruction for Arraycopy")                        \
d1846c1c04c4 6532536: Optimize arraycopy stubs for Intel cpus
kvn
parents: 1434
diff changeset
   923
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   924
  product(intx, FieldsAllocationStyle, 1,                                   \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   925
          "0 - type based with oops first, "                                \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   926
          "1 - with oops last, "                                            \
5250
ea743ca75cd9 6940733: allocate non static oop fields in super and sub classes together
kvn
parents: 5249
diff changeset
   927
          "2 - oops in super and sub classes are together")                 \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   928
          range(0, 2)                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   929
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   930
  product(bool, CompactFields, true,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   931
          "Allocate nonstatic fields in gaps between previous fields")      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   932
                                                                            \
15193
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   933
  notproduct(bool, PrintFieldLayout, false,                                 \
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   934
          "Print field layout for each class")                              \
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   935
                                                                            \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   936
  /* Need to limit the extent of the padding to reasonable size.          */\
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   937
  /* 8K is well beyond the reasonable HW cache line size, even with       */\
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   938
  /* aggressive prefetching, while still leaving the room for segregating */\
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   939
  /* among the distinct pages.                                            */\
15193
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   940
  product(intx, ContendedPaddingWidth, 128,                                 \
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   941
          "How many bytes to pad the fields/classes marked @Contended with")\
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   942
          range(0, 8192)                                                    \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   943
          constraint(ContendedPaddingWidthConstraintFunc,AfterErgo)         \
15193
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   944
                                                                            \
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   945
  product(bool, EnableContended, true,                                      \
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   946
          "Enable @Contended annotation support")                           \
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   947
                                                                            \
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   948
  product(bool, RestrictContended, true,                                    \
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   949
          "Restrict @Contended to trusted classes")                         \
8e6b5694267f 8003985: Support @Contended Annotation - JEP 142
jwilhelm
parents: 15101
diff changeset
   950
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   951
  product(bool, UseBiasedLocking, true,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   952
          "Enable biased locking in JVM")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   953
                                                                            \
46577
10d018a7edee 8180421: Change default value of BiasedLockingStartupDelay to 0
rehn
parents: 46560
diff changeset
   954
  product(intx, BiasedLockingStartupDelay, 0,                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   955
          "Number of milliseconds to wait before enabling biased locking")  \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   956
          range(0, (intx)(max_jint-(max_jint%PeriodicTask::interval_gran))) \
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   957
          constraint(BiasedLockingStartupDelayFunc,AfterErgo)               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   958
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   959
  diagnostic(bool, PrintBiasedLockingStatistics, false,                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   960
          "Print statistics of biased locking in JVM")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   961
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   962
  product(intx, BiasedLockingBulkRebiasThreshold, 20,                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   963
          "Threshold of number of revocations per type to try to "          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   964
          "rebias all objects in the heap of that type")                    \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   965
          range(0, max_intx)                                                \
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   966
          constraint(BiasedLockingBulkRebiasThresholdFunc,AfterErgo)        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   967
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   968
  product(intx, BiasedLockingBulkRevokeThreshold, 40,                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   969
          "Threshold of number of revocations per type to permanently "     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   970
          "revoke biases of all objects in the heap of that type")          \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   971
          range(0, max_intx)                                                \
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   972
          constraint(BiasedLockingBulkRevokeThresholdFunc,AfterErgo)        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   973
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   974
  product(intx, BiasedLockingDecayTime, 25000,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   975
          "Decay time (in milliseconds) to re-enable bulk rebiasing of a "  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   976
          "type after previous bulk rebias")                                \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   977
          range(500, max_intx)                                              \
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
   978
          constraint(BiasedLockingDecayTimeFunc,AfterErgo)                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   979
                                                                            \
34670
5ab871b40190 8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot
kevinw
parents: 34661
diff changeset
   980
  product(bool, ExitOnOutOfMemoryError, false,                              \
5ab871b40190 8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot
kevinw
parents: 34661
diff changeset
   981
          "JVM exits on the first occurrence of an out-of-memory error")    \
5ab871b40190 8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot
kevinw
parents: 34661
diff changeset
   982
                                                                            \
5ab871b40190 8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot
kevinw
parents: 34661
diff changeset
   983
  product(bool, CrashOnOutOfMemoryError, false,                             \
5ab871b40190 8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot
kevinw
parents: 34661
diff changeset
   984
          "JVM aborts, producing an error log and core/mini dump, on the "  \
5ab871b40190 8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot
kevinw
parents: 34661
diff changeset
   985
          "first occurrence of an out-of-memory error")                     \
5ab871b40190 8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot
kevinw
parents: 34661
diff changeset
   986
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   987
  /* tracing */                                                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   988
                                                                            \
22750
a3c879b18f22 8033528: assert(0 <= i && i < length()) failed: index out of bounds
coleenp
parents: 22556
diff changeset
   989
  develop(bool, StressRewriter, false,                                      \
a3c879b18f22 8033528: assert(0 <= i && i < length()) failed: index out of bounds
coleenp
parents: 22556
diff changeset
   990
          "Stress linktime bytecode rewriting")                             \
a3c879b18f22 8033528: assert(0 <= i && i < length()) failed: index out of bounds
coleenp
parents: 22556
diff changeset
   991
                                                                            \
1402
ccb40ce62b79 6744783: HotSpot segfaults if given -XX options with an empty string argument
never
parents: 1129
diff changeset
   992
  product(ccstr, TraceJVMTI, NULL,                                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   993
          "Trace flags for JVMTI functions and events")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   994
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   995
  /* This option can change an EMCP method into an obsolete method. */      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   996
  /* This can affect tests that except specific methods to be EMCP. */      \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
   997
  /* This option should be used with caution.                       */      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   998
  product(bool, StressLdcRewrite, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   999
          "Force ldc -> ldc_w rewrite during RedefineClasses")              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1000
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1001
  /* change to false by default sometime after Mustang */                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1002
  product(bool, VerifyMergedCPBytecodes, true,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1003
          "Verify bytecodes after RedefineClasses constant pool merging")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1004
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1005
  develop(bool, TraceBytecodes, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1006
          "Trace bytecode execution")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1007
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1008
  develop(bool, TraceICs, false,                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1009
          "Trace inline cache changes")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1010
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1011
  notproduct(bool, TraceInvocationCounterOverflow, false,                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1012
          "Trace method invocation counter overflow")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1013
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1014
  develop(bool, TraceInlineCacheClearing, false,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1015
          "Trace clearing of inline caches in nmethods")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1016
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1017
  develop(bool, TraceDependencies, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1018
          "Trace dependencies")                                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1019
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1020
  develop(bool, VerifyDependencies, trueInDebug,                            \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1021
          "Exercise and verify the compilation dependency mechanism")       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1022
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1023
  develop(bool, TraceNewOopMapGeneration, false,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1024
          "Trace OopMapGeneration")                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1025
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1026
  develop(bool, TraceNewOopMapGenerationDetailed, false,                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1027
          "Trace OopMapGeneration: print detailed cell states")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1028
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1029
  develop(bool, TimeOopMap, false,                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1030
          "Time calls to GenerateOopMap::compute_map() in sum")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1031
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1032
  develop(bool, TimeOopMap2, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1033
          "Time calls to GenerateOopMap::compute_map() individually")       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1034
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1035
  develop(bool, TraceOopMapRewrites, false,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1036
          "Trace rewriting of method oops during oop map generation")       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1037
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1038
  develop(bool, TraceICBuffer, false,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1039
          "Trace usage of IC buffer")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1040
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1041
  develop(bool, TraceCompiledIC, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1042
          "Trace changes of compiled IC")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1043
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1044
  develop(bool, FLSVerifyDictionary, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1045
          "Do lots of (expensive) FLS dictionary verification")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1046
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1047
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1048
  notproduct(bool, CheckMemoryInitialization, false,                        \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1049
          "Check memory initialization")                                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1050
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1051
  product(uintx, ProcessDistributionStride, 4,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1052
          "Stride through processors when distributing processes")          \
34661
9a1d11d88ea0 8142341: GC: current flags need ranges to be implemented
sangheki
parents: 34629
diff changeset
  1053
          range(0, max_juint)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1054
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1055
  develop(bool, TraceFinalizerRegistration, false,                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1056
          "Trace registration of final references")                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1057
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1058
  notproduct(bool, TraceScavenge, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1059
          "Trace scavenge")                                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1060
                                                                            \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  1061
  product(bool, IgnoreEmptyClassPaths, false,                               \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  1062
          "Ignore empty path elements in -classpath")                       \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  1063
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
  1064
  product(size_t, InitialBootClassLoaderMetaspaceSize,                      \
15086
2bfd799e9147 8005082: NPG: Add specialized Metachunk sizes for reflection and anonymous classloaders
jmasa
parents: 14835
diff changeset
  1065
          NOT_LP64(2200*K) LP64_ONLY(4*M),                                  \
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13521
diff changeset
  1066
          "Initial size of the boot class loader data metaspace")           \
33144
c56850e328fc 8134995: [REDO] GC: implement ranges (optionally constraints) for those flags that have them missing
sangheki
parents: 33083
diff changeset
  1067
          range(30*K, max_uintx/BytesPerWord)                               \
c56850e328fc 8134995: [REDO] GC: implement ranges (optionally constraints) for those flags that have them missing
sangheki
parents: 33083
diff changeset
  1068
          constraint(InitialBootClassLoaderMetaspaceSizeConstraintFunc, AfterErgo)\
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13521
diff changeset
  1069
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1070
  product(bool, PrintHeapAtSIGBREAK, true,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1071
          "Print heap layout in response to SIGBREAK")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1072
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1073
  manageable(bool, PrintClassHistogram, false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1074
          "Print a histogram of class instances")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1075
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1076
  develop(bool, IgnoreLibthreadGPFault, false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1077
          "Suppress workaround for libthread GP fault")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1078
                                                                            \
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17617
diff changeset
  1079
  experimental(double, ObjectCountCutOffPercent, 0.5,                       \
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17617
diff changeset
  1080
          "The percentage of the used heap that the instances of a class "  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1081
          "must occupy for the class to generate a trace event")            \
33144
c56850e328fc 8134995: [REDO] GC: implement ranges (optionally constraints) for those flags that have them missing
sangheki
parents: 33083
diff changeset
  1082
          range(0.0, 100.0)                                                 \
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17617
diff changeset
  1083
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1084
  /* JVMTI heap profiling */                                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1085
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1086
  diagnostic(bool, TraceJVMTIObjectTagging, false,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1087
          "Trace JVMTI object tagging calls")                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1088
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1089
  diagnostic(bool, VerifyBeforeIteration, false,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1090
          "Verify memory system before JVMTI iteration")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1091
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1092
  /* compiler interface */                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1093
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1094
  develop(bool, CIPrintCompilerName, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1095
          "when CIPrint is active, print the name of the active compiler")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1096
                                                                            \
26587
e8b28fa936af 8054889: Compiler team's implementation task
neliasso
parents: 26141
diff changeset
  1097
  diagnostic(bool, CIPrintCompileQueue, false,                              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1098
          "display the contents of the compile queue whenever a "           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1099
          "compilation is enqueued")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1100
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1101
  develop(bool, CIPrintRequests, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1102
          "display every request for compilation")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1103
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1104
  product(bool, CITime, false,                                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1105
          "collect timing information for compilation")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1106
                                                                            \
26913
9ad70cd32368 8058968: Compiler time traces should be improved
shade
parents: 26796
diff changeset
  1107
  develop(bool, CITimeVerbose, false,                                       \
9ad70cd32368 8058968: Compiler time traces should be improved
shade
parents: 26796
diff changeset
  1108
          "be more verbose in compilation timings")                         \
9ad70cd32368 8058968: Compiler time traces should be improved
shade
parents: 26796
diff changeset
  1109
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1110
  develop(bool, CITimeEach, false,                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1111
          "display timing information after each successful compilation")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1112
                                                                            \
13964
01a2b863cc61 7177003: C1: LogCompilation support
vlivanov
parents: 13925
diff changeset
  1113
  develop(bool, CICountOSR, false,                                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1114
          "use a separate counter when assigning ids to osr compilations")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1115
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1116
  develop(bool, CICompileNatives, true,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1117
          "compile native methods if supported by the compiler")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1118
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1119
  develop_pd(bool, CICompileOSR,                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1120
          "compile on stack replacement methods if supported by the "       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1121
          "compiler")                                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1122
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1123
  develop(bool, CIPrintMethodCodes, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1124
          "print method bytecodes of the compiled code")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1125
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1126
  develop(bool, CIPrintTypeFlow, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1127
          "print the results of ciTypeFlow analysis")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1128
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1129
  develop(bool, CITraceTypeFlow, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1130
          "detailed per-bytecode tracing of ciTypeFlow analysis")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1131
                                                                            \
8870
119881dc9d0b 7024475: loop doesn't terminate when compiled
never
parents: 8728
diff changeset
  1132
  develop(intx, OSROnlyBCI, -1,                                             \
119881dc9d0b 7024475: loop doesn't terminate when compiled
never
parents: 8728
diff changeset
  1133
          "OSR only at this bci.  Negative values mean exclude that bci")   \
119881dc9d0b 7024475: loop doesn't terminate when compiled
never
parents: 8728
diff changeset
  1134
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1135
  /* compiler */                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1136
                                                                            \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1137
  /* notice: the max range value here is max_jint, not max_intx  */         \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1138
  /* because of overflow issue                                   */         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1139
  product(intx, CICompilerCount, CI_COMPILER_COUNT,                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1140
          "Number of compiler threads to run")                              \
31959
34180370555e 8130858: CICompilerCount=1 when tiered is off is not allowed any more
roland
parents: 31867
diff changeset
  1141
          range(0, max_jint)                                                \
40364
5bf8fa4fddfd 8162881: Effect of -XX:CICompilerCount depends on ordering of other flags
thartmann
parents: 40096
diff changeset
  1142
          constraint(CICompilerCountConstraintFunc, AfterErgo)              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1143
                                                                            \
49848
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1144
  product(bool, UseDynamicNumberOfCompilerThreads, true,                    \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1145
          "Dynamically choose the number of parallel compiler threads")     \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1146
                                                                            \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1147
  diagnostic(bool, ReduceNumberOfCompilerThreads, true,                     \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1148
             "Reduce the number of parallel compiler threads when they "    \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1149
             "are not used")                                                \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1150
                                                                            \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1151
  diagnostic(bool, TraceCompilerThreads, false,                             \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1152
             "Trace creation and removal of compiler threads")              \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1153
                                                                            \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1154
  develop(bool, InjectCompilerCreationFailure, false,                       \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1155
          "Inject thread creation failures for "                            \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1156
          "UseDynamicNumberOfCompilerThreads")                              \
fcd5df7aa235 8198756: Lazy allocation of compiler threads
mdoerr
parents: 49715
diff changeset
  1157
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1158
  product(intx, CompilationPolicyChoice, 0,                                 \
50068
5201c9474ee7 8202711: Merge tiered compilation policies
redestad
parents: 49931
diff changeset
  1159
          "which compilation policy (0-2)")                                 \
5201c9474ee7 8202711: Merge tiered compilation policies
redestad
parents: 49931
diff changeset
  1160
          range(0, 2)                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1161
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1162
  develop(bool, UseStackBanging, true,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1163
          "use stack banging for stack overflow checks (required for "      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1164
          "proper StackOverflow handling; disable only to measure cost "    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1165
          "of stackbanging)")                                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1166
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1167
  develop(bool, UseStrictFP, true,                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1168
          "use strict fp if modifier strictfp is set")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1169
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1170
  develop(bool, GenerateSynchronizationCode, true,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1171
          "generate locking/unlocking code for synchronized methods and "   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1172
          "monitors")                                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1173
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1174
  develop(bool, GenerateRangeChecks, true,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1175
          "Generate range checks for array accesses")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1176
                                                                            \
39117
59fa99a45873 8150900: Implement diagnostic_pd
csahu
parents: 38289
diff changeset
  1177
  diagnostic_pd(bool, ImplicitNullChecks,                                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1178
          "Generate code for implicit null checks")                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1179
                                                                            \
22856
03ad2cf18166 8029015: PPC64 (part 216): opto: trap based null and range checks
goetz
parents: 22851
diff changeset
  1180
  product_pd(bool, TrapBasedNullChecks,                                     \
03ad2cf18166 8029015: PPC64 (part 216): opto: trap based null and range checks
goetz
parents: 22851
diff changeset
  1181
          "Generate code for null checks that uses a cmp and trap "         \
03ad2cf18166 8029015: PPC64 (part 216): opto: trap based null and range checks
goetz
parents: 22851
diff changeset
  1182
          "instruction raising SIGTRAP.  This is only used if an access to" \
03ad2cf18166 8029015: PPC64 (part 216): opto: trap based null and range checks
goetz
parents: 22851
diff changeset
  1183
          "null (+offset) will not raise a SIGSEGV, i.e.,"                  \
03ad2cf18166 8029015: PPC64 (part 216): opto: trap based null and range checks
goetz
parents: 22851
diff changeset
  1184
          "ImplicitNullChecks don't work (PPC64).")                         \
03ad2cf18166 8029015: PPC64 (part 216): opto: trap based null and range checks
goetz
parents: 22851
diff changeset
  1185
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1186
  product(bool, PrintSafepointStatistics, false,                            \
49185
5d1b75086f98 8191421: Deprecate PrintSafepointStatistics, PrintSafepointStatisticsTimeout and PrintSafepointStatisticsCount options
coleenp
parents: 49169
diff changeset
  1187
          "(Deprecated) Print statistics about safepoint synchronization")  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1188
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1189
  product(intx, PrintSafepointStatisticsCount, 300,                         \
49185
5d1b75086f98 8191421: Deprecate PrintSafepointStatistics, PrintSafepointStatisticsTimeout and PrintSafepointStatisticsCount options
coleenp
parents: 49169
diff changeset
  1190
          "(Deprecated) Total number of safepoint statistics collected "    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1191
          "before printing them out")                                       \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1192
          range(1, max_intx)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1193
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1194
  product(intx, PrintSafepointStatisticsTimeout,  -1,                       \
49185
5d1b75086f98 8191421: Deprecate PrintSafepointStatistics, PrintSafepointStatisticsTimeout and PrintSafepointStatisticsCount options
coleenp
parents: 49169
diff changeset
  1195
          "(Deprecated) Print safepoint statistics only when safepoint takes "  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1196
          "more than PrintSafepointSatisticsTimeout in millis")             \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1197
  LP64_ONLY(range(-1, max_intx/MICROUNITS))                                 \
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1198
  NOT_LP64(range(-1, max_intx))                                             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1199
                                                                            \
48105
8d15b1369c7a 8167108: inconsistent handling of SR_lock can lead to crashes
dcubed
parents: 48005
diff changeset
  1200
  diagnostic(bool, EnableThreadSMRExtraValidityChecks, true,                \
8d15b1369c7a 8167108: inconsistent handling of SR_lock can lead to crashes
dcubed
parents: 48005
diff changeset
  1201
             "Enable Thread SMR extra validity checks")                     \
8d15b1369c7a 8167108: inconsistent handling of SR_lock can lead to crashes
dcubed
parents: 48005
diff changeset
  1202
                                                                            \
48184
aed61a8ce8f9 8192810: EnableThreadSMRStatistics should be default off in release builds
dcubed
parents: 48179
diff changeset
  1203
  diagnostic(bool, EnableThreadSMRStatistics, trueInDebug,                  \
48105
8d15b1369c7a 8167108: inconsistent handling of SR_lock can lead to crashes
dcubed
parents: 48005
diff changeset
  1204
             "Enable Thread SMR Statistics")                                \
8d15b1369c7a 8167108: inconsistent handling of SR_lock can lead to crashes
dcubed
parents: 48005
diff changeset
  1205
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1206
  product(bool, Inline, true,                                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1207
          "Enable inlining")                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1208
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1209
  product(bool, ClipInlining, true,                                         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1210
          "Clip inlining if aggregate method exceeds DesiredMethodLimit")   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1211
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1212
  develop(bool, UseCHA, true,                                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1213
          "Enable CHA")                                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1214
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1215
  product(bool, UseTypeProfile, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1216
          "Check interpreter profile for historically monomorphic calls")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1217
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1218
  diagnostic(bool, PrintInlining, false,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1219
          "Print inlining optimizations")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1220
                                                                            \
2255
54abdf3e1055 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 2254
diff changeset
  1221
  product(bool, UsePopCountInstruction, false,                              \
54abdf3e1055 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 2254
diff changeset
  1222
          "Use population count instruction")                               \
54abdf3e1055 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 2254
diff changeset
  1223
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1224
  develop(bool, EagerInitialization, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1225
          "Eagerly initialize classes if possible")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1226
                                                                            \
31790
4a08476437e8 8025692: Log what methods are touched at run-time
minqi
parents: 31783
diff changeset
  1227
  diagnostic(bool, LogTouchedMethods, false,                                \
4a08476437e8 8025692: Log what methods are touched at run-time
minqi
parents: 31783
diff changeset
  1228
          "Log methods which have been ever touched in runtime")            \
4a08476437e8 8025692: Log what methods are touched at run-time
minqi
parents: 31783
diff changeset
  1229
                                                                            \
4a08476437e8 8025692: Log what methods are touched at run-time
minqi
parents: 31783
diff changeset
  1230
  diagnostic(bool, PrintTouchedMethodsAtExit, false,                        \
4a08476437e8 8025692: Log what methods are touched at run-time
minqi
parents: 31783
diff changeset
  1231
          "Print all methods that have been ever touched in runtime")       \
4a08476437e8 8025692: Log what methods are touched at run-time
minqi
parents: 31783
diff changeset
  1232
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1233
  develop(bool, TraceMethodReplacement, false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1234
          "Print when methods are replaced do to recompilation")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1235
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1236
  develop(bool, PrintMethodFlushing, false,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1237
          "Print the nmethods being flushed")                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1238
                                                                            \
22210
b0408ba029f6 8025277: Add -XX: flag to print code cache sweeper statistics
anoll
parents: 21733
diff changeset
  1239
  diagnostic(bool, PrintMethodFlushingStatistics, false,                    \
b0408ba029f6 8025277: Add -XX: flag to print code cache sweeper statistics
anoll
parents: 21733
diff changeset
  1240
          "print statistics about method flushing")                         \
b0408ba029f6 8025277: Add -XX: flag to print code cache sweeper statistics
anoll
parents: 21733
diff changeset
  1241
                                                                            \
24442
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1242
  diagnostic(intx, HotMethodDetectionLimit, 100000,                         \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1243
          "Number of compiled code invocations after which "                \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1244
          "the method is considered as hot by the flusher")                 \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1245
          range(1, max_jint)                                                \
24442
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1246
                                                                            \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1247
  diagnostic(intx, MinPassesBeforeFlush, 10,                                \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1248
          "Minimum number of sweeper passes before an nmethod "             \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1249
          "can be flushed")                                                 \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1250
          range(0, max_intx)                                                \
24442
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1251
                                                                            \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1252
  product(bool, UseCodeAging, true,                                         \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1253
          "Insert counter to detect warm methods")                          \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1254
                                                                            \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1255
  diagnostic(bool, StressCodeAging, false,                                  \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1256
          "Start with counters compiled in")                                \
4d4ae31dea26 8032463: VirtualDispatch test timeout with DeoptimizeALot
iveresov
parents: 24441
diff changeset
  1257
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1258
  develop(bool, StressCodeBuffers, false,                                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1259
          "Exercise code buffer expansion and other rare state changes")    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1260
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1261
  diagnostic(bool, DebugNonSafepoints, trueInDebug,                         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1262
          "Generate extra debugging information for non-safepoints in "     \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1263
          "nmethods")                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1264
                                                                            \
10990
f71627d1b3dd 7108264: Fix for 7104173 is insufficient
dholmes
parents: 10828
diff changeset
  1265
  product(bool, PrintVMOptions, false,                                      \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1266
          "Print flags that appeared on the command line")                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1267
                                                                            \
2028
04fa713b25f9 6788376: allow to ignore unrecognized VM options
kvn
parents: 1671
diff changeset
  1268
  product(bool, IgnoreUnrecognizedVMOptions, false,                         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1269
          "Ignore unrecognized VM options")                                 \
2028
04fa713b25f9 6788376: allow to ignore unrecognized VM options
kvn
parents: 1671
diff changeset
  1270
                                                                            \
4579
62478db2dc78 6914622: Print values of all flags for product VM
kvn
parents: 4489
diff changeset
  1271
  product(bool, PrintCommandLineFlags, false,                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1272
          "Print flags specified on command line or set by ergonomics")     \
4579
62478db2dc78 6914622: Print values of all flags for product VM
kvn
parents: 4489
diff changeset
  1273
                                                                            \
62478db2dc78 6914622: Print values of all flags for product VM
kvn
parents: 4489
diff changeset
  1274
  product(bool, PrintFlagsInitial, false,                                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1275
          "Print all VM flags before argument processing and exit VM")      \
4579
62478db2dc78 6914622: Print values of all flags for product VM
kvn
parents: 4489
diff changeset
  1276
                                                                            \
62478db2dc78 6914622: Print values of all flags for product VM
kvn
parents: 4489
diff changeset
  1277
  product(bool, PrintFlagsFinal, false,                                     \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1278
          "Print all VM flags after argument and ergonomic processing")     \
4579
62478db2dc78 6914622: Print values of all flags for product VM
kvn
parents: 4489
diff changeset
  1279
                                                                            \
6438
ace4f8100e90 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 6419
diff changeset
  1280
  notproduct(bool, PrintFlagsWithComments, false,                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1281
          "Print all VM flags with default values and descriptions and "    \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1282
          "exit")                                                           \
6438
ace4f8100e90 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 6419
diff changeset
  1283
                                                                            \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1284
  product(bool, PrintFlagsRanges, false,                                    \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1285
          "Print VM flags and their ranges and exit VM")                    \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1286
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1287
  diagnostic(bool, SerializeVMOutput, true,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1288
          "Use a mutex to serialize output to tty and LogFile")             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1289
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1290
  diagnostic(bool, DisplayVMOutput, true,                                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1291
          "Display all VM output on the tty, independently of LogVMOutput") \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1292
                                                                            \
20010
c66a7254680c 8023134: Rename VM LogFile to hotspot_pid{pid}.log (was hotspot.log)
vlivanov
parents: 19770
diff changeset
  1293
  diagnostic(bool, LogVMOutput, false,                                      \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1294
          "Save VM output to LogFile")                                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1295
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1296
  diagnostic(ccstr, LogFile, NULL,                                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1297
          "If LogVMOutput or LogCompilation is on, save VM output to "      \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1298
          "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1299
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1300
  product(ccstr, ErrorFile, NULL,                                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1301
          "If an error occurs, save the error data to this file "           \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1302
          "[default: ./hs_err_pid%p.log] (%p replaced with pid)")           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1303
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1304
  product(bool, DisplayVMOutputToStderr, false,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1305
          "If DisplayVMOutput is true, display all VM output to stderr")    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1306
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1307
  product(bool, DisplayVMOutputToStdout, false,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1308
          "If DisplayVMOutput is true, display all VM output to stdout")    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1309
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1310
  product(bool, UseHeavyMonitors, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1311
          "use heavyweight instead of lightweight Java monitors")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1312
                                                                            \
13087
673ea6efaf18 7158800: Improve storage of symbol tables
coleenp
parents: 12781
diff changeset
  1313
  product(bool, PrintStringTableStatistics, false,                          \
673ea6efaf18 7158800: Improve storage of symbol tables
coleenp
parents: 12781
diff changeset
  1314
          "print statistics about the StringTable and SymbolTable")         \
673ea6efaf18 7158800: Improve storage of symbol tables
coleenp
parents: 12781
diff changeset
  1315
                                                                            \
20053
a12bd7991794 8019835: Strings interned in different threads equal but does not ==
dcubed
parents: 19770
diff changeset
  1316
  diagnostic(bool, VerifyStringTableAtExit, false,                          \
a12bd7991794 8019835: Strings interned in different threads equal but does not ==
dcubed
parents: 19770
diff changeset
  1317
          "verify StringTable contents at exit")                            \
a12bd7991794 8019835: Strings interned in different threads equal but does not ==
dcubed
parents: 19770
diff changeset
  1318
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1319
  notproduct(bool, PrintSymbolTableSizeHistogram, false,                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1320
          "print histogram of the symbol table")                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1321
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1322
  notproduct(bool, ExitVMOnVerifyError, false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1323
          "standard exit from VM if bytecode verify error "                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1324
          "(only in debug mode)")                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1325
                                                                            \
33208
5ec6ffa63c57 8136577: Make AbortVMOnException available in product builds
poonam
parents: 33144
diff changeset
  1326
  diagnostic(ccstr, AbortVMOnException, NULL,                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1327
          "Call fatal if this exception is thrown.  Example: "              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1328
          "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1329
                                                                            \
33208
5ec6ffa63c57 8136577: Make AbortVMOnException available in product builds
poonam
parents: 33144
diff changeset
  1330
  diagnostic(ccstr, AbortVMOnExceptionMessage, NULL,                        \
6179
4846648c4b7b 6973308: Missing zero length check before repne scas in check_klass_subtype_slow_path()
kvn
parents: 6062
diff changeset
  1331
          "Call fatal if the exception pointed by AbortVMOnException "      \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1332
          "has this message")                                               \
6179
4846648c4b7b 6973308: Missing zero length check before repne scas in check_klass_subtype_slow_path()
kvn
parents: 6062
diff changeset
  1333
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1334
  develop(bool, DebugVtables, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1335
          "add debugging code to vtable dispatch")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1336
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1337
  notproduct(bool, PrintVtableStats, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1338
          "print vtables stats at end of run")                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1339
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1340
  develop(bool, TraceCreateZombies, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1341
          "trace creation of zombie nmethods")                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1342
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1343
  notproduct(bool, IgnoreLockingAssertions, false,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1344
          "disable locking assertions (for speed)")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1345
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1346
  product(bool, RangeCheckElimination, true,                                \
16611
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15922
diff changeset
  1347
          "Eliminate range checks")                                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1348
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1349
  develop_pd(bool, UncommonNullCast,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1350
          "track occurrences of null in casts; adjust compiler tactics")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1351
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1352
  develop(bool, TypeProfileCasts,  true,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1353
          "treat casts like calls for purposes of type profiling")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1354
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1355
  develop(bool, DelayCompilationDuringStartup, true,                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1356
          "Delay invoking the compiler until main application class is "    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1357
          "loaded")                                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1358
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1359
  develop(bool, CompileTheWorld, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1360
          "Compile all methods in all classes in bootstrap class path "     \
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 33083
diff changeset
  1361
            "(stress test)")                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1362
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1363
  develop(bool, CompileTheWorldPreloadClasses, true,                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1364
          "Preload all classes used by a class before start loading")       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1365
                                                                            \
4736
e091227926da 6919886: Sweep CodeCache more aggressively to reduce its usage for CompileTheWorld
kvn
parents: 4650
diff changeset
  1366
  notproduct(intx, CompileTheWorldSafepointInterval, 100,                   \
e091227926da 6919886: Sweep CodeCache more aggressively to reduce its usage for CompileTheWorld
kvn
parents: 4650
diff changeset
  1367
          "Force a safepoint every n compiles so sweeper can keep up")      \
e091227926da 6919886: Sweep CodeCache more aggressively to reduce its usage for CompileTheWorld
kvn
parents: 4650
diff changeset
  1368
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1369
  develop(bool, FillDelaySlots, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1370
          "Fill delay slots (on SPARC only)")                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1371
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1372
  develop(bool, TimeLivenessAnalysis, false,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1373
          "Time computation of bytecode liveness analysis")                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1374
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1375
  develop(bool, TraceLivenessGen, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1376
          "Trace the generation of liveness analysis information")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1377
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1378
  notproduct(bool, TraceLivenessQuery, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1379
          "Trace queries of liveness analysis information")                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1380
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1381
  notproduct(bool, CollectIndexSetStatistics, false,                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1382
          "Collect information about IndexSets")                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1383
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1384
  develop(bool, UseLoopSafepoints, true,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1385
          "Generate Safepoint nodes in every loop")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1386
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1387
  develop(intx, FastAllocateSizeLimit, 128*K,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1388
          /* Note:  This value is zero mod 1<<13 for a cheap sparc set. */  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1389
          "Inline allocations larger than this in doublewords must go slow")\
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1390
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1391
  product(bool, AggressiveOpts, false,                                      \
49483
d374b1634589 8199777: Deprecate -XX:+AggressiveOpts
thartmann
parents: 49462
diff changeset
  1392
          "(Deprecated) Enable aggressive optimizations - see arguments.cpp") \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1393
                                                                            \
33628
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33470
diff changeset
  1394
  product_pd(bool, CompactStrings,                                          \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33470
diff changeset
  1395
          "Enable Strings to use single byte chars in backing store")       \
09241459a8b8 8141132: JEP 254: Compact Strings
thartmann
parents: 33470
diff changeset
  1396
                                                                            \
20702
bbe0fcde6e13 8023657: New type profiling points: arguments to call
roland
parents: 20292
diff changeset
  1397
  product_pd(uintx, TypeProfileLevel,                                       \
21095
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents: 20735
diff changeset
  1398
          "=XYZ, with Z: Type profiling of arguments at call; "             \
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents: 20735
diff changeset
  1399
                     "Y: Type profiling of return value at call; "          \
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents: 20735
diff changeset
  1400
                     "X: Type profiling of parameters to methods; "         \
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents: 20735
diff changeset
  1401
          "X, Y and Z in 0=off ; 1=jsr292 only; 2=all methods")             \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1402
          constraint(TypeProfileLevelConstraintFunc, AfterErgo)             \
20702
bbe0fcde6e13 8023657: New type profiling points: arguments to call
roland
parents: 20292
diff changeset
  1403
                                                                            \
bbe0fcde6e13 8023657: New type profiling points: arguments to call
roland
parents: 20292
diff changeset
  1404
  product(intx, TypeProfileArgsLimit,     2,                                \
bbe0fcde6e13 8023657: New type profiling points: arguments to call
roland
parents: 20292
diff changeset
  1405
          "max number of call arguments to consider for type profiling")    \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1406
          range(0, 16)                                                      \
20702
bbe0fcde6e13 8023657: New type profiling points: arguments to call
roland
parents: 20292
diff changeset
  1407
                                                                            \
21095
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents: 20735
diff changeset
  1408
  product(intx, TypeProfileParmsLimit,    2,                                \
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents: 20735
diff changeset
  1409
          "max number of incoming parameters to consider for type profiling"\
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents: 20735
diff changeset
  1410
          ", -1 for all")                                                   \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1411
          range(-1, 64)                                                     \
21095
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents: 20735
diff changeset
  1412
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1413
  /* statistics */                                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1414
  develop(bool, CountCompiledCalls, false,                                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1415
          "Count method invocations")                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1416
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1417
  notproduct(bool, CountRuntimeCalls, false,                                \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1418
          "Count VM runtime calls")                                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1419
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1420
  develop(bool, CountJNICalls, false,                                       \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1421
          "Count jni method invocations")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1422
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1423
  notproduct(bool, CountJVMCalls, false,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1424
          "Count jvm method invocations")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1425
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1426
  notproduct(bool, CountRemovableExceptions, false,                         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1427
          "Count exceptions that could be replaced by branches due to "     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1428
          "inlining")                                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1429
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1430
  notproduct(bool, ICMissHistogram, false,                                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1431
          "Produce histogram of IC misses")                                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1432
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1433
  /* interpreter */                                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1434
  product_pd(bool, RewriteBytecodes,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1435
          "Allow rewriting of bytecodes (bytecodes are not immutable)")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1436
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1437
  product_pd(bool, RewriteFrequentPairs,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1438
          "Rewrite frequently used bytecode pairs into a single bytecode")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1439
                                                                            \
347
df859fcca515 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 249
diff changeset
  1440
  diagnostic(bool, PrintInterpreter, false,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1441
          "Print the generated interpreter code")                           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1442
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1443
  product(bool, UseInterpreter, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1444
          "Use interpreter for non-compiled methods")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1445
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1446
  develop(bool, UseFastSignatureHandlers, true,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1447
          "Use fast signature handlers for native calls")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1448
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1449
  product(bool, UseLoopCounter, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1450
          "Increment invocation counter on backward branch")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1451
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1452
  product_pd(bool, UseOnStackReplacement,                                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1453
          "Use on stack replacement, calls runtime if invoc. counter "      \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1454
          "overflows in loop")                                              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1455
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1456
  notproduct(bool, TraceOnStackReplacement, false,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1457
          "Trace on stack replacement")                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1458
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1459
  product_pd(bool, PreferInterpreterNativeStubs,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1460
          "Use always interpreter stubs for native methods invoked via "    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1461
          "interpreter")                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1462
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1463
  develop(bool, CountBytecodes, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1464
          "Count number of bytecodes executed")                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1465
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1466
  develop(bool, PrintBytecodeHistogram, false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1467
          "Print histogram of the executed bytecodes")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1468
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1469
  develop(bool, PrintBytecodePairHistogram, false,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1470
          "Print histogram of the executed bytecode pairs")                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1471
                                                                            \
347
df859fcca515 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 249
diff changeset
  1472
  diagnostic(bool, PrintSignatureHandlers, false,                           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1473
          "Print code generated for native method signature handlers")      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1474
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1475
  develop(bool, VerifyOops, false,                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1476
          "Do plausibility checks for oops")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1477
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1478
  develop(bool, CheckUnhandledOops, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1479
          "Check for unhandled oops in VM code")                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1480
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1481
  develop(bool, VerifyJNIFields, trueInDebug,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1482
          "Verify jfieldIDs for instance fields")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1483
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1484
  notproduct(bool, VerifyJNIEnvThread, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1485
          "Verify JNIEnv.thread == Thread::current() when entering VM "     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1486
          "from JNI")                                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1487
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1488
  develop(bool, VerifyFPU, false,                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1489
          "Verify FPU state (check for NaN's, etc.)")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1490
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1491
  develop(bool, VerifyThread, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1492
          "Watch the thread register for corruption (SPARC only)")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1493
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1494
  develop(bool, VerifyActivationFrameSize, false,                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1495
          "Verify that activation frame didn't become smaller than its "    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1496
          "minimal size")                                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1497
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1498
  develop(bool, TraceFrequencyInlining, false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1499
          "Trace frequency based inlining")                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1500
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1501
  develop_pd(bool, InlineIntrinsics,                                        \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1502
          "Inline intrinsics that can be statically resolved")              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1503
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1504
  product_pd(bool, ProfileInterpreter,                                      \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1505
          "Profile at the bytecode level during interpretation")            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1506
                                                                            \
22836
e7e511228518 8024468: PPC64 (part 201): cppInterpreter: implement bytecode profiling
goetz
parents: 22828
diff changeset
  1507
  develop(bool, TraceProfileInterpreter, false,                             \
e7e511228518 8024468: PPC64 (part 201): cppInterpreter: implement bytecode profiling
goetz
parents: 22828
diff changeset
  1508
          "Trace profiling at the bytecode level during interpretation. "   \
e7e511228518 8024468: PPC64 (part 201): cppInterpreter: implement bytecode profiling
goetz
parents: 22828
diff changeset
  1509
          "This outputs the profiling information collected to improve "    \
e7e511228518 8024468: PPC64 (part 201): cppInterpreter: implement bytecode profiling
goetz
parents: 22828
diff changeset
  1510
          "jit compilation.")                                               \
e7e511228518 8024468: PPC64 (part 201): cppInterpreter: implement bytecode profiling
goetz
parents: 22828
diff changeset
  1511
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1512
  develop_pd(bool, ProfileTraps,                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1513
          "Profile deoptimization traps at the bytecode level")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1514
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1515
  product(intx, ProfileMaturityPercentage, 20,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1516
          "number of method invocations/branches (expressed as % of "       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1517
          "CompileThreshold) before using the method's profile")            \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1518
          range(0, 100)                                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1519
                                                                            \
23526
6851d341ad52 8037970: make PrintMethodData a diagnostic options
roland
parents: 23474
diff changeset
  1520
  diagnostic(bool, PrintMethodData, false,                                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1521
          "Print the results of +ProfileInterpreter at end of run")         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1522
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1523
  develop(bool, VerifyDataPointer, trueInDebug,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1524
          "Verify the method data pointer during interpreter profiling")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1525
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1526
  develop(bool, VerifyCompiledCode, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1527
          "Include miscellaneous runtime verifications in nmethod code; "   \
4434
4b41e5b42f81 6887571: Increase default heap config sizes
phh
parents: 4013
diff changeset
  1528
          "default off because it disturbs nmethod size heuristics")        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1529
                                                                            \
4489
514173c9a0c2 6361589: Print out stack trace for target thread of GC crash
minqi
parents: 4434
diff changeset
  1530
  notproduct(bool, CrashGCForDumpingJavaThread, false,                      \
514173c9a0c2 6361589: Print out stack trace for target thread of GC crash
minqi
parents: 4434
diff changeset
  1531
          "Manually make GC thread crash then dump java stack trace;  "     \
514173c9a0c2 6361589: Print out stack trace for target thread of GC crash
minqi
parents: 4434
diff changeset
  1532
          "Test only")                                                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1533
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1534
  /* compilation */                                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1535
  product(bool, UseCompiler, true,                                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1536
          "Use Just-In-Time compilation")                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1537
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1538
  develop(bool, TraceCompilationPolicy, false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1539
          "Trace compilation policy")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1540
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1541
  develop(bool, TimeCompilationPolicy, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1542
          "Time the compilation policy")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1543
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1544
  product(bool, UseCounterDecay, true,                                      \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1545
          "Adjust recompilation counters")                                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1546
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1547
  develop(intx, CounterHalfLifeTime,    30,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1548
          "Half-life time of invocation counters (in seconds)")             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1549
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1550
  develop(intx, CounterDecayMinIntervalLength,   500,                       \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1551
          "The minimum interval (in milliseconds) between invocation of "   \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1552
          "CounterDecay")                                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1553
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1554
  product(bool, AlwaysCompileLoopMethods, false,                            \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1555
          "When using recompilation, never interpret methods "              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1556
          "containing loops")                                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1557
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1558
  product(bool, DontCompileHugeMethods, true,                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1559
          "Do not compile methods > HugeMethodLimit")                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1560
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1561
  /* Bytecode escape analysis estimation. */                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1562
  product(bool, EstimateArgEscape, true,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1563
          "Analyze bytecodes to estimate escape state of arguments")        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1564
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1565
  product(intx, BCEATraceLevel, 0,                                          \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1566
          "How much tracing to do of bytecode escape analysis estimates "   \
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1567
          "(0-3)")                                                          \
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1568
          range(0, 3)                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1569
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1570
  product(intx, MaxBCEAEstimateLevel, 5,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1571
          "Maximum number of nested calls that are analyzed by BC EA")      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1572
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1573
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1574
  product(intx, MaxBCEAEstimateSize, 150,                                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1575
          "Maximum bytecode size of a method to be analyzed by BC EA")      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1576
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1577
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1578
  product(intx,  AllocatePrefetchStyle, 1,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1579
          "0 = no prefetch, "                                               \
38220
8d86b82e0ac7 8153340: Disallow misconfiguration and improve the consistency of allocation prefetching
zmajo
parents: 37462
diff changeset
  1580
          "1 = generate prefetch instructions for each allocation, "        \
5251
f86f7a86d761 6940726: Use BIS instruction for allocation prefetch on Sparc
kvn
parents: 5250
diff changeset
  1581
          "2 = use TLAB watermark to gate allocation prefetch, "            \
38220
8d86b82e0ac7 8153340: Disallow misconfiguration and improve the consistency of allocation prefetching
zmajo
parents: 37462
diff changeset
  1582
          "3 = generate one prefetch instruction per cache line")           \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1583
          range(0, 3)                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1584
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1585
  product(intx,  AllocatePrefetchDistance, -1,                              \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1586
          "Distance to prefetch ahead of allocation pointer. "              \
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1587
          "-1: use system-specific value (automatically determined")        \
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1588
          constraint(AllocatePrefetchDistanceConstraintFunc, AfterMemoryInit)\
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1589
                                                                            \
10267
8bdeec886dc4 7079329: Adjust allocation prefetching for T4
kvn
parents: 10252
diff changeset
  1590
  product(intx,  AllocatePrefetchLines, 3,                                  \
8bdeec886dc4 7079329: Adjust allocation prefetching for T4
kvn
parents: 10252
diff changeset
  1591
          "Number of lines to prefetch ahead of array allocation pointer")  \
35751
6a057f120b11 8146478: Node limit exceeded with -XX:AllocateInstancePrefetchLines=1073741823
zmajo
parents: 35581
diff changeset
  1592
          range(1, 64)                                                      \
10267
8bdeec886dc4 7079329: Adjust allocation prefetching for T4
kvn
parents: 10252
diff changeset
  1593
                                                                            \
8bdeec886dc4 7079329: Adjust allocation prefetching for T4
kvn
parents: 10252
diff changeset
  1594
  product(intx,  AllocateInstancePrefetchLines, 1,                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1595
          "Number of lines to prefetch ahead of instance allocation "       \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1596
          "pointer")                                                        \
35751
6a057f120b11 8146478: Node limit exceeded with -XX:AllocateInstancePrefetchLines=1073741823
zmajo
parents: 35581
diff changeset
  1597
          range(1, 64)                                                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1598
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1599
  product(intx,  AllocatePrefetchStepSize, 16,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1600
          "Step size in bytes of sequential prefetch instructions")         \
35751
6a057f120b11 8146478: Node limit exceeded with -XX:AllocateInstancePrefetchLines=1073741823
zmajo
parents: 35581
diff changeset
  1601
          range(1, 512)                                                     \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1602
          constraint(AllocatePrefetchStepSizeConstraintFunc,AfterMemoryInit)\
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1603
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1604
  product(intx,  AllocatePrefetchInstr, 0,                                  \
38220
8d86b82e0ac7 8153340: Disallow misconfiguration and improve the consistency of allocation prefetching
zmajo
parents: 37462
diff changeset
  1605
          "Select instruction to prefetch ahead of allocation pointer")     \
8d86b82e0ac7 8153340: Disallow misconfiguration and improve the consistency of allocation prefetching
zmajo
parents: 37462
diff changeset
  1606
          constraint(AllocatePrefetchInstrConstraintFunc, AfterMemoryInit)  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1607
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1608
  /* deoptimization */                                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1609
  develop(bool, TraceDeoptimization, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1610
          "Trace deoptimization")                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1611
                                                                            \
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 33083
diff changeset
  1612
  develop(bool, PrintDeoptimizationDetails, false,                          \
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 33083
diff changeset
  1613
          "Print more information about deoptimization")                    \
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 33083
diff changeset
  1614
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1615
  develop(bool, DebugDeoptimization, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1616
          "Tracing various information while debugging deoptimization")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1617
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1618
  product(intx, SelfDestructTimer, 0,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1619
          "Will cause VM to terminate after a given time (in minutes) "     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1620
          "(0 means off)")                                                  \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1621
          range(0, max_intx)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1622
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1623
  product(intx, MaxJavaStackTraceDepth, 1024,                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1624
          "The maximum number of lines in the stack trace for Java "        \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1625
          "exceptions (0 means all)")                                       \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1626
          range(0, max_jint/2)                                              \
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1627
                                                                            \
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1628
  /* notice: the max range value here is max_jint, not max_intx  */         \
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1629
  /* because of overflow issue                                   */         \
40015
524230a0f4ca 8140723: Remove source code conditionalized on JAVASE_EMBEDDED
dholmes
parents: 40010
diff changeset
  1630
  diagnostic(intx, GuaranteedSafepointInterval, 1000,                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1631
          "Guarantee a safepoint (at least) every so many milliseconds "    \
40015
524230a0f4ca 8140723: Remove source code conditionalized on JAVASE_EMBEDDED
dholmes
parents: 40010
diff changeset
  1632
          "(0 means none)")                                                 \
524230a0f4ca 8140723: Remove source code conditionalized on JAVASE_EMBEDDED
dholmes
parents: 40010
diff changeset
  1633
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1634
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1635
  product(intx, SafepointTimeoutDelay, 10000,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1636
          "Delay in milliseconds for option SafepointTimeout")              \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1637
  LP64_ONLY(range(0, max_intx/MICROUNITS))                                  \
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1638
  NOT_LP64(range(0, max_intx))                                              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1639
                                                                            \
20290
2127dc70bce9 8020151: PSR:PERF Large performance regressions when code cache is filled
anoll
parents: 20288
diff changeset
  1640
  product(intx, NmethodSweepActivity, 10,                                   \
2127dc70bce9 8020151: PSR:PERF Large performance regressions when code cache is filled
anoll
parents: 20288
diff changeset
  1641
          "Removes cold nmethods from code cache if > 0. Higher values "    \
2127dc70bce9 8020151: PSR:PERF Large performance regressions when code cache is filled
anoll
parents: 20288
diff changeset
  1642
          "result in more aggressive sweeping")                             \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1643
          range(0, 2000)                                                    \
20290
2127dc70bce9 8020151: PSR:PERF Large performance regressions when code cache is filled
anoll
parents: 20288
diff changeset
  1644
                                                                            \
9942
2e86734ba620 6996747: SIGSEGV in nmethod::cleanup_inline_caches / CompiledIC::verify
never
parents: 9640
diff changeset
  1645
  notproduct(bool, LogSweeper, false,                                       \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1646
          "Keep a ring buffer of sweeper activity")                         \
9942
2e86734ba620 6996747: SIGSEGV in nmethod::cleanup_inline_caches / CompiledIC::verify
never
parents: 9640
diff changeset
  1647
                                                                            \
2e86734ba620 6996747: SIGSEGV in nmethod::cleanup_inline_caches / CompiledIC::verify
never
parents: 9640
diff changeset
  1648
  notproduct(intx, SweeperLogEntries, 1024,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1649
          "Number of records in the ring buffer of sweeper activity")       \
9942
2e86734ba620 6996747: SIGSEGV in nmethod::cleanup_inline_caches / CompiledIC::verify
never
parents: 9640
diff changeset
  1650
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1651
  notproduct(intx, MemProfilingInterval, 500,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1652
          "Time between each invocation of the MemProfiler")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1653
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1654
  develop(intx, MallocCatchPtr, -1,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1655
          "Hit breakpoint when mallocing/freeing this pointer")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1656
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1657
  notproduct(ccstrlist, SuppressErrorAt, "",                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1658
          "List of assertions (file:line) to muzzle")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1659
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1660
  develop(intx, StackPrintLimit, 100,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1661
          "number of stack frames to print in VM-level stack dump")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1662
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1663
  notproduct(intx, MaxElementPrintSize, 256,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1664
          "maximum number of elements to print")                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1665
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1666
  notproduct(intx, MaxSubklassPrintSize, 4,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1667
          "maximum number of subklasses to print when printing klass")      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1668
                                                                            \
4586
f1c484fca023 6912063: inlining parameters need to be adjusted for some uses of the JVM
jrose
parents: 4579
diff changeset
  1669
  product(intx, MaxInlineLevel, 9,                                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1670
          "maximum number of nested calls that are inlined")                \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1671
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1672
                                                                            \
4586
f1c484fca023 6912063: inlining parameters need to be adjusted for some uses of the JVM
jrose
parents: 4579
diff changeset
  1673
  product(intx, MaxRecursiveInlineLevel, 1,                                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1674
          "maximum number of nested recursive calls that are inlined")      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1675
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1676
                                                                            \
21582
6c76cdd733fe 8028159: C2: compiler stack overflow during inlining of @ForceInline methods
vlivanov
parents: 21575
diff changeset
  1677
  develop(intx, MaxForceInlineLevel, 100,                                   \
23191
5f3c5592f0e8 8035887: VM crashes trying to force inlining the recursive call
vlivanov
parents: 23190
diff changeset
  1678
          "maximum number of nested calls that are forced for inlining "    \
33069
d8eed614f298 8135068: Extract method matchers from CompilerOracle
neliasso
parents: 33063
diff changeset
  1679
          "(using CompileCommand or marked w/ @ForceInline)")               \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1680
          range(0, max_jint)                                                \
21582
6c76cdd733fe 8028159: C2: compiler stack overflow during inlining of @ForceInline methods
vlivanov
parents: 21575
diff changeset
  1681
                                                                            \
2342
9a1260c3679d 6821700: tune VM flags for peak performance
kvn
parents: 2259
diff changeset
  1682
  product_pd(intx, InlineSmallCode,                                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1683
          "Only inline already compiled methods if their code size is "     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1684
          "less than this")                                                 \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1685
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1686
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1687
  product(intx, MaxInlineSize, 35,                                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1688
          "The maximum bytecode size of a method to be inlined")            \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1689
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1690
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1691
  product_pd(intx, FreqInlineSize,                                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1692
          "The maximum bytecode size of a frequent method to be inlined")   \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1693
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1694
                                                                            \
4586
f1c484fca023 6912063: inlining parameters need to be adjusted for some uses of the JVM
jrose
parents: 4579
diff changeset
  1695
  product(intx, MaxTrivialSize, 6,                                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1696
          "The maximum bytecode size of a trivial method to be inlined")    \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1697
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1698
                                                                            \
4586
f1c484fca023 6912063: inlining parameters need to be adjusted for some uses of the JVM
jrose
parents: 4579
diff changeset
  1699
  product(intx, MinInliningThreshold, 250,                                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1700
          "The minimum invocation count a method needs to have to be "      \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1701
          "inlined")                                                        \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1702
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1703
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1704
  develop(intx, MethodHistogramCutoff, 100,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1705
          "The cutoff value for method invocation histogram (+CountCalls)") \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1706
                                                                            \
36557
b017bd9fb598 8140721: ProfilerNumberOf*Methods flags should be diagnostic.
rraghavan
parents: 36186
diff changeset
  1707
  diagnostic(intx, ProfilerNumberOfInterpretedMethods, 25,                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1708
          "Number of interpreted methods to show in profile")               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1709
                                                                            \
36557
b017bd9fb598 8140721: ProfilerNumberOf*Methods flags should be diagnostic.
rraghavan
parents: 36186
diff changeset
  1710
  diagnostic(intx, ProfilerNumberOfCompiledMethods, 25,                     \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1711
          "Number of compiled methods to show in profile")                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1712
                                                                            \
36557
b017bd9fb598 8140721: ProfilerNumberOf*Methods flags should be diagnostic.
rraghavan
parents: 36186
diff changeset
  1713
  diagnostic(intx, ProfilerNumberOfStubMethods, 25,                         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1714
          "Number of stub methods to show in profile")                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1715
                                                                            \
36557
b017bd9fb598 8140721: ProfilerNumberOf*Methods flags should be diagnostic.
rraghavan
parents: 36186
diff changeset
  1716
  diagnostic(intx, ProfilerNumberOfRuntimeStubNodes, 25,                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1717
          "Number of runtime stub nodes to show in profile")                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1718
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1719
  product(intx, ProfileIntervalsTicks, 100,                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1720
          "Number of ticks between printing of interval profile "           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1721
          "(+ProfileIntervals)")                                            \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1722
          range(0, max_intx)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1723
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1724
  develop(intx, DontYieldALotInterval,    10,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1725
          "Interval between which yields will be dropped (milliseconds)")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1726
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1727
  develop(intx, ProfilerPCTickThreshold,    15,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1728
          "Number of ticks in a PC buckets to be a hotspot")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1729
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1730
  notproduct(intx, DeoptimizeALotInterval,     5,                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1731
          "Number of exits until DeoptimizeALot kicks in")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1732
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1733
  notproduct(intx, ZombieALotInterval,     5,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1734
          "Number of exits until ZombieALot kicks in")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1735
                                                                            \
16428
1b55a8d558b8 7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents: 15922
diff changeset
  1736
  diagnostic(uintx, MallocMaxTestWords,     0,                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1737
          "If non-zero, maximum number of words that malloc/realloc can "   \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1738
          "allocate (for testing only)")                                    \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1739
          range(0, max_uintx)                                               \
16428
1b55a8d558b8 7030610: runtime/6878713/Test6878713.sh fails Error. failed to clean up files after test
rdurbin
parents: 15922
diff changeset
  1740
                                                                            \
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 33083
diff changeset
  1741
  product(intx, TypeProfileWidth, 2,                                        \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1742
          "Number of receiver types to record in call/cast profile")        \
33171
25ea04039ff9 8139377: JVM can't be started w/ -XX:+EnableJVMCI -XX:+UseJVMCICompiler and default TypeProfileWidth
zmajo
parents: 33163
diff changeset
  1743
          range(0, 8)                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1744
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1745
  develop(intx, BciProfileWidth,      2,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1746
          "Number of return bci's to record in ret profile")                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1747
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1748
  product(intx, PerMethodRecompilationCutoff, 400,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1749
          "After recompiling N times, stay in the interpreter (-1=>'Inf')") \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1750
          range(-1, max_intx)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1751
                                                                            \
4754
8aef16f24e16 6614597: Performance variability in jvm2008 xml.validation
kvn
parents: 4750
diff changeset
  1752
  product(intx, PerBytecodeRecompilationCutoff, 200,                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1753
          "Per-BCI limit on repeated recompilation (-1=>'Inf')")            \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1754
          range(-1, max_intx)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1755
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1756
  product(intx, PerMethodTrapLimit,  100,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1757
          "Limit on traps (of one kind) in a method (includes inlines)")    \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1758
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1759
                                                                            \
22916
582da2ed4dfa 8031752: Failed speculative optimizations should be reattempted when root of compilation is different
roland
parents: 22876
diff changeset
  1760
  experimental(intx, PerMethodSpecTrapLimit,  5000,                         \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1761
          "Limit on speculative traps (of one kind) in a method "           \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1762
          "(includes inlines)")                                             \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1763
          range(0, max_jint)                                                \
22916
582da2ed4dfa 8031752: Failed speculative optimizations should be reattempted when root of compilation is different
roland
parents: 22876
diff changeset
  1764
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1765
  product(intx, PerBytecodeTrapLimit,  4,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1766
          "Limit on traps (of one kind) at a particular BCI")               \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1767
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1768
                                                                            \
22916
582da2ed4dfa 8031752: Failed speculative optimizations should be reattempted when root of compilation is different
roland
parents: 22876
diff changeset
  1769
  experimental(intx, SpecTrapLimitExtraEntries,  3,                         \
582da2ed4dfa 8031752: Failed speculative optimizations should be reattempted when root of compilation is different
roland
parents: 22876
diff changeset
  1770
          "Extra method data trap entries for speculation")                 \
582da2ed4dfa 8031752: Failed speculative optimizations should be reattempted when root of compilation is different
roland
parents: 22876
diff changeset
  1771
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1772
  develop(intx, InlineFrequencyRatio,    20,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1773
          "Ratio of call site execution to caller method invocation")       \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1774
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1775
                                                                            \
39117
59fa99a45873 8150900: Implement diagnostic_pd
csahu
parents: 38289
diff changeset
  1776
  diagnostic_pd(intx, InlineFrequencyCount,                                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1777
          "Count of call site execution necessary to trigger frequent "     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1778
          "inlining")                                                       \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1779
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1780
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1781
  develop(intx, InlineThrowCount,    50,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1782
          "Force inlining of interpreted methods that throw this often")    \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1783
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1784
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1785
  develop(intx, InlineThrowMaxSize,   200,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1786
          "Force inlining of throwing methods smaller than this")           \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1787
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1788
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1789
  develop(intx, ProfilerNodeSize,  1024,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1790
          "Size in K to allocate for the Profile Nodes of each thread")     \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1791
          range(0, 1024)                                                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1792
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
  1793
  product_pd(size_t, MetaspaceSize,                                         \
37151
bcda1fb89431 8151845: Comment in globals.hpp for MetaspaceSize is incorrect.
jmasa
parents: 37126
diff changeset
  1794
          "Initial threshold (in bytes) at which a garbage collection "     \
bcda1fb89431 8151845: Comment in globals.hpp for MetaspaceSize is incorrect.
jmasa
parents: 37126
diff changeset
  1795
          "is done to reduce Metaspace usage")                              \
33144
c56850e328fc 8134995: [REDO] GC: implement ranges (optionally constraints) for those flags that have them missing
sangheki
parents: 33083
diff changeset
  1796
          constraint(MetaspaceSizeConstraintFunc,AfterErgo)                 \
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13521
diff changeset
  1797
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
  1798
  product(size_t, MaxMetaspaceSize, max_uintx,                              \
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13521
diff changeset
  1799
          "Maximum size of Metaspaces (in bytes)")                          \
33144
c56850e328fc 8134995: [REDO] GC: implement ranges (optionally constraints) for those flags that have them missing
sangheki
parents: 33083
diff changeset
  1800
          constraint(MaxMetaspaceSizeConstraintFunc,AfterErgo)              \
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13521
diff changeset
  1801
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
  1802
  product(size_t, CompressedClassSpaceSize, 1*G,                            \
19979
ebe1dbb6e1aa 8015107: NPG: Use consistent naming for metaspace concepts
ehelin
parents: 19704
diff changeset
  1803
          "Maximum size of class area in Metaspace when compressed "        \
ebe1dbb6e1aa 8015107: NPG: Use consistent naming for metaspace concepts
ehelin
parents: 19704
diff changeset
  1804
          "class pointers are used")                                        \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1805
          range(1*M, 3*G)                                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1806
                                                                            \
22555
ea32f6c51d08 8028391: Make the Min/MaxHeapFreeRatio flags manageable
jwilhelm
parents: 22551
diff changeset
  1807
  manageable(uintx, MinHeapFreeRatio, 40,                                   \
20719
ffa4f0de0dad 8024776: Max/MinHeapFreeRatio descriptions should be more precise
jwilhelm
parents: 20406
diff changeset
  1808
          "The minimum percentage of heap free after GC to avoid expansion."\
22555
ea32f6c51d08 8028391: Make the Min/MaxHeapFreeRatio flags manageable
jwilhelm
parents: 22551
diff changeset
  1809
          " For most GCs this applies to the old generation. In G1 and"     \
ea32f6c51d08 8028391: Make the Min/MaxHeapFreeRatio flags manageable
jwilhelm
parents: 22551
diff changeset
  1810
          " ParallelGC it applies to the whole heap.")                      \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1811
          range(0, 100)                                                     \
31995
aa4049b4184a 8130459: Add additional validation after heap creation
sangheki
parents: 31989
diff changeset
  1812
          constraint(MinHeapFreeRatioConstraintFunc,AfterErgo)              \
22555
ea32f6c51d08 8028391: Make the Min/MaxHeapFreeRatio flags manageable
jwilhelm
parents: 22551
diff changeset
  1813
                                                                            \
ea32f6c51d08 8028391: Make the Min/MaxHeapFreeRatio flags manageable
jwilhelm
parents: 22551
diff changeset
  1814
  manageable(uintx, MaxHeapFreeRatio, 70,                                   \
20719
ffa4f0de0dad 8024776: Max/MinHeapFreeRatio descriptions should be more precise
jwilhelm
parents: 20406
diff changeset
  1815
          "The maximum percentage of heap free after GC to avoid shrinking."\
22555
ea32f6c51d08 8028391: Make the Min/MaxHeapFreeRatio flags manageable
jwilhelm
parents: 22551
diff changeset
  1816
          " For most GCs this applies to the old generation. In G1 and"     \
ea32f6c51d08 8028391: Make the Min/MaxHeapFreeRatio flags manageable
jwilhelm
parents: 22551
diff changeset
  1817
          " ParallelGC it applies to the whole heap.")                      \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1818
          range(0, 100)                                                     \
31995
aa4049b4184a 8130459: Add additional validation after heap creation
sangheki
parents: 31989
diff changeset
  1819
          constraint(MaxHeapFreeRatioConstraintFunc,AfterErgo)              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1820
                                                                            \
37166
8a5f1594e692 8146436: Add -XX:-ShrinkHeapInSteps option (previously -XX:+UseAggressiveHeapShrink)
cjplummer
parents: 37155
diff changeset
  1821
  product(bool, ShrinkHeapInSteps, true,                                    \
8a5f1594e692 8146436: Add -XX:-ShrinkHeapInSteps option (previously -XX:+UseAggressiveHeapShrink)
cjplummer
parents: 37155
diff changeset
  1822
          "When disabled, informs the GC to shrink the java heap directly"  \
8a5f1594e692 8146436: Add -XX:-ShrinkHeapInSteps option (previously -XX:+UseAggressiveHeapShrink)
cjplummer
parents: 37155
diff changeset
  1823
          " to the target size at the next full GC rather than requiring"   \
8a5f1594e692 8146436: Add -XX:-ShrinkHeapInSteps option (previously -XX:+UseAggressiveHeapShrink)
cjplummer
parents: 37155
diff changeset
  1824
          " smaller steps during multiple full GCs.")                       \
8a5f1594e692 8146436: Add -XX:-ShrinkHeapInSteps option (previously -XX:+UseAggressiveHeapShrink)
cjplummer
parents: 37155
diff changeset
  1825
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1826
  product(intx, SoftRefLRUPolicyMSPerMB, 1000,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1827
          "Number of milliseconds per MB of free space in the heap")        \
33144
c56850e328fc 8134995: [REDO] GC: implement ranges (optionally constraints) for those flags that have them missing
sangheki
parents: 33083
diff changeset
  1828
          range(0, max_intx)                                                \
c56850e328fc 8134995: [REDO] GC: implement ranges (optionally constraints) for those flags that have them missing
sangheki
parents: 33083
diff changeset
  1829
          constraint(SoftRefLRUPolicyMSPerMBConstraintFunc,AfterMemoryInit) \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1830
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
  1831
  product(size_t, MinHeapDeltaBytes, ScaleForWordSize(128*K),               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1832
          "The minimum change in heap space due to GC (in bytes)")          \
34661
9a1d11d88ea0 8142341: GC: current flags need ranges to be implemented
sangheki
parents: 34629
diff changeset
  1833
          range(0, max_uintx)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1834
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
  1835
  product(size_t, MinMetaspaceExpansion, ScaleForWordSize(256*K),           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1836
          "The minimum expansion of Metaspace (in bytes)")                  \
34661
9a1d11d88ea0 8142341: GC: current flags need ranges to be implemented
sangheki
parents: 34629
diff changeset
  1837
          range(0, max_uintx)                                               \
15610
528d799702c7 8005452: NPG: Create new flags for Metaspace resizing policy
jmasa
parents: 15605
diff changeset
  1838
                                                                            \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1839
  product(uintx, MaxMetaspaceFreeRatio,    70,                              \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1840
          "The maximum percentage of Metaspace free after GC to avoid "     \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1841
          "shrinking")                                                      \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1842
          range(0, 100)                                                     \
31995
aa4049b4184a 8130459: Add additional validation after heap creation
sangheki
parents: 31989
diff changeset
  1843
          constraint(MaxMetaspaceFreeRatioConstraintFunc,AfterErgo)         \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1844
                                                                            \
15610
528d799702c7 8005452: NPG: Create new flags for Metaspace resizing policy
jmasa
parents: 15605
diff changeset
  1845
  product(uintx, MinMetaspaceFreeRatio,    40,                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1846
          "The minimum percentage of Metaspace free after GC to avoid "     \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1847
          "expansion")                                                      \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1848
          range(0, 99)                                                      \
31995
aa4049b4184a 8130459: Add additional validation after heap creation
sangheki
parents: 31989
diff changeset
  1849
          constraint(MinMetaspaceFreeRatioConstraintFunc,AfterErgo)         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1850
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
  1851
  product(size_t, MaxMetaspaceExpansion, ScaleForWordSize(4*M),             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1852
          "The maximum expansion of Metaspace without full GC (in bytes)")  \
34661
9a1d11d88ea0 8142341: GC: current flags need ranges to be implemented
sangheki
parents: 34629
diff changeset
  1853
          range(0, max_uintx)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1854
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1855
  /* stack parameters */                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1856
  product_pd(intx, StackYellowPages,                                        \
35201
996db89f378e 8139864: Improve handling of stack protection zones.
goetz
parents: 35171
diff changeset
  1857
          "Number of yellow zone (recoverable overflows) pages of size "    \
996db89f378e 8139864: Improve handling of stack protection zones.
goetz
parents: 35171
diff changeset
  1858
          "4KB. If pages are bigger yellow zone is aligned up.")            \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1859
          range(MIN_STACK_YELLOW_PAGES, (DEFAULT_STACK_YELLOW_PAGES+5))     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1860
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1861
  product_pd(intx, StackRedPages,                                           \
35201
996db89f378e 8139864: Improve handling of stack protection zones.
goetz
parents: 35171
diff changeset
  1862
          "Number of red zone (unrecoverable overflows) pages of size "     \
996db89f378e 8139864: Improve handling of stack protection zones.
goetz
parents: 35171
diff changeset
  1863
          "4KB. If pages are bigger red zone is aligned up.")               \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1864
          range(MIN_STACK_RED_PAGES, (DEFAULT_STACK_RED_PAGES+2))           \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1865
                                                                            \
35071
a0910b1d3e0d 8046936: JEP 270: Reserved Stack Areas for Critical Sections
fparain
parents: 35061
diff changeset
  1866
  product_pd(intx, StackReservedPages,                                      \
35201
996db89f378e 8139864: Improve handling of stack protection zones.
goetz
parents: 35171
diff changeset
  1867
          "Number of reserved zone (reserved to annotated methods) pages"   \
996db89f378e 8139864: Improve handling of stack protection zones.
goetz
parents: 35171
diff changeset
  1868
          " of size 4KB. If pages are bigger reserved zone is aligned up.") \
35071
a0910b1d3e0d 8046936: JEP 270: Reserved Stack Areas for Critical Sections
fparain
parents: 35061
diff changeset
  1869
          range(MIN_STACK_RESERVED_PAGES, (DEFAULT_STACK_RESERVED_PAGES+10))\
a0910b1d3e0d 8046936: JEP 270: Reserved Stack Areas for Critical Sections
fparain
parents: 35061
diff changeset
  1870
                                                                            \
a0910b1d3e0d 8046936: JEP 270: Reserved Stack Areas for Critical Sections
fparain
parents: 35061
diff changeset
  1871
  product(bool, RestrictReservedStack, true,                                \
a0910b1d3e0d 8046936: JEP 270: Reserved Stack Areas for Critical Sections
fparain
parents: 35061
diff changeset
  1872
          "Restrict @ReservedStackAccess to trusted classes")               \
a0910b1d3e0d 8046936: JEP 270: Reserved Stack Areas for Critical Sections
fparain
parents: 35061
diff changeset
  1873
                                                                            \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1874
  /* greater stack shadow pages can't generate instruction to bang stack */ \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1875
  product_pd(intx, StackShadowPages,                                        \
35201
996db89f378e 8139864: Improve handling of stack protection zones.
goetz
parents: 35171
diff changeset
  1876
          "Number of shadow zone (for overflow checking) pages of size "    \
996db89f378e 8139864: Improve handling of stack protection zones.
goetz
parents: 35171
diff changeset
  1877
          "4KB. If pages are bigger shadow zone is aligned up. "            \
996db89f378e 8139864: Improve handling of stack protection zones.
goetz
parents: 35171
diff changeset
  1878
          "This should exceed the depth of the VM and native call stack.")  \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1879
          range(MIN_STACK_SHADOW_PAGES, (DEFAULT_STACK_SHADOW_PAGES+30))    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1880
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1881
  product_pd(intx, ThreadStackSize,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1882
          "Thread Stack Size (in Kbytes)")                                  \
46616
66d452cca30f 8178491: -Xss and -XX:ThreadStackSize argument parsing truncates bits
stefank
parents: 46589
diff changeset
  1883
          range(0, 1 * M)                                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1884
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1885
  product_pd(intx, VMThreadStackSize,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1886
          "Non-Java Thread Stack Size (in Kbytes)")                         \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  1887
          range(0, max_intx/(1 * K))                                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1888
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1889
  product_pd(intx, CompilerThreadStackSize,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1890
          "Compiler Thread Stack Size (in Kbytes)")                         \
35201
996db89f378e 8139864: Improve handling of stack protection zones.
goetz
parents: 35171
diff changeset
  1891
          range(0, max_intx/(1 * K))                                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1892
                                                                            \
29697
92501504191b 8074459: Flags handling memory sizes should be of type size_t
jwilhelm
parents: 29459
diff changeset
  1893
  develop_pd(size_t, JVMInvokeMethodSlack,                                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1894
          "Stack space (bytes) required for JVM_InvokeMethod to complete")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1895
                                                                            \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1896
  /* code cache parameters                                    */            \
42062
473286891dd8 8166560: [s390] Basic enablement of s390 port.
goetz
parents: 41665
diff changeset
  1897
  develop_pd(uintx, CodeCacheSegmentSize,                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1898
          "Code cache segment size (in bytes) - smallest unit of "          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1899
          "allocation")                                                     \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1900
          range(1, 1024)                                                    \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1901
          constraint(CodeCacheSegmentSizeConstraintFunc, AfterErgo)         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1902
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1903
  develop_pd(intx, CodeEntryAlignment,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1904
          "Code entry alignment for generated code (in bytes)")             \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1905
          constraint(CodeEntryAlignmentConstraintFunc, AfterErgo)           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1906
                                                                            \
5249
5cac34e6fe54 6940701: Don't align loops in stubs for Niagara sparc
kvn
parents: 5235
diff changeset
  1907
  product_pd(intx, OptoLoopAlignment,                                       \
5cac34e6fe54 6940701: Don't align loops in stubs for Niagara sparc
kvn
parents: 5235
diff changeset
  1908
          "Align inner loops to zero relative to this modulus")             \
33744
8dd886109959 8141042: Typos and refactoring in Compiler constraints functions
ddmitriev
parents: 33736
diff changeset
  1909
          range(1, 16)                                                      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1910
          constraint(OptoLoopAlignmentConstraintFunc, AfterErgo)            \
5249
5cac34e6fe54 6940701: Don't align loops in stubs for Niagara sparc
kvn
parents: 5235
diff changeset
  1911
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1912
  product_pd(uintx, InitialCodeCacheSize,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1913
          "Initial code cache size (in bytes)")                             \
48118
7f40c1cdde28 8179026: Remove explicit code cache options processing
thartmann
parents: 48105
diff changeset
  1914
          range(os::vm_page_size(), max_uintx)                              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1915
                                                                            \
18506
af8765fafc07 8014972: Crash with specific values for -XX:InitialCodeCacheSize=500K -XX:ReservedCodeCacheSize=500k
anoll
parents: 18025
diff changeset
  1916
  develop_pd(uintx, CodeCacheMinimumUseSpace,                               \
af8765fafc07 8014972: Crash with specific values for -XX:InitialCodeCacheSize=500K -XX:ReservedCodeCacheSize=500k
anoll
parents: 18025
diff changeset
  1917
          "Minimum code cache size (in bytes) required to start VM.")       \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1918
          range(0, max_uintx)                                               \
18506
af8765fafc07 8014972: Crash with specific values for -XX:InitialCodeCacheSize=500K -XX:ReservedCodeCacheSize=500k
anoll
parents: 18025
diff changeset
  1919
                                                                            \
26796
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
  1920
  product(bool, SegmentedCodeCache, false,                                  \
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
  1921
          "Use a segmented code cache")                                     \
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
  1922
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1923
  product_pd(uintx, ReservedCodeCacheSize,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1924
          "Reserved code cache size (in bytes) - maximum code cache size")  \
48118
7f40c1cdde28 8179026: Remove explicit code cache options processing
thartmann
parents: 48105
diff changeset
  1925
          range(os::vm_page_size(), max_uintx)                              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1926
                                                                            \
26796
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
  1927
  product_pd(uintx, NonProfiledCodeHeapSize,                                \
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
  1928
          "Size of code heap with non-profiled methods (in bytes)")         \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1929
          range(0, max_uintx)                                               \
26796
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
  1930
                                                                            \
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
  1931
  product_pd(uintx, ProfiledCodeHeapSize,                                   \
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
  1932
          "Size of code heap with profiled methods (in bytes)")             \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  1933
          range(0, max_uintx)                                               \
26796
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
  1934
                                                                            \
26919
361b4b4c92c0 8059468: Fix PrintCodeCache output changed by JDK-8059137
thartmann
parents: 26913
diff changeset
  1935
  product_pd(uintx, NonNMethodCodeHeapSize,                                 \
361b4b4c92c0 8059468: Fix PrintCodeCache output changed by JDK-8059137
thartmann
parents: 26913
diff changeset
  1936
          "Size of code heap with non-nmethods (in bytes)")                 \
48118
7f40c1cdde28 8179026: Remove explicit code cache options processing
thartmann
parents: 48105
diff changeset
  1937
          range(os::vm_page_size(), max_uintx)                              \
26796
666464578742 8015774: Add support for multiple code heaps
thartmann
parents: 26587
diff changeset
  1938
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1939
  product_pd(uintx, CodeCacheExpansionSize,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1940
          "Code cache expansion size (in bytes)")                           \
48146
646ed97b7e0d 8191996: VM startup fails with CodeCacheExpansionSize=32768 is outside the allowed range
thartmann
parents: 48138
diff changeset
  1941
          range(32*K, max_uintx)                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1942
                                                                            \
43945
e7f2e49d2274 8173151: Code heap corruption due to incorrect inclusion test
zmajo
parents: 43935
diff changeset
  1943
  diagnostic_pd(uintx, CodeCacheMinBlockLength,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1944
          "Minimum number of segments in a code cache block")               \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1945
          range(1, 100)                                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1946
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1947
  notproduct(bool, ExitOnFullCodeCache, false,                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1948
          "Exit the VM if we fill the code cache")                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1949
                                                                            \
10963
77222140e9ad 7103784: enable some flags by default
never
parents: 10739
diff changeset
  1950
  product(bool, UseCodeCacheFlushing, true,                                 \
21575
6a9645992cee 8027593: performance drop with constrained codecache starting with hs25 b111
anoll
parents: 21572
diff changeset
  1951
          "Remove cold/old nmethods from the code cache")                   \
4750
71fd601907dc 4360113: Evict nmethods when code cache gets full
kvn
parents: 4736
diff changeset
  1952
                                                                            \
27420
04e6f914cce1 8046809: vm/mlvm/meth/stress/compiler/deoptimize CodeCache is full.
anoll
parents: 27417
diff changeset
  1953
  product(uintx, StartAggressiveSweepingAt, 10,                             \
04e6f914cce1 8046809: vm/mlvm/meth/stress/compiler/deoptimize CodeCache is full.
anoll
parents: 27417
diff changeset
  1954
          "Start aggressive sweeping if X[%] of the code cache is free."    \
04e6f914cce1 8046809: vm/mlvm/meth/stress/compiler/deoptimize CodeCache is full.
anoll
parents: 27417
diff changeset
  1955
          "Segmented code cache: X[%] of the non-profiled heap."            \
04e6f914cce1 8046809: vm/mlvm/meth/stress/compiler/deoptimize CodeCache is full.
anoll
parents: 27417
diff changeset
  1956
          "Non-segmented code cache: X[%] of the total code cache")         \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  1957
          range(0, 100)                                                     \
27420
04e6f914cce1 8046809: vm/mlvm/meth/stress/compiler/deoptimize CodeCache is full.
anoll
parents: 27417
diff changeset
  1958
                                                                            \
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1959
  /* AOT parameters */                                                      \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1960
  product(bool, UseAOT, AOT_ONLY(true) NOT_AOT(false),                      \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1961
          "Use AOT compiled files")                                         \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1962
                                                                            \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1963
  product(ccstrlist, AOTLibrary, NULL,                                      \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1964
          "AOT library")                                                    \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1965
                                                                            \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1966
  product(bool, PrintAOT, false,                                            \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1967
          "Print used AOT klasses and methods")                             \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1968
                                                                            \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1969
  notproduct(bool, PrintAOTStatistics, false,                               \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1970
          "Print AOT statistics")                                           \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1971
                                                                            \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1972
  diagnostic(bool, UseAOTStrictLoading, false,                              \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1973
          "Exit the VM if any of the AOT libraries has invalid config")     \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  1974
                                                                            \
46553
7030aea81558 8181823: [AOT] jaotc doesn't work with Graal
kvn
parents: 46541
diff changeset
  1975
  product(bool, CalculateClassFingerprint, false,                           \
7030aea81558 8181823: [AOT] jaotc doesn't work with Graal
kvn
parents: 46541
diff changeset
  1976
          "Calculate class fingerprint")                                    \
7030aea81558 8181823: [AOT] jaotc doesn't work with Graal
kvn
parents: 46541
diff changeset
  1977
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1978
  /* interpreter debugging */                                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1979
  develop(intx, BinarySwitchThreshold, 5,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1980
          "Minimal number of lookupswitch entries for rewriting to binary " \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1981
          "switch")                                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1982
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1983
  develop(intx, StopInterpreterAt, 0,                                       \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1984
          "Stop interpreter execution at specified bytecode number")        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1985
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1986
  develop(intx, TraceBytecodesAt, 0,                                        \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1987
          "Trace bytecodes starting with specified bytecode number")        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1988
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1989
  /* compiler interface */                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1990
  develop(intx, CIStart, 0,                                                 \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1991
          "The id of the first compilation to permit")                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1992
                                                                            \
22247
cde20a0fa906 8022494: Make compilation IDs sequential
anoll
parents: 22243
diff changeset
  1993
  develop(intx, CIStop, max_jint,                                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1994
          "The id of the last compilation to permit")                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1995
                                                                            \
22247
cde20a0fa906 8022494: Make compilation IDs sequential
anoll
parents: 22243
diff changeset
  1996
  develop(intx, CIStartOSR, 0,                                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  1997
          "The id of the first osr compilation to permit "                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1998
          "(CICountOSR must be on)")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  1999
                                                                            \
22247
cde20a0fa906 8022494: Make compilation IDs sequential
anoll
parents: 22243
diff changeset
  2000
  develop(intx, CIStopOSR, max_jint,                                        \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2001
          "The id of the last osr compilation to permit "                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2002
          "(CICountOSR must be on)")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2003
                                                                            \
22247
cde20a0fa906 8022494: Make compilation IDs sequential
anoll
parents: 22243
diff changeset
  2004
  develop(intx, CIBreakAtOSR, -1,                                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2005
          "The id of osr compilation to break at")                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2006
                                                                            \
22247
cde20a0fa906 8022494: Make compilation IDs sequential
anoll
parents: 22243
diff changeset
  2007
  develop(intx, CIBreakAt, -1,                                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2008
          "The id of compilation to break at")                              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2009
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2010
  product(ccstrlist, CompileOnly, "",                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2011
          "List of methods (pkg/class.name) to restrict compilation to")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2012
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2013
  product(ccstr, CompileCommandFile, NULL,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2014
          "Read compiler commands from this file [.hotspot_compiler]")      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2015
                                                                            \
33451
0712796e4039 8137167: JEP165: Compiler Control: Implementation task
neliasso
parents: 33198
diff changeset
  2016
  diagnostic(ccstr, CompilerDirectivesFile, NULL,                           \
0712796e4039 8137167: JEP165: Compiler Control: Implementation task
neliasso
parents: 33198
diff changeset
  2017
          "Read compiler directives from this file")                        \
0712796e4039 8137167: JEP165: Compiler Control: Implementation task
neliasso
parents: 33198
diff changeset
  2018
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2019
  product(ccstrlist, CompileCommand, "",                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2020
          "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2021
                                                                            \
14477
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2022
  develop(bool, ReplayCompiles, false,                                      \
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2023
          "Enable replay of compilations from ReplayDataFile")              \
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2024
                                                                            \
17121
e40a97c700d9 8012260: ciReplay: Include PID into the name of replay data file
vlivanov
parents: 16682
diff changeset
  2025
  product(ccstr, ReplayDataFile, NULL,                                      \
e40a97c700d9 8012260: ciReplay: Include PID into the name of replay data file
vlivanov
parents: 16682
diff changeset
  2026
          "File containing compilation replay information"                  \
e40a97c700d9 8012260: ciReplay: Include PID into the name of replay data file
vlivanov
parents: 16682
diff changeset
  2027
          "[default: ./replay_pid%p.log] (%p replaced with pid)")           \
14477
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2028
                                                                            \
22243
91944eab7b92 8028468: Add inlining information into ciReplay
kvn
parents: 22210
diff changeset
  2029
   product(ccstr, InlineDataFile, NULL,                                     \
91944eab7b92 8028468: Add inlining information into ciReplay
kvn
parents: 22210
diff changeset
  2030
          "File containing inlining replay information"                     \
91944eab7b92 8028468: Add inlining information into ciReplay
kvn
parents: 22210
diff changeset
  2031
          "[default: ./inline_pid%p.log] (%p replaced with pid)")           \
91944eab7b92 8028468: Add inlining information into ciReplay
kvn
parents: 22210
diff changeset
  2032
                                                                            \
14477
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2033
  develop(intx, ReplaySuppressInitializers, 2,                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2034
          "Control handling of class initialization during replay: "        \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2035
          "0 - don't do anything special; "                                 \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2036
          "1 - treat all class initializers as empty; "                     \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2037
          "2 - treat class initializers for application classes as empty; " \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2038
          "3 - allow all class initializers to run during bootstrap but "   \
14477
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2039
          "    pretend they are empty after starting replay")               \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2040
          range(0, 3)                                                       \
14477
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2041
                                                                            \
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2042
  develop(bool, ReplayIgnoreInitErrors, false,                              \
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2043
          "Ignore exceptions thrown during initialization for replay")      \
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2044
                                                                            \
17121
e40a97c700d9 8012260: ciReplay: Include PID into the name of replay data file
vlivanov
parents: 16682
diff changeset
  2045
  product(bool, DumpReplayDataOnError, true,                                \
e40a97c700d9 8012260: ciReplay: Include PID into the name of replay data file
vlivanov
parents: 16682
diff changeset
  2046
          "Record replay data for crashing compiler threads")               \
14477
95e66ea71f71 6830717: replay of compilations would help with debugging
minqi
parents: 14386
diff changeset
  2047
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2048
  product(bool, CICompilerCountPerCPU, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2049
          "1 compiler thread for log(N CPUs)")                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2050
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2051
  develop(intx, CIFireOOMAt,    -1,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2052
          "Fire OutOfMemoryErrors throughout CI for testing the compiler "  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2053
          "(non-negative value throws OOM after this many CI accesses "     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2054
          "in each compile)")                                               \
17123
a8e62eed2e3e 8011675: adding compilation level to replay data
iignatyev
parents: 17121
diff changeset
  2055
  notproduct(intx, CICrashAt, -1,                                           \
a8e62eed2e3e 8011675: adding compilation level to replay data
iignatyev
parents: 17121
diff changeset
  2056
          "id of compilation to trigger assert in compiler thread for "     \
a8e62eed2e3e 8011675: adding compilation level to replay data
iignatyev
parents: 17121
diff changeset
  2057
          "the purpose of testing, e.g. generation of replay data")         \
3609
5f16c48e608a 6866585: debug code in ciObjectFactory too slow for large objects
jcoomes
parents: 3605
diff changeset
  2058
  notproduct(bool, CIObjectFactoryVerify, false,                            \
5f16c48e608a 6866585: debug code in ciObjectFactory too slow for large objects
jcoomes
parents: 3605
diff changeset
  2059
          "enable potentially expensive verification in ciObjectFactory")   \
5f16c48e608a 6866585: debug code in ciObjectFactory too slow for large objects
jcoomes
parents: 3605
diff changeset
  2060
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2061
  /* Priorities */                                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2062
  product_pd(bool, UseThreadPriorities,  "Use native thread priorities")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2063
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2064
  product(intx, ThreadPriorityPolicy, 0,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2065
          "0 : Normal.                                                     "\
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2066
          "    VM chooses priorities that are appropriate for normal       "\
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2067
          "    applications. On Solaris NORM_PRIORITY and above are mapped "\
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2068
          "    to normal native priority. Java priorities below "           \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2069
          "    NORM_PRIORITY map to lower native priority values. On       "\
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2070
          "    Windows applications are allowed to use higher native       "\
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2071
          "    priorities. However, with ThreadPriorityPolicy=0, VM will   "\
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2072
          "    not use the highest possible native priority,               "\
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2073
          "    THREAD_PRIORITY_TIME_CRITICAL, as it may interfere with     "\
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2074
          "    system threads. On Linux thread priorities are ignored      "\
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2075
          "    because the OS does not support static priority in          "\
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2076
          "    SCHED_OTHER scheduling class which is the only choice for   "\
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2077
          "    non-root, non-realtime applications.                        "\
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2078
          "1 : Aggressive.                                                 "\
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2079
          "    Java thread priorities map over to the entire range of      "\
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2080
          "    native thread priorities. Higher Java thread priorities map "\
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2081
          "    to higher native thread priorities. This policy should be   "\
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2082
          "    used with care, as sometimes it can cause performance       "\
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2083
          "    degradation in the application and/or the entire system. On "\
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2084
          "    Linux this policy requires root privilege.")                 \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2085
          range(0, 1)                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2086
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2087
  product(bool, ThreadPriorityVerbose, false,                               \
11601
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2088
          "Print priority changes")                                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2089
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2090
  product(intx, CompilerThreadPriority, -1,                                 \
11601
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2091
          "The native priority at which compiler threads should run "       \
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2092
          "(-1 means no change)")                                           \
33744
8dd886109959 8141042: Typos and refactoring in Compiler constraints functions
ddmitriev
parents: 33736
diff changeset
  2093
          range(min_jint, max_jint)                                         \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2094
          constraint(CompilerThreadPriorityConstraintFunc, AfterErgo)       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2095
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2096
  product(intx, VMThreadPriority, -1,                                       \
11601
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2097
          "The native priority at which the VM thread should run "          \
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2098
          "(-1 means no change)")                                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2099
          range(-1, 127)                                                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2100
                                                                            \
48885
00e159258897 8196806: Deprecate VMThreadHintNoPreempt and CompilerThreadHintNoPreempt
coleenp
parents: 48859
diff changeset
  2101
  product(bool, CompilerThreadHintNoPreempt, false,                         \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2102
          "(Solaris only) Give compiler threads an extra quanta")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2103
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2104
  product(bool, VMThreadHintNoPreempt, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2105
          "(Solaris only) Give VM thread an extra quanta")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2106
                                                                            \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2107
  product(intx, JavaPriority1_To_OSPriority, -1,                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2108
          "Map Java priorities to OS priorities")                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2109
          range(-1, 127)                                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2110
                                                                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2111
  product(intx, JavaPriority2_To_OSPriority, -1,                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2112
          "Map Java priorities to OS priorities")                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2113
          range(-1, 127)                                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2114
                                                                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2115
  product(intx, JavaPriority3_To_OSPriority, -1,                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2116
          "Map Java priorities to OS priorities")                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2117
          range(-1, 127)                                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2118
                                                                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2119
  product(intx, JavaPriority4_To_OSPriority, -1,                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2120
          "Map Java priorities to OS priorities")                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2121
          range(-1, 127)                                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2122
                                                                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2123
  product(intx, JavaPriority5_To_OSPriority, -1,                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2124
          "Map Java priorities to OS priorities")                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2125
          range(-1, 127)                                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2126
                                                                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2127
  product(intx, JavaPriority6_To_OSPriority, -1,                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2128
          "Map Java priorities to OS priorities")                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2129
          range(-1, 127)                                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2130
                                                                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2131
  product(intx, JavaPriority7_To_OSPriority, -1,                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2132
          "Map Java priorities to OS priorities")                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2133
          range(-1, 127)                                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2134
                                                                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2135
  product(intx, JavaPriority8_To_OSPriority, -1,                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2136
          "Map Java priorities to OS priorities")                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2137
          range(-1, 127)                                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2138
                                                                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2139
  product(intx, JavaPriority9_To_OSPriority, -1,                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2140
          "Map Java priorities to OS priorities")                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2141
          range(-1, 127)                                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2142
                                                                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2143
  product(intx, JavaPriority10_To_OSPriority,-1,                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2144
          "Map Java priorities to OS priorities")                           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2145
          range(-1, 127)                                                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2146
                                                                            \
11601
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2147
  experimental(bool, UseCriticalJavaThreadPriority, false,                  \
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2148
          "Java thread priority 10 maps to critical scheduling priority")   \
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2149
                                                                            \
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2150
  experimental(bool, UseCriticalCompilerThreadPriority, false,              \
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2151
          "Compiler thread(s) run at critical scheduling priority")         \
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2152
                                                                            \
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2153
  experimental(bool, UseCriticalCMSThreadPriority, false,                   \
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2154
          "ConcurrentMarkSweep thread runs at critical scheduling priority")\
f359304c1856 7082553: Interpret Thread.setPriority(Thread.MAX_PRIORITY) to mean FX60 on Solaris 10 and 11
phh
parents: 11487
diff changeset
  2155
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2156
  /* compiler debugging */                                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2157
  notproduct(intx, CompileTheWorldStartAt,     1,                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2158
          "First class to consider when using +CompileTheWorld")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2159
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2160
  notproduct(intx, CompileTheWorldStopAt, max_jint,                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2161
          "Last class to consider when using +CompileTheWorld")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2162
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2163
  develop(intx, NewCodeParameter,      0,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2164
          "Testing Only: Create a dedicated integer parameter before "      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2165
          "putback")                                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2166
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2167
  /* new oopmap storage allocation */                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2168
  develop(intx, MinOopMapAllocation,     8,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2169
          "Minimum number of OopMap entries in an OopMapSet")               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2170
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2171
  /* Background Compilation */                                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2172
  develop(intx, LongCompileThreshold,     50,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2173
          "Used with +TraceLongCompiles")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2174
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2175
  /* recompilation */                                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2176
  product_pd(intx, CompileThreshold,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2177
          "number of interpreted method invocations before (re-)compiling") \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2178
          constraint(CompileThresholdConstraintFunc, AfterErgo)             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2179
                                                                            \
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents: 27143
diff changeset
  2180
  product(double, CompileThresholdScaling, 1.0,                             \
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents: 27143
diff changeset
  2181
          "Factor to control when first compilation happens "               \
28650
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28477
diff changeset
  2182
          "(both with and without tiered compilation): "                    \
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28477
diff changeset
  2183
          "values greater than 1.0 delay counter overflow, "                \
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28477
diff changeset
  2184
          "values between 0 and 1.0 rush counter overflow, "                \
28928
e3815b017664 8072398: assert fails in L1RGenerator::increment_event_counter_impl
zmajo
parents: 28650
diff changeset
  2185
          "value of 1.0 leaves compilation thresholds unchanged "           \
28650
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28477
diff changeset
  2186
          "value of 0.0 is equivalent to -Xint. "                           \
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28477
diff changeset
  2187
          ""                                                                \
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28477
diff changeset
  2188
          "Flag can be set as per-method option. "                          \
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28477
diff changeset
  2189
          "If a value is specified for a method, compilation thresholds "   \
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28477
diff changeset
  2190
          "for that method are scaled by both the value of the global flag "\
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28477
diff changeset
  2191
          "and the value of the per-method flag.")                          \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2192
          range(0.0, DBL_MAX)                                               \
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents: 27143
diff changeset
  2193
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2194
  product(intx, Tier0InvokeNotifyFreqLog, 7,                                \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2195
          "Interpreter (tier 0) invocation notification frequency")         \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2196
          range(0, 30)                                                      \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2197
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2198
  product(intx, Tier2InvokeNotifyFreqLog, 11,                               \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2199
          "C1 without MDO (tier 2) invocation notification frequency")      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2200
          range(0, 30)                                                      \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2201
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2202
  product(intx, Tier3InvokeNotifyFreqLog, 10,                               \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2203
          "C1 with MDO profiling (tier 3) invocation notification "         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2204
          "frequency")                                                      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2205
          range(0, 30)                                                      \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2206
                                                                            \
10569
f5ce1108443b 7096639: Tiered: Incorrect counter overflow handling for inlined methods
iveresov
parents: 10565
diff changeset
  2207
  product(intx, Tier23InlineeNotifyFreqLog, 20,                             \
f5ce1108443b 7096639: Tiered: Incorrect counter overflow handling for inlined methods
iveresov
parents: 10565
diff changeset
  2208
          "Inlinee invocation (tiers 2 and 3) notification frequency")      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2209
          range(0, 30)                                                      \
10569
f5ce1108443b 7096639: Tiered: Incorrect counter overflow handling for inlined methods
iveresov
parents: 10565
diff changeset
  2210
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2211
  product(intx, Tier0BackedgeNotifyFreqLog, 10,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2212
          "Interpreter (tier 0) invocation notification frequency")         \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2213
          range(0, 30)                                                      \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2214
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2215
  product(intx, Tier2BackedgeNotifyFreqLog, 14,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2216
          "C1 without MDO (tier 2) invocation notification frequency")      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2217
          range(0, 30)                                                      \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2218
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2219
  product(intx, Tier3BackedgeNotifyFreqLog, 13,                             \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2220
          "C1 with MDO profiling (tier 3) invocation notification "         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2221
          "frequency")                                                      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2222
          range(0, 30)                                                      \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2223
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2224
  product(intx, Tier2CompileThreshold, 0,                                   \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2225
          "threshold at which tier 2 compilation is invoked")               \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2226
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2227
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2228
  product(intx, Tier2BackEdgeThreshold, 0,                                  \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2229
          "Back edge threshold at which tier 2 compilation is invoked")     \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2230
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2231
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2232
  product(intx, Tier3InvocationThreshold, 200,                              \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2233
          "Compile if number of method invocations crosses this "           \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2234
          "threshold")                                                      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2235
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2236
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2237
  product(intx, Tier3MinInvocationThreshold, 100,                           \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2238
          "Minimum invocation to compile at tier 3")                        \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2239
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2240
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2241
  product(intx, Tier3CompileThreshold, 2000,                                \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2242
          "Threshold at which tier 3 compilation is invoked (invocation "   \
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 33083
diff changeset
  2243
          "minimum must be satisfied)")                                     \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2244
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2245
                                                                            \
11566
351229eec596 7132945: Tiered: adjust OSR threshold of level 3
iveresov
parents: 11487
diff changeset
  2246
  product(intx, Tier3BackEdgeThreshold,  60000,                             \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2247
          "Back edge threshold at which tier 3 OSR compilation is invoked") \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2248
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2249
                                                                            \
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2250
  product(intx, Tier3AOTInvocationThreshold, 10000,                         \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2251
          "Compile if number of method invocations crosses this "           \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2252
          "threshold if coming from AOT")                                   \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2253
          range(0, max_jint)                                                \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2254
                                                                            \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2255
  product(intx, Tier3AOTMinInvocationThreshold, 1000,                       \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2256
          "Minimum invocation to compile at tier 3 if coming from AOT")     \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2257
          range(0, max_jint)                                                \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2258
                                                                            \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2259
  product(intx, Tier3AOTCompileThreshold, 15000,                            \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2260
          "Threshold at which tier 3 compilation is invoked (invocation "   \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2261
          "minimum must be satisfied) if coming from AOT")                  \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2262
          range(0, max_jint)                                                \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2263
                                                                            \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2264
  product(intx, Tier3AOTBackEdgeThreshold,  120000,                         \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2265
          "Back edge threshold at which tier 3 OSR compilation is invoked " \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2266
          "if coming from AOT")                                             \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2267
          range(0, max_jint)                                                \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42597
diff changeset
  2268
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2269
  product(intx, Tier4InvocationThreshold, 5000,                             \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2270
          "Compile if number of method invocations crosses this "           \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2271
          "threshold")                                                      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2272
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2273
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2274
  product(intx, Tier4MinInvocationThreshold, 600,                           \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2275
          "Minimum invocation to compile at tier 4")                        \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2276
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2277
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2278
  product(intx, Tier4CompileThreshold, 15000,                               \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2279
          "Threshold at which tier 4 compilation is invoked (invocation "   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2280
          "minimum must be satisfied")                                      \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2281
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2282
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2283
  product(intx, Tier4BackEdgeThreshold, 40000,                              \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2284
          "Back edge threshold at which tier 4 OSR compilation is invoked") \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2285
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2286
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2287
  product(intx, Tier3DelayOn, 5,                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2288
          "If C2 queue size grows over this amount per compiler thread "    \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2289
          "stop compiling at tier 3 and start compiling at tier 2")         \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2290
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2291
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2292
  product(intx, Tier3DelayOff, 2,                                           \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2293
          "If C2 queue size is less than this amount per compiler thread "  \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2294
          "allow methods compiled at tier 2 transition to tier 3")          \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2295
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2296
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2297
  product(intx, Tier3LoadFeedback, 5,                                       \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2298
          "Tier 3 thresholds will increase twofold when C1 queue size "     \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2299
          "reaches this amount per compiler thread")                        \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2300
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2301
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2302
  product(intx, Tier4LoadFeedback, 3,                                       \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2303
          "Tier 4 thresholds will increase twofold when C2 queue size "     \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2304
          "reaches this amount per compiler thread")                        \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2305
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2306
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2307
  product(intx, TieredCompileTaskTimeout, 50,                               \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2308
          "Kill compile task if method was not used within "                \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2309
          "given timeout in milliseconds")                                  \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2310
          range(0, max_intx)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2311
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2312
  product(intx, TieredStopAtLevel, 4,                                       \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2313
          "Stop at given compilation level")                                \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2314
          range(0, 4)                                                       \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2315
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2316
  product(intx, Tier0ProfilingStartPercentage, 200,                         \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2317
          "Start profiling in interpreter if the counters exceed tier 3 "   \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2318
          "thresholds by the specified percentage")                         \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2319
          range(0, max_jint)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2320
                                                                            \
17617
4e330bce1812 8012371: Adjust Tiered compile threshold according to available space in code cache
anoll
parents: 17398
diff changeset
  2321
  product(uintx, IncreaseFirstTierCompileThresholdAt, 50,                   \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2322
          "Increase the compile threshold for C1 compilation if the code "  \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2323
          "cache is filled by the specified percentage")                    \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2324
          range(0, 99)                                                      \
17617
4e330bce1812 8012371: Adjust Tiered compile threshold according to available space in code cache
anoll
parents: 17398
diff changeset
  2325
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2326
  product(intx, TieredRateUpdateMinTime, 1,                                 \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2327
          "Minimum rate sampling interval (in milliseconds)")               \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2328
          range(0, max_intx)                                                \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2329
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2330
  product(intx, TieredRateUpdateMaxTime, 25,                                \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2331
          "Maximum rate sampling interval (in milliseconds)")               \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2332
          range(0, max_intx)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2333
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2334
  product_pd(bool, TieredCompilation,                                       \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2335
          "Enable tiered compilation")                                      \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2336
                                                                            \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2337
  product(bool, PrintTieredEvents, false,                                   \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6419
diff changeset
  2338
          "Print tiered events notifications")                              \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2339
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2340
  product_pd(intx, OnStackReplacePercentage,                                \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2341
          "NON_TIERED number of method invocations/branches (expressed as " \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2342
          "% of CompileThreshold) before (re-)compiling OSR code")          \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 33160
diff changeset
  2343
          constraint(OnStackReplacePercentageConstraintFunc, AfterErgo)     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2344
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2345
  product(intx, InterpreterProfilePercentage, 33,                           \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2346
          "NON_TIERED number of method invocations/branches (expressed as " \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2347
          "% of CompileThreshold) before profiling in the interpreter")     \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2348
          range(0, 100)                                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2349
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2350
  develop(intx, MaxRecompilationSearchLength,    10,                        \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2351
          "The maximum number of frames to inspect when searching for "     \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2352
          "recompilee")                                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2353
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2354
  develop(intx, MaxInterpretedSearchLength,     3,                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2355
          "The maximum number of interpreted frames to skip when searching "\
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2356
          "for recompilee")                                                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2357
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2358
  develop(intx, DesiredMethodLimit,  8000,                                  \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2359
          "The desired maximum method size (in bytecodes) after inlining")  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2360
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2361
  develop(intx, HugeMethodLimit,  8000,                                     \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2362
          "Don't compile methods larger than this if "                      \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2363
          "+DontCompileHugeMethods")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2364
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2365
  /* New JDK 1.4 reflection implementation */                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2366
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2367
  develop(intx, FastSuperclassLimit, 8,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2368
          "Depth of hardwired instanceof accelerator array")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2369
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2370
  /* Properties for Java libraries  */                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2371
                                                                            \
38118
16e2f219e1b6 8153835: Fix range of flag MaxDirectMemorySize which is parsed at jlong
gziemski
parents: 38103
diff changeset
  2372
  product(uint64_t, MaxDirectMemorySize, 0,                                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2373
          "Maximum total size of NIO direct-buffer allocations")            \
38118
16e2f219e1b6 8153835: Fix range of flag MaxDirectMemorySize which is parsed at jlong
gziemski
parents: 38103
diff changeset
  2374
          range(0, max_jlong)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2375
                                                                            \
22551
9bf46d16dcc6 8025856: Fix typos in the GC code
jwilhelm
parents: 22248
diff changeset
  2376
  /* Flags used for temporary code during development  */                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2377
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2378
  diagnostic(bool, UseNewCode, false,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2379
          "Testing Only: Use the new version while testing")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2380
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2381
  diagnostic(bool, UseNewCode2, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2382
          "Testing Only: Use the new version while testing")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2383
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2384
  diagnostic(bool, UseNewCode3, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2385
          "Testing Only: Use the new version while testing")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2386
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2387
  /* flags for performance data collection */                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2388
                                                                            \
40015
524230a0f4ca 8140723: Remove source code conditionalized on JAVASE_EMBEDDED
dholmes
parents: 40010
diff changeset
  2389
  product(bool, UsePerfData, true,                                          \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2390
          "Flag to disable jvmstat instrumentation for performance testing "\
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2391
          "and problem isolation purposes")                                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2392
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2393
  product(bool, PerfDataSaveToFile, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2394
          "Save PerfData memory to hsperfdata_<pid> file on exit")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2395
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2396
  product(ccstr, PerfDataSaveFile, NULL,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2397
          "Save PerfData memory to the specified absolute pathname. "       \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2398
          "The string %p in the file name (if present) "                    \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2399
          "will be replaced by pid")                                        \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2400
                                                                            \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2401
  product(intx, PerfDataSamplingInterval, 50,                               \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2402
          "Data sampling interval (in milliseconds)")                       \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2403
          range(PeriodicTask::min_interval, max_jint)                       \
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2404
          constraint(PerfDataSamplingIntervalFunc, AfterErgo)               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2405
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2406
  product(bool, PerfDisableSharedMem, false,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2407
          "Store performance data in standard memory")                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2408
                                                                            \
35940
b6335181f2c6 8144916: Decrease PerfDataMemorySize back to 32K
redestad
parents: 35918
diff changeset
  2409
  product(intx, PerfDataMemorySize, 32*K,                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2410
          "Size of performance data memory region. Will be rounded "        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2411
          "up to a multiple of the native os page size.")                   \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2412
          range(128, 32*64*K)                                               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2413
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2414
  product(intx, PerfMaxStringConstLength, 1024,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2415
          "Maximum PerfStringConstant string length before truncation")     \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2416
          range(32, 32*K)                                                   \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2417
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2418
  product(bool, PerfAllowAtExitRegistration, false,                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2419
          "Allow registration of atexit() methods")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2420
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2421
  product(bool, PerfBypassFileSystemCheck, false,                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2422
          "Bypass Win32 file system criteria checks (Windows Only)")        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2423
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2424
  product(intx, UnguardOnExecutionViolation, 0,                             \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2425
          "Unguard page and retry on no-execute fault (Win32 only) "        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2426
          "0=off, 1=conservative, 2=aggressive")                            \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2427
          range(0, 2)                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2428
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2429
  /* Serviceability Support */                                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2430
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2431
  product(bool, ManagementServer, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2432
          "Create JMX Management Server")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2433
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2434
  product(bool, DisableAttachMechanism, false,                              \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2435
          "Disable mechanism that allows tools to attach to this VM")       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2436
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2437
  product(bool, StartAttachListener, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2438
          "Always start Attach Listener at VM startup")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2439
                                                                            \
44993
f61bcd80ec1f 8178380: Module system implementation refresh (5/2017)
alanb
parents: 44522
diff changeset
  2440
  product(bool, EnableDynamicAgentLoading, true,                            \
f61bcd80ec1f 8178380: Module system implementation refresh (5/2017)
alanb
parents: 44522
diff changeset
  2441
          "Allow tools to load agents with the attach mechanism")           \
f61bcd80ec1f 8178380: Module system implementation refresh (5/2017)
alanb
parents: 44522
diff changeset
  2442
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2443
  manageable(bool, PrintConcurrentLocks, false,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2444
          "Print java.util.concurrent locks in thread dump")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2445
                                                                            \
8124
70ed6d8368bc 7019718: make error reporting flags product instead of diagnostic
kamg
parents: 8119
diff changeset
  2446
  product(bool, TransmitErrorReport, false,                                 \
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 8107
diff changeset
  2447
          "Enable error report transmission on erroneous termination")      \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 8107
diff changeset
  2448
                                                                            \
8124
70ed6d8368bc 7019718: make error reporting flags product instead of diagnostic
kamg
parents: 8119
diff changeset
  2449
  product(ccstr, ErrorReportServer, NULL,                                   \
8114
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 8107
diff changeset
  2450
          "Override built-in error report server address")                  \
340b5b8b544b 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 8107
diff changeset
  2451
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2452
  /* Shared spaces */                                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2453
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2454
  product(bool, UseSharedSpaces, true,                                      \
15101
58d43bf04c45 8005076: Creating a CDS archive with one alignment and running another causes a crash.
hseigel
parents: 14835
diff changeset
  2455
          "Use shared spaces for metadata")                                 \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2456
                                                                            \
27025
f4805f778f16 8044269: Analysis of archive files.
jiangli
parents: 27024
diff changeset
  2457
  product(bool, VerifySharedSpaces, false,                                  \
f4805f778f16 8044269: Analysis of archive files.
jiangli
parents: 27024
diff changeset
  2458
          "Verify shared spaces (false for default archive, true for "      \
f4805f778f16 8044269: Analysis of archive files.
jiangli
parents: 27024
diff changeset
  2459
          "archive specified by -XX:SharedArchiveFile)")                    \
f4805f778f16 8044269: Analysis of archive files.
jiangli
parents: 27024
diff changeset
  2460
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2461
  product(bool, RequireSharedSpaces, false,                                 \
15101
58d43bf04c45 8005076: Creating a CDS archive with one alignment and running another causes a crash.
hseigel
parents: 14835
diff changeset
  2462
          "Require shared spaces for metadata")                             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2463
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2464
  product(bool, DumpSharedSpaces, false,                                    \
20404
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2465
          "Special mode: JVM reads a class list, loads classes, builds "    \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2466
          "shared spaces, and dumps the shared spaces to a file to be "     \
2e17d4cd1fc2 8010506: Typos and errors in descriptions of vm options in globals.hpp
tamao
parents: 20065
diff changeset
  2467
          "used in future JVM runs")                                        \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2468
                                                                            \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2469
  product(bool, PrintSharedArchiveAndExit, false,                           \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2470
          "Print shared archive file contents")                             \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2471
                                                                            \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2472
  product(bool, PrintSharedDictionary, false,                               \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2473
          "If PrintSharedArchiveAndExit is true, also print the shared "    \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2474
          "dictionary")                                                     \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2475
                                                                            \
34242
e530decd7c63 8138983: Runtime: implement ranges for Shared*** flags
gziemski
parents: 34231
diff changeset
  2476
  product(size_t, SharedBaseAddress, LP64_ONLY(32*G)                        \
16430
882cddc35bec 8008217: CDS: Class data sharing limits the malloc heap on Solaris
coleenp
parents: 16428
diff changeset
  2477
          NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)),                           \
882cddc35bec 8008217: CDS: Class data sharing limits the malloc heap on Solaris
coleenp
parents: 16428
diff changeset
  2478
          "Address to allocate shared memory region for class data")        \
34242
e530decd7c63 8138983: Runtime: implement ranges for Shared*** flags
gziemski
parents: 34231
diff changeset
  2479
          range(0, SIZE_MAX)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2480
                                                                            \
48138
78b2ecdd3c4b 8188791: Move AppCDS from closed repo to open repo
iklam
parents: 48118
diff changeset
  2481
  product(ccstr, SharedArchiveConfigFile, NULL,                             \
78b2ecdd3c4b 8188791: Move AppCDS from closed repo to open repo
iklam
parents: 48118
diff changeset
  2482
          "Data to add to the CDS archive file")                            \
78b2ecdd3c4b 8188791: Move AppCDS from closed repo to open repo
iklam
parents: 48118
diff changeset
  2483
                                                                            \
28363
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28174
diff changeset
  2484
  product(uintx, SharedSymbolTableBucketSize, 4,                            \
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28174
diff changeset
  2485
          "Average number of symbols per bucket in shared table")           \
33222
e0a340f4ab6e 8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents: 33208
diff changeset
  2486
          range(2, 246)                                                     \
28363
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28174
diff changeset
  2487
                                                                            \
47776
52e85a3fa0ab 8187347: Do not abort CDS archive creation when some classes are unverifiable
ccheung
parents: 47774
diff changeset
  2488
  diagnostic(bool, IgnoreUnverifiableClassesDuringDump, true,              \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2489
          "Do not quit -Xshare:dump even if we encounter unverifiable "     \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2490
          "classes. Just exclude them from the shared dictionary.")         \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2491
                                                                            \
9980
a330de5dea17 7052219: JSR 292: Crash in ~BufferBlob::MethodHandles adapters
never
parents: 9968
diff changeset
  2492
  diagnostic(bool, PrintMethodHandleStubs, false,                           \
a330de5dea17 7052219: JSR 292: Crash in ~BufferBlob::MethodHandles adapters
never
parents: 9968
diff changeset
  2493
          "Print generated stub code for method handles")                   \
a330de5dea17 7052219: JSR 292: Crash in ~BufferBlob::MethodHandles adapters
never
parents: 9968
diff changeset
  2494
                                                                            \
2534
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2352
diff changeset
  2495
  develop(bool, TraceMethodHandles, false,                                  \
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2352
diff changeset
  2496
          "trace internal method handle operations")                        \
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2352
diff changeset
  2497
                                                                            \
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2352
diff changeset
  2498
  diagnostic(bool, VerifyMethodHandles, trueInDebug,                        \
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2352
diff changeset
  2499
          "perform extra checks when constructing method handles")          \
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 2352
diff changeset
  2500
                                                                            \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13197
diff changeset
  2501
  diagnostic(bool, ShowHiddenFrames, false,                                 \
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 13197
diff changeset
  2502
          "show method handle implementation frames (usually hidden)")      \
9946
b3d5b50e2289 7045513: JSR 292 inlining causes crashes in methodHandleWalk.cpp
never
parents: 9942
diff changeset
  2503
                                                                            \
4644
2b1a1bc98168 6912065: final fields in objects need to support inlining optimizations for JSR 292
jrose
parents: 4586
diff changeset
  2504
  experimental(bool, TrustFinalNonStaticFields, false,                      \
2b1a1bc98168 6912065: final fields in objects need to support inlining optimizations for JSR 292
jrose
parents: 4586
diff changeset
  2505
          "trust final non-static declarations for constant folding")       \
2b1a1bc98168 6912065: final fields in objects need to support inlining optimizations for JSR 292
jrose
parents: 4586
diff changeset
  2506
                                                                            \
23192
f6a1c8866065 8035828: Turn on @Stable support in VM
vlivanov
parents: 23191
diff changeset
  2507
  diagnostic(bool, FoldStableValues, true,                                  \
f6a1c8866065 8035828: Turn on @Stable support in VM
vlivanov
parents: 23191
diff changeset
  2508
          "Optimize loads from stable fields (marked w/ @Stable)")          \
19770
7cb9f982ea81 8001107: @Stable annotation for constant folding of lazily evaluated variables
vlivanov
parents: 19704
diff changeset
  2509
                                                                            \
2570
ecc7862946d4 6655646: dynamic languages need dynamically linked call sites
jrose
parents: 2536
diff changeset
  2510
  develop(bool, TraceInvokeDynamic, false,                                  \
ecc7862946d4 6655646: dynamic languages need dynamically linked call sites
jrose
parents: 2536
diff changeset
  2511
          "trace internal invoke dynamic operations")                       \
ecc7862946d4 6655646: dynamic languages need dynamically linked call sites
jrose
parents: 2536
diff changeset
  2512
                                                                            \
48826
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48807
diff changeset
  2513
  diagnostic(int, UseBootstrapCallInfo, 1,                                  \
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48807
diff changeset
  2514
          "0: when resolving InDy or ConDy, force all BSM arguments to be " \
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48807
diff changeset
  2515
          "resolved before the bootstrap method is called; 1: when a BSM "  \
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48807
diff changeset
  2516
          "that may accept a BootstrapCallInfo is detected, use that API "  \
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48807
diff changeset
  2517
          "to pass BSM arguments, which allows the BSM to delay their "     \
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48807
diff changeset
  2518
          "resolution; 2+: stress test the BCI API by calling more BSMs "   \
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48807
diff changeset
  2519
          "via that API, instead of with the eagerly-resolved array.")      \
c4d9d1b08e2e 8186209: Tool support for ConstantDynamic
psandoz
parents: 48807
diff changeset
  2520
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2521
  diagnostic(bool, PauseAtStartup,      false,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2522
          "Causes the VM to pause at startup time and wait for the pause "  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2523
          "file to be removed (default: ./vm.paused.<pid>)")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2524
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2525
  diagnostic(ccstr, PauseAtStartupFile, NULL,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2526
          "The file to create and for whose removal to await when pausing " \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2527
          "at startup. (default: ./vm.paused.<pid>)")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2528
                                                                            \
8476
7e34c2d4cf9b 7022037: Pause when exiting if debugger is attached on windows
sla
parents: 8335
diff changeset
  2529
  diagnostic(bool, PauseAtExit, false,                                      \
7e34c2d4cf9b 7022037: Pause when exiting if debugger is attached on windows
sla
parents: 8335
diff changeset
  2530
          "Pause and wait for keypress on exit if a debugger is attached")  \
7e34c2d4cf9b 7022037: Pause when exiting if debugger is attached on windows
sla
parents: 8335
diff changeset
  2531
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2532
  product(bool, ExtendedDTraceProbes,    false,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2533
          "Enable performance-impacting dtrace probes")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2534
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2535
  product(bool, DTraceMethodProbes, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2536
          "Enable dtrace probes for method-entry and method-exit")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2537
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2538
  product(bool, DTraceAllocProbes, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2539
          "Enable dtrace probes for object allocation")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2540
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2541
  product(bool, DTraceMonitorProbes, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2542
          "Enable dtrace probes for monitor events")                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2543
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2544
  product(bool, RelaxAccessControlCheck, false,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2545
          "Relax the access control checks in the verifier")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2546
                                                                            \
14487
9a40ad461ee9 7122219: Passed StringTableSize value not verified
hseigel
parents: 14386
diff changeset
  2547
  product(uintx, StringTableSize, defaultStringTableSize,                   \
8727
1642a45f024f 6962930: make the string table size configurable
jcoomes
parents: 8725
diff changeset
  2548
          "Number of buckets in the interned String table")                 \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2549
          range(minimumStringTableSize, 111*defaultStringTableSize)         \
8727
1642a45f024f 6962930: make the string table size configurable
jcoomes
parents: 8725
diff changeset
  2550
                                                                            \
20393
0675c0224a5a 8019375: Internal symbol table size should be tunable.
kevinw
parents: 20292
diff changeset
  2551
  experimental(uintx, SymbolTableSize, defaultSymbolTableSize,              \
0675c0224a5a 8019375: Internal symbol table size should be tunable.
kevinw
parents: 20292
diff changeset
  2552
          "Number of buckets in the JVM internal Symbol table")             \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2553
          range(minimumSymbolTableSize, 111*defaultSymbolTableSize)         \
20393
0675c0224a5a 8019375: Internal symbol table size should be tunable.
kevinw
parents: 20292
diff changeset
  2554
                                                                            \
23472
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2555
  product(bool, UseStringDeduplication, false,                              \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2556
          "Use string deduplication")                                       \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2557
                                                                            \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2558
  product(uintx, StringDeduplicationAgeThreshold, 3,                        \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2559
          "A string must reach this age (or be promoted to an old region) " \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2560
          "to be considered for deduplication")                             \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2561
          range(1, markOopDesc::max_age)                                    \
23472
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2562
                                                                            \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2563
  diagnostic(bool, StringDeduplicationResizeALot, false,                    \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2564
          "Force table resize every time the table is scanned")             \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2565
                                                                            \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2566
  diagnostic(bool, StringDeduplicationRehashALot, false,                    \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2567
          "Force table rehash every time the table is scanned")             \
35e93890ed88 8029075: String deduplication in G1
pliden
parents: 23214
diff changeset
  2568
                                                                            \
12095
cc3d6f08a4c4 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 11789
diff changeset
  2569
  diagnostic(bool, WhiteBoxAPI, false,                                      \
12630
ddf6ee008138 7166894: Add gc cause to GC logging for all collectors
brutisso
parents: 12263
diff changeset
  2570
          "Enable internal testing APIs")                                   \
ddf6ee008138 7166894: Add gc cause to GC logging for all collectors
brutisso
parents: 12263
diff changeset
  2571
                                                                            \
25905
04a3d83cc752 8031323: Optionally align objects copied to survivor spaces
jmasa
parents: 25630
diff changeset
  2572
  experimental(intx, SurvivorAlignmentInBytes, 0,                           \
04a3d83cc752 8031323: Optionally align objects copied to survivor spaces
jmasa
parents: 25630
diff changeset
  2573
           "Default survivor space alignment in bytes")                     \
31995
aa4049b4184a 8130459: Add additional validation after heap creation
sangheki
parents: 31989
diff changeset
  2574
           constraint(SurvivorAlignmentInBytesConstraintFunc,AfterErgo)     \
25905
04a3d83cc752 8031323: Optionally align objects copied to survivor spaces
jmasa
parents: 25630
diff changeset
  2575
                                                                            \
16682
4e30a46f6b76 7197666: java -d64 -version core dumps in a box with lots of memory
brutisso
parents: 16680
diff changeset
  2576
  product(bool , AllowNonVirtualCalls, false,                               \
4e30a46f6b76 7197666: java -d64 -version core dumps in a box with lots of memory
brutisso
parents: 16680
diff changeset
  2577
          "Obey the ACC_SUPER flag and allow invokenonvirtual calls")       \
4e30a46f6b76 7197666: java -d64 -version core dumps in a box with lots of memory
brutisso
parents: 16680
diff changeset
  2578
                                                                            \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2579
  product(ccstr, DumpLoadedClassList, NULL,                                 \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2580
          "Dump the names all loaded classes, that could be stored into "   \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2581
          "the CDS archive, in the specified file")                         \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2582
                                                                            \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2583
  product(ccstr, SharedClassListFile, NULL,                                 \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2584
          "Override the default CDS class list")                            \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2585
                                                                            \
49931
840e26123940 8193213: Make the UseAppCDS option obsolete.
jiangli
parents: 49902
diff changeset
  2586
  product(ccstr, SharedArchiveFile, NULL,                                   \
17375
e9554fd82263 8014138: Add VM option to facilitate the writing of CDS tests
hseigel
parents: 17374
diff changeset
  2587
          "Override the default location of the CDS archive file")          \
e9554fd82263 8014138: Add VM option to facilitate the writing of CDS tests
hseigel
parents: 17374
diff changeset
  2588
                                                                            \
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2589
  product(ccstr, ExtraSharedClassListFile, NULL,                            \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2590
          "Extra classlist for building the CDS archive file")              \
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 25950
diff changeset
  2591
                                                                            \
25959
6c11a6272b60 8054823: Add size_t as a valid VM flag type
stefank
parents: 25908
diff changeset
  2592
  experimental(size_t, ArrayAllocatorMallocLimit,                           \
6c11a6272b60 8054823: Add size_t as a valid VM flag type
stefank
parents: 25908
diff changeset
  2593
          SOLARIS_ONLY(64*K) NOT_SOLARIS((size_t)-1),                       \
16682
4e30a46f6b76 7197666: java -d64 -version core dumps in a box with lots of memory
brutisso
parents: 16680
diff changeset
  2594
          "Allocation less than this value will be allocated "              \
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17617
diff changeset
  2595
          "using malloc. Larger allocations will use mmap.")                \
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17617
diff changeset
  2596
                                                                            \
23189
27cf1316709b 8033380: Experimental VM flag to enforce access atomicity
shade
parents: 22916
diff changeset
  2597
  experimental(bool, AlwaysAtomicAccesses, false,                           \
27cf1316709b 8033380: Experimental VM flag to enforce access atomicity
shade
parents: 22916
diff changeset
  2598
          "Accesses to all variables should always be atomic")              \
27cf1316709b 8033380: Experimental VM flag to enforce access atomicity
shade
parents: 22916
diff changeset
  2599
                                                                            \
30209
8ea30dc99369 8026049: (bf) Intrinsify ByteBuffer.put{Int, Double, Float, ...} methods
aph
parents: 29698
diff changeset
  2600
  diagnostic(bool, UseUnalignedAccesses, false,                             \
33606
af4ec8a4635b 8139891: Prepare Unsafe for true encapsulation
chegar
parents: 33592
diff changeset
  2601
          "Use unaligned memory accesses in Unsafe")                        \
30305
b92a97e1e9cb 8068945: Use RBP register as proper frame pointer in JIT compiled code on x86
zmajo
parents: 30302
diff changeset
  2602
                                                                            \
b92a97e1e9cb 8068945: Use RBP register as proper frame pointer in JIT compiled code on x86
zmajo
parents: 30302
diff changeset
  2603
  product_pd(bool, PreserveFramePointer,                                    \
b92a97e1e9cb 8068945: Use RBP register as proper frame pointer in JIT compiled code on x86
zmajo
parents: 30302
diff changeset
  2604
             "Use the FP register for holding the frame pointer "           \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31515
diff changeset
  2605
             "and not as a general purpose register.")                      \
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31515
diff changeset
  2606
                                                                            \
31862
8673bd4db4b1 8131326: Enable CheckIntrinsics in all types of builds
zmajo
parents: 31635
diff changeset
  2607
  diagnostic(bool, CheckIntrinsics, true,                                   \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31515
diff changeset
  2608
             "When a class C is loaded, check that "                        \
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31515
diff changeset
  2609
             "(1) all intrinsics defined by the VM for class C are present "\
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31515
diff changeset
  2610
             "in the loaded class file and are marked with the "            \
31862
8673bd4db4b1 8131326: Enable CheckIntrinsics in all types of builds
zmajo
parents: 31635
diff changeset
  2611
             "@HotSpotIntrinsicCandidate annotation, that "                 \
31587
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31515
diff changeset
  2612
             "(2) there is an intrinsic registered for all loaded methods " \
e48945b7849c 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
zmajo
parents: 31515
diff changeset
  2613
             "that are annotated with the @HotSpotIntrinsicCandidate "      \
31862
8673bd4db4b1 8131326: Enable CheckIntrinsics in all types of builds
zmajo
parents: 31635
diff changeset
  2614
             "annotation, and that "                                        \
8673bd4db4b1 8131326: Enable CheckIntrinsics in all types of builds
zmajo
parents: 31635
diff changeset
  2615
             "(3) no orphan methods exist for class C (i.e., methods for "  \
8673bd4db4b1 8131326: Enable CheckIntrinsics in all types of builds
zmajo
parents: 31635
diff changeset
  2616
             "which the VM declares an intrinsic but that are not declared "\
8673bd4db4b1 8131326: Enable CheckIntrinsics in all types of builds
zmajo
parents: 31635
diff changeset
  2617
             "in the loaded class C. "                                      \
33451
0712796e4039 8137167: JEP165: Compiler Control: Implementation task
neliasso
parents: 33198
diff changeset
  2618
             "Check (3) is available only in debug builds.")                \
0712796e4039 8137167: JEP165: Compiler Control: Implementation task
neliasso
parents: 33198
diff changeset
  2619
                                                                            \
39117
59fa99a45873 8150900: Implement diagnostic_pd
csahu
parents: 38289
diff changeset
  2620
  diagnostic_pd(intx, InitArrayShortSize,                                   \
36554
a7eb9ee4680c 8146801: Allocating short arrays of non-constant size is slow
shade
parents: 36186
diff changeset
  2621
          "Threshold small size (in bytes) for clearing arrays. "           \
a7eb9ee4680c 8146801: Allocating short arrays of non-constant size is slow
shade
parents: 36186
diff changeset
  2622
          "Anything this size or smaller may get converted to discrete "    \
a7eb9ee4680c 8146801: Allocating short arrays of non-constant size is slow
shade
parents: 36186
diff changeset
  2623
          "scalar stores.")                                                 \
a7eb9ee4680c 8146801: Allocating short arrays of non-constant size is slow
shade
parents: 36186
diff changeset
  2624
          range(0, max_intx)                                                \
a7eb9ee4680c 8146801: Allocating short arrays of non-constant size is slow
shade
parents: 36186
diff changeset
  2625
          constraint(InitArrayShortSizeConstraintFunc, AfterErgo)           \
a7eb9ee4680c 8146801: Allocating short arrays of non-constant size is slow
shade
parents: 36186
diff changeset
  2626
                                                                            \
33451
0712796e4039 8137167: JEP165: Compiler Control: Implementation task
neliasso
parents: 33198
diff changeset
  2627
  diagnostic(bool, CompilerDirectivesIgnoreCompileCommands, false,          \
0712796e4039 8137167: JEP165: Compiler Control: Implementation task
neliasso
parents: 33198
diff changeset
  2628
             "Disable backwards compatibility for compile commands.")       \
0712796e4039 8137167: JEP165: Compiler Control: Implementation task
neliasso
parents: 33198
diff changeset
  2629
                                                                            \
35129
8b93709bf4e5 8144246: adding lots of directives via jcmd may produce OOM crash
neliasso
parents: 35110
diff changeset
  2630
  diagnostic(bool, CompilerDirectivesPrint, false,                          \
8b93709bf4e5 8144246: adding lots of directives via jcmd may produce OOM crash
neliasso
parents: 35110
diff changeset
  2631
             "Print compiler directives on installation.")                  \
8b93709bf4e5 8144246: adding lots of directives via jcmd may produce OOM crash
neliasso
parents: 35110
diff changeset
  2632
  diagnostic(int,  CompilerDirectivesLimit, 50,                             \
48153
cfa2c43e58c2 8190308: Implementation: JEP 316: Heap Allocation on Alternative Memory Devices
kkharbas
parents: 48147
diff changeset
  2633
             "Limit on number of compiler directives.")                     \
cfa2c43e58c2 8190308: Implementation: JEP 316: Heap Allocation on Alternative Memory Devices
kkharbas
parents: 48147
diff changeset
  2634
                                                                            \
cfa2c43e58c2 8190308: Implementation: JEP 316: Heap Allocation on Alternative Memory Devices
kkharbas
parents: 48147
diff changeset
  2635
  product(ccstr, AllocateHeapAt, NULL,                                      \
cfa2c43e58c2 8190308: Implementation: JEP 316: Heap Allocation on Alternative Memory Devices
kkharbas
parents: 48147
diff changeset
  2636
          "Path to the directoy where a temporary file will be created "    \
49405
e88237c5ac83 8199656: Make slow metaspace verifications switchable in debug builds
stuefe
parents: 49381
diff changeset
  2637
          "to use as the backing store for Java Heap.")                     \
e88237c5ac83 8199656: Make slow metaspace verifications switchable in debug builds
stuefe
parents: 49381
diff changeset
  2638
                                                                            \
e88237c5ac83 8199656: Make slow metaspace verifications switchable in debug builds
stuefe
parents: 49381
diff changeset
  2639
  develop(bool, VerifyMetaspace, false,                                     \
e88237c5ac83 8199656: Make slow metaspace verifications switchable in debug builds
stuefe
parents: 49381
diff changeset
  2640
          "Verify metaspace on chunk movements.")                           \
e88237c5ac83 8199656: Make slow metaspace verifications switchable in debug builds
stuefe
parents: 49381
diff changeset
  2641
                                                                            \
49653
a569cb4425f3 8191101: Show register content in hs-err file on assert
stuefe
parents: 49651
diff changeset
  2642
  diagnostic(bool, ShowRegistersOnAssert, false,                            \
a569cb4425f3 8191101: Show register content in hs-err file on assert
stuefe
parents: 49651
diff changeset
  2643
          "On internal errors, include registers in error report.")         \
a569cb4425f3 8191101: Show register content in hs-err file on assert
stuefe
parents: 49651
diff changeset
  2644
                                                                            \
49877
d84f06a0cae1 8200303: C2 should leverage profiling for lookupswitch/tableswitch
roland
parents: 49860
diff changeset
  2645
  experimental(bool, UseSwitchProfiling, true,                              \
d84f06a0cae1 8200303: C2 should leverage profiling for lookupswitch/tableswitch
roland
parents: 49860
diff changeset
  2646
          "leverage profiling for table/lookup switch")                     \
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2647
                                                                            \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2648
  JFR_ONLY(product(bool, FlightRecorder, false,                             \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2649
          "Enable Flight Recorder"))                                        \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2650
                                                                            \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2651
  JFR_ONLY(product(ccstr, FlightRecorderOptions, NULL,                      \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2652
          "Flight Recorder options"))                                       \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2653
                                                                            \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2654
  JFR_ONLY(product(ccstr, StartFlightRecording, NULL,                       \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2655
          "Start flight recording with options"))                           \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2656
                                                                            \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2657
  experimental(bool, UseFastUnorderedTimeStamps, false,                     \
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50083
diff changeset
  2658
          "Use platform unstable time where supported for timestamps only")
49405
e88237c5ac83 8199656: Make slow metaspace verifications switchable in debug builds
stuefe
parents: 49381
diff changeset
  2659
49715
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2660
#define VM_FLAGS(develop,                                                   \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2661
                 develop_pd,                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2662
                 product,                                                   \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2663
                 product_pd,                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2664
                 diagnostic,                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2665
                 diagnostic_pd,                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2666
                 experimental,                                              \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2667
                 notproduct,                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2668
                 manageable,                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2669
                 product_rw,                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2670
                 lp64_product,                                              \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2671
                 range,                                                     \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2672
                 constraint,                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2673
                 writeable)                                                 \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2674
                                                                            \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2675
  RUNTIME_FLAGS(                                                            \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2676
    develop,                                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2677
    develop_pd,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2678
    product,                                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2679
    product_pd,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2680
    diagnostic,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2681
    diagnostic_pd,                                                          \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2682
    experimental,                                                           \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2683
    notproduct,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2684
    manageable,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2685
    product_rw,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2686
    lp64_product,                                                           \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2687
    range,                                                                  \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2688
    constraint,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2689
    writeable)                                                              \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2690
                                                                            \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2691
  GC_FLAGS(                                                                 \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2692
    develop,                                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2693
    develop_pd,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2694
    product,                                                                \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2695
    product_pd,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2696
    diagnostic,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2697
    diagnostic_pd,                                                          \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2698
    experimental,                                                           \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2699
    notproduct,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2700
    manageable,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2701
    product_rw,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2702
    lp64_product,                                                           \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2703
    range,                                                                  \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2704
    constraint,                                                             \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2705
    writeable)                                                              \
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 17617
diff changeset
  2706
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2707
/*
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2708
 *  Macros for factoring of globals
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2709
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2710
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2711
// Interface macros
20288
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2712
#define DECLARE_PRODUCT_FLAG(type, name, value, doc)      extern "C" type name;
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2713
#define DECLARE_PD_PRODUCT_FLAG(type, name, doc)          extern "C" type name;
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2714
#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc)   extern "C" type name;
39117
59fa99a45873 8150900: Implement diagnostic_pd
csahu
parents: 38289
diff changeset
  2715
#define DECLARE_PD_DIAGNOSTIC_FLAG(type, name, doc)       extern "C" type name;
1382
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
  2716
#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
20288
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2717
#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc)   extern "C" type name;
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2718
#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc)   extern "C" type name;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2719
#ifdef PRODUCT
34174
4db2fb26dc49 8140424: don't prefix developer and notproduct flag variables with CONST_ in product builds
twisti
parents: 33637
diff changeset
  2720
#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)    const type name = value;
4db2fb26dc49 8140424: don't prefix developer and notproduct flag variables with CONST_ in product builds
twisti
parents: 33637
diff changeset
  2721
#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)        const type name = pd_##name;
4db2fb26dc49 8140424: don't prefix developer and notproduct flag variables with CONST_ in product builds
twisti
parents: 33637
diff changeset
  2722
#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)   const type name = value;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2723
#else
20288
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2724
#define DECLARE_DEVELOPER_FLAG(type, name, value, doc)    extern "C" type name;
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2725
#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc)        extern "C" type name;
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2726
#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc)   extern "C" type name;
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2727
#endif // PRODUCT
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
  2728
// Special LP64 flags, product only needed for now.
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
  2729
#ifdef _LP64
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
  2730
#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
  2731
#else
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
  2732
#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value;
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
  2733
#endif // _LP64
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2734
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2735
// Implementation macros
20288
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2736
#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc)      type name = value;
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2737
#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc)          type name = pd_##name;
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2738
#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc)   type name = value;
39117
59fa99a45873 8150900: Implement diagnostic_pd
csahu
parents: 38289
diff changeset
  2739
#define MATERIALIZE_PD_DIAGNOSTIC_FLAG(type, name, doc)       type name = pd_##name;
1382
fa3de4068282 6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents: 1380
diff changeset
  2740
#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value;
20288
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2741
#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc)   type name = value;
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2742
#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc)   type name = value;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2743
#ifdef PRODUCT
34174
4db2fb26dc49 8140424: don't prefix developer and notproduct flag variables with CONST_ in product builds
twisti
parents: 33637
diff changeset
  2744
#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc)
4db2fb26dc49 8140424: don't prefix developer and notproduct flag variables with CONST_ in product builds
twisti
parents: 33637
diff changeset
  2745
#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)
4db2fb26dc49 8140424: don't prefix developer and notproduct flag variables with CONST_ in product builds
twisti
parents: 33637
diff changeset
  2746
#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2747
#else
20288
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2748
#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc)    type name = value;
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2749
#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)        type name = pd_##name;
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2750
#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)   type name = value;
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2751
#endif // PRODUCT
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
  2752
#ifdef _LP64
20288
e2d549f40de9 8024545: make develop and notproduct flag values available in product builds
twisti
parents: 20022
diff changeset
  2753
#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value;
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
  2754
#else
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
  2755
#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 356
diff changeset
  2756
#endif // _LP64
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2757
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2758
// Only materialize src code for range checking when required, ignore otherwise
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2759
#define IGNORE_RANGE(a, b)
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2760
// Only materialize src code for contraint checking when required, ignore otherwise
31995
aa4049b4184a 8130459: Add additional validation after heap creation
sangheki
parents: 31989
diff changeset
  2761
#define IGNORE_CONSTRAINT(func,type)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
  2762
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
  2763
#define IGNORE_WRITEABLE(type)
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
  2764
49715
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2765
VM_FLAGS(DECLARE_DEVELOPER_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2766
         DECLARE_PD_DEVELOPER_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2767
         DECLARE_PRODUCT_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2768
         DECLARE_PD_PRODUCT_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2769
         DECLARE_DIAGNOSTIC_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2770
         DECLARE_PD_DIAGNOSTIC_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2771
         DECLARE_EXPERIMENTAL_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2772
         DECLARE_NOTPRODUCT_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2773
         DECLARE_MANAGEABLE_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2774
         DECLARE_PRODUCT_RW_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2775
         DECLARE_LP64_PRODUCT_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2776
         IGNORE_RANGE, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2777
         IGNORE_CONSTRAINT, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49653
diff changeset
  2778
         IGNORE_WRITEABLE)
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6987
diff changeset
  2779
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2780
RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2781
                 DECLARE_PD_DEVELOPER_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2782
                 DECLARE_PRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2783
                 DECLARE_PD_PRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2784
                 DECLARE_DIAGNOSTIC_FLAG, \
39117
59fa99a45873 8150900: Implement diagnostic_pd
csahu
parents: 38289
diff changeset
  2785
                 DECLARE_PD_DIAGNOSTIC_FLAG, \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2786
                 DECLARE_NOTPRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2787
                 IGNORE_RANGE, \
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
  2788
                 IGNORE_CONSTRAINT, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
  2789
                 IGNORE_WRITEABLE)
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2790
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2791
ARCH_FLAGS(DECLARE_DEVELOPER_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2792
           DECLARE_PRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2793
           DECLARE_DIAGNOSTIC_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2794
           DECLARE_EXPERIMENTAL_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2795
           DECLARE_NOTPRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31330
diff changeset
  2796
           IGNORE_RANGE, \
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
  2797
           IGNORE_CONSTRAINT, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 38260
diff changeset
  2798
           IGNORE_WRITEABLE)
13521
97a23be06f4e 6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents: 13479
diff changeset
  2799
11183
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents: 11167
diff changeset
  2800
// Extensions
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents: 11167
diff changeset
  2801
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents: 11167
diff changeset
  2802
#include "runtime/globals_ext.hpp"
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents: 11167
diff changeset
  2803
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6987
diff changeset
  2804
#endif // SHARE_VM_RUNTIME_GLOBALS_HPP