mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8191101: Show register content in hs-err file on assert
Reviewed-by: adinn, clanger, simonis
This commit is contained in:
parent
213862d866
commit
3e603a776e
15 changed files with 272 additions and 22 deletions
|
@ -51,6 +51,7 @@
|
|||
#include "runtime/stubRoutines.hpp"
|
||||
#include "runtime/thread.inline.hpp"
|
||||
#include "runtime/timer.hpp"
|
||||
#include "utilities/debug.hpp"
|
||||
#include "utilities/events.hpp"
|
||||
#include "utilities/vmError.hpp"
|
||||
|
||||
|
@ -266,6 +267,13 @@ JVM_handle_linux_signal(int sig,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef CAN_SHOW_REGISTERS_ON_ASSERT
|
||||
if ((sig == SIGSEGV || sig == SIGBUS) && info != NULL && info->si_addr == g_assert_poison) {
|
||||
handle_assert_poison_fault(ucVoid, info->si_addr);
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
JavaThread* thread = NULL;
|
||||
VMThread* vmthread = NULL;
|
||||
if (os::Linux::signal_handlers_are_installed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue