< prev index next >

src/hotspot/share/compiler/compiler_globals.hpp

Print this page

  1 /*
  2  * Copyright (c) 1997, 2024, 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  *

376   product(bool, AbortVMOnCompilationFailure, false, DIAGNOSTIC,             \
377           "Abort VM when method had failed to compile.")                    \
378                                                                             \
379   develop(intx, OSROnlyBCI, -1,                                             \
380           "OSR only at this bci.  Negative values mean exclude that bci")   \
381                                                                             \
382   develop(intx, DesiredMethodLimit,  8000,                                  \
383           "The desired maximum method size (in bytecodes) after inlining")  \
384                                                                             \
385   product(bool, DontCompileHugeMethods, true,                               \
386           "Do not compile methods > HugeMethodLimit")                       \
387                                                                             \
388   develop(intx, HugeMethodLimit,  8000,                                     \
389           "Don't compile methods larger than this if "                      \
390           "+DontCompileHugeMethods")                                        \
391                                                                             \
392   product(bool, CaptureBailoutInformation, trueInDebug, DIAGNOSTIC,         \
393           "If compilation is stopped with an error, capture diagnostic "    \
394           "information at the bailout point")                               \
395                                                                             \


























































396 // end of COMPILER_FLAGS
397 
398 DECLARE_FLAGS(COMPILER_FLAGS)
399 
400 #endif // SHARE_COMPILER_COMPILER_GLOBALS_HPP

  1 /*
  2  * Copyright (c) 1997, 2025, 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  *

376   product(bool, AbortVMOnCompilationFailure, false, DIAGNOSTIC,             \
377           "Abort VM when method had failed to compile.")                    \
378                                                                             \
379   develop(intx, OSROnlyBCI, -1,                                             \
380           "OSR only at this bci.  Negative values mean exclude that bci")   \
381                                                                             \
382   develop(intx, DesiredMethodLimit,  8000,                                  \
383           "The desired maximum method size (in bytecodes) after inlining")  \
384                                                                             \
385   product(bool, DontCompileHugeMethods, true,                               \
386           "Do not compile methods > HugeMethodLimit")                       \
387                                                                             \
388   develop(intx, HugeMethodLimit,  8000,                                     \
389           "Don't compile methods larger than this if "                      \
390           "+DontCompileHugeMethods")                                        \
391                                                                             \
392   product(bool, CaptureBailoutInformation, trueInDebug, DIAGNOSTIC,         \
393           "If compilation is stopped with an error, capture diagnostic "    \
394           "information at the bailout point")                               \
395                                                                             \
396   /* Code Caching flags */                                                  \
397                                                                             \
398   product(bool, UseC2asC3, false,                                           \
399           "Use C2 as 3rd compiler when other high-optimizing compiler "     \
400           "is used")                                                        \
401                                                                             \
402   product(uint, DisableCachedCode, 0,                                       \
403           "Disable cached code on some compilation levels "                 \
404           "(T1=1; T2=2; T4=4; T5/preload=8")                                \
405                                                                             \
406   product(uint, ClassInitBarrierMode, 0,                                    \
407           "Produce and use startup code which could be called "             \
408           "on first method invocation, add class initialization barriers, " \
409           "other checks and constrains if needed "                          \
410           "(0: no barriers; 1: uncommon trap; 2: full barrier)")            \
411                                                                             \
412   product(bool, StressClassInitBarriers, false, DIAGNOSTIC,                 \
413           "Force slow path in class initialization barriers")               \
414                                                                             \
415   product(bool, UseMetadataPointers, true,                                  \
416           "Store Metadata pointers in Relocation Info for cached code")     \
417                                                                             \
418   product(bool, UseCodeLoadThread, true,                                    \
419           "Use separate thread for cached code load")                       \
420                                                                             \
421   product(uint, SCLoadStart, 0,                                             \
422           "The id of the first cached code to load")                        \
423                                                                             \
424   product(uint, SCLoadStop, max_jint,                                       \
425           "The id of the last cached code to load")                         \
426                                                                             \
427   product(bool, VerifyCachedCode, false, DIAGNOSTIC,                        \
428           "Load compiled code but not publish")                             \
429                                                                             \
430   product(bool, UseGlobalCompileQueueLock, false,                           \
431           "Use a global lock for all compilation queues")                   \
432                                                                             \
433   product(bool, UseLockFreeCompileQueues, true,                             \
434           "Use lock free compile queues")                                   \
435                                                                             \
436   product(bool, PrecompileCode, false,                                      \
437           "Precompile code")                                                \
438                                                                             \
439   product(bool, PrecompileOnlyAndExit, false,                               \
440           "Exit after precompilation step is over")                         \
441                                                                             \
442   product(bool, PreloadReduceTraps, true, DIAGNOSTIC,                       \
443           "Preload code should avoid traps as much as possible.")           \
444                                                                             \
445   product(bool, PreloadBlocking, false, DIAGNOSTIC,                         \
446           "Preload code is processed with blocking. Startup would not "     \
447           "proceed until all code preloaded code is done loading.")         \
448                                                                             \
449   product(bool, PreloadOnly, false, EXPERIMENTAL,                           \
450           "Use preload code exclusively. This effectively disables most of "\
451           "profiling and JIT compilation, running close to AOT-only mode.") \
452                                                                             \
453 
454 // end of COMPILER_FLAGS
455 
456 DECLARE_FLAGS(COMPILER_FLAGS)
457 
458 #endif // SHARE_COMPILER_COMPILER_GLOBALS_HPP
< prev index next >