X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FThreads.c;h=3e1c5cff0b6294616d894445c5b49d5424955c1b;hb=18197a0183e9d4ee6b7da3ad5fe15961ded6cf20;hp=dcb916a92bd4173f326507eed85292eb003fad5f;hpb=d34e29883fa05162bd508992c30d17da5ea83653;p=ghc-hetmet.git diff --git a/rts/Threads.c b/rts/Threads.c index dcb916a..3e1c5cf 100644 --- a/rts/Threads.c +++ b/rts/Threads.c @@ -628,7 +628,7 @@ threadStackOverflow (Capability *cap, StgTSO *tso) // will be discarded after the first overflow, being replaced by a // non-moving 32k chunk. if (old_stack->sp == old_stack->stack + old_stack->stack_size) { - frame->next_chunk = new_stack; + frame->next_chunk = (StgStack*)END_TSO_QUEUE; // dummy } tso->stackobj = new_stack;