Change tryStealSpark so it does not consume fizzled sparks
authorDuncan Coutts <duncan@well-typed.com>
Wed, 1 Jun 2011 17:17:27 +0000 (18:17 +0100)
committerDuncan Coutts <duncan@well-typed.com>
Mon, 18 Jul 2011 15:31:13 +0000 (16:31 +0100)
commitededf355981fd08f52b4fab256f231179848073f
tree8e58b1f32cbee934de31f6012b19d5d55c6f08a1
parente0b98b42847dea19aff24df2faa354c9d414fc87
Change tryStealSpark so it does not consume fizzled sparks

We want to count fizzled sparks accurately. Now tryStealSpark returns
fizzled sparks, and the callers now update the fizzled spark count.
rts/Capability.c
rts/Schedule.c
rts/Sparks.c
rts/Sparks.h