#2319: STM not as fair as it could be
------------------------------+---------------------------------------------
Reporter: josef | Owner: igloo
Type: merge | Status: new
Priority: normal | Milestone: 6.10.1
Component: Runtime System | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown/Multiple
Os: Unknown/Multiple |
------------------------------+---------------------------------------------
Changes (by simonmar):
* owner: => igloo
* type: bug => merge
* milestone: 6.10 branch => 6.10.1
Comment:
tested and pushed.
{{{
Fri Oct 10 16:03:22 BST 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.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2319#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs