diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2012-07-17 20:40:40 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2012-07-17 20:45:07 -0400 |
| commit | 4cf6b4d3b4ea5cd231ab96d82f5f8cd794e0b2c3 (patch) | |
| tree | 3f9ca49a7c78422148869b50df72f999c706cbe2 /src/rt/rust_sched_loop.cpp | |
| parent | d930d717e5f4557e47c9fd5bdca62a92f5cc8c38 (diff) | |
| download | rust-4cf6b4d3b4ea5cd231ab96d82f5f8cd794e0b2c3.tar.gz rust-4cf6b4d3b4ea5cd231ab96d82f5f8cd794e0b2c3.zip | |
Tasks should not hold a ref to their parent (Close #1789)
Diffstat (limited to 'src/rt/rust_sched_loop.cpp')
| -rw-r--r-- | src/rt/rust_sched_loop.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rt/rust_sched_loop.cpp b/src/rt/rust_sched_loop.cpp index 1a63596f15c..1fbc0c1e07c 100644 --- a/src/rt/rust_sched_loop.cpp +++ b/src/rt/rust_sched_loop.cpp @@ -76,9 +76,6 @@ rust_sched_loop::kill_all_tasks() { while (!all_tasks.empty()) { rust_task *task = all_tasks.back(); all_tasks.pop_back(); - // We don't want the failure of these tasks to propagate back - // to the kernel again since we're already failing everything - task->unsupervise(); task->kill(); } } @@ -261,9 +258,9 @@ rust_sched_loop::create_task(rust_task *spawner, const char *name) { rust_task *task = new (this->kernel, "rust_task") rust_task(this, task_state_newborn, - spawner, name, kernel->env->min_stack_size); + name, kernel->env->min_stack_size); DLOG(this, task, "created task: " PTR ", spawner: %s, name: %s", - task, spawner ? spawner->name : "null", name); + task, spawner ? spawner->name : "(none)", name); task->id = kernel->generate_task_id(); return task; |
