]> git.lizzy.rs Git - rust.git/commitdiff
std::rt: Use 2MB stacks
authorBrian Anderson <banderson@mozilla.com>
Sat, 27 Jul 2013 06:10:25 +0000 (23:10 -0700)
committerBrian Anderson <banderson@mozilla.com>
Tue, 30 Jul 2013 21:17:56 +0000 (14:17 -0700)
Seems to be around the minimum needed by rustc without split stacks

src/libstd/rt/task.rs

index 8cf864b9222ef6195a563df21b37b897d49f309f..82d4f8fcc0424f433372b587a7a06049f249f922 100644 (file)
@@ -219,7 +219,7 @@ fn drop(&self) { assert!(self.destroyed) }
 impl Coroutine {
 
     pub fn new(stack_pool: &mut StackPool, start: ~fn()) -> Coroutine {
-        static MIN_STACK_SIZE: uint = 100000; // XXX: Too much stack
+        static MIN_STACK_SIZE: uint = 2000000; // XXX: Too much stack
 
         let start = Coroutine::build_start_wrapper(start);
         let mut stack = stack_pool.take_segment(MIN_STACK_SIZE);