mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-11 15:23:05 +00:00
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() {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user