Skip to content

Commit 1e57c6c

Browse files
committed
---
yaml --- r: 13994 b: refs/heads/try c: 5449b88 h: refs/heads/master v: v3
1 parent 83ecc78 commit 1e57c6c

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
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 3978fbff8b79d53de57d48473bde43aa533369fd
5+
refs/heads/try: 5449b886d34c1ddbba60986d56d6896543a6b87f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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)