[project @ 2005-11-04 15:31:30 by simonmar]
authorsimonmar <unknown>
Fri, 4 Nov 2005 15:31:30 +0000 (15:31 +0000)
committersimonmar <unknown>
Fri, 4 Nov 2005 15:31:30 +0000 (15:31 +0000)
We shouldn't call closeCondition() on the condition in discardTask(),
we're just freeing the Task for later use.

ghc/rts/Task.c

index 44bbb95..bc140c1 100644 (file)
@@ -175,9 +175,6 @@ void
 discardTask (Task *task)
 {
     ASSERT_LOCK_HELD(&sched_mutex);
-#if defined(THREADED_RTS)
-    closeCondition(&task->cond);
-#endif
     task->stopped = rtsTrue;
     task->cap = NULL;
     task->next = task_free_list;