hotspot/src/share/vm/c1/c1_globals.hpp
author gziemski
Tue, 10 May 2016 12:10:21 -0500
changeset 38273 2634194d7555
parent 37268 b2c690909eea
child 38289 96e35aced4ef
permissions -rw-r--r--
8073500: Prevent certain commercial flags from being changed at runtime Summary: Implement new writeable mechanism for flag control Reviewed-by: coleenp, iklam
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
     2
 * Copyright (c) 2000, 2016, 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: 5353
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5353
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: 5353
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    25
#ifndef SHARE_VM_C1_C1_GLOBALS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    26
#define SHARE_VM_C1_C1_GLOBALS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    27
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    28
#include "runtime/globals.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    29
#ifdef TARGET_ARCH_x86
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    30
# include "c1_globals_x86.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    31
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    32
#ifdef TARGET_ARCH_sparc
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    33
# include "c1_globals_sparc.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    34
#endif
8107
78e5bd944384 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 7397
diff changeset
    35
#ifdef TARGET_ARCH_arm
78e5bd944384 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 7397
diff changeset
    36
# include "c1_globals_arm.hpp"
78e5bd944384 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 7397
diff changeset
    37
#endif
78e5bd944384 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 7397
diff changeset
    38
#ifdef TARGET_ARCH_ppc
78e5bd944384 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 7397
diff changeset
    39
# include "c1_globals_ppc.hpp"
78e5bd944384 7016023: Enable building ARM and PPC from src/closed repository
bobv
parents: 7397
diff changeset
    40
#endif
29180
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 26798
diff changeset
    41
#ifdef TARGET_ARCH_aarch64
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 26798
diff changeset
    42
# include "c1_globals_aarch64.hpp"
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 26798
diff changeset
    43
#endif
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    44
#ifdef TARGET_OS_FAMILY_linux
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    45
# include "c1_globals_linux.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    46
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    47
#ifdef TARGET_OS_FAMILY_solaris
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    48
# include "c1_globals_solaris.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    49
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    50
#ifdef TARGET_OS_FAMILY_windows
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    51
# include "c1_globals_windows.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    52
#endif
22827
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 16611
diff changeset
    53
#ifdef TARGET_OS_FAMILY_aix
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 16611
diff changeset
    54
# include "c1_globals_aix.hpp"
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 16611
diff changeset
    55
#endif
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 10505
diff changeset
    56
#ifdef TARGET_OS_FAMILY_bsd
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 10505
diff changeset
    57
# include "c1_globals_bsd.hpp"
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 10505
diff changeset
    58
#endif
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
    59
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
// Defines all global flags used by the client compiler.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
//
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
    63
#define C1_FLAGS(develop, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
    64
                 develop_pd, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
    65
                 product, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
    66
                 product_pd, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
    67
                 diagnostic, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
    68
                 notproduct, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
    69
                 range, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
    70
                 constraint, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
    71
                 writeable) \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
  /* Printing */                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
  notproduct(bool, PrintC1Statistics, false,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
          "Print Compiler1 statistics" )                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
  notproduct(bool, PrintInitialBlockList, false,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
          "Print block list of BlockListBuilder")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
  notproduct(bool, PrintCFG, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
          "Print control flow graph after each change")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  notproduct(bool, PrintCFG0, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
          "Print control flow graph after construction")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  notproduct(bool, PrintCFG1, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
          "Print control flow graph after optimizations")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  notproduct(bool, PrintCFG2, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
          "Print control flow graph before code generation")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  notproduct(bool, PrintIRDuringConstruction, false,                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
          "Print IR as it's being constructed (helpful for debugging frontend)")\
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 5547
diff changeset
    95
  notproduct(bool, PrintPhiFunctions, false,                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
          "Print phi functions when they are created and simplified")       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
  notproduct(bool, PrintIR, false,                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
          "Print full intermediate representation after each change")       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
  notproduct(bool, PrintIR0, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
          "Print full intermediate representation after construction")      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
  notproduct(bool, PrintIR1, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
          "Print full intermediate representation after optimizations")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
  notproduct(bool, PrintIR2, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
          "Print full intermediate representation before code generation")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
  notproduct(bool, PrintSimpleStubs, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
          "Print SimpleStubs")                                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
  /* C1 optimizations */                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  develop(bool, UseC1Optimizations, true,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
          "Turn on C1 optimizations")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
  develop(bool, SelectivePhiFunctions, true,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
          "create phi functions at loop headers only when necessary")       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
                                                                            \
