about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-21 14:20:06 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-21 19:10:32 -0700
commit0639b67290cfc631fe2728a587380f3a97fd7408 (patch)
treec790f24675d493d5c89d4f4d1bd83c406f66b5c2 /src/rt/rust_upcall.cpp
parent4ad57f5c39e9723fe2a4611d3b5987ad113be695 (diff)
downloadrust-0639b67290cfc631fe2728a587380f3a97fd7408.tar.gz
rust-0639b67290cfc631fe2728a587380f3a97fd7408.zip
rt: Use get_task_from_tcb during stack growth calls
Diffstat (limited to 'src/rt/rust_upcall.cpp')
-rw-r--r--src/rt/rust_upcall.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index 58798147e9b..bc404ba9f1e 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -442,7 +442,7 @@ upcall_log_type(const type_desc *tydesc, uint8_t *data, uint32_t level) {
 // NB: This needs to be blazing fast. Don't switch stacks
 extern "C" CDECL void *
 upcall_new_stack(size_t stk_sz, void *args_addr, size_t args_sz) {
-    rust_task *task = rust_task_thread::get_task();
+    rust_task *task = rust_task::get_task_from_tcb();
     return task->next_stack(stk_sz,
                             args_addr,
                             args_sz);
@@ -451,7 +451,7 @@ upcall_new_stack(size_t stk_sz, void *args_addr, size_t args_sz) {
 // NB: This needs to be blazing fast. Don't switch stacks
 extern "C" CDECL void
 upcall_del_stack() {
-    rust_task *task = rust_task_thread::get_task();
+    rust_task *task = rust_task::get_task_from_tcb();
     task->prev_stack();
 }