#5558: Deadlock using unsafePerformIO to create a global MVar
-------------------------------+--------------------------------------------
    Reporter:  int-e           |        Owner:  simonmar                   
        Type:  bug             |       Status:  new                        
    Priority:  high            |    Milestone:  7.4.1                      
   Component:  Runtime System  |      Version:  7.2.1                      
    Keywords:                  |     Testcase:                             
   Blockedby:                  |   Difficulty:                             
          Os:  Linux           |     Blocking:                             
Architecture:  x86_64 (amd64)  |      Failure:  Incorrect result at runtime
-------------------------------+--------------------------------------------

Comment(by marlowsd@…):

 commit 96c80d34163fd422cbc18f4532b7556212a554b8
 {{{
 Author: Simon Marlow <[email protected]>
 Date:   Mon Oct 17 13:16:02 2011 +0100

     make CAFs atomic, to fix #5558

     See Note [atomic CAFs] in rts/sm/Storage.c

  compiler/codeGen/CgClosure.lhs  |   25 +++----
  compiler/codeGen/CgUtils.hs     |   12 ++--
  compiler/codeGen/StgCmmBind.hs  |   31 ++++-----
  compiler/codeGen/StgCmmUtils.hs |   17 ++---
  includes/rts/storage/GC.h       |    4 +-
  rts/sm/Storage.c                |  143
 +++++++++++++++++++++++++++++----------
  6 files changed, 150 insertions(+), 82 deletions(-)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5558#comment:4>
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

Reply via email to