8236050: Some compiler tests fail when executed with custom TieredLevel

Make sure TieredStopAtLevel is properly supported for different compilation modes

Reviewed-by: redestad, thartmann
This commit is contained in:
Igor Veresov 2020-01-07 07:31:28 -08:00
parent 50a56141ba
commit cc99075c79
7 changed files with 142 additions and 28 deletions

View file

@ -104,7 +104,7 @@ void CompilationPolicy::compile_if_required(const methodHandle& selected_method,
return;
}
CompileBroker::compile_method(selected_method, InvocationEntryBci,
CompilationPolicy::policy()->initial_compile_level(),
CompilationPolicy::policy()->initial_compile_level(selected_method),
methodHandle(), 0, CompileTask::Reason_MustBeCompiled, CHECK);
}
}