about summary refs log tree commit diff
path: root/src/rt/rust_task.h
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-09-20 15:35:14 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-09-20 15:35:14 -0700
commit77f0101edb85c574a94e15aa862ca075ed2fb886 (patch)
treee805abe57ca87d1e63c9092d940914d41bbbba3f /src/rt/rust_task.h
parent5209b192558e4adf0baa0981c463dcff61ec0636 (diff)
downloadrust-77f0101edb85c574a94e15aa862ca075ed2fb886.tar.gz
rust-77f0101edb85c574a94e15aa862ca075ed2fb886.zip
rt: Add an on-the-side GC chain
Diffstat (limited to 'src/rt/rust_task.h')
-rw-r--r--src/rt/rust_task.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h
index 5513cd9e282..05c34cec587 100644
--- a/src/rt/rust_task.h
+++ b/src/rt/rust_task.h
@@ -5,6 +5,8 @@
 #ifndef RUST_TASK_H
 #define RUST_TASK_H
 
+#include <map>
+
 #include "util/array_list.h"
 
 #include "context.h"
@@ -113,6 +115,8 @@ rust_task : public kernel_owned<rust_task>, rust_cond
 
     rust_obstack dynastack;
 
+    std::map<void *,type_desc *> local_allocs;
+
     // Only a pointer to 'name' is kept, so it must live as long as this task.
     rust_task(rust_scheduler *sched,
               rust_task_list *state,