diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-21 14:06:43 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-21 19:10:31 -0700 |
| commit | ba322b0a700d274089f740b699d763210ac4578d (patch) | |
| tree | 332af493428343a10cd5cd9018b4bcef79dfe924 /src/rt/rust_task.cpp | |
| parent | b78af4f7c4dad767aae7f6d96b1c9c2990a717ca (diff) | |
| download | rust-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.cpp | 4 |
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 |
