Skip to content

Commit 564d8e0

Browse files
committed
rt: Fix typo
1 parent 596376e commit 564d8e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust_task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ rust_task::new_stack(size_t requested_sz) {
521521
if (!unwinding && used_stack > max_stack) {
522522
LOG_ERR(this, task, "task %" PRIxPTR " ran out of stack", this);
523523
fail();
524-
} else if (unwinding && used_stack > max_stack) {
524+
} else if (unwinding && used_stack > max_stack * 2) {
525525
LOG_ERR(this, task,
526526
"task %" PRIxPTR " ran out of stack during unwinding", this);
527527
fail();

0 commit comments

Comments
 (0)