diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-11-13 17:04:50 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-11-15 11:12:07 +0300 |
commit | 4454cf9a221e80e44ce1f6a669148d565005ad9d (patch) | |
tree | 17e7e773736ce58b00d916fd6d604ed80773cb92 | |
parent | 79333ccdd58708c31a6b9b6800bb8c60106b9971 (diff) | |
download | bdwgc-4454cf9a221e80e44ce1f6a669148d565005ad9d.tar.gz |
Fix use of unset errno after pthread_create call
(a cherry-pick of commit e77f056b9 from 'release-7_6')
* pthread_support.c [PARALLEL_MARK]
(GC_start_mark_threads_inner): Do not pass errno value to WARN() call
(because pthread_create does not set errno).
-rw-r--r-- | pthread_support.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pthread_support.c b/pthread_support.c index cbec4b42..14a99416 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -444,8 +444,7 @@ start_mark_threads(void) for (i = 0; i < available_markers_m1; ++i) { if (0 != REAL_FUNC(pthread_create)(GC_mark_threads + i, &attr, GC_mark_thread, (void *)(word)i)) { - WARN("Marker thread creation failed, errno = %" WARN_PRIdPTR "\n", - errno); + WARN("Marker thread creation failed\n", 0); /* Don't try to create other marker threads. */ GC_markers_m1 = i; break; |