about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-12-20 16:50:54 -0800
committerBrian Anderson <banderson@mozilla.com>2011-12-20 16:50:54 -0800
commitcab4da70c8577ee7525fb327e7ae79ef9f9e96e5 (patch)
tree0a346624f45d5c12cc9ca409f63491443af6f412 /src/rt/rust_task.cpp
parenta5d48ce28655e9be723b54c0f39b050df177e890 (diff)
downloadrust-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.cpp3
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);