about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-09-23 18:30:22 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-09-26 16:59:15 -0700
commit5c973142df3661a23a085bfb655300c08ca19764 (patch)
tree109a3daf071a74120b3e0357c6a0291691fe0e47 /src/rt/rust_task.cpp
parentad19ab4c6fdf3ea74ac0ff3688d040a852f30760 (diff)
downloadrust-5c973142df3661a23a085bfb655300c08ca19764.tar.gz
rust-5c973142df3661a23a085bfb655300c08ca19764.zip
rt: Turn on cycle collection at task death; add a test case
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp4
1 files changed, 3 insertions, 1 deletions
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);