std::rt: Use 2MB stacks

Seems to be around the minimum needed by rustc without split stacks
This commit is contained in:
Brian Anderson 2013-07-26 23:10:25 -07:00
parent 436d9fa45d
commit 7265cc6530

View file

@ -219,7 +219,7 @@ impl Drop for Task {
impl Coroutine {
pub fn new(stack_pool: &mut StackPool, start: ~fn()) -> Coroutine {
static MIN_STACK_SIZE: uint = 100000; // XXX: Too much stack
static MIN_STACK_SIZE: uint = 2000000; // XXX: Too much stack
let start = Coroutine::build_start_wrapper(start);
let mut stack = stack_pool.take_segment(MIN_STACK_SIZE);