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.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index 647e8edf3a8..b5885cd9def 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -461,17 +461,13 @@ upcall_new_stack(size_t stk_sz, void *args_addr, size_t args_sz) {
     return args.result;
 }
 
+// NB: This needs to be blazing fast. Don't switch stacks
 extern "C" CDECL void
-upcall_s_del_stack() {
+upcall_del_stack() {
     rust_task *task = rust_task_thread::get_task();
     task->prev_stack();
 }
 
-extern "C" CDECL void
-upcall_del_stack() {
-    UPCALL_SWITCH_STACK(NULL, upcall_s_del_stack);
-}
-
 // Landing pads need to call this to insert the
 // correct limit into TLS.
 // NB: This must run on the Rust stack because it