From 8efe4b89137646c5315677b029d4158424c126cc Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 2 Mar 2012 01:30:54 -0800 Subject: [PATCH] rt: Add an assert to the scheduler loop --- src/rt/rust_task_thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp index 57164a97c0f..5e396badd62 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -247,7 +247,8 @@ rust_task_thread::start_main_loop() { "all tasks are blocked, scheduler id %d yielding ...", id); lock.wait(); - reap_dead_tasks(); + A(this, dead_tasks.length() == 0, + "Tasks should only die after running"); DLOG(this, task, "scheduler %d resuming ...", id); continue;