[project @ 2005-11-24 16:51:18 by simonmar]
authorsimonmar <unknown>
Thu, 24 Nov 2005 16:51:18 +0000 (16:51 +0000)
committersimonmar <unknown>
Thu, 24 Nov 2005 16:51:18 +0000 (16:51 +0000)
commit8d4f077598ddc0ba87323d9b15d49384fcc11057
treecd44531f71c7a58c0337439a96862b7565795396
parent0554c80174afba1d519b3c7ebe55b92e4286b9bb
[project @ 2005-11-24 16:51:18 by simonmar]
In SMP mode it is still possible for an update frame on the stack to
point to an indirection, when two threads evaluate the same thunk (see
comment for details).

So we use the following trick: when the GC discovers an update frame
pointing to an indirection, it changes the indirection to be an
IND_PERM, so it will be retained rather than discarded.
ghc/rts/GC.c