Skip to content

Commit 8efe4b8

Browse files
committed
rt: Add an assert to the scheduler loop
1 parent e08f46d commit 8efe4b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rt/rust_task_thread.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ rust_task_thread::start_main_loop() {
247247
"all tasks are blocked, scheduler id %d yielding ...",
248248
id);
249249
lock.wait();
250-
reap_dead_tasks();
250+
A(this, dead_tasks.length() == 0,
251+
"Tasks should only die after running");
251252
DLOG(this, task,
252253
"scheduler %d resuming ...", id);
253254
continue;

0 commit comments

Comments
 (0)