std::rt: 2MB stacks again

This commit is contained in:
Brian Anderson 2013-08-05 12:14:03 -07:00
parent 98ec79c957
commit eb6143257d

View file

@ -326,7 +326,7 @@ impl Drop for Task {
impl Coroutine {
pub fn new(stack_pool: &mut StackPool, start: ~fn()) -> Coroutine {
static MIN_STACK_SIZE: uint = 3000000; // 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);