From ba322b0a700d274089f740b699d763210ac4578d Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 21 Mar 2012 14:06:43 -0700 Subject: rt: Reset the stack limit after catching an exception This wasn't causing problems but it looked wrong --- src/rt/rust_task.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rt/rust_task.cpp') 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 -- cgit 1.4.1-3-g733a5