From: simonmar Date: Mon, 13 Nov 2000 14:42:16 +0000 (+0000) Subject: [project @ 2000-11-13 14:42:16 by simonmar] X-Git-Tag: Approximately_9120_patches~3366 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d2e14af0a834282ab9f3e9d1d239092dbccdca03;p=ghc-hetmet.git [project @ 2000-11-13 14:42:16 by simonmar] Set tso->link to END_TSO_QUEUE in resumeThread. This is probably harmless, but it can trigger an assertion failure later on in the scheduler. --- diff --git a/ghc/rts/Schedule.c b/ghc/rts/Schedule.c index 380228f..944b223 100644 --- a/ghc/rts/Schedule.c +++ b/ghc/rts/Schedule.c @@ -1,5 +1,5 @@ /* --------------------------------------------------------------------------- - * $Id: Schedule.c,v 1.81 2000/11/13 14:40:37 simonmar Exp $ + * $Id: Schedule.c,v 1.82 2000/11/13 14:42:16 simonmar Exp $ * * (c) The GHC Team, 1998-2000 * @@ -1247,6 +1247,7 @@ resumeThread( StgInt tok ) if (tso == END_TSO_QUEUE) { barf("resumeThread: thread not found"); } + tso->link = END_TSO_QUEUE; #ifdef SMP while (free_capabilities == NULL) {