Commit 7f148c32 authored by Simon Marlow's avatar Simon Marlow
Browse files

add a MAYBE_GC() in killThread#, fixes throwto003(threaded2) looping

parent e81e075d
......@@ -218,6 +218,8 @@ stg_killThreadzh
/* Needs 3 words because throwToSingleThreaded uses some stack */
STK_CHK_GEN( WDS(3), R1_PTR & R2_PTR, stg_killThreadzh);
/* We call allocate in throwTo(), so better check for GC */
MAYBE_GC(R1_PTR & R2_PTR, stg_killThreadzh);
* We might have killed ourselves. In which case, better be *very*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment