Fix GC_dirty_init by avoiding GC_get_suspend_signal if no threads support
authorIvan Maidanski <ivmai@mail.ru>
Tue, 24 Jul 2012 06:34:15 +0000 (10:34 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 24 Jul 2012 07:36:50 +0000 (11:36 +0400)
commit092f7dff3f7a0fafcc02ecb4a67e673f90aa7354
treefc6f8df7b30ec80f9e6398ad9e47b1438a33ea5f
parent6316883591887ac5ae1e8cf10473a395c6533b61
Fix GC_dirty_init by avoiding GC_get_suspend_signal if no threads support
(fix commit '05daaee')

* os_dep.c (GC_dirty_init): Pass SIG_SUSPEND instead of
GC_get_suspend_signal() to sigaddset() if no THREADS (or if
GC_OPENBSD_THREADS, or GC_WIN32_THREADS or NACL).
* pthread_support.c (pthread_sigmask): Assert GC_get_suspend_signal()
does not return -1 (only if not GC_NO_PTHREAD_SIGMASK).
os_dep.c
pthread_support.c