diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-09-05 20:06:57 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-09-05 20:08:00 -0700 |
| commit | d1554106742fa8c0a99cac1adc5f65aa0ce0ac62 (patch) | |
| tree | 062f0288a13226fa5e49979ca93a908cea70f75a /src/rt | |
| parent | 2d116cbbed3180d06446407b9cb63811853011ad (diff) | |
| download | rust-d1554106742fa8c0a99cac1adc5f65aa0ce0ac62.tar.gz rust-d1554106742fa8c0a99cac1adc5f65aa0ce0ac62.zip | |
rt: Make the boxed region come earlier in the rust_task structure.
This is so that GC can find it more easily.
Diffstat (limited to 'src/rt')
| -rw-r--r-- | src/rt/rust_task.cpp | 2 | ||||
| -rw-r--r-- | 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<rust_task> // 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. |
