mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8154151: VM crashes with assert "Ensure we don't compile before compilebroker init"
Drop compiles submitted with complevel_none Reviewed-by: kvn
This commit is contained in:
parent
41258ea37a
commit
c8593eff81
2 changed files with 40 additions and 3 deletions
|
@ -1037,12 +1037,14 @@ nmethod* CompileBroker::compile_method(const methodHandle& method, int osr_bci,
|
|||
int comp_level,
|
||||
const methodHandle& hot_method, int hot_count,
|
||||
const char* comment, Thread* THREAD) {
|
||||
// do nothing if compilebroker is not available
|
||||
if (!_initialized) {
|
||||
// Do nothing if compilebroker is not initalized or compiles are submitted on level none
|
||||
if (!_initialized || comp_level == CompLevel_none) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
AbstractCompiler *comp = CompileBroker::compiler(comp_level);
|
||||
assert(comp != NULL, "Ensure we don't compile before compilebroker init");
|
||||
assert(comp != NULL, "Ensure we have a compiler");
|
||||
|
||||
DirectiveSet* directive = DirectivesStack::getMatchingDirective(method, comp);
|
||||
nmethod* nm = CompileBroker::compile_method(method, osr_bci, comp_level, hot_method, hot_count, comment, directive, THREAD);
|
||||
DirectivesStack::release(directive);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue