File tree Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 3978fbff8b79d53de57d48473bde43aa533369fd
5
+ refs/heads/try: 5449b886d34c1ddbba60986d56d6896543a6b87f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -288,20 +288,10 @@ rust_scheduler::start_main_loop() {
288
288
reap_dead_tasks (id);
289
289
}
290
290
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" );
305
295
306
296
DLOG (this , dom, " finished main-loop %d" , id);
307
297
You can’t perform that action at this time.
0 commit comments