src/share/vm/c1/c1_globals.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8059557_open Sdiff src/share/vm/c1

src/share/vm/c1/c1_globals.hpp

Print this page


   1 /*
   2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


  43 #endif
  44 #ifdef TARGET_OS_FAMILY_linux
  45 # include "c1_globals_linux.hpp"
  46 #endif
  47 #ifdef TARGET_OS_FAMILY_solaris
  48 # include "c1_globals_solaris.hpp"
  49 #endif
  50 #ifdef TARGET_OS_FAMILY_windows
  51 # include "c1_globals_windows.hpp"
  52 #endif
  53 #ifdef TARGET_OS_FAMILY_aix
  54 # include "c1_globals_aix.hpp"
  55 #endif
  56 #ifdef TARGET_OS_FAMILY_bsd
  57 # include "c1_globals_bsd.hpp"
  58 #endif
  59 
  60 //
  61 // Defines all global flags used by the client compiler.
  62 //
  63 #define C1_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct) \
  64                                                                             \
  65   /* Printing */                                                            \
  66   notproduct(bool, PrintC1Statistics, false,                                \
  67           "Print Compiler1 statistics" )                                    \
  68                                                                             \
  69   notproduct(bool, PrintInitialBlockList, false,                            \
  70           "Print block list of BlockListBuilder")                           \
  71                                                                             \
  72   notproduct(bool, PrintCFG, false,                                         \
  73           "Print control flow graph after each change")                     \
  74                                                                             \
  75   notproduct(bool, PrintCFG0, false,                                        \
  76           "Print control flow graph after construction")                    \
  77                                                                             \
  78   notproduct(bool, PrintCFG1, false,                                        \
  79           "Print control flow graph after optimizations")                   \
  80                                                                             \
  81   notproduct(bool, PrintCFG2, false,                                        \
  82           "Print control flow graph before code generation")                \
  83                                                                             \


 131   develop(bool, TracePredicateFailedTraps, false,                           \
 132           "trace runtime traps caused by predicate failure")                \
 133                                                                             \
 134   develop(bool, StressLoopInvariantCodeMotion, false,                       \
 135           "stress loop invariant code motion")                              \
 136                                                                             \
 137   develop(bool, TraceRangeCheckElimination, false,                          \
 138           "Trace Range Check Elimination")                                  \
 139                                                                             \
 140   develop(bool, AssertRangeCheckElimination, false,                         \
 141           "Assert Range Check Elimination")                                 \
 142                                                                             \
 143   develop(bool, StressRangeCheckElimination, false,                         \
 144           "stress Range Check Elimination")                                 \
 145                                                                             \
 146   develop(bool, PrintValueNumbering, false,                                 \
 147           "Print Value Numbering")                                          \
 148                                                                             \
 149   product(intx, ValueMapInitialSize, 11,                                    \
 150           "Initial size of a value map")                                    \

 151                                                                             \
 152   product(intx, ValueMapMaxLoopSize, 8,                                     \
 153           "maximum size of a loop optimized by global value numbering")     \
 154                                                                             \
 155   develop(bool, EliminateBlocks, true,                                      \
 156           "Eliminate unneccessary basic blocks")                            \
 157                                                                             \
 158   develop(bool, PrintBlockElimination, false,                               \
 159           "Print basic block elimination")                                  \
 160                                                                             \
 161   develop(bool, EliminateNullChecks, true,                                  \
 162           "Eliminate unneccessary null checks")                             \
 163                                                                             \
 164   develop(bool, PrintNullCheckElimination, false,                           \
 165           "Print null check elimination")                                   \
 166                                                                             \
 167   develop(bool, EliminateFieldAccess, true,                                 \
 168           "Optimize field loads and stores")                                \
 169                                                                             \
 170   develop(bool, InlineMethodsWithExceptionHandlers, true,                   \


 174   product(bool, InlineSynchronizedMethods, true,                            \
 175           "Inline synchronized methods")                                    \
 176                                                                             \
 177   develop(bool, InlineNIOCheckIndex, true,                                  \
 178           "Intrinsify java.nio.Buffer.checkIndex")                          \
 179                                                                             \
 180   develop(bool, CanonicalizeNodes, true,                                    \
 181           "Canonicalize graph nodes")                                       \
 182                                                                             \
 183   develop(bool, PrintCanonicalization, false,                               \
 184           "Print graph node canonicalization")                              \
 185                                                                             \
 186   develop(bool, UseTableRanges, true,                                       \
 187           "Faster versions of lookup table using ranges")                   \
 188                                                                             \
 189   develop_pd(bool, RoundFPResults,                                          \
 190           "Indicates whether rounding is needed for floating point results")\
 191                                                                             \
 192   develop(intx, NestedInliningSizeRatio, 90,                                \
 193           "Percentage of prev. allowed inline size in recursive inlining")  \

 194                                                                             \
 195   notproduct(bool, PrintIRWithLIR, false,                                   \
 196           "Print IR instructions with generated LIR")                       \
 197                                                                             \
 198   notproduct(bool, PrintLIRWithAssembly, false,                             \
 199           "Show LIR instruction with generated assembly")                   \
 200                                                                             \
 201   develop(bool, CommentedAssembly, trueInDebug,                             \
 202           "Show extra info in PrintNMethods output")                        \
 203                                                                             \
 204   develop(bool, LIRTracePeephole, false,                                    \
 205           "Trace peephole optimizer")                                       \
 206                                                                             \
 207   develop(bool, LIRTraceExecution, false,                                   \
 208           "add LIR code which logs the execution of blocks")                \
 209                                                                             \
 210   product_pd(bool, LIRFillDelaySlots,                                       \
 211              "fill delays on on SPARC with LIR")                            \
 212                                                                             \
 213   develop_pd(bool, CSEArrayLength,                                          \


 321           "Profile inlined calls when generating code for updating MDOs")   \
 322                                                                             \
 323   product(bool, C1ProfileBranches, true,                                    \
 324           "Profile branches when generating code for updating MDOs")        \
 325                                                                             \
 326   product(bool, C1ProfileCheckcasts, true,                                  \
 327           "Profile checkcasts when generating code for updating MDOs")      \
 328                                                                             \
 329   product(bool, C1OptimizeVirtualCallProfiling, true,                       \
 330           "Use CHA and exact type results at call sites when updating MDOs")\
 331                                                                             \
 332   product(bool, C1UpdateMethodData, trueInTiered,                           \
 333           "Update MethodData*s in Tier1-generated code")                    \
 334                                                                             \
 335   develop(bool, PrintCFGToFile, false,                                      \
 336           "print control flow graph to a separate file during compilation") \
 337                                                                             \
 338   diagnostic(bool, C1PatchInvokeDynamic, true,                              \
 339              "Patch invokedynamic appendix not known at compile time")      \
 340                                                                             \
 341 
 342 
 343 // Read default values for c1 globals
 344 
 345 C1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)







 346 
 347 #endif // SHARE_VM_C1_C1_GLOBALS_HPP
   1 /*
   2  * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


  43 #endif
  44 #ifdef TARGET_OS_FAMILY_linux
  45 # include "c1_globals_linux.hpp"
  46 #endif
  47 #ifdef TARGET_OS_FAMILY_solaris
  48 # include "c1_globals_solaris.hpp"
  49 #endif
  50 #ifdef TARGET_OS_FAMILY_windows
  51 # include "c1_globals_windows.hpp"
  52 #endif
  53 #ifdef TARGET_OS_FAMILY_aix
  54 # include "c1_globals_aix.hpp"
  55 #endif
  56 #ifdef TARGET_OS_FAMILY_bsd
  57 # include "c1_globals_bsd.hpp"
  58 #endif
  59 
  60 //
  61 // Defines all global flags used by the client compiler.
  62 //
  63 #define C1_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct, range, constraint) \
  64                                                                             \
  65   /* Printing */                                                            \
  66   notproduct(bool, PrintC1Statistics, false,                                \
  67           "Print Compiler1 statistics" )                                    \
  68                                                                             \
  69   notproduct(bool, PrintInitialBlockList, false,                            \
  70           "Print block list of BlockListBuilder")                           \
  71                                                                             \
  72   notproduct(bool, PrintCFG, false,                                         \
  73           "Print control flow graph after each change")                     \
  74                                                                             \
  75   notproduct(bool, PrintCFG0, false,                                        \
  76           "Print control flow graph after construction")                    \
  77                                                                             \
  78   notproduct(bool, PrintCFG1, false,                                        \
  79           "Print control flow graph after optimizations")                   \
  80                                                                             \
  81   notproduct(bool, PrintCFG2, false,                                        \
  82           "Print control flow graph before code generation")                \
  83                                                                             \


 131   develop(bool, TracePredicateFailedTraps, false,                           \
 132           "trace runtime traps caused by predicate failure")                \
 133                                                                             \
 134   develop(bool, StressLoopInvariantCodeMotion, false,                       \
 135           "stress loop invariant code motion")                              \
 136                                                                             \
 137   develop(bool, TraceRangeCheckElimination, false,                          \
 138           "Trace Range Check Elimination")                                  \
 139                                                                             \
 140   develop(bool, AssertRangeCheckElimination, false,                         \
 141           "Assert Range Check Elimination")                                 \
 142                                                                             \
 143   develop(bool, StressRangeCheckElimination, false,                         \
 144           "stress Range Check Elimination")                                 \
 145                                                                             \
 146   develop(bool, PrintValueNumbering, false,                                 \
 147           "Print Value Numbering")                                          \
 148                                                                             \
 149   product(intx, ValueMapInitialSize, 11,                                    \
 150           "Initial size of a value map")                                    \
 151           range(1, NOT_LP64(1*K) LP64_ONLY(32*K))                           \
 152                                                                             \
 153   product(intx, ValueMapMaxLoopSize, 8,                                     \
 154           "maximum size of a loop optimized by global value numbering")     \
 155                                                                             \
 156   develop(bool, EliminateBlocks, true,                                      \
 157           "Eliminate unneccessary basic blocks")                            \
 158                                                                             \
 159   develop(bool, PrintBlockElimination, false,                               \
 160           "Print basic block elimination")                                  \
 161                                                                             \
 162   develop(bool, EliminateNullChecks, true,                                  \
 163           "Eliminate unneccessary null checks")                             \
 164                                                                             \
 165   develop(bool, PrintNullCheckElimination, false,                           \
 166           "Print null check elimination")                                   \
 167                                                                             \
 168   develop(bool, EliminateFieldAccess, true,                                 \
 169           "Optimize field loads and stores")                                \
 170                                                                             \
 171   develop(bool, InlineMethodsWithExceptionHandlers, true,                   \


 175   product(bool, InlineSynchronizedMethods, true,                            \
 176           "Inline synchronized methods")                                    \
 177                                                                             \
 178   develop(bool, InlineNIOCheckIndex, true,                                  \
 179           "Intrinsify java.nio.Buffer.checkIndex")                          \
 180                                                                             \
 181   develop(bool, CanonicalizeNodes, true,                                    \
 182           "Canonicalize graph nodes")                                       \
 183                                                                             \
 184   develop(bool, PrintCanonicalization, false,                               \
 185           "Print graph node canonicalization")                              \
 186                                                                             \
 187   develop(bool, UseTableRanges, true,                                       \
 188           "Faster versions of lookup table using ranges")                   \
 189                                                                             \
 190   develop_pd(bool, RoundFPResults,                                          \
 191           "Indicates whether rounding is needed for floating point results")\
 192                                                                             \
 193   develop(intx, NestedInliningSizeRatio, 90,                                \
 194           "Percentage of prev. allowed inline size in recursive inlining")  \
 195           range(0, 100)                                                     \
 196                                                                             \
 197   notproduct(bool, PrintIRWithLIR, false,                                   \
 198           "Print IR instructions with generated LIR")                       \
 199                                                                             \
 200   notproduct(bool, PrintLIRWithAssembly, false,                             \
 201           "Show LIR instruction with generated assembly")                   \
 202                                                                             \
 203   develop(bool, CommentedAssembly, trueInDebug,                             \
 204           "Show extra info in PrintNMethods output")                        \
 205                                                                             \
 206   develop(bool, LIRTracePeephole, false,                                    \
 207           "Trace peephole optimizer")                                       \
 208                                                                             \
 209   develop(bool, LIRTraceExecution, false,                                   \
 210           "add LIR code which logs the execution of blocks")                \
 211                                                                             \
 212   product_pd(bool, LIRFillDelaySlots,                                       \
 213              "fill delays on on SPARC with LIR")                            \
 214                                                                             \
 215   develop_pd(bool, CSEArrayLength,                                          \


 323           "Profile inlined calls when generating code for updating MDOs")   \
 324                                                                             \
 325   product(bool, C1ProfileBranches, true,                                    \
 326           "Profile branches when generating code for updating MDOs")        \
 327                                                                             \
 328   product(bool, C1ProfileCheckcasts, true,                                  \
 329           "Profile checkcasts when generating code for updating MDOs")      \
 330                                                                             \
 331   product(bool, C1OptimizeVirtualCallProfiling, true,                       \
 332           "Use CHA and exact type results at call sites when updating MDOs")\
 333                                                                             \
 334   product(bool, C1UpdateMethodData, trueInTiered,                           \
 335           "Update MethodData*s in Tier1-generated code")                    \
 336                                                                             \
 337   develop(bool, PrintCFGToFile, false,                                      \
 338           "print control flow graph to a separate file during compilation") \
 339                                                                             \
 340   diagnostic(bool, C1PatchInvokeDynamic, true,                              \
 341              "Patch invokedynamic appendix not known at compile time")      \
 342                                                                             \


 343 // Read default values for c1 globals
 344 
 345 C1_FLAGS(DECLARE_DEVELOPER_FLAG, \
 346          DECLARE_PD_DEVELOPER_FLAG, \
 347          DECLARE_PRODUCT_FLAG, \
 348          DECLARE_PD_PRODUCT_FLAG, \
 349          DECLARE_DIAGNOSTIC_FLAG, \
 350          DECLARE_NOTPRODUCT_FLAG, \
 351          IGNORE_RANGE, \
 352          IGNORE_CONSTRAINT)
 353 
 354 #endif // SHARE_VM_C1_C1_GLOBALS_HPP
src/share/vm/c1/c1_globals.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File