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 * 23 */ 24 25 #ifndef SHARE_VM_OPTO_C2_GLOBALS_HPP 26 #define SHARE_VM_OPTO_C2_GLOBALS_HPP 27 28 #include "runtime/globals.hpp" 29 #ifdef TARGET_ARCH_x86 30 # include "c2_globals_x86.hpp" 31 #endif 32 #ifdef TARGET_ARCH_sparc 33 # include "c2_globals_sparc.hpp" 34 #endif 35 #ifdef TARGET_ARCH_arm 36 # include "c2_globals_arm.hpp" 37 #endif 38 #ifdef TARGET_ARCH_ppc 39 # include "c2_globals_ppc.hpp" 40 #endif 41 #ifdef TARGET_ARCH_aarch64 42 # include "c2_globals_aarch64.hpp" 43 #endif 44 #ifdef TARGET_OS_FAMILY_linux 45 # include "c2_globals_linux.hpp" 46 #endif 47 #ifdef TARGET_OS_FAMILY_solaris 48 # include "c2_globals_solaris.hpp" 49 #endif 50 #ifdef TARGET_OS_FAMILY_windows 51 # include "c2_globals_windows.hpp" 52 #endif 53 #ifdef TARGET_OS_FAMILY_aix 54 # include "c2_globals_aix.hpp" 55 #endif 56 #ifdef TARGET_OS_FAMILY_bsd 57 # include "c2_globals_bsd.hpp" 58 #endif 59 60 // 61 // Defines all globals flags used by the server compiler. 62 // 63 64 #define C2_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, range, constraint) \ 65 \ 66 develop(bool, StressLCM, false, \ 67 "Randomize instruction scheduling in LCM") \ 68 \ 69 develop(bool, StressGCM, false, \ 70 "Randomize instruction scheduling in GCM") \ 71 \ 72 develop(intx, OptoPrologueNops, 0, \ 73 "Insert this many extra nop instructions " \ 74 "in the prologue of every nmethod") \ 75 range(0, 128) \ 76 \ 77 product_pd(intx, InteriorEntryAlignment, \ 78 "Code alignment for interior entry points " \ 79 "in generated code (in bytes)") \ 80 constraint(InteriorEntryAlignmentConstraintFunc, AfterErgo) \ 81 \ 82 product(intx, MaxLoopPad, (OptoLoopAlignment-1), \ 83 "Align a loop if padding size in bytes is less or equal to this " \ 84 "value") \ 85 range(0, max_jint) \ 86 \ 87 product(intx, MaxVectorSize, 64, \ 88 "Max vector size in bytes, " \ 89 "actual size could be less depending on elements type") \ 90 range(0, max_jint) \ 91 \ 92 product(bool, AlignVector, true, \ 93 "Perform vector store/load alignment in loop") \ 94 \ 95 product(intx, NumberOfLoopInstrToAlign, 4, \ 96 "Number of first instructions in a loop to align") \ 97 range(0, max_jint) \ 98 \ 99 notproduct(intx, IndexSetWatch, 0, \ 100 "Trace all operations on this IndexSet (-1 means all, 0 none)") \ 101 range(-1, 0) \ 102 \ 103 develop(intx, OptoNodeListSize, 4, \ 104 "Starting allocation size of Node_List data structures") \ 105 range(0, max_jint) \ 106 \ 107 develop(intx, OptoBlockListSize, 8, \ 108 "Starting allocation size of Block_List data structures") \ 109 range(0, max_jint) \ 110 \ 111 develop(intx, OptoPeepholeAt, -1, \ 112 "Apply peephole optimizations to this peephole rule") \ 113 \ 114 notproduct(bool, PrintIdeal, false, \ 115 "Print ideal graph before code generation") \ 116 \ 117 notproduct(bool, PrintOpto, false, \ 118 "Print compiler2 attempts") \ 119 \ 120 notproduct(bool, PrintOptoInlining, false, \ 121 "Print compiler2 inlining decisions") \ 122 \ 123 notproduct(bool, VerifyOpto, false, \ 124 "Apply more time consuming verification during compilation") \ 125 \ 126 notproduct(bool, VerifyIdealNodeCount, false, \ 127 "Verify that tracked dead ideal node count is accurate") \ 128 \ 129 notproduct(bool, PrintIdealNodeCount, false, \ 130 "Print liveness counts of ideal nodes") \ 131 \ 132 notproduct(bool, VerifyOptoOopOffsets, false, \ 133 "Check types of base addresses in field references") \ 134 \ 135 develop(bool, IdealizedNumerics, false, \ 136 "Check performance difference allowing FP " \ 137 "associativity and commutativity...") \ 138 \ 139 develop(bool, OptoBreakpoint, false, \ 140 "insert breakpoint at method entry") \ 141 \ 142 notproduct(bool, OptoBreakpointOSR, false, \ 143 "insert breakpoint at osr method entry") \ 144 \ 145 notproduct(intx, BreakAtNode, 0, \ 146 "Break at construction of this Node (either _idx or _debug_idx)") \ 147 \ 148 notproduct(bool, OptoBreakpointC2R, false, \ 149 "insert breakpoint at runtime stub entry") \ 150 \ 151 notproduct(bool, OptoNoExecute, false, \ 152 "Attempt to parse and compile but do not execute generated code") \ 153 \ 154 notproduct(bool, PrintOptoStatistics, false, \ 155 "Print New compiler statistics") \ 156 \ 157 diagnostic(bool, PrintOptoAssembly, false, \ 158 "Print New compiler assembly output") \ 159 \ 160 develop_pd(bool, OptoPeephole, \ 161 "Apply peephole optimizations after register allocation") \ 162 \ 163 develop(bool, OptoRemoveUseless, true, \ 164 "Remove useless nodes after parsing") \ 165 \ 166 notproduct(bool, PrintFrameConverterAssembly, false, \ 167 "Print New compiler assembly output for frame converters") \ 168 \ 169 notproduct(bool, PrintParseStatistics, false, \ 170 "Print nodes, transforms and new values made per bytecode parsed")\ 171 \ 172 notproduct(bool, PrintOptoPeephole, false, \ 173 "Print New compiler peephole replacements") \ 174 \ 175 develop(bool, PrintCFGBlockFreq, false, \ 176 "Print CFG block freqencies") \ 177 \ 178 develop(bool, TraceOptoParse, false, \ 179 "Trace bytecode parse and control-flow merge") \ 180 \ 181 product_pd(intx, LoopUnrollLimit, \ 182 "Unroll loop bodies with node count less than this") \ 183 range(0, max_jint / 4) \ 184 \ 185 product_pd(intx, LoopPercentProfileLimit, \ 186 "Unroll loop bodies with % node count of profile limit") \ 187 range(10, 100) \ 188 \ 189 product(intx, LoopMaxUnroll, 16, \ 190 "Maximum number of unrolls for main loop") \ 191 range(0, max_jint) \ 192 \ 193 product_pd(bool, SuperWordLoopUnrollAnalysis, \ 194 "Map number of unrolls for main loop via " \ 195 "Superword Level Parallelism analysis") \ 196 \ 197 product_pd(bool, PostLoopMultiversioning, \ 198 "Multi versioned post loops to eliminate range checks") \ 199 \ 200 notproduct(bool, TraceSuperWordLoopUnrollAnalysis, false, \ 201 "Trace what Superword Level Parallelism analysis applies") \ 202 \ 203 product(intx, LoopUnrollMin, 4, \ 204 "Minimum number of unroll loop bodies before checking progress" \ 205 "of rounds of unroll,optimize,..") \ 206 range(0, max_jint) \ 207 \ 208 develop(intx, UnrollLimitForProfileCheck, 1, \ 209 "Don't use profile_trip_cnt() to restrict unrolling until " \ 210 "unrolling would push the number of unrolled iterations above " \ 211 "UnrollLimitForProfileCheck. A higher value allows more " \ 212 "unrolling. Zero acts as a very large value." ) \ 213 range(0, max_intx) \ 214 \ 215 product(intx, MultiArrayExpandLimit, 6, \ 216 "Maximum number of individual allocations in an inline-expanded " \ 217 "multianewarray instruction") \ 218 range(0, max_jint) \ 219 \ 220 notproduct(bool, TraceProfileTripCount, false, \ 221 "Trace profile loop trip count information") \ 222 \ 223 product(bool, UseCountedLoopSafepoints, false, \ 224 "Force counted loops to keep a safepoint") \ 225 \ 226 product(bool, UseLoopPredicate, true, \ 227 "Generate a predicate to select fast/slow loop versions") \ 228 \ 229 develop(bool, TraceLoopPredicate, false, \ 230 "Trace generation of loop predicates") \ 231 \ 232 develop(bool, TraceLoopOpts, false, \ 233 "Trace executed loop optimizations") \ 234 \ 235 develop(bool, TraceLoopLimitCheck, false, \ 236 "Trace generation of loop limits checks") \ 237 \ 238 develop(bool, TraceRangeLimitCheck, false, \ 239 "Trace additional overflow checks in RCE") \ 240 \ 241 /* OptimizeFill not yet supported on PowerPC. */ \ 242 product(bool, OptimizeFill, true PPC64_ONLY(&& false), \ 243 "convert fill/copy loops into intrinsic") \ 244 \ 245 develop(bool, TraceOptimizeFill, false, \ 246 "print detailed information about fill conversion") \ 247 \ 248 develop(bool, OptoCoalesce, true, \ 249 "Use Conservative Copy Coalescing in the Register Allocator") \ 250 \ 251 develop(bool, UseUniqueSubclasses, true, \ 252 "Narrow an abstract reference to the unique concrete subclass") \ 253 \ 254 develop(bool, UseExactTypes, true, \ 255 "Use exact types to eliminate array store checks and v-calls") \ 256 \ 257 product(intx, TrackedInitializationLimit, 50, \ 258 "When initializing fields, track up to this many words") \ 259 range(0, 65535) \ 260 \ 261 product(bool, ReduceFieldZeroing, true, \ 262 "When initializing fields, try to avoid needless zeroing") \ 263 \ 264 product(bool, ReduceInitialCardMarks, true, \ 265 "When initializing fields, try to avoid needless card marks") \ 266 \ 267 product(bool, ReduceBulkZeroing, true, \ 268 "When bulk-initializing, try to avoid needless zeroing") \ 269 \ 270 product(bool, UseFPUForSpilling, false, \ 271 "Spill integer registers to FPU instead of stack when possible") \ 272 \ 273 develop_pd(intx, RegisterCostAreaRatio, \ 274 "Spill selection in reg allocator: scale area by (X/64K) before " \ 275 "adding cost") \ 276 \ 277 develop_pd(bool, UseCISCSpill, \ 278 "Use ADLC supplied cisc instructions during allocation") \ 279 \ 280 notproduct(bool, VerifyGraphEdges , false, \ 281 "Verify Bi-directional Edges") \ 282 \ 283 notproduct(bool, VerifyDUIterators, true, \ 284 "Verify the safety of all iterations of Bi-directional Edges") \ 285 \ 286 notproduct(bool, VerifyHashTableKeys, true, \ 287 "Verify the immutability of keys in the VN hash tables") \ 288 \ 289 notproduct(bool, VerifyRegisterAllocator , false, \ 290 "Verify Register Allocator") \ 291 \ 292 develop_pd(intx, FLOATPRESSURE, \ 293 "Number of float LRG's that constitute high register pressure") \ 294 range(0, max_jint) \ 295 \ 296 develop_pd(intx, INTPRESSURE, \ 297 "Number of integer LRG's that constitute high register pressure") \ 298 range(0, max_jint) \ 299 \ 300 notproduct(bool, TraceOptoPipelining, false, \ 301 "Trace pipelining information") \ 302 \ 303 notproduct(bool, TraceOptoOutput, false, \ 304 "Trace pipelining information") \ 305 \ 306 product_pd(bool, OptoScheduling, \ 307 "Instruction Scheduling after register allocation") \ 308 \ 309 product_pd(bool, OptoRegScheduling, \ 310 "Instruction Scheduling before register allocation for pressure") \ 311 \ 312 product(bool, PartialPeelLoop, true, \ 313 "Partial peel (rotate) loops") \ 314 \ 315 product(intx, PartialPeelNewPhiDelta, 0, \ 316 "Additional phis that can be created by partial peeling") \ 317 range(0, max_jint) \ 318 \ 319 notproduct(bool, TracePartialPeeling, false, \ 320 "Trace partial peeling (loop rotation) information") \ 321 \ 322 product(bool, PartialPeelAtUnsignedTests, true, \ 323 "Partial peel at unsigned tests if no signed test exists") \ 324 \ 325 product(bool, ReassociateInvariants, true, \ 326 "Enable reassociation of expressions with loop invariants.") \ 327 \ 328 product(bool, LoopUnswitching, true, \ 329 "Enable loop unswitching (a form of invariant test hoisting)") \ 330 \ 331 notproduct(bool, TraceLoopUnswitching, false, \ 332 "Trace loop unswitching") \ 333 \ 334 product(bool, AllowVectorizeOnDemand, true, \ 335 "Globally supress vectorization set in VectorizeMethod") \ 336 \ 337 product(bool, UseSuperWord, true, \ 338 "Transform scalar operations into superword operations") \ 339 \ 340 develop(bool, SuperWordRTDepCheck, false, \ 341 "Enable runtime dependency checks.") \ 342 \ 343 product(bool, SuperWordReductions, true, \ 344 "Enable reductions support in superword.") \ 345 \ 346 product(bool, UseCMoveUnconditionally, false, \ 347 "Use CMove (scalar and vector) ignoring profitability test.") \ 348 \ 349 product(bool, DoReserveCopyInSuperWord, true, \ 350 "Create reserve copy of graph in SuperWord.") \ 351 \ 352 notproduct(bool, TraceSuperWord, false, \ 353 "Trace superword transforms") \ 354 \ 355 notproduct(bool, TraceNewVectors, false, \ 356 "Trace creation of Vector nodes") \ 357 \ 358 product_pd(bool, OptoBundling, \ 359 "Generate nops to fill i-cache lines") \ 360 \ 361 product_pd(intx, ConditionalMoveLimit, \ 362 "Limit of ops to make speculative when using CMOVE") \ 363 range(0, max_jint) \ 364 \ 365 /* Set BranchOnRegister == false. See 4965987. */ \ 366 product(bool, BranchOnRegister, false, \ 367 "Use Sparc V9 branch-on-register opcodes") \ 368 \ 369 develop(bool, SparcV9RegsHiBitsZero, true, \ 370 "Assume Sparc V9 I&L registers on V8+ systems are zero-extended") \ 371 \ 372 product(bool, UseRDPCForConstantTableBase, false, \ 373 "Use Sparc RDPC instruction for the constant table base.") \ 374 \ 375 notproduct(bool, PrintIdealGraph, false, \ 376 "Print ideal graph to XML file / network interface. " \ 377 "By default attempts to connect to the visualizer on a socket.") \ 378 \ 379 notproduct(intx, PrintIdealGraphLevel, 0, \ 380 "Level of detail of the ideal graph printout. " \ 381 "System-wide value, 0=nothing is printed, 4=all details printed. "\ 382 "Level of detail of printouts can be set on a per-method level " \ 383 "as well by using CompileCommand=option.") \ 384 range(0, 4) \ 385 \ 386 notproduct(intx, PrintIdealGraphPort, 4444, \ 387 "Ideal graph printer to network port") \ 388 range(0, SHRT_MAX) \ 389 \ 390 notproduct(ccstr, PrintIdealGraphAddress, "127.0.0.1", \ 391 "IP address to connect to visualizer") \ 392 \ 393 notproduct(ccstr, PrintIdealGraphFile, NULL, \ 394 "File to dump ideal graph to. If set overrides the " \ 395 "use of the network") \ 396 \ 397 product(bool, UseBimorphicInlining, true, \ 398 "Profiling based inlining for two receivers") \ 399 \ 400 product(bool, UseOnlyInlinedBimorphic, true, \ 401 "Don't use BimorphicInlining if can't inline a second method") \ 402 \ 403 product(bool, InsertMemBarAfterArraycopy, true, \ 404 "Insert memory barrier after arraycopy call") \ 405 \ 406 develop(bool, SubsumeLoads, true, \ 407 "Attempt to compile while subsuming loads into machine " \ 408 "instructions.") \ 409 \ 410 develop(bool, StressRecompilation, false, \ 411 "Recompile each compiled method without subsuming loads " \ 412 "or escape analysis.") \ 413 \ 414 develop(intx, ImplicitNullCheckThreshold, 3, \ 415 "Don't do implicit null checks if NPE's in a method exceeds " \ 416 "limit") \ 417 range(0, max_jint) \ 418 \ 419 product(intx, LoopOptsCount, 43, \ 420 "Set level of loop optimization for tier 1 compiles") \ 421 range(5, 43) \ 422 \ 423 /* controls for heat-based inlining */ \ 424 \ 425 develop(intx, NodeCountInliningCutoff, 18000, \ 426 "If parser node generation exceeds limit stop inlining") \ 427 range(0, max_jint) \ 428 \ 429 develop(intx, NodeCountInliningStep, 1000, \ 430 "Target size of warm calls inlined between optimization passes") \ 431 range(0, max_jint) \ 432 \ 433 develop(bool, InlineWarmCalls, false, \ 434 "Use a heat-based priority queue to govern inlining") \ 435 \ 436 develop(intx, HotCallCountThreshold, 999999, \ 437 "large numbers of calls (per method invocation) force hotness") \ 438 range(0, max_intx) \ 439 \ 440 develop(intx, HotCallProfitThreshold, 999999, \ 441 "highly profitable inlining opportunities force hotness") \ 442 range(0, max_intx) \ 443 \ 444 develop(intx, HotCallTrivialWork, -1, \ 445 "trivial execution time (no larger than this) forces hotness") \ 446 range(-1, max_intx) \ 447 \ 448 develop(intx, HotCallTrivialSize, -1, \ 449 "trivial methods (no larger than this) force calls to be hot") \ 450 range(-1, max_intx) \ 451 \ 452 develop(intx, WarmCallMinCount, -1, \ 453 "number of calls (per method invocation) to enable inlining") \ 454 range(-1, max_intx) \ 455 \ 456 develop(intx, WarmCallMinProfit, -1, \ 457 "number of calls (per method invocation) to enable inlining") \ 458 range(-1, max_intx) \ 459 \ 460 develop(intx, WarmCallMaxWork, 999999, \ 461 "execution time of the largest inlinable method") \ 462 range(0, max_intx) \ 463 \ 464 develop(intx, WarmCallMaxSize, 999999, \ 465 "size of the largest inlinable method") \ 466 range(0, max_intx) \ 467 \ 468 product(intx, MaxNodeLimit, 80000, \ 469 "Maximum number of nodes") \ 470 range(1000, max_jint / 3) \ 471 \ 472 product(intx, NodeLimitFudgeFactor, 2000, \ 473 "Fudge Factor for certain optimizations") \ 474 constraint(NodeLimitFudgeFactorConstraintFunc, AfterErgo) \ 475 \ 476 product(bool, UseJumpTables, true, \ 477 "Use JumpTables instead of a binary search tree for switches") \ 478 \ 479 product(bool, UseDivMod, true, \ 480 "Use combined DivMod instruction if available") \ 481 \ 482 product_pd(intx, MinJumpTableSize, \ 483 "Minimum number of targets in a generated jump table") \ 484 range(0, max_intx) \ 485 \ 486 product(intx, MaxJumpTableSize, 65000, \ 487 "Maximum number of targets in a generated jump table") \ 488 range(0, max_intx) \ 489 \ 490 product(intx, MaxJumpTableSparseness, 5, \ 491 "Maximum sparseness for jumptables") \ 492 range(0, max_intx / 4) \ 493 \ 494 product(bool, EliminateLocks, true, \ 495 "Coarsen locks when possible") \ 496 \ 497 product(bool, EliminateNestedLocks, true, \ 498 "Eliminate nested locks of the same object when possible") \ 499 \ 500 notproduct(bool, PrintLockStatistics, false, \ 501 "Print precise statistics on the dynamic lock usage") \ 502 \ 503 diagnostic(bool, PrintPreciseBiasedLockingStatistics, false, \ 504 "Print per-lock-site statistics of biased locking in JVM") \ 505 \ 506 diagnostic(bool, PrintPreciseRTMLockingStatistics, false, \ 507 "Print per-lock-site statistics of rtm locking in JVM") \ 508 \ 509 notproduct(bool, PrintEliminateLocks, false, \ 510 "Print out when locks are eliminated") \ 511 \ 512 product(bool, EliminateAutoBox, true, \ 513 "Control optimizations for autobox elimination") \ 514 \ 515 diagnostic(bool, UseImplicitStableValues, true, \ 516 "Mark well-known stable fields as such (e.g. String.value)") \ 517 \ 518 product(intx, AutoBoxCacheMax, 128, \ 519 "Sets max value cached by the java.lang.Integer autobox cache") \ 520 range(0, max_jint) \ 521 \ 522 experimental(bool, AggressiveUnboxing, false, \ 523 "Control optimizations for aggressive boxing elimination") \ 524 \ 525 develop(bool, TracePostallocExpand, false, "Trace expanding nodes after" \ 526 " register allocation.") \ 527 \ 528 product(bool, DoEscapeAnalysis, true, \ 529 "Perform escape analysis") \ 530 \ 531 product(double, EscapeAnalysisTimeout, 20. DEBUG_ONLY(+40.), \ 532 "Abort EA when it reaches time limit (in sec)") \ 533 range(0, DBL_MAX) \ 534 \ 535 develop(bool, ExitEscapeAnalysisOnTimeout, true, \ 536 "Exit or throw assert in EA when it reaches time limit") \ 537 \ 538 notproduct(bool, PrintEscapeAnalysis, false, \ 539 "Print the results of escape analysis") \ 540 \ 541 product(bool, EliminateAllocations, true, \ 542 "Use escape analysis to eliminate allocations") \ 543 \ 544 notproduct(bool, PrintEliminateAllocations, false, \ 545 "Print out when allocations are eliminated") \ 546 \ 547 product(intx, EliminateAllocationArraySizeLimit, 64, \ 548 "Array size (number of elements) limit for scalar replacement") \ 549 range(0, max_jint) \ 550 \ 551 product(bool, OptimizePtrCompare, true, \ 552 "Use escape analysis to optimize pointers compare") \ 553 \ 554 notproduct(bool, PrintOptimizePtrCompare, false, \ 555 "Print information about optimized pointers compare") \ 556 \ 557 notproduct(bool, VerifyConnectionGraph , true, \ 558 "Verify Connection Graph construction in Escape Analysis") \ 559 \ 560 product(bool, UseOptoBiasInlining, true, \ 561 "Generate biased locking code in C2 ideal graph") \ 562 \ 563 product(bool, OptimizeStringConcat, true, \ 564 "Optimize the construction of Strings by StringBuilder") \ 565 \ 566 notproduct(bool, PrintOptimizeStringConcat, false, \ 567 "Print information about transformations performed on Strings") \ 568 \ 569 product(intx, ValueSearchLimit, 1000, \ 570 "Recursion limit in PhaseMacroExpand::value_from_mem_phi") \ 571 range(0, max_jint) \ 572 \ 573 product(intx, MaxLabelRootDepth, 1100, \ 574 "Maximum times call Label_Root to prevent stack overflow") \ 575 range(100, max_jint) \ 576 \ 577 diagnostic(intx, DominatorSearchLimit, 1000, \ 578 "Iterations limit in Node::dominates") \ 579 range(0, max_jint) \ 580 \ 581 product(bool, BlockLayoutByFrequency, true, \ 582 "Use edge frequencies to drive block ordering") \ 583 \ 584 product(intx, BlockLayoutMinDiamondPercentage, 20, \ 585 "Miniumum %% of a successor (predecessor) for which block " \ 586 "layout a will allow a fork (join) in a single chain") \ 587 range(0, 100) \ 588 \ 589 product(bool, BlockLayoutRotateLoops, true, \ 590 "Allow back branches to be fall throughs in the block layout") \ 591 \ 592 diagnostic(bool, InlineReflectionGetCallerClass, true, \ 593 "inline sun.reflect.Reflection.getCallerClass(), known to be " \ 594 "part of base library DLL") \ 595 \ 596 diagnostic(bool, InlineObjectCopy, true, \ 597 "inline Object.clone and Arrays.copyOf[Range] intrinsics") \ 598 \ 599 diagnostic(bool, SpecialStringCompareTo, true, \ 600 "special version of string compareTo") \ 601 \ 602 diagnostic(bool, SpecialStringIndexOf, true, \ 603 "special version of string indexOf") \ 604 \ 605 diagnostic(bool, SpecialStringEquals, true, \ 606 "special version of string equals") \ 607 \ 608 diagnostic(bool, SpecialArraysEquals, true, \ 609 "special version of Arrays.equals(char[],char[])") \ 610 \ 611 diagnostic(bool, SpecialEncodeISOArray, true, \ 612 "special version of ISO_8859_1$Encoder.encodeISOArray") \ 613 \ 614 develop(bool, BailoutToInterpreterForThrows, false, \ 615 "Compiled methods which throws/catches exceptions will be " \ 616 "deopt and intp.") \ 617 \ 618 develop(bool, ConvertCmpD2CmpF, true, \ 619 "Convert cmpD to cmpF when one input is constant in float range") \ 620 \ 621 develop(bool, ConvertFloat2IntClipping, true, \ 622 "Convert float2int clipping idiom to integer clipping") \ 623 \ 624 develop(bool, Use24BitFPMode, true, \ 625 "Set 24-bit FPU mode on a per-compile basis ") \ 626 \ 627 develop(bool, Use24BitFP, true, \ 628 "use FP instructions that produce 24-bit precise results") \ 629 \ 630 develop(bool, MonomorphicArrayCheck, true, \ 631 "Uncommon-trap array store checks that require full type check") \ 632 \ 633 notproduct(bool, TracePhaseCCP, false, \ 634 "Print progress during Conditional Constant Propagation") \ 635 \ 636 develop(bool, PrintDominators, false, \ 637 "Print out dominator trees for GVN") \ 638 \ 639 diagnostic(bool, TraceSpilling, false, \ 640 "Trace spilling") \ 641 \ 642 diagnostic(bool, TraceTypeProfile, false, \ 643 "Trace type profile") \ 644 \ 645 develop(bool, PoisonOSREntry, true, \ 646 "Detect abnormal calls to OSR code") \ 647 \ 648 develop(bool, SoftMatchFailure, trueInProduct, \ 649 "If the DFA fails to match a node, print a message and bail out") \ 650 \ 651 develop(bool, InlineAccessors, true, \ 652 "inline accessor methods (get/set)") \ 653 \ 654 product(intx, TypeProfileMajorReceiverPercent, 90, \ 655 "% of major receiver type to all profiled receivers") \ 656 range(0, 100) \ 657 \ 658 diagnostic(bool, PrintIntrinsics, false, \ 659 "prints attempted and successful inlining of intrinsics") \ 660 \ 661 develop(bool, StressReflectiveCode, false, \ 662 "Use inexact types at allocations, etc., to test reflection") \ 663 \ 664 diagnostic(bool, DebugInlinedCalls, true, \ 665 "If false, restricts profiled locations to the root method only") \ 666 \ 667 notproduct(bool, VerifyLoopOptimizations, false, \ 668 "verify major loop optimizations") \ 669 \ 670 diagnostic(bool, ProfileDynamicTypes, true, \ 671 "do extra type profiling and use it more aggressively") \ 672 \ 673 develop(bool, TraceIterativeGVN, false, \ 674 "Print progress during Iterative Global Value Numbering") \ 675 \ 676 develop(bool, VerifyIterativeGVN, false, \ 677 "Verify Def-Use modifications during sparse Iterative Global " \ 678 "Value Numbering") \ 679 \ 680 notproduct(bool, TraceCISCSpill, false, \ 681 "Trace allocators use of cisc spillable instructions") \ 682 \ 683 product(bool, SplitIfBlocks, true, \ 684 "Clone compares and control flow through merge points to fold " \ 685 "some branches") \ 686 \ 687 develop(intx, FreqCountInvocations, 1, \ 688 "Scaling factor for branch frequencies (deprecated)") \ 689 range(1, max_intx) \ 690 \ 691 product(intx, AliasLevel, 3, \ 692 "0 for no aliasing, 1 for oop/field/static/array split, " \ 693 "2 for class split, 3 for unique instances") \ 694 range(0, 3) \ 695 constraint(AliasLevelConstraintFunc,AfterErgo) \ 696 \ 697 develop(bool, VerifyAliases, false, \ 698 "perform extra checks on the results of alias analysis") \ 699 \ 700 product(bool, IncrementalInline, true, \ 701 "do post parse inlining") \ 702 \ 703 develop(bool, AlwaysIncrementalInline, false, \ 704 "do all inlining incrementally") \ 705 \ 706 product(intx, LiveNodeCountInliningCutoff, 40000, \ 707 "max number of live nodes in a method") \ 708 range(0, max_juint / 8) \ 709 \ 710 diagnostic(bool, OptimizeExpensiveOps, true, \ 711 "Find best control for expensive operations") \ 712 \ 713 diagnostic(bool, UseMathExactIntrinsics, true, \ 714 "Enables intrinsification of various java.lang.Math functions") \ 715 \ 716 diagnostic(bool, UseMultiplyToLenIntrinsic, false, \ 717 "Enables intrinsification of BigInteger.multiplyToLen()") \ 718 \ 719 diagnostic(bool, UseSquareToLenIntrinsic, false, \ 720 "Enables intrinsification of BigInteger.squareToLen()") \ 721 \ 722 diagnostic(bool, UseMulAddIntrinsic, false, \ 723 "Enables intrinsification of BigInteger.mulAdd()") \ 724 \ 725 diagnostic(bool, UseMontgomeryMultiplyIntrinsic, false, \ 726 "Enables intrinsification of BigInteger.montgomeryMultiply()") \ 727 \ 728 diagnostic(bool, UseMontgomerySquareIntrinsic, false, \ 729 "Enables intrinsification of BigInteger.montgomerySquare()") \ 730 \ 731 product(bool, UseTypeSpeculation, true, \ 732 "Speculatively propagate types from profiles") \ 733 \ 734 diagnostic(bool, UseInlineDepthForSpeculativeTypes, true, \ 735 "Carry inline depth of profile point with speculative type " \ 736 "and give priority to profiling from lower inline depth") \ 737 \ 738 product_pd(bool, TrapBasedRangeChecks, \ 739 "Generate code for range checks that uses a cmp and trap " \ 740 "instruction raising SIGTRAP. Used on PPC64.") \ 741 \ 742 product(intx, ArrayCopyLoadStoreMaxElem, 8, \ 743 "Maximum number of arraycopy elements inlined as a sequence of" \ 744 "loads/stores") \ 745 range(0, max_intx) \ 746 \ 747 develop(bool, StressArrayCopyMacroNode, false, \ 748 "Perform ArrayCopy load/store replacement during IGVN only") \ 749 \ 750 develop(bool, RenumberLiveNodes, true, \ 751 "Renumber live nodes") \ 752 753 C2_FLAGS(DECLARE_DEVELOPER_FLAG, \ 754 DECLARE_PD_DEVELOPER_FLAG, \ 755 DECLARE_PRODUCT_FLAG, \ 756 DECLARE_PD_PRODUCT_FLAG, \ 757 DECLARE_DIAGNOSTIC_FLAG, \ 758 DECLARE_EXPERIMENTAL_FLAG, \ 759 DECLARE_NOTPRODUCT_FLAG, \ 760 IGNORE_RANGE, \ 761 IGNORE_CONSTRAINT) 762 763 #endif // SHARE_VM_OPTO_C2_GLOBALS_HPP