# HG changeset patch # User stuefe # Date 1497334157 -7200 # Node ID 13de3946d61ed00130223596a107699472ee6a1f # Parent beb2c322626de17a6c3c17a0b620b2ef53ae6086 8182034: os::Posix::is_valid_signal() should, if it uses sigaddset, initialize the signal set Summary: Added missing sigemptyset. Reviewed-by: kbarrett, clanger diff -r beb2c322626d -r 13de3946d61e hotspot/src/os/posix/vm/os_posix.cpp --- a/hotspot/src/os/posix/vm/os_posix.cpp Thu Jun 22 13:59:00 2017 -0700 +++ b/hotspot/src/os/posix/vm/os_posix.cpp Tue Jun 13 08:09:17 2017 +0200 @@ -760,6 +760,7 @@ #else // Use sigaddset to check for signal validity. sigset_t set; + sigemptyset(&set); if (sigaddset(&set, sig) == -1 && errno == EINVAL) { return false; }