Add config option to use STGRTMIN-based signals for thread suspend/resume
authorDavid Grove <groved@us.ibm.com>
Wed, 8 Jan 2014 23:18:16 +0000 (18:18 -0500)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 31 Jan 2014 08:08:44 +0000 (12:08 +0400)
commit528dea874ae6a448a8379c5067c7c4556c6cb303
treefbf687e7851f08076ebf4c918d85703babb7319c
parent6f697168922831bb4d81a4629d2e1fc0ddb54b84
Add config option to use STGRTMIN-based signals for thread suspend/resume

Change motivated by using BDWGC in the X10 runtime on systems where
IBM Parallel Environment is used to launch the X10 processes. PE
is already using the signals BDWCG is using for its own purposes, so
we need to force the GC to use different ones to avoid a conflict.

* configure.ac (sigrt-signals): Handle new option.
* configure.ac (GC_USESIGRT_SIGNALS): New AC define.
* include/private/gc_priv.h (SIG_SUSPEND): Force to be defined to
_SIGRTMIN+6 if GC_USESIGRT_SIGNALS (Darwin is excluded anyway).
* pthread_stop_world.c (SIG_THR_RESTART): Force to be defined to
_SIGRTMIN+5 if GC_USESIGRT_SIGNALS; reformat code.
configure.ac
include/private/gc_priv.h
pthread_stop_world.c