[GHC] #4001: Implement an atomic readMVar

GHC ghc-devs at haskell.org
Sat Jun 15 04:50:51 CEST 2013


#4001: Implement an atomic readMVar
-------------------------------------------+--------------------------------
    Reporter:  simonmar                    |       Owner:  ezyang          
        Type:  task                        |      Status:  new             
    Priority:  low                         |   Milestone:  7.6.2           
   Component:  Runtime System              |     Version:  6.12.2          
    Keywords:                              |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple            |     Failure:  None/Unknown    
  Difficulty:  Moderate (less than a day)  |    Testcase:                  
   Blockedby:                              |    Blocking:                  
     Related:                              |  
-------------------------------------------+--------------------------------

Comment(by ezyang):

 It occurs to me that there is a problem with the current implementation,
 which is that we may do an unbounded amount of work while the spinlock for
 an MVar is taken out. Probably the right thing to do is arrange for the
 closure to be unlocked before we start spinning up threads.

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



More information about the ghc-tickets mailing list