about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-21 14:06:43 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-21 19:10:31 -0700
commitba322b0a700d274089f740b699d763210ac4578d (patch)
tree332af493428343a10cd5cd9018b4bcef79dfe924 /src/rt/rust_task.cpp
parentb78af4f7c4dad767aae7f6d96b1c9c2990a717ca (diff)
downloadrust-ba322b0a700d274089f740b699d763210ac4578d.tar.gz
rust-ba322b0a700d274089f740b699d763210ac4578d.zip
rt: Reset the stack limit after catching an exception
This wasn't causing problems but it looked wrong
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