Bump the stack size and make the RUST_MIN_STACK env variable accept hex values.

This commit is contained in:
Michael Sullivan 2011-07-21 14:05:51 -07:00
parent b01ecb10c3
commit f33309502a

View File

@ -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;
}
}