Wed Jan 7 06:05:07 PST 2009 Simon Marlow <[email protected]>
* Close the races between throwTo and thread completion
Any threads we missed were being caught by the GC (possibly the idle
GC if the system was otherwise inactive), but that's not ideal. The
fix (from Bertram Felgenhauer) is to use lockTSO to synchronise,
imposing an unconditional lockTSO on thread exit. I couldn't measure
any performance overhead from doing this, so it seems reasonable.
M ./rts/RaiseAsync.c -6 +13
M ./rts/Schedule.c -5 +7
View patch online:
http://darcs.haskell.org/ghc-6.10/ghc/_darcs/patches/20090107140507-12142-9083ca672e8bb6f59d85a92e2eca3a90c0a14ee2.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc