rt: Move the addition of the stack canary into create_stack

This commit is contained in:
Brian Anderson
2012-02-10 11:24:44 -08:00
parent 5fc2e9e9ab
commit fc028c30a0
2 changed files with 4 additions and 4 deletions

View File

@@ -593,7 +593,6 @@ rust_task::new_stack(size_t requested_sz) {
size_t sz = rust_stk_sz + RED_ZONE_SIZE;
stk_seg *new_stk = create_stack(this, sz);
LOGPTR(thread, "new stk", (uintptr_t)new_stk);
add_stack_canary(new_stk);
new_stk->prev = NULL;
new_stk->next = stk;
LOGPTR(thread, "stk end", new_stk->end);