8252324: Signal related code should be shared among POSIX platforms

Reviewed-by: coleenp, dholmes, stuefe, ysuenaga
This commit is contained in:
Gerard Ziemski 2020-10-07 16:21:51 +00:00
parent 1e8e543b26
commit 4fe07ccc53
21 changed files with 1826 additions and 3622 deletions

View file

@ -49,6 +49,7 @@
#include "runtime/stubRoutines.hpp"
#include "runtime/thread.inline.hpp"
#include "runtime/timer.hpp"
#include "signals_posix.hpp"
#include "services/memTracker.hpp"
#include "utilities/align.hpp"
#include "utilities/debug.hpp"
@ -255,7 +256,7 @@ JVM_handle_linux_signal(int sig,
if (sig == SIGPIPE || sig == SIGXFSZ) {
// allow chained handler to go first
if (os::Linux::chained_handler(sig, info, ucVoid)) {
if (PosixSignals::chained_handler(sig, info, ucVoid)) {
return true;
} else {
// Ignoring SIGPIPE/SIGXFSZ - see bugs 4229104 or 6499219
@ -273,7 +274,7 @@ JVM_handle_linux_signal(int sig,
JavaThread* thread = NULL;
VMThread* vmthread = NULL;
if (os::Linux::signal_handlers_are_installed) {
if (PosixSignals::are_signal_handlers_installed()) {
if (t != NULL ){
if(t->is_Java_thread()) {
thread = t->as_Java_thread();
@ -554,7 +555,7 @@ JVM_handle_linux_signal(int sig,
}
// signal-chaining
if (os::Linux::chained_handler(sig, info, ucVoid)) {
if (PosixSignals::chained_handler(sig, info, ucVoid)) {
return true;
}