std::rt: Reduce task stack size to 1MB

This commit is contained in:
Brian Anderson 2013-06-06 20:27:27 -07:00
parent d4de99aa6c
commit d83d38c7fe

View file

@ -523,7 +523,7 @@ pub impl Coroutine {
task: ~Task,
start: ~fn()) -> Coroutine {
static MIN_STACK_SIZE: uint = 10000000; // XXX: Too much stack
static MIN_STACK_SIZE: uint = 1000000; // XXX: Too much stack
let start = Coroutine::build_start_wrapper(start);
let mut stack = stack_pool.take_segment(MIN_STACK_SIZE);