rt: Always delete task stacks on the task thread

There's not a real race here, but it makes helgrind happy and is arguably
less prone to future errrors.
This commit is contained in:
Brian Anderson
2012-03-02 15:14:52 -08:00
parent 9ec94f714a
commit 14306756b4
3 changed files with 12 additions and 7 deletions

View File

@@ -144,6 +144,7 @@ rust_task_thread::reap_dead_tasks() {
rust_task *task = dead_tasks_copy[i];
// Release the task from the kernel so nobody else can get at it
kernel->release_task_id(task->id);
task->delete_all_stacks();
// Deref the task, which may cause it to request us to release it
task->deref();
}