0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-12-01 13:18:54 +01:00

rt: Reset the stack limit after catching an exception

This wasn't causing problems but it looked wrong
This commit is contained in:
Brian Anderson 2012-03-21 14:06:43 -07:00
parent b78af4f7c4
commit ba322b0a70

View File

@ -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