7100
6bcf9255d470 6991577: add IfOp optimization to C1
roland
parents: 6745
diff changeset
   121
  develop(bool, OptimizeIfOps, true,                                        \
6bcf9255d470 6991577: add IfOp optimization to C1
roland
parents: 6745
diff changeset
   122
          "Optimize multiple IfOps")                                        \
6bcf9255d470 6991577: add IfOp optimization to C1
roland
parents: 6745
diff changeset
   123
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
  develop(bool, DoCEE, true,                                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
          "Do Conditional Expression Elimination to simplify CFG")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
  develop(bool, PrintCEE, false,                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
          "Print Conditional Expression Elimination")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
  develop(bool, UseLocalValueNumbering, true,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
          "Use Local Value Numbering (embedded in GraphBuilder)")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
  develop(bool, UseGlobalValueNumbering, true,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
          "Use Global Value Numbering (separate phase)")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
                                                                            \
16611
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   136
  product(bool, UseLoopInvariantCodeMotion, true,                           \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   137
          "Simple loop invariant code motion for short loops during GVN")   \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   138
                                                                            \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   139
  develop(bool, TracePredicateFailedTraps, false,                           \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   140
          "trace runtime traps caused by predicate failure")                \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   141
                                                                            \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   142
  develop(bool, StressLoopInvariantCodeMotion, false,                       \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   143
          "stress loop invariant code motion")                              \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   144
                                                                            \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   145
  develop(bool, TraceRangeCheckElimination, false,                          \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   146
          "Trace Range Check Elimination")                                  \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   147
                                                                            \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   148
  develop(bool, AssertRangeCheckElimination, false,                         \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   149
          "Assert Range Check Elimination")                                 \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   150
                                                                            \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   151
  develop(bool, StressRangeCheckElimination, false,                         \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   152
          "stress Range Check Elimination")                                 \
6807a703dd6b 7153771: array bound check elimination for c1
roland
parents: 15200
diff changeset
   153
                                                                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
  develop(bool, PrintValueNumbering, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
          "Print Value Numbering")                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  product(intx, ValueMapInitialSize, 11,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
          "Initial size of a value map")                                    \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 29180
diff changeset
   159
          range(1, NOT_LP64(1*K) LP64_ONLY(32*K))                           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
  product(intx, ValueMapMaxLoopSize, 8,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
          "maximum size of a loop optimized by global value numbering")     \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 31371
diff changeset
   163
          range(0, 128)                                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
  develop(bool, EliminateBlocks, true,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
          "Eliminate unneccessary basic blocks")                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
  develop(bool, PrintBlockElimination, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
          "Print basic block elimination")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
  develop(bool, EliminateNullChecks, true,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
          "Eliminate unneccessary null checks")                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
  develop(bool, PrintNullCheckElimination, false,                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
          "Print null check elimination")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
  develop(bool, EliminateFieldAccess, true,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
          "Optimize field loads and stores")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
  develop(bool, InlineMethodsWithExceptionHandlers, true,                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
          "Inline methods containing exception handlers "                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
          "(NOTE: does not work with current backend)")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
                                                                            \
15200
73bac1831823 8005639: Move InlineSynchronizedMethods flag from develop to product
vladidan
parents: 13728
diff changeset
   184
  product(bool, InlineSynchronizedMethods, true,                            \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
          "Inline synchronized methods")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
                                                                            \
