< prev index next >

src/hotspot/os_cpu/linux_ppc/os_linux_ppc.cpp

Print this page
rev 49255 : 8191101: Show register content in hs-err file on assert
Reviewed-by:

@@ -49,10 +49,11 @@
 #include "runtime/safepointMechanism.hpp"
 #include "runtime/sharedRuntime.hpp"
 #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"
 
 // put OS-includes here
 # include <sys/types.h>

@@ -264,10 +265,17 @@
       // Return control to the HTM abort handler.
       return true;
     }
   }
 
+  #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) {
     if (t != NULL) {
       if(t->is_Java_thread()) {
< prev index next >