From 564d8e09c725ccd773e27e6d0edc8fa0a163bf6d Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 9 Apr 2012 16:26:23 -0700 Subject: rt: Fix typo --- src/rt/rust_task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index b4c38de99e7..20727dbcbfd 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -521,7 +521,7 @@ rust_task::new_stack(size_t requested_sz) { if (!unwinding && used_stack > max_stack) { LOG_ERR(this, task, "task %" PRIxPTR " ran out of stack", this); fail(); - } else if (unwinding && used_stack > max_stack) { + } else if (unwinding && used_stack > max_stack * 2) { LOG_ERR(this, task, "task %" PRIxPTR " ran out of stack during unwinding", this); fail(); -- cgit 1.4.1-3-g733a5