mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +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
|
@ -1784,6 +1784,20 @@ void java_lang_Throwable::print_stack_trace(Handle throwable, outputStream* st)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Print the throwable stack trace by calling the Java method java.lang.Throwable.printStackTrace().
|
||||
*/
|
||||
void java_lang_Throwable::java_printStackTrace(Handle throwable, TRAPS) {
|
||||
assert(throwable->is_a(SystemDictionary::Throwable_klass()), "Throwable instance expected");
|
||||
JavaValue result(T_VOID);
|
||||
JavaCalls::call_virtual(&result,
|
||||
throwable,
|
||||
KlassHandle(THREAD, SystemDictionary::Throwable_klass()),
|
||||
vmSymbols::printStackTrace_name(),
|
||||
vmSymbols::void_method_signature(),
|
||||
THREAD);
|
||||
}
|
||||
|
||||
void java_lang_Throwable::fill_in_stack_trace(Handle throwable, const methodHandle& method, TRAPS) {
|
||||
if (!StackTraceInThrowable) return;
|
||||
ResourceMark rm(THREAD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue