src/hotspot/os/aix/os_aix.cpp
changeset 58547 7d6ba925590f
parent 58492 227ddf1ff93d
child 58548 430b9a492a05
--- 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;