]> granicus.if.org Git - gc/commit
Fix GC_sig_suspend initialization when non-constant SIGRTMIN used
authorIvan Maidanski <ivmai@mail.ru>
Fri, 31 Jan 2014 20:32:08 +0000 (00:32 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 31 Jan 2014 20:35:54 +0000 (00:35 +0400)
commit23c1cf2c6e58556853bd3c3f0173421be6fc43a6
treea28581d33daa1992768d31151be9eeb4a6c3b70e
parent2473707be5dec4cb480b11377a5c4f98edf8a479
Fix GC_sig_suspend initialization when non-constant SIGRTMIN used

* pthread_stop_world.c (SIGNAL_UNSET): New macro.
* pthread_stop_world.c (GC_sig_suspend, GC_sig_thr_restart): Initialize
to SIGNAL_UNSET (instead of SIG_SUSPEND/THR_RESTART).
* pthread_stop_world.c (GC_get_suspend_signal): Return SIG_SUSPEND if
GC_sig_suspend is SIGNAL_UNSET.
* pthread_stop_world.c (GC_get_thr_restart_signal): Return
SIG_THR_RESTART if GC_sig_thr_restart is SIGNAL_UNSET.
* pthread_stop_world.c (GC_unblock_gc_signals): Add assertion for
initialization of GC_sig_suspend and GC_sig_thr_restart.
* pthread_stop_world.c (GC_stop_init): Replace SIGNAL_UNSET value for
GC_sig_suspend, GC_sig_thr_restart to SIG_SUSPEND and SIG_THR_RESTART,
respectively.
pthread_stop_world.c