8184349: There should be some verification that EnableJVMCI is disabled if a GC not supporting JVMCI is selected

Exit VM with Error when JVMCI does not support seected GC.

Reviewed-by: iveresov, thartmann
This commit is contained in:
Vladimir Kozlov 2018-06-15 09:16:48 -07:00
parent 3ced42361d
commit 9b7a61eff1
15 changed files with 409 additions and 408 deletions

View file

@ -1217,8 +1217,8 @@ void MethodData::init() {
// Set per-method invoke- and backedge mask.
double scale = 1.0;
CompilerOracle::has_option_value(_method, "CompileThresholdScaling", scale);
_invoke_mask = right_n_bits(Arguments::scaled_freq_log(Tier0InvokeNotifyFreqLog, scale)) << InvocationCounter::count_shift;
_backedge_mask = right_n_bits(Arguments::scaled_freq_log(Tier0BackedgeNotifyFreqLog, scale)) << InvocationCounter::count_shift;
_invoke_mask = right_n_bits(CompilerConfig::scaled_freq_log(Tier0InvokeNotifyFreqLog, scale)) << InvocationCounter::count_shift;
_backedge_mask = right_n_bits(CompilerConfig::scaled_freq_log(Tier0BackedgeNotifyFreqLog, scale)) << InvocationCounter::count_shift;
_tenure_traps = 0;
_num_loops = 0;