Second attempt to fix #1185 (forkProcess and -threaded)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 11 Nov 2009 14:28:22 +0000 (14:28 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 11 Nov 2009 14:28:22 +0000 (14:28 +0000)
commit2d5e052d795c99c17b1ca6fa1ca8be7d082be09c
tree6eabbfd2ceeb75f8c481d1872e46fa3c6b88bf9d
parentcd0e2c0cc3005c3f5e74eeda57dc9cebbe1bac7e
Second attempt to fix #1185 (forkProcess and -threaded)

Patch 1/2: second part of the patch is to libraries/base

This time without dynamic linker hacks, instead I've expanded the
existing rts/Globals.c to cache more CAFs, specifically those in
GHC.Conc.  We were already using this trick for signal handlers, I
should have realised before.

It's still quite unsavoury, but we can do away with rts/Globals.c in
the future when we switch to a dynamically-linked GHCi.
includes/rts/Globals.h
includes/rts/IOManager.h
rts/Globals.c
rts/Linker.c
rts/posix/Signals.c