[GHC] #693: dynamic locking

GHC trac at galois.com
Fri Feb 10 10:40:44 EST 2006


#693: dynamic locking
-------------------------------+--------------------------------------------
    Reporter:  simonmar        |        Owner:                  
        Type:  task            |       Status:  new             
    Priority:  normal          |    Milestone:  6.6             
   Component:  Runtime System  |      Version:  6.4.1           
    Severity:  normal          |     Keywords:                  
          Os:  Unknown         |   Difficulty:  Moderate (1 day)
Architecture:  Unknown         |  
-------------------------------+--------------------------------------------
Now that the SMP and threaded runtimes are the same, there is some
 unnecessary locking going on in the single threaded case.  For example,
 MVar operations now require an atomic memory operation, which can be quite
 slow.  It might be a good idea to dynamically turn on these locks if we're
 running multi-threaded (ie. +RTS -N2 or greater).  ToDo: measure the
 difference.

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


More information about the Glasgow-haskell-bugs mailing list