Second attempt to fix #1185 (forkProcess and -threaded)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 11 Nov 2009 15:19:15 +0000 (15:19 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 11 Nov 2009 15:19:15 +0000 (15:19 +0000)
commitbb31de5a29cc746d6140c1b425b6c264af7c9de5
tree626a4c19dd4a7fd1130829a70ab2d508e4233f65
parent2ed4c3ce3514e619281352cb8a6a5e7369b00421
Second attempt to fix #1185 (forkProcess and -threaded)

Patch 2/2: first patch is to ghc

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.
GHC/Conc.lhs