From 5c973142df3661a23a085bfb655300c08ca19764 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 23 Sep 2011 18:30:22 -0700 Subject: rt: Turn on cycle collection at task death; add a test case --- src/rt/rust_task.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index f2c866263cf..97d68e6be39 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -1,5 +1,6 @@ #include "rust_internal.h" +#include "rust_cc.h" #include "valgrind.h" #include "memcheck.h" @@ -75,7 +76,8 @@ rust_task::rust_task(rust_scheduler *sched, rust_task_list *state, failed(false), killed(false), propagate_failure(true), - dynastack(this) + dynastack(this), + cc_counter(0) { LOGPTR(sched, "new task", (uintptr_t)this); DLOG(sched, task, "sizeof(task) = %d (0x%x)", sizeof *this, sizeof *this); -- cgit 1.4.1-3-g733a5