diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2014-10-21 00:54:28 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2014-10-21 00:58:36 +0400 |
commit | 0d147af1c4ecfe24c46952e059a78ad1e6b28553 (patch) | |
tree | c822a74b2447491591762ddc459d568fe97fe250 /win32_threads.c | |
parent | b725923951d77f5c6792c2797f89179267c58c9c (diff) | |
download | bdwgc-0d147af1c4ecfe24c46952e059a78ad1e6b28553.tar.gz |
Fix missing error handling of pthread_attr_init/getstacksize
* misc.c (GC_init): Explicitly ignore returned value of
pthread_mutexattr_destroy.
* os_dep.c (GC_get_main_stack_base, GC_get_stack_base, GC_dirty_init):
Likewise.
* pthread_support.c (start_mark_threads, pthread_create): Likewise.
* tests/test.c (main): Likewise.
* win32_threads.c (start_mark_threads): Likewise.
* pthread_support.c (pthread_create): ABORT (with the appropriate
message) in case of pthread_attr_getstacksize or pthread_attr_init
failure.
* tests/test.c (main): Print error code and FAIL if pthread_attr_init
or pthread_attr_setstacksize failed (only if GC_PTHREADS).
Diffstat (limited to 'win32_threads.c')
-rw-r--r-- | win32_threads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32_threads.c b/win32_threads.c index fc65743a..31d33b65 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -1776,7 +1776,7 @@ GC_INNER void GC_get_next_stack(char *start, char *limit, } } GC_markers_m1 = i; - pthread_attr_destroy(&attr); + (void)pthread_attr_destroy(&attr); GC_COND_LOG_PRINTF("Started %d mark helper threads\n", GC_markers_m1); } |