equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
47 #include "runtime/osThread.hpp" |
47 #include "runtime/osThread.hpp" |
48 #include "runtime/sharedRuntime.hpp" |
48 #include "runtime/sharedRuntime.hpp" |
49 #include "runtime/stubRoutines.hpp" |
49 #include "runtime/stubRoutines.hpp" |
50 #include "runtime/thread.inline.hpp" |
50 #include "runtime/thread.inline.hpp" |
51 #include "runtime/timer.hpp" |
51 #include "runtime/timer.hpp" |
|
52 #include "utilities/debug.hpp" |
52 #include "utilities/events.hpp" |
53 #include "utilities/events.hpp" |
53 #include "utilities/vmError.hpp" |
54 #include "utilities/vmError.hpp" |
54 |
55 |
55 // Linux/Sparc has rather obscure naming of registers in sigcontext |
56 // Linux/Sparc has rather obscure naming of registers in sigcontext |
56 // different between 32 and 64 bits |
57 // different between 32 and 64 bits |
511 // Ignoring SIGPIPE/SIGXFSZ - see bugs 4229104 or 6499219 |
512 // Ignoring SIGPIPE/SIGXFSZ - see bugs 4229104 or 6499219 |
512 return true; |
513 return true; |
513 } |
514 } |
514 } |
515 } |
515 |
516 |
|
517 #ifdef CAN_SHOW_REGISTERS_ON_ASSERT |
|
518 if ((sig == SIGSEGV || sig == SIGBUS) && info != NULL && info->si_addr == g_assert_poison) { |
|
519 handle_assert_poison_fault(ucVoid, info->si_addr); |
|
520 return 1; |
|
521 } |
|
522 #endif |
|
523 |
516 JavaThread* thread = NULL; |
524 JavaThread* thread = NULL; |
517 VMThread* vmthread = NULL; |
525 VMThread* vmthread = NULL; |
518 if (os::Linux::signal_handlers_are_installed) { |
526 if (os::Linux::signal_handlers_are_installed) { |
519 if (t != NULL ){ |
527 if (t != NULL ){ |
520 if(t->is_Java_thread()) { |
528 if(t->is_Java_thread()) { |