patch applied (ghc): Updating a thunk in raiseAsync might encounter an IND; cope

Simon Marlow simonmarhaskell at gmail.com
Tue Jun 17 10:36:58 EDT 2008


Thu Feb 28 07:23:32 PST 2008  simonmar at microsoft.com
  * Updating a thunk in raiseAsync might encounter an IND; cope
  There was already a check to avoid updating an IND, but it was
  originally there to avoid a bug which doesn't exist now.  Furthermore
  the test and update are not atomic, so another thread could be
  updating this thunk while we are.  We have to just go ahead and update
  anyway - it might waste a little work, but this is a very rare case.

    M ./rts/RaiseAsync.c -15 +6
    M ./rts/Updates.h -2 +3

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20080228152332-3ed52-d71703e46163a6edc9132bdcfaa08d01aea483d3.gz



More information about the Cvs-ghc mailing list