about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
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 ea51ecc71c0..c66b4370713 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -48,7 +48,7 @@ call_upcall_on_c_stack(void *args, void *fn_ptr) {
     check_stack_alignment();
     rust_task *task = rust_task_thread::get_task();
     rust_task_thread *thread = task->thread;
-    thread->c_context.call_shim_on_c_stack(args, fn_ptr);
+    thread->c_context.call_and_change_stacks(args, fn_ptr);
 }
 
 extern "C" void record_sp(void *limit);
@@ -71,7 +71,7 @@ upcall_call_shim_on_c_stack(void *args, void *fn_ptr) {
 
     rust_task_thread *thread = task->thread;
     try {
-        thread->c_context.call_shim_on_c_stack(args, fn_ptr);
+        thread->c_context.call_and_change_stacks(args, fn_ptr);
     } catch (...) {
         A(thread, false, "Native code threw an exception");
     }