Skip to content

Commit f333095

Browse files
committed
Bump the stack size and make the RUST_MIN_STACK env variable accept hex values.
1 parent b01ecb1 commit f333095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/rust_task.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
static size_t get_min_stk_size() {
1919
char *stack_size = getenv("RUST_MIN_STACK");
2020
if(stack_size) {
21-
return atoi(stack_size);
21+
return strtol(stack_size, NULL, 0);
2222
}
2323
else {
24-
return 0x200000;
24+
return 0x300000;
2525
}
2626
}
2727

0 commit comments

Comments
 (0)