File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 5bb4a12900969b3250c490a5e0682c658fe65ba8
2
+ refs/heads/master: 18c645a8839dd86d7f353d0fe98eaf27e246a525
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change @@ -68,18 +68,23 @@ rust_sched_loop::kill_all_tasks() {
68
68
killed = true ;
69
69
70
70
for (size_t i = 0 ; i < running_tasks.length (); i++) {
71
- all_tasks.push_back (running_tasks[i]);
71
+ rust_task *t = running_tasks[i];
72
+ t->ref ();
73
+ all_tasks.push_back (t);
72
74
}
73
75
74
76
for (size_t i = 0 ; i < blocked_tasks.length (); i++) {
75
- all_tasks.push_back (blocked_tasks[i]);
77
+ rust_task *t = blocked_tasks[i];
78
+ t->ref ();
79
+ all_tasks.push_back (t);
76
80
}
77
81
}
78
82
79
83
while (!all_tasks.empty ()) {
80
84
rust_task *task = all_tasks.back ();
81
85
all_tasks.pop_back ();
82
86
task->kill ();
87
+ task->deref ();
83
88
}
84
89
}
85
90
You can’t perform that action at this time.
0 commit comments