From 14306756b4a4f5f83043e3c2f91169a151fd54f5 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 2 Mar 2012 15:14:52 -0800 Subject: 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. --- src/rt/rust_task_thread.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rt/rust_task_thread.cpp') diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp index 39d9f283645..20166e261b9 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -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(); } -- cgit 1.4.1-3-g733a5