Skip to content

Commit 2528a7b

Browse files
committed
---
yaml --- r: 10988 b: refs/heads/master c: 5449b88 h: refs/heads/master v: v3
1 parent 5eb2881 commit 2528a7b

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3978fbff8b79d53de57d48473bde43aa533369fd
2+
refs/heads/master: 5449b886d34c1ddbba60986d56d6896543a6b87f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rt/rust_scheduler.cpp

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -288,20 +288,10 @@ rust_scheduler::start_main_loop() {
288288
reap_dead_tasks(id);
289289
}
290290

291-
DLOG(this, dom,
292-
"terminated scheduler loop, reaping dead tasks ...");
293-
294-
while (dead_tasks.length() > 0) {
295-
DLOG(this, dom,
296-
"waiting for %d dead tasks to become dereferenced, "
297-
"scheduler yielding ...",
298-
dead_tasks.length());
299-
log_state();
300-
lock.unlock();
301-
sync::yield();
302-
lock.lock();
303-
reap_dead_tasks(id);
304-
}
291+
A(this, newborn_tasks.is_empty(), "Should have no newborn tasks");
292+
A(this, running_tasks.is_empty(), "Should have no running tasks");
293+
A(this, blocked_tasks.is_empty(), "Should have no blocked tasks");
294+
A(this, dead_tasks.is_empty(), "Should have no dead tasks");
305295

306296
DLOG(this, dom, "finished main-loop %d", id);
307297

0 commit comments

Comments
 (0)