rt: Set the default stack size to 768 bytes. Double on each alloc

This commit is contained in:
Brian Anderson
2011-12-14 15:36:31 -08:00
parent c1a2c2f6b0
commit 0ed5117a9d
2 changed files with 39 additions and 11 deletions

View File

@@ -67,9 +67,6 @@ get_num_threads()
return get_num_cpus();
}
// FIXME (issue #151): This should be 0x300; the change here is for
// practicality's sake until stack growth is working.
static size_t
get_min_stk_size() {
char *stack_size = getenv(RUST_MIN_STACK);
@@ -77,7 +74,7 @@ get_min_stk_size() {
return strtol(stack_size, NULL, 0);
}
else {
return 0x300000;
return 0x300;
}
}