about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-04-21 17:42:45 -0700
committerBrian Anderson <banderson@mozilla.com>2013-04-21 17:42:45 -0700
commit2fe118b26fdb2897eb000ae47f912cc6b2534324 (patch)
tree5ee47e55805f16a70698aedadc78889441895c7f /src/rt/rust_task.cpp
parentf9069baa70ea78117f2087fe6e359fb2ea0ae16a (diff)
downloadrust-2fe118b26fdb2897eb000ae47f912cc6b2534324.tar.gz
rust-2fe118b26fdb2897eb000ae47f912cc6b2534324.zip
rt: Don't make memory_region depend on rust_env
I am going to use memory_region and boxed_region as the local heap
in the new scheduler, for now at least, and I don't have a rust_env
available.
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index 63dc1c9833e..4680f32c19a 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -36,7 +36,7 @@ rust_task::rust_task(rust_sched_loop *sched_loop, rust_task_state state,
     kernel(sched_loop->kernel),
     name(name),
     list_index(-1),
-    boxed(sched_loop->kernel->env, &local_region),
+    boxed(&local_region, sched_loop->kernel->env->poison_on_free),
     local_region(&sched_loop->local_region),
     unwinding(false),
     total_stack_sz(0),