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:
Christian Thalinger 2016-01-12 10:44:41 -10:00
parent 360280b4ae
commit 148c6a3e77
4 changed files with 18 additions and 11 deletions

View file

@ -432,8 +432,7 @@ void before_exit(JavaThread* thread) {
if (HAS_PENDING_EXCEPTION) {
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);
}
#endif