patch applied (ghc): When waking up thread blocked on TVars,
wake oldest first (#2319)
Simon Marlow
simonmarhaskell at gmail.com
Fri Oct 10 11:06:03 EDT 2008
Fri Oct 10 08:03:22 PDT 2008 Josef Svenningsson <josef.svenningsson at gmail.com>
* 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/_darcs/patches/20081010150322-f316c-a06f3083199bb9a657466a539e4a0aca833e5761.gz
More information about the Cvs-ghc
mailing list