# HG changeset patch # User mbaesken # Date 1570689967 -7200 # Node ID 7d6ba925590fcbf7bb2fd7ec5edac82ba95c753d # Parent d94a76f5d883737220cf922df74bbe03ca119878 8232060: add some initializations using sigemptyset in os_aix.cpp Reviewed-by: clanger, stuefe diff -r d94a76f5d883 -r 7d6ba925590f src/hotspot/os/aix/os_aix.cpp --- a/src/hotspot/os/aix/os_aix.cpp Fri Oct 11 01:11:28 2019 +0200 +++ b/src/hotspot/os/aix/os_aix.cpp Thu Oct 10 08:46:07 2019 +0200 @@ -2756,7 +2756,7 @@ os::SuspendResume::State state = osthread->sr.suspended(); if (state == os::SuspendResume::SR_SUSPENDED) { sigset_t suspend_set; // signals for sigsuspend() - + sigemptyset(&suspend_set); // get current set of blocked signals and unblock resume signal pthread_sigmask(SIG_BLOCK, NULL, &suspend_set); sigdelset(&suspend_set, SR_signum); @@ -3042,6 +3042,7 @@ // try to honor the signal mask sigset_t oset; + sigemptyset(&oset); pthread_sigmask(SIG_SETMASK, &(actp->sa_mask), &oset); // call into the chained handler @@ -3052,7 +3053,7 @@ } // restore the signal mask - pthread_sigmask(SIG_SETMASK, &oset, 0); + pthread_sigmask(SIG_SETMASK, &oset, NULL); } // Tell jvm's signal handler the signal is taken care of. return true;