X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FSchedule.c;h=537cee0d536a1e740eb5231478cb523366b4878e;hb=0da51cdd6404332ba6531364e6b7de30cbc0333a;hp=c6fb1d885e61cb23bcf8b7b986fcc993eaf8cd6a;hpb=0ba8b0bed96c78570bc750e0413d555b6939c16c;p=ghc-hetmet.git diff --git a/rts/Schedule.c b/rts/Schedule.c index c6fb1d8..537cee0 100644 --- a/rts/Schedule.c +++ b/rts/Schedule.c @@ -1021,7 +1021,7 @@ scheduleDetectDeadlock (Capability *cap, Task *task) case BlockedOnException: case BlockedOnMVar: throwToSingleThreaded(cap, task->tso, - (StgClosure *)NonTermination_closure); + (StgClosure *)nonTermination_closure); return; default: barf("deadlock: main thread blocked in a strange way"); @@ -1479,9 +1479,7 @@ schedulePostRunThread (StgTSO *t) throwToSingleThreaded_(&capabilities[0], t, NULL, rtsTrue, NULL); -#ifdef REG_R1 ASSERT(get_itbl((StgClosure *)t->sp)->type == ATOMICALLY_FRAME); -#endif } } @@ -3154,15 +3152,15 @@ resurrectThreads (StgTSO *threads) case BlockedOnException: /* Called by GC - sched_mutex lock is currently held. */ throwToSingleThreaded(cap, tso, - (StgClosure *)BlockedOnDeadMVar_closure); + (StgClosure *)blockedOnDeadMVar_closure); break; case BlockedOnBlackHole: throwToSingleThreaded(cap, tso, - (StgClosure *)NonTermination_closure); + (StgClosure *)nonTermination_closure); break; case BlockedOnSTM: throwToSingleThreaded(cap, tso, - (StgClosure *)BlockedIndefinitely_closure); + (StgClosure *)blockedIndefinitely_closure); break; case NotBlocked: /* This might happen if the thread was blocked on a black hole