From 889a78349426f28d1db508729e1091bad7cf46ea Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 8 Feb 2012 17:55:36 -0800 Subject: rt: Remove rust_task::rust_sp --- src/rt/rust_task.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index d2ebac63793..e5c20789760 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -219,7 +219,6 @@ rust_task::rust_task(rust_task_thread *thread, rust_task_list *state, DLOG(thread, task, "sizeof(task) = %d (0x%x)", sizeof *this, sizeof *this); stk = new_stk(thread, this, init_stack_sz); - rust_sp = stk->end; if (supervisor) { supervisor->ref(); } @@ -336,7 +335,7 @@ rust_task::start(spawn_fn spawnee_fn, I(thread, stk->data != NULL); - char *sp = (char *)rust_sp; + char *sp = (char *)stk->end; sp -= sizeof(spawn_args); -- cgit 1.4.1-3-g733a5