about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index 495900fe98c..98c3c9e456f 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -135,6 +135,10 @@ void task_start_wrapper(spawn_args *a)
         if (task->c_stack) {
             task->return_c_stack();
         }
+
+        // Since we call glue code below we need to make sure we
+        // have the stack limit set up correctly
+        task->reset_stack_limit();
     }
 
     // We should have returned any C stack by now