hotspot/src/share/vm/jvmci/jvmci_globals.hpp
changeset 36313 e7eff81d7f1d
parent 33160 c59f1676d27e
child 38273 2634194d7555
equal deleted inserted replaced
36312:a18280a1534d 36313:e7eff81d7f1d
    37   experimental(bool, EnableJVMCI, false,                                    \
    37   experimental(bool, EnableJVMCI, false,                                    \
    38           "Enable JVMCI")                                                   \
    38           "Enable JVMCI")                                                   \
    39                                                                             \
    39                                                                             \
    40   experimental(bool, UseJVMCICompiler, false,                               \
    40   experimental(bool, UseJVMCICompiler, false,                               \
    41           "Use JVMCI as the default compiler")                              \
    41           "Use JVMCI as the default compiler")                              \
    42           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    43                                                                             \
    42                                                                             \
    44   experimental(bool, BootstrapJVMCI, false,                                 \
    43   experimental(bool, BootstrapJVMCI, false,                                 \
    45           "Bootstrap JVMCI before running Java main method")                \
    44           "Bootstrap JVMCI before running Java main method")                \
    46           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    47                                                                             \
    45                                                                             \
    48   experimental(bool, PrintBootstrap, true,                                  \
    46   experimental(bool, PrintBootstrap, true,                                  \
    49           "Print JVMCI bootstrap progress and summary")                     \
    47           "Print JVMCI bootstrap progress and summary")                     \
    50           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    51                                                                             \
    48                                                                             \
    52   experimental(intx, JVMCIThreads, 1,                                       \
    49   experimental(intx, JVMCIThreads, 1,                                       \
    53           "Force number of JVMCI compiler threads to use")                  \
    50           "Force number of JVMCI compiler threads to use")                  \
    54           range(1, max_jint)                                                \
    51           range(1, max_jint)                                                \
    55           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    56                                                                             \
    52                                                                             \
    57   experimental(intx, JVMCIHostThreads, 1,                                   \
    53   experimental(intx, JVMCIHostThreads, 1,                                   \
    58           "Force number of compiler threads for JVMCI host compiler")       \
    54           "Force number of compiler threads for JVMCI host compiler")       \
    59           range(1, max_jint)                                                \
    55           range(1, max_jint)                                                \
    60           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    61                                                                             \
    56                                                                             \
    62   experimental(bool, CodeInstallSafepointChecks, true,                      \
    57   experimental(bool, CodeInstallSafepointChecks, true,                      \
    63           "Perform explicit safepoint checks while installing code")        \
    58           "Perform explicit safepoint checks while installing code")        \
    64           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    65                                                                             \
    59                                                                             \
    66   NOT_COMPILER2(product(intx, MaxVectorSize, 64,                            \
    60   NOT_COMPILER2(product(intx, MaxVectorSize, 64,                            \
    67           "Max vector size in bytes, "                                      \
    61           "Max vector size in bytes, "                                      \
    68           "actual size could be less depending on elements type"))          \
    62           "actual size could be less depending on elements type"))          \
    69                                                                             \
    63                                                                             \
    72                                                                             \
    66                                                                             \
    73   experimental(intx, JVMCITraceLevel, 0,                                    \
    67   experimental(intx, JVMCITraceLevel, 0,                                    \
    74           "Trace level for JVMCI: "                                         \
    68           "Trace level for JVMCI: "                                         \
    75           "1 means emit a message for each CompilerToVM call,"              \
    69           "1 means emit a message for each CompilerToVM call,"              \
    76           "levels greater than 1 provide progressively greater detail")     \
    70           "levels greater than 1 provide progressively greater detail")     \
    77           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    78                                                                             \
    71                                                                             \
    79   experimental(intx, JVMCICounterSize, 0,                                   \
    72   experimental(intx, JVMCICounterSize, 0,                                   \
    80           "Reserved size for benchmark counters")                           \
    73           "Reserved size for benchmark counters")                           \
    81           range(0, max_jint)                                                \
    74           range(0, max_jint)                                                \
    82           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    83                                                                             \
    75                                                                             \
    84   experimental(bool, JVMCICountersExcludeCompiler, true,                    \
    76   experimental(bool, JVMCICountersExcludeCompiler, true,                    \
    85           "Exclude JVMCI compiler threads from benchmark counters")         \
    77           "Exclude JVMCI compiler threads from benchmark counters")         \
    86           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    87                                                                             \
    78                                                                             \
    88   develop(bool, JVMCIUseFastLocking, true,                                  \
    79   develop(bool, JVMCIUseFastLocking, true,                                  \
    89           "Use fast inlined locking code")                                  \
    80           "Use fast inlined locking code")                                  \
    90           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    91                                                                             \
    81                                                                             \
    92   experimental(intx, JVMCINMethodSizeLimit, (80*K)*wordSize,                \
    82   experimental(intx, JVMCINMethodSizeLimit, (80*K)*wordSize,                \
    93           "Maximum size of a compiled method.")                             \
    83           "Maximum size of a compiled method.")                             \
    94           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    95                                                                             \
    84                                                                             \
    96   develop(bool, TraceUncollectedSpeculations, false,                        \
    85   develop(bool, TraceUncollectedSpeculations, false,                        \
    97           "Print message when a failed speculation was not collected")      \
    86           "Print message when a failed speculation was not collected")
    98           constraint(EnableJVMCIMustBeEnabledConstraintFunc,AtParse)        \
       
    99 
    87 
   100 
    88 
   101 // Read default values for JVMCI globals
    89 // Read default values for JVMCI globals
   102 
    90 
   103 JVMCI_FLAGS(DECLARE_DEVELOPER_FLAG, \
    91 JVMCI_FLAGS(DECLARE_DEVELOPER_FLAG, \
   108             DECLARE_EXPERIMENTAL_FLAG, \
    96             DECLARE_EXPERIMENTAL_FLAG, \
   109             DECLARE_NOTPRODUCT_FLAG, \
    97             DECLARE_NOTPRODUCT_FLAG, \
   110             IGNORE_RANGE, \
    98             IGNORE_RANGE, \
   111             IGNORE_CONSTRAINT)
    99             IGNORE_CONSTRAINT)
   112 
   100 
       
   101 class JVMCIGlobals {
       
   102  public:
       
   103   // Return true if jvmci flags are consistent.
       
   104   static bool check_jvmci_flags_are_consistent();
       
   105   // Print jvmci arguments inconsistency error message.
       
   106   static void print_jvmci_args_inconsistency_error_message();
       
   107 };
   113 #endif // SHARE_VM_JVMCI_JVMCIGLOBALS_HPP
   108 #endif // SHARE_VM_JVMCI_JVMCIGLOBALS_HPP