mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8146246: JVMCICompiler::abort_on_pending_exception: assert(!thread->owns_locks()) failed: must release all locks when leaving VM
Reviewed-by: coleenp, kvn
This commit is contained in:
parent
360280b4ae
commit
148c6a3e77
4 changed files with 18 additions and 11 deletions
|
@ -162,10 +162,7 @@ void JVMCICompiler::compile_method(const methodHandle& method, int entry_bci, JV
|
|||
Handle exception(THREAD, PENDING_EXCEPTION);
|
||||
CLEAR_PENDING_EXCEPTION;
|
||||
|
||||
{
|
||||
ttyLocker ttyl;
|
||||
java_lang_Throwable::print_stack_trace(exception, tty);
|
||||
}
|
||||
java_lang_Throwable::java_printStackTrace(exception, THREAD);
|
||||
|
||||
// Something went wrong so disable compilation at this level
|
||||
method->set_not_compilable(CompLevel_full_optimization);
|
||||
|
@ -181,11 +178,7 @@ void JVMCICompiler::abort_on_pending_exception(Handle exception, const char* mes
|
|||
Thread* THREAD = Thread::current();
|
||||
CLEAR_PENDING_EXCEPTION;
|
||||
|
||||
{
|
||||
ttyLocker ttyl;
|
||||
tty->print_raw_cr(message);
|
||||
java_lang_Throwable::print_stack_trace(exception, tty);
|
||||
}
|
||||
java_lang_Throwable::java_printStackTrace(exception, THREAD);
|
||||
|
||||
// Give other aborting threads to also print their stack traces.
|
||||
// This can be very useful when debugging class initialization
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue