Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f0f7e1b

Browse files
committed
std::rt: 3MB stacks!
rustc needs *even more* megabytes when run without optimizations
1 parent 75734a9 commit f0f7e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/rt/task.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ impl Task {
303303
impl Drop for Task {
304304
fn drop(&self) {
305305
rtdebug!("called drop for a task: %u", borrow::to_uint(self));
306-
assert!(self.destroyed)
306+
rtassert!(self.destroyed)
307307
}
308308
}
309309

@@ -313,7 +313,7 @@ impl Drop for Task {
313313
impl Coroutine {
314314

315315
pub fn new(stack_pool: &mut StackPool, start: ~fn()) -> Coroutine {
316-
static MIN_STACK_SIZE: uint = 2000000; // XXX: Too much stack
316+
static MIN_STACK_SIZE: uint = 3000000; // XXX: Too much stack
317317

318318
let start = Coroutine::build_start_wrapper(start);
319319
let mut stack = stack_pool.take_segment(MIN_STACK_SIZE);

0 commit comments

Comments
 (0)