From d1554106742fa8c0a99cac1adc5f65aa0ce0ac62 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 5 Sep 2012 20:06:57 -0700 Subject: [PATCH] rt: Make the boxed region come earlier in the rust_task structure. This is so that GC can find it more easily. --- src/rt/rust_task.cpp | 2 +- src/rt/rust_task.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 8bcf1b06133..1efd641b343 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -23,8 +23,8 @@ rust_task::rust_task(rust_sched_loop *sched_loop, rust_task_state state, name(name), list_index(-1), rendezvous_ptr(0), - local_region(&sched_loop->local_region), boxed(sched_loop->kernel->env, &local_region), + local_region(&sched_loop->local_region), unwinding(false), cc_counter(0), total_stack_sz(0), diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index d8158418793..494ec4d9448 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -214,8 +214,8 @@ rust_task : public kernel_owned // that location before waking us up. uintptr_t* rendezvous_ptr; - memory_region local_region; boxed_region boxed; + memory_region local_region; // Indicates that fail() has been called and we are cleaning up. // We use this to suppress the "killed" flag during calls to yield.