From: Ivan Maidanski Date: Fri, 28 Sep 2018 06:35:51 +0000 (+0300) Subject: Call real pthread_sigmask instead of its wrapper in start_mark_threads X-Git-Tag: v8.0.2~100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45b17c2c3d54a4d187f20bb548826b98f53771e2;p=gc Call real pthread_sigmask instead of its wrapper in start_mark_threads (fix of commit 95947bdc5) The wrapper itself does not do anything useful in this case. * pthread_support.c [PARALLEL_MARK && !NO_MARKER_SPECIAL_SIGMASK] (GC_start_mark_threads_inner): Call REAL_FUNC(pthread_sigmask) instead of pthread_sigmask. --- diff --git a/pthread_support.c b/pthread_support.c index 22b369d6..8a78efed 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -451,7 +451,7 @@ GC_INNER void GC_start_mark_threads_inner(void) ABORT("sigdelset failed"); # endif - if (pthread_sigmask(SIG_BLOCK, &set, &oldset) < 0) { + if (REAL_FUNC(pthread_sigmask)(SIG_BLOCK, &set, &oldset) < 0) { WARN("pthread_sigmask set failed, no markers started," " errno = %" WARN_PRIdPTR "\n", errno); GC_markers_m1 = 0; @@ -477,7 +477,7 @@ GC_INNER void GC_start_mark_threads_inner(void) # ifndef NO_MARKER_SPECIAL_SIGMASK /* Restore previous signal mask. */ - if (pthread_sigmask(SIG_SETMASK, &oldset, NULL) < 0) { + if (REAL_FUNC(pthread_sigmask)(SIG_SETMASK, &oldset, NULL) < 0) { WARN("pthread_sigmask restore failed, errno = %" WARN_PRIdPTR "\n", errno); }