[GHC] #7923: Optimization for takeMVar/putMVar when MVar left empty

GHC cvs-ghc at haskell.org
Tue May 21 00:46:23 CEST 2013


#7923: Optimization for takeMVar/putMVar when MVar left empty
------------------------------------+---------------------------------------
Reporter:  ezyang                   |          Owner:  ezyang          
    Type:  task                     |         Status:  new             
Priority:  normal                   |      Component:  Runtime System  
 Version:  7.7                      |       Keywords:                  
      Os:  Unknown/Multiple         |   Architecture:  Unknown/Multiple
 Failure:  Runtime performance bug  |      Blockedby:                  
Blocking:                           |        Related:                  
------------------------------------+---------------------------------------
 Right now, we always add an MVar to the mutable list when we
 takeMVar/putMVar. However, this is unnecessary when the MVar is left
 empty. This patch arranges that we don't add the MVar to the mutable list
 in those cases. I've validated the patch but haven't checked performance
 changes yet.

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



More information about the ghc-tickets mailing list