hotspot/src/share/vm/c1/c1_globals.hpp
author ysr
Thu, 05 Jun 2008 15:57:56 -0700
changeset 1374 4c24294029a9
parent 1 489c9b5090e2
child 5353 30f4b75f8005
permissions -rw-r--r--
6711316: Open source the Garbage-First garbage collector Summary: First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
489c9b5090e2 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
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
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
 * have any questions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
// Defines all global flags used by the client compiler.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
#ifndef TIERED
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
  #define NOT_TIERED(x) x
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
  #define NOT_TIERED(x)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
#define C1_FLAGS(develop, develop_pd, product, product_pd, notproduct)      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
  /* Printing */                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
  notproduct(bool, PrintC1Statistics, false,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
          "Print Compiler1 statistics" )                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
  notproduct(bool, PrintInitialBlockList, false,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
          "Print block list of BlockListBuilder")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
  notproduct(bool, PrintCFG, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
          "Print control flow graph after each change")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
  notproduct(bool, PrintCFG0, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
          "Print control flow graph after construction")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
  notproduct(bool, PrintCFG1, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
          "Print control flow graph after optimizations")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
  notproduct(bool, PrintCFG2, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
          "Print control flow graph before code generation")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  notproduct(bool, PrintIRDuringConstruction, false,                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
          "Print IR as it's being constructed (helpful for debugging frontend)")\
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
  notproduct(bool, PrintPhiFunctions, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
          "Print phi functions when they are created and simplified")       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
  notproduct(bool, PrintIR, false,                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
          "Print full intermediate representation after each change")       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
  notproduct(bool, PrintIR0, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
          "Print full intermediate representation after construction")      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
  notproduct(bool, PrintIR1, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
          "Print full intermediate representation after optimizations")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
  notproduct(bool, PrintIR2, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
          "Print full intermediate representation before code generation")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
  notproduct(bool, PrintSimpleStubs, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
          "Print SimpleStubs")                                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
  /* C1 optimizations */                                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
  develop(bool, UseC1Optimizations, true,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
          "Turn on C1 optimizations")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
  develop(bool, SelectivePhiFunctions, true,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
          "create phi functions at loop headers only when necessary")       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  develop(bool, DoCEE, true,                                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
          "Do Conditional Expression Elimination to simplify CFG")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  develop(bool, PrintCEE, false,                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
          "Print Conditional Expression Elimination")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  develop(bool, UseLocalValueNumbering, true,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
          "Use Local Value Numbering (embedded in GraphBuilder)")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  develop(bool, UseGlobalValueNumbering, true,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
          "Use Global Value Numbering (separate phase)")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
  develop(bool, PrintValueNumbering, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
          "Print Value Numbering")                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
  product(intx, ValueMapInitialSize, 11,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
          "Initial size of a value map")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
  product(intx, ValueMapMaxLoopSize, 8,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
          "maximum size of a loop optimized by global value numbering")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
  develop(bool, EliminateBlocks, true,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
          "Eliminate unneccessary basic blocks")                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
  develop(bool, PrintBlockElimination, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
          "Print basic block elimination")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  develop(bool, EliminateNullChecks, true,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
          "Eliminate unneccessary null checks")                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
  develop(bool, PrintNullCheckElimination, false,                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
          "Print null check elimination")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  develop(bool, EliminateFieldAccess, true,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
          "Optimize field loads and stores")                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
  develop(bool, InlineMethodsWithExceptionHandlers, true,                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
          "Inline methods containing exception handlers "                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
          "(NOTE: does not work with current backend)")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
  develop(bool, InlineSynchronizedMethods, true,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
          "Inline synchronized methods")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
  develop(bool, InlineNIOCheckIndex, true,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
          "Intrinsify java.nio.Buffer.checkIndex")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
  develop(bool, CanonicalizeNodes, true,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
          "Canonicalize graph nodes")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
  develop(bool, CanonicalizeExperimental, false,                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
          "Canonicalize graph nodes, experimental code")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
  develop(bool, PrintCanonicalization, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
          "Print graph node canonicalization")                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
  develop(bool, UseTableRanges, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
          "Faster versions of lookup table using ranges")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
  develop(bool, UseFastExceptionHandling, true,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
          "Faster handling of exceptions")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
  develop_pd(bool, RoundFPResults,                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
          "Indicates whether rounding is needed for floating point results")\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
  develop(intx, NestedInliningSizeRatio, 90,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
          "Percentage of prev. allowed inline size in recursive inlining")  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
  notproduct(bool, PrintIRWithLIR, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
          "Print IR instructions with generated LIR")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
  notproduct(bool, PrintLIRWithAssembly, false,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
          "Show LIR instruction with generated assembly")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  develop(bool, CommentedAssembly, trueInDebug,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
          "Show extra info in PrintNMethods output")                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
  develop(bool, LIRTracePeephole, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
          "Trace peephole optimizer")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
  develop(bool, LIRTraceExecution, false,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
          "add LIR code which logs the execution of blocks")                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  product_pd(bool, LIRFillDelaySlots,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
             "fill delays on on SPARC with LIR")                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
  develop_pd(bool, CSEArrayLength,                                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
          "Create separate nodes for length in array accesses")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
  develop_pd(bool, TwoOperandLIRForm,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
          "true if LIR requires src1 and dst to match in binary LIR ops")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
  develop(intx, TraceLinearScanLevel, 0,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
          "Debug levels for the linear scan allocator")                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
  develop(bool, StressLinearScan, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
          "scramble block order used by LinearScan (stress test)")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
  product(bool, TimeLinearScan, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
          "detailed timing of LinearScan phases")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
  develop(bool, TimeEachLinearScan, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
          "print detailed timing of each LinearScan run")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
  develop(bool, CountLinearScan, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
          "collect statistic counters during LinearScan")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
  /* C1 variable */                                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
  develop(bool, C1Breakpoint, false,                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
          "Sets a breakpoint at entry of each compiled method")             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
  develop(bool, ImplicitDiv0Checks, true,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
          "Use implicit division by zero checks")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
  develop(bool, PinAllInstructions, false,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
          "All instructions are pinned")                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  develop(bool, ValueStackPinStackAll, true,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
          "Pinning in ValueStack pin everything")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  develop(bool, UseFastNewInstance, true,                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
          "Use fast inlined instance allocation")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  develop(bool, UseFastNewTypeArray, true,                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
          "Use fast inlined type array allocation")                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  develop(bool, UseFastNewObjectArray, true,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
          "Use fast inlined object array allocation")                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
  develop(bool, UseFastLocking, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
          "Use fast inlined locking code")                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
  develop(bool, UseSlowPath, false,                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
          "For debugging: test slow cases by always using them")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
  develop(bool, GenerateArrayStoreCheck, true,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
          "Generates code for array store checks")                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
  develop(bool, DeoptC1, true,                                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
          "Use deoptimization in C1")                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
  develop(bool, DeoptOnAsyncException, true,                                \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
          "Deoptimize upon Thread.stop(); improves precision of IR")        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
  develop(bool, PrintBailouts, false,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
          "Print bailout and its reason")                                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
  develop(bool, TracePatching, false,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
         "Trace patching of field access on uninitialized classes")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
  develop(bool, PatchALot, false,                                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
          "Marks all fields as having unloaded classes")                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
  develop(bool, PrintNotLoaded, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
          "Prints where classes are not loaded during code generation")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
  notproduct(bool, VerifyOopMaps, false,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
          "Adds oopmap verification code to the generated code")            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
  develop(bool, PrintLIR, false,                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
          "print low-level IR")                                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   245
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   246
  develop(bool, BailoutAfterHIR, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
          "bailout of compilation after building of HIR")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
  develop(bool, BailoutAfterLIR, false,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
          "bailout of compilation after building of LIR")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
  develop(bool, BailoutOnExceptionHandlers, false,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
          "bailout of compilation for methods with exception handlers")     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
  develop(bool, AlwaysEmitDebugInfo, false,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
          "always emit debug info")                                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
  develop(bool, InstallMethods, true,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
          "Install methods at the end of successful compilations")          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
  product(intx, CompilationRepeat, 0,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
          "Number of times to recompile method before returning result")    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
  develop(intx, NMethodSizeLimit, (32*K)*wordSize,                          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
          "Maximum size of a compiled method.")                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   267
  develop(bool, TraceFPUStack, false,                                       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   268
          "Trace emulation of the FPU stack (intel only)")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
  develop(bool, TraceFPURegisterUsage, false,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
          "Trace usage of FPU registers at start of blocks (intel only)")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
  develop(bool, OptimizeUnsafes, true,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
          "Optimize raw unsafe ops")                                        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
  develop(bool, PrintUnsafeOptimization, false,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   277
          "Print optimization of raw unsafe ops")                           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   278
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   279
  develop(intx, InstructionCountCutoff, 37000,                              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   280
          "If GraphBuilder adds this many instructions, bails out")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   281
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
  product_pd(intx, SafepointPollOffset,                                     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
          "Offset added to polling address (Intel only)")                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   284
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   285
  product(bool, UseNewFeature1, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   286
          "Enable new feature for testing.  This is a dummy flag.")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   287
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   288
  product(bool, UseNewFeature2, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   289
          "Enable new feature for testing.  This is a dummy flag.")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   290
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   291
  product(bool, UseNewFeature3, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   292
          "Enable new feature for testing.  This is a dummy flag.")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   293
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   294
  product(bool, UseNewFeature4, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   295
          "Enable new feature for testing.  This is a dummy flag.")         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   296
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   297
  develop(bool, ComputeExactFPURegisterUsage, true,                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   298
          "Compute additional live set for fpu registers to simplify fpu stack merge (Intel only)") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   299
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   300
  product(bool, Tier1ProfileCalls, true,                                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
          "Profile calls when generating code for updating MDOs")           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   302
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   303
  product(bool, Tier1ProfileVirtualCalls, true,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   304
          "Profile virtual calls when generating code for updating MDOs")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   305
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   306
  product(bool, Tier1ProfileInlinedCalls, true,                             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   307
          "Profile inlined calls when generating code for updating MDOs")   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   308
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   309
  product(bool, Tier1ProfileBranches, true,                                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   310
          "Profile branches when generating code for updating MDOs")        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   311
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   312
  product(bool, Tier1ProfileCheckcasts, true,                               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   313
          "Profile checkcasts when generating code for updating MDOs")      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   315
  product(bool, Tier1OptimizeVirtualCallProfiling, true,                    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   316
          "Use CHA and exact type results at call sites when updating MDOs") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   317
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   318
  develop(bool, Tier1CountOnly, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   319
          "Don't schedule tier 2 compiles. Enter VM only")                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   321
  develop(bool, PrintCFGToFile, false,                                      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
          "print control flow graph to a separate file during compilation") \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
                                                                            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
// Read default values for c1 globals
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
// #include "incls/_c1_globals_pd.hpp.incl"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
C1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_NOTPRODUCT_FLAG)