thr_sigsetmask is used only in one place in hotspot codebase. With this enhancement it should be evaluated if thr_sigsetmask need to be used. If it is needed the reason why pthread_sigmask could not be used should be documented. If it is not needed it should be replaced with pthread_sigmask.