Updating a thunk in raiseAsync might encounter an IND; cope
authorsimonmar@microsoft.com <unknown>
Thu, 28 Feb 2008 15:23:32 +0000 (15:23 +0000)
committersimonmar@microsoft.com <unknown>
Thu, 28 Feb 2008 15:23:32 +0000 (15:23 +0000)
commit65bb9b5ae78ee29100ea6bf5617b0fdbc0a100bd
tree83ee93ebf3227e25714f353fb073a8789f28d666
parent9b0be04d7d23a4ccce0275f3a7c519d9b614f3a2
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.
rts/RaiseAsync.c
rts/Updates.h