Fix missing error handling of pthread_attr_init/getstacksize
authorIvan Maidanski <ivmai@mail.ru>
Mon, 20 Oct 2014 20:54:28 +0000 (00:54 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 20 Oct 2014 20:58:36 +0000 (00:58 +0400)
commit0d147af1c4ecfe24c46952e059a78ad1e6b28553
treec822a74b2447491591762ddc459d568fe97fe250
parentb725923951d77f5c6792c2797f89179267c58c9c
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).
misc.c
os_dep.c
pthread_support.c
tests/test.c
win32_threads.c