changeset 56591:7d6ba925590f

8232060: add some initializations using sigemptyset in os_aix.cpp Reviewed-by: clanger, stuefe
author mbaesken
date Thu, 10 Oct 2019 08:46:07 +0200
parents d94a76f5d883
children 430b9a492a05
files src/hotspot/os/aix/os_aix.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;