mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
Merge
This commit is contained in:
commit
8ff932b950
24 changed files with 527 additions and 166 deletions
|
@ -1595,7 +1595,15 @@ void JavaThread::exit(bool destroy_vm, ExitType exit_type) {
|
|||
uncaught_exception, // Arg 2
|
||||
THREAD);
|
||||
}
|
||||
CLEAR_PENDING_EXCEPTION;
|
||||
if (HAS_PENDING_EXCEPTION) {
|
||||
ResourceMark rm(this);
|
||||
jio_fprintf(defaultStream::error_stream(),
|
||||
"\nException: %s thrown from the UncaughtExceptionHandler"
|
||||
" in thread \"%s\"\n",
|
||||
Klass::cast(pending_exception()->klass())->external_name(),
|
||||
get_thread_name());
|
||||
CLEAR_PENDING_EXCEPTION;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue