< prev index next >

src/share/vm/jvmci/jvmci_globals.hpp

Print this page




  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_JVMCI_JVMCIGLOBALS_HPP
  26 #define SHARE_VM_JVMCI_JVMCIGLOBALS_HPP
  27 
  28 #include "runtime/globals.hpp"
  29 
  30 //
  31 // Defines all global flags used by the JVMCI compiler. Only flags that need
  32 // to be accessible to the JVMCI C++ code should be defined here. All other
  33 // JVMCI flags should be defined in JVMCIOptions.java.
  34 //
  35 #define JVMCI_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, range, constraint) \
  36                                                                             \
  37   experimental(bool, EnableJVMCI, false,                                    \
  38           "Enable JVMCI")                                                   \
  39                                                                             \
  40   experimental(bool, UseJVMCICompiler, false,                               \
  41           "Use JVMCI as the default compiler")                              \
  42           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  43                                                                             \
  44   experimental(bool, BootstrapJVMCI, false,                                 \
  45           "Bootstrap JVMCI before running Java main method")                \
  46           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  47                                                                             \
  48   experimental(bool, PrintBootstrap, true,                                  \
  49           "Print JVMCI bootstrap progress and summary")                     \
  50           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  51                                                                             \
  52   experimental(intx, JVMCIThreads, 1,                                       \
  53           "Force number of JVMCI compiler threads to use")                  \
  54           range(1, max_jint)                                                \
  55           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  56                                                                             \
  57   experimental(intx, JVMCIHostThreads, 1,                                   \
  58           "Force number of compiler threads for JVMCI host compiler")       \
  59           range(1, max_jint)                                                \
  60           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  61                                                                             \
  62   experimental(bool, CodeInstallSafepointChecks, true,                      \
  63           "Perform explicit safepoint checks while installing code")        \
  64           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  65                                                                             \
  66   NOT_COMPILER2(product(intx, MaxVectorSize, 64,                            \
  67           "Max vector size in bytes, "                                      \
  68           "actual size could be less depending on elements type"))          \
  69                                                                             \
  70   NOT_COMPILER2(product(bool, ReduceInitialCardMarks, true,                 \
  71           "Defer write barriers of young objects"))                         \
  72                                                                             \
  73   experimental(intx, JVMCITraceLevel, 0,                                    \
  74           "Trace level for JVMCI: "                                         \
  75           "1 means emit a message for each CompilerToVM call,"              \
  76           "levels greater than 1 provide progressively greater detail")     \
  77           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  78                                                                             \
  79   experimental(intx, JVMCICounterSize, 0,                                   \
  80           "Reserved size for benchmark counters")                           \
  81           range(0, max_jint)                                                \
  82           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  83                                                                             \
  84   experimental(bool, JVMCICountersExcludeCompiler, true,                    \
  85           "Exclude JVMCI compiler threads from benchmark counters")         \
  86           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  87                                                                             \
  88   develop(bool, JVMCIUseFastLocking, true,                                  \
  89           "Use fast inlined locking code")                                  \
  90           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  91                                                                             \
  92   experimental(intx, JVMCINMethodSizeLimit, (80*K)*wordSize,                \
  93           "Maximum size of a compiled method.")                             \
  94           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  95                                                                             \
  96   develop(bool, TraceUncollectedSpeculations, false,                        \
  97           "Print message when a failed speculation was not collected")      \
  98           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
  99 
 100 
 101 // Read default values for JVMCI globals
 102 
 103 JVMCI_FLAGS(DECLARE_DEVELOPER_FLAG, \
 104             DECLARE_PD_DEVELOPER_FLAG, \
 105             DECLARE_PRODUCT_FLAG, \
 106             DECLARE_PD_PRODUCT_FLAG, \
 107             DECLARE_DIAGNOSTIC_FLAG, \
 108             DECLARE_EXPERIMENTAL_FLAG, \
 109             DECLARE_NOTPRODUCT_FLAG, \
 110             IGNORE_RANGE, \
 111             IGNORE_CONSTRAINT)
 112 



 113 #endif // SHARE_VM_JVMCI_JVMCIGLOBALS_HPP


  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_JVMCI_JVMCIGLOBALS_HPP
  26 #define SHARE_VM_JVMCI_JVMCIGLOBALS_HPP
  27 
  28 #include "runtime/globals.hpp"
  29 
  30 //
  31 // Defines all global flags used by the JVMCI compiler. Only flags that need
  32 // to be accessible to the JVMCI C++ code should be defined here. All other
  33 // JVMCI flags should be defined in JVMCIOptions.java.
  34 //
  35 #define JVMCI_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, range, constraint) \
  36                                                                             \
  37   experimental(bool, EnableJVMCI, false,                                    \
  38           "Enable JVMCI")                                                   \
  39                                                                             \
  40   experimental(bool, UseJVMCICompiler, false,                               \
  41           "Use JVMCI as the default compiler")                              \

  42                                                                             \
  43   experimental(bool, BootstrapJVMCI, false,                                 \
  44           "Bootstrap JVMCI before running Java main method")                \

  45                                                                             \
  46   experimental(bool, PrintBootstrap, true,                                  \
  47           "Print JVMCI bootstrap progress and summary")                     \

  48                                                                             \
  49   experimental(intx, JVMCIThreads, 1,                                       \
  50           "Force number of JVMCI compiler threads to use")                  \
  51           range(1, max_jint)                                                \

  52                                                                             \
  53   experimental(intx, JVMCIHostThreads, 1,                                   \
  54           "Force number of compiler threads for JVMCI host compiler")       \
  55           range(1, max_jint)                                                \

  56                                                                             \
  57   experimental(bool, CodeInstallSafepointChecks, true,                      \
  58           "Perform explicit safepoint checks while installing code")        \

  59                                                                             \
  60   NOT_COMPILER2(product(intx, MaxVectorSize, 64,                            \
  61           "Max vector size in bytes, "                                      \
  62           "actual size could be less depending on elements type"))          \
  63                                                                             \
  64   NOT_COMPILER2(product(bool, ReduceInitialCardMarks, true,                 \
  65           "Defer write barriers of young objects"))                         \
  66                                                                             \
  67   experimental(intx, JVMCITraceLevel, 0,                                    \
  68           "Trace level for JVMCI: "                                         \
  69           "1 means emit a message for each CompilerToVM call,"              \
  70           "levels greater than 1 provide progressively greater detail")     \

  71                                                                             \
  72   experimental(intx, JVMCICounterSize, 0,                                   \
  73           "Reserved size for benchmark counters")                           \
  74           range(0, max_jint)                                                \

  75                                                                             \
  76   experimental(bool, JVMCICountersExcludeCompiler, true,                    \
  77           "Exclude JVMCI compiler threads from benchmark counters")         \

  78                                                                             \
  79   develop(bool, JVMCIUseFastLocking, true,                                  \
  80           "Use fast inlined locking code")                                  \

  81                                                                             \
  82   experimental(intx, JVMCINMethodSizeLimit, (80*K)*wordSize,                \
  83           "Maximum size of a compiled method.")                             \

  84                                                                             \
  85   develop(bool, TraceUncollectedSpeculations, false,                        \
  86           "Print message when a failed speculation was not collected")      

  87 
  88 
  89 // Read default values for JVMCI globals
  90 
  91 JVMCI_FLAGS(DECLARE_DEVELOPER_FLAG, \
  92             DECLARE_PD_DEVELOPER_FLAG, \
  93             DECLARE_PRODUCT_FLAG, \
  94             DECLARE_PD_PRODUCT_FLAG, \
  95             DECLARE_DIAGNOSTIC_FLAG, \
  96             DECLARE_EXPERIMENTAL_FLAG, \
  97             DECLARE_NOTPRODUCT_FLAG, \
  98             IGNORE_RANGE, \
  99             IGNORE_CONSTRAINT)
 100 // Check if any jvmci global defaults changed.
 101 bool is_any_jvmci_arg_values_changed();
 102 // Print jvmci args inconsistency error message.
 103 void print_jvmci_arg_inconsistency_error_message();
 104 #endif // SHARE_VM_JVMCI_JVMCIGLOBALS_HPP
< prev index next >