Commit 32baf1e3 authored by simonmar's avatar simonmar
Browse files

[project @ 2005-05-09 10:10:33 by simonmar]

deleteAllThreads: handle ThreadRelocated
parent b6dbc349
......@@ -2093,8 +2093,12 @@ deleteAllThreads ( void )
StgTSO* t, *next;
IF_DEBUG(scheduler,sched_belch("deleting all threads"));
for (t = all_threads; t != END_TSO_QUEUE; t = next) {
next = t->global_link;
deleteThread(t);
if (t->what_next == ThreadRelocated) {
next = t->link;
} else {
next = t->global_link;
deleteThread(t);
}
}
// The run queue now contains a bunch of ThreadKilled threads. We
......
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