diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-11-13 17:04:50 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-11-13 17:04:50 +0300 |
commit | 665ea75723d5d6e1eb8a303c25a4400f84eccffb (patch) | |
tree | eb58195747d71ddb3831146a5fcb16925499e8c1 /win32_threads.c | |
parent | 27f51b88b3c3c476cfad4c3107eb40b3bf202f31 (diff) | |
download | bdwgc-665ea75723d5d6e1eb8a303c25a4400f84eccffb.tar.gz |
Fix use of unset errno after pthread_sigmask calls
(fix of commit 95947bdc5)
* pthread_support.c [PARALLEL_MARK && !NO_MARKER_SPECIAL_SIGMASK]
(GC_start_mark_threads_inner): Do not pass errno value to WARN() calls
(because pthread_sigmask does not set errno).
* win32_threads.c [PARALLEL_MARK && GC_PTHREADS_PARAMARK
&& !NO_MARKER_SPECIAL_SIGMASK] (GC_start_mark_threads_inner): Likewise.
Diffstat (limited to 'win32_threads.c')
-rw-r--r-- | win32_threads.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/win32_threads.c b/win32_threads.c index 69209a6b..d827de43 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -2002,8 +2002,7 @@ GC_INNER void GC_get_next_stack(char *start, char *limit, if (sigfillset(&set) != 0) ABORT("sigfillset failed"); if (EXPECT(pthread_sigmask(SIG_BLOCK, &set, &oldset) < 0, FALSE)) { - WARN("pthread_sigmask set failed, no markers started," - " errno= %" WARN_PRIdPTR "\n", (signed_word)errno); + WARN("pthread_sigmask set failed, no markers started\n", 0); GC_markers_m1 = 0; (void)pthread_attr_destroy(&attr); return; @@ -2028,8 +2027,7 @@ GC_INNER void GC_get_next_stack(char *start, char *limit, # ifndef NO_MARKER_SPECIAL_SIGMASK /* Restore previous signal mask. */ if (EXPECT(pthread_sigmask(SIG_SETMASK, &oldset, NULL) < 0, FALSE)) { - WARN("pthread_sigmask restore failed, errno= %" WARN_PRIdPTR "\n", - (signed_word)errno); + WARN("pthread_sigmask restore failed\n", 0); } # endif |