diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-12-20 16:50:54 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-12-20 16:50:54 -0800 |
| commit | cab4da70c8577ee7525fb327e7ae79ef9f9e96e5 (patch) | |
| tree | 0a346624f45d5c12cc9ca409f63491443af6f412 /src/rt/rust_task.cpp | |
| parent | a5d48ce28655e9be723b54c0f39b050df177e890 (diff) | |
| download | rust-cab4da70c8577ee7525fb327e7ae79ef9f9e96e5.tar.gz rust-cab4da70c8577ee7525fb327e7ae79ef9f9e96e5.zip | |
rt: Don't check the stack canary on most upcalls
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 2e17075ee59..6949df03f43 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -133,6 +133,9 @@ static stk_seg* new_stk(rust_scheduler *sched, rust_task *task, size_t requested_sz) { LOG(task, mem, "creating new stack for task %" PRIxPTR, task); + if (task->stk) { + check_stack_canary(task->stk); + } // The minimum stack size, in bytes, of a Rust stack, excluding red zone size_t min_sz = get_min_stk_size(sched->min_stack_size); |
