std::rt: 3MB stacks!
rustc needs *even more* megabytes when run without optimizations
This commit is contained in:
parent
75734a9cd3
commit
f0f7e1b3fc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user