]> git.lizzy.rs Git - rust.git/commitdiff
std::rt: 3MB stacks!
authorBrian Anderson <banderson@mozilla.com>
Sun, 4 Aug 2013 06:28:47 +0000 (23:28 -0700)
committerBrian Anderson <banderson@mozilla.com>
Sun, 4 Aug 2013 22:11:56 +0000 (15:11 -0700)
rustc needs *even more* megabytes when run without optimizations

src/libstd/rt/task.rs

index abafe1cf209c748a2778c321369a9ebf73eb449e..ffe9f118b477cbe90548dddd485092122776c783 100644 (file)
@@ -303,7 +303,7 @@ pub fn on_appropriate_sched() -> bool {
 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 @@ fn drop(&self) {
 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);