提交 dc2fdd0a 编写于 作者: I iveresov

6982921: assert(_entry_bci != InvocationEntryBci) failed: wrong kind of nmethod

Summary: Assertion fails during print compilation because nmethod::print_on() calls osr_entry_bci() without checking that the method is an osr method. The fix adds an appropriate check.
Reviewed-by: never, twisti
上级 d2bc8599
......@@ -971,7 +971,9 @@ void nmethod::print_on(outputStream* st, const char* title) const {
ttyLocker ttyl;
print_compilation(st, /*method_name*/NULL, title,
method(), /*is_blocking*/false,
compile_id(), osr_entry_bci(), comp_level());
compile_id(),
is_osr_method() ? osr_entry_bci() : InvocationEntryBci,
comp_level());
if (WizardMode) st->print(" (" INTPTR_FORMAT ")", this);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册