rt: Introduce a self-describing box representation and functions to create and free them

This commit is contained in:
Patrick Walton
2011-09-19 10:34:27 -07:00
parent 5f44a1356e
commit 3632629acc
3 changed files with 59 additions and 1 deletions

View File

@@ -10,6 +10,8 @@
#include "context.h"
#include "rust_obstack.h"
struct rust_box;
struct stk_seg {
unsigned int valgrind_id;
uintptr_t limit;
@@ -57,7 +59,7 @@ rust_task : public kernel_owned<rust_task>, rust_cond
context ctx;
stk_seg *stk;
uintptr_t runtime_sp; // Runtime sp while task running.
void *gc_alloc_chain; // Linked list of GC allocations.
rust_box *gc_alloc_chain; // Linked list of GC allocations.
rust_scheduler *sched;
rust_crate_cache *cache;