std::rt: 3MB stacks!

rustc needs *even more* megabytes when run without optimizations
This commit is contained in:
Brian Anderson 2013-08-03 23:28:47 -07:00
parent 75734a9cd3
commit f0f7e1b3fc

View File

@ -303,7 +303,7 @@ impl Task {
impl Drop for Task {
fn drop(&self) {
rtdebug!("called drop for a task: %u", borrow::to_uint(self));
assert!(self.destroyed)
rtassert!(self.destroyed)
}
}
@ -313,7 +313,7 @@ impl Drop for Task {
impl Coroutine {
pub fn new(stack_pool: &mut StackPool, start: ~fn()) -> Coroutine {
static MIN_STACK_SIZE: uint = 2000000; // XXX: Too much stack
static MIN_STACK_SIZE: uint = 3000000; // XXX: Too much stack
let start = Coroutine::build_start_wrapper(start);
let mut stack = stack_pool.take_segment(MIN_STACK_SIZE);