Fri Oct 10 08:03:22 PDT 2008 Josef Svenningsson <[EMAIL PROTECTED]>
* When waking up thread blocked on TVars, wake oldest first (#2319)
StgTVarWatchQueue contains the threads blocked on a TVar in order
youngest first. The list has to be traversed backwards to unpark the threads
oldest first.
This improves the fairness when using STM in some situations.
M ./rts/STM.c -2 +10
View patch online:
http://darcs.haskell.org/ghc-6.10/ghc/_darcs/patches/20081010150322-f316c-a06f3083199bb9a657466a539e4a0aca833e5761.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc