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