Second attempt to fix #1185 (forkProcess and -threaded)
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.

acowley/ghc,shlevy/ghc,siddhanathan/ghc,mettekou/ghc,tjakway/ghcjvm,spacekitteh/smcghc,nkaretnikov/ghc,olsner/ghc,tjakway/ghcjvm,green-haskell/ghc,gridaphobe/ghc,tibbe/ghc,GaloisInc/halvm-ghc,ezyang/ghc,vTurbine/ghc,TomMD/ghc,da-x/ghc,vTurbine/ghc,mettekou/ghc,siddhanathan/ghc,ghc-android/ghc,oldmanmike/ghc,nkaretnikov/ghc,sdiehl/ghc,snoyberg/ghc,jstolarek/ghc,nushio3/ghc,forked-upstream-packages-for-ghcjs/ghc,sgillespie/ghc,ryantm/ghc,oldmanmike/ghc,elieux/ghc,sdiehl/ghc,siddhanathan/ghc,wxwxwwxxx/ghc,lukexi/ghc,nushio3/ghc,acowley/ghc,ryantm/ghc,anton-dessiatov/ghc,sdiehl/ghc,anton-dessiatov/ghc,olsner/ghc,mcschroeder/ghc,frantisekfarka/ghc-dsi,fmthoma/ghc,elieux/ghc,spacekitteh/smcghc,tjakway/ghcjvm,mfine/ghc,nathyong/microghc-ghc,mcschroeder/ghc,mettekou/ghc,christiaanb/ghc,tibbe/ghc,anton-dessiatov/ghc,sdiehl/ghc,acowley/ghc,GaloisInc/halvm-ghc,snoyberg/ghc,elieux/ghc,shlevy/ghc,wxwxwwxxx/ghc,sgillespie/ghc,nkaretnikov/ghc,GaloisInc/halvm-ghc,nushio3/ghc,forked-upstream-packages-for-ghcjs/ghc,nathyong/microghc-ghc,ryantm/ghc,AlexanderPankiv/ghc,frantisekfarka/ghc-dsi,siddhanathan/ghc,vTurbine/ghc,spacekitteh/smcghc,gridaphobe/ghc,vTurbine/ghc,oldmanmike/ghc,siddhanathan/ghc,gcampax/ghc,gcampax/ghc,nkaretnikov/ghc,vikraman/ghc,christiaanb/ghc,christiaanb/ghc,snoyberg/ghc,mcschroeder/ghc,mcschroeder/ghc,nushio3/ghc,holzensp/ghc,nkaretnikov/ghc,ml9951/ghc,forked-upstream-packages-for-ghcjs/ghc,GaloisInc/halvm-ghc,urbanslug/ghc,mfine/ghc,anton-dessiatov/ghc,tjakway/ghcjvm,elieux/ghc,ghc-android/ghc,TomMD/ghc,nkaretnikov/ghc,sdiehl/ghc,wxwxwwxxx/ghc,vikraman/ghc,da-x/ghc,christiaanb/ghc,urbanslug/ghc,AlexanderPankiv/ghc,ghc-android/ghc,tibbe/ghc,vikraman/ghc,ezyang/ghc,AlexanderPankiv/ghc,ezyang/ghc,frantisekfarka/ghc-dsi,shlevy/ghc,nushio3/ghc,mcschroeder/ghc,elieux/ghc,lukexi/ghc,mettekou/ghc,jstolarek/ghc,vTurbine/ghc,fmthoma/ghc,TomMD/ghc,ghc-android/ghc,ml9951/ghc,spacekitteh/smcghc,elieux/ghc,da-x/ghc,ml9951/ghc,green-haskell/ghc,vikraman/ghc,lukexi/ghc,tibbe/ghc,frantisekfarka/ghc-dsi,mfine/ghc,gridaphobe/ghc,nushio3/ghc,forked-upstream-packages-for-ghcjs/ghc,vikraman/ghc,mettekou/ghc,vikraman/ghc,wxwxwwxxx/ghc,nathyong/microghc-ghc,forked-upstream-packages-for-ghcjs/ghc,nathyong/microghc-ghc,tjakway/ghcjvm,nathyong/microghc-ghc,acowley/ghc,bitemyapp/ghc,sgillespie/ghc,mettekou/ghc,tibbe/ghc,christiaanb/ghc,urbanslug/ghc,nathyong/microghc-ghc,ezyang/ghc,GaloisInc/halvm-ghc,gridaphobe/ghc,acowley/ghc,wxwxwwxxx/ghc,urbanslug/ghc,gridaphobe/ghc,wxwxwwxxx/ghc,green-haskell/ghc,mfine/ghc,sdiehl/ghc,AlexanderPankiv/ghc,bitemyapp/ghc,acowley/ghc,anton-dessiatov/ghc,mfine/ghc,snoyberg/ghc,sgillespie/ghc,forked-upstream-packages-for-ghcjs/ghc,ghc-android/ghc,oldmanmike/ghc,GaloisInc/halvm-ghc,green-haskell/ghc,TomMD/ghc,mcschroeder/ghc,mettekou/ghc,mcschroeder/ghc,oldmanmike/ghc,GaloisInc/halvm-ghc,urbanslug/ghc,TomMD/ghc,ghc-android/ghc,elieux/ghc,holzensp/ghc,christiaanb/ghc,oldmanmike/ghc,jstolarek/ghc,sdiehl/ghc,olsner/ghc,mfine/ghc,sgillespie/ghc,snoyberg/ghc,ml9951/ghc,vTurbine/ghc,jstolarek/ghc,gridaphobe/ghc,ml9951/ghc,olsner/ghc,lukexi/ghc,nkaretnikov/ghc,bitemyapp/ghc,AlexanderPankiv/ghc,olsner/ghc,gcampax/ghc,ezyang/ghc,green-haskell/ghc,snoyberg/ghc,vikraman/ghc,ryantm/ghc,sgillespie/ghc,tjakway/ghcjvm,gcampax/ghc,TomMD/ghc,anton-dessiatov/ghc,siddhanathan/ghc,fmthoma/ghc,ml9951/ghc,christiaanb/ghc,gridaphobe/ghc,da-x/ghc,siddhanathan/ghc,jstolarek/ghc,fmthoma/ghc,ezyang/ghc,snoyberg/ghc,shlevy/ghc,gcampax/ghc,nushio3/ghc,olsner/ghc,holzensp/ghc,TomMD/ghc,bitemyapp/ghc,lukexi/ghc,shlevy/ghc,bitemyapp/ghc,mfine/ghc,ml9951/ghc,fmthoma/ghc,urbanslug/ghc,spacekitteh/smcghc,acowley/ghc,fmthoma/ghc,sgillespie/ghc,ezyang/ghc,ghc-android/ghc,da-x/ghc,wxwxwwxxx/ghc,ryantm/ghc,da-x/ghc,fmthoma/ghc,gcampax/ghc,vTurbine/ghc,AlexanderPankiv/ghc,ml9951/ghc,holzensp/ghc,holzensp/ghc,oldmanmike/ghc,urbanslug/ghc,anton-dessiatov/ghc,olsner/ghc,forked-upstream-packages-for-ghcjs/ghc,da-x/ghc,gcampax/ghc,shlevy/ghc,tjakway/ghcjvm,shlevy/ghc,AlexanderPankiv/ghc,frantisekfarka/ghc-dsi,nathyong/microghc-ghc