37268
b2c690909eea 8153816: [BACKOUT] Make intrinsics flags diagnostic
bharadwaj
parents: 36834
diff changeset
   187
  develop(bool, InlineNIOCheckIndex, true,                                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
          "Intrinsify java.nio.Buffer.checkIndex")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
  develop(bool, CanonicalizeNodes, true,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
          "Canonicalize graph nodes")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
  develop(bool, PrintCanonicalization, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
          "Print graph node canonicalization")                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
  develop(bool, UseTableRanges, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
          "Faster versions of lookup table using ranges")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
  develop_pd(bool, RoundFPResults,                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
          "Indicates whether rounding is needed for floating point results")\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
  develop(intx, NestedInliningSizeRatio, 90,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
          "Percentage of prev. allowed inline size in recursive inlining")  \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 29180
diff changeset
   204
          range(0, 100)                                                     \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  notproduct(bool, PrintIRWithLIR, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
          "Print IR instructions with generated LIR")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  notproduct(bool, PrintLIRWithAssembly, false,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
          "Show LIR instruction with generated assembly")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
  develop(bool, CommentedAssembly, trueInDebug,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
          "Show extra info in PrintNMethods output")                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
  develop(bool, LIRTracePeephole, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
          "Trace peephole optimizer")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
  develop(bool, LIRTraceExecution, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
          "add LIR code which logs the execution of blocks")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
  product_pd(bool, LIRFillDelaySlots,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
             "fill delays on on SPARC with LIR")                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
  develop_pd(bool, CSEArrayLength,                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
          "Create separate nodes for length in array accesses")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
  develop_pd(bool, TwoOperandLIRForm,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
          "true if LIR requires src1 and dst to match in binary LIR ops")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
  develop(intx, TraceLinearScanLevel, 0,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
          "Debug levels for the linear scan allocator")                     \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 31371
diff changeset
   232
          range(0, 4)                                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
  develop(bool, StressLinearScan, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
          "scramble block order used by LinearScan (stress test)")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
  product(bool, TimeLinearScan, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
          "detailed timing of LinearScan phases")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
  develop(bool, TimeEachLinearScan, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
          "print detailed timing of each LinearScan run")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
  develop(bool, CountLinearScan, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
          "collect statistic counters during LinearScan")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   245
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   246
  /* C1 variable */                                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
  develop(bool, C1Breakpoint, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
          "Sets a breakpoint at entry of each compiled method")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
  develop(bool, ImplicitDiv0Checks, true,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
          "Use implicit division by zero checks")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
  develop(bool, PinAllInstructions, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
          "All instructions are pinned")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
  develop(bool, UseFastNewInstance, true,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
          "Use fast inlined instance allocation")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
  develop(bool, UseFastNewTypeArray, true,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
          "Use fast inlined type array allocation")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
  develop(bool, UseFastNewObjectArray, true,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
          "Use fast inlined object array allocation")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
  develop(bool, UseFastLocking, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   267
          "Use fast inlined locking code")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   268
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
  develop(bool, UseSlowPath, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
          "For debugging: test slow cases by always using them")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
  develop(bool, GenerateArrayStoreCheck, true,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
          "Generates code for array store checks")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
  develop(bool, DeoptC1, true,                                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
          "Use deoptimization in C1")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   277
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   278
  develop(bool, PrintBailouts, false,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   279
          "Print bailout and its reason")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   280
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   281
  develop(bool, TracePatching, false,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
         "Trace patching of field access on uninitialized classes")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   284
  develop(bool, PatchALot, false,                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   285
          "Marks all fields as having unloaded classes")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   286
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   287
  develop(bool, PrintNotLoaded, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   288
          "Prints where classes are not loaded during code generation")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   289
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   290
  develop(bool, PrintLIR, false,                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   291
          "print low-level IR")                                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   292
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   293
  develop(bool, BailoutAfterHIR, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   294
          "bailout of compilation after building of HIR")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   295
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   296
  develop(bool, BailoutAfterLIR, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   297
          "bailout of compilation after building of LIR")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   298
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   299
  develop(bool, BailoutOnExceptionHandlers, false,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   300
          "bailout of compilation for methods with exception handlers")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   302
  develop(bool, InstallMethods, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   303
          "Install methods at the end of successful compilations")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   304
                                                                            \
