[GHC] #9539: TQueue can lead to thread starvation

GHC ghc-devs at haskell.org
Mon May 21 00:09:22 UTC 2018


#9539: TQueue can lead to thread starvation
-------------------------------------+-------------------------------------
        Reporter:  jwlato            |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Core Libraries    |              Version:  7.8.2
      Resolution:  fixed             |             Keywords:  stm
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dfeuer):

 I'm a bit surprised that we'd want queues with only amortized bounds here.
 That leads to an arbitrary thread having to reverse a list at an arbitrary
 time. Would it be better to use a scheduled queue here?

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9539#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list