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