10505
df3cc194efc5 7085279: C1 overflows code buffer with VerifyOops and CompressedOops
iveresov
parents: 8921
diff changeset
   305
  develop(intx, NMethodSizeLimit, (64*K)*wordSize,                          \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   306
          "Maximum size of a compiled method.")                             \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 31371
diff changeset
   307
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   308
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   309
  develop(bool, TraceFPUStack, false,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   310
          "Trace emulation of the FPU stack (intel only)")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   311
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   312
  develop(bool, TraceFPURegisterUsage, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   313
          "Trace usage of FPU registers at start of blocks (intel only)")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   315
  develop(bool, OptimizeUnsafes, true,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   316
          "Optimize raw unsafe ops")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   317
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   318
  develop(bool, PrintUnsafeOptimization, false,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   319
          "Print optimization of raw unsafe ops")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   321
  develop(intx, InstructionCountCutoff, 37000,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
          "If GraphBuilder adds this many instructions, bails out")         \
33163
9e128b399e48 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents: 31371
diff changeset
   323
          range(0, max_jint)                                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
  develop(bool, ComputeExactFPURegisterUsage, true,                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
          "Compute additional live set for fpu registers to simplify fpu stack merge (Intel only)") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 5547
diff changeset
   328
  product(bool, C1ProfileCalls, true,                                       \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
          "Profile calls when generating code for updating MDOs")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 5547
diff changeset
   331
  product(bool, C1ProfileVirtualCalls, true,                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
          "Profile virtual calls when generating code for updating MDOs")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 5547
diff changeset
   334
  product(bool, C1ProfileInlinedCalls, true,                                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   335
          "Profile inlined calls when generating code for updating MDOs")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 5547
diff changeset
   337
  product(bool, C1ProfileBranches, true,                                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   338
          "Profile branches when generating code for updating MDOs")        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 5547
diff changeset
   340
  product(bool, C1ProfileCheckcasts, true,                                  \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   341
          "Profile checkcasts when generating code for updating MDOs")      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   342
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 5547
diff changeset
   343
  product(bool, C1OptimizeVirtualCallProfiling, true,                       \
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 5547
diff changeset
   344
          "Use CHA and exact type results at call sites when updating MDOs")\
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   345
                                                                            \
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 5547
diff changeset
   346
  product(bool, C1UpdateMethodData, trueInTiered,                           \
19710
2f8ca425504e 7199175: JSR 292: C1 needs patching when invokedynamic/invokehandle call site is not linked
roland
parents: 16611
diff changeset
   347
          "Update MethodData*s in Tier1-generated code")                    \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   348
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
  develop(bool, PrintCFGToFile, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   350
          "print control flow graph to a separate file during compilation") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   351
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   352
// Read default values for c1 globals
489c9b5090e2 Initial load
duke
parents:
diff changeset
   353
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 29180
diff changeset
   354
C1_FLAGS(DECLARE_DEVELOPER_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 29180
diff changeset
   355
         DECLARE_PD_DEVELOPER_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 29180
diff changeset
   356
         DECLARE_PRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 29180
diff changeset
   357
         DECLARE_PD_PRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 29180
diff changeset
   358
         DECLARE_DIAGNOSTIC_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 29180
diff changeset
   359
         DECLARE_NOTPRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 29180
diff changeset
   360
         IGNORE_RANGE, \
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
   361
         IGNORE_CONSTRAINT, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37268
diff changeset
   362
         IGNORE_WRITEABLE)
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
   363
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7100
diff changeset
   364
#endif // SHARE_VM_C1_C1_GLOBALS_HPP