Bump the stack size and make the RUST_MIN_STACK env variable accept hex values.
This commit is contained in:
@@ -18,10 +18,10 @@
|
|||||||
static size_t get_min_stk_size() {
|
static size_t get_min_stk_size() {
|
||||||
char *stack_size = getenv("RUST_MIN_STACK");
|
char *stack_size = getenv("RUST_MIN_STACK");
|
||||||
if(stack_size) {
|
if(stack_size) {
|
||||||
return atoi(stack_size);
|
return strtol(stack_size, NULL, 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return 0x200000;
|
return 0x300000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user