]> git.lizzy.rs Git - rust.git/commitdiff
FIXME(#19497) -- Stop messing around and just give rustc 32MB of stack unconditionall...
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 3 Dec 2014 13:33:45 +0000 (08:33 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 4 Dec 2014 15:04:52 +0000 (10:04 -0500)
src/librustc_driver/lib.rs

index efad07005b9b908a93d2ec4ce8da036005c39d3d..33c009cf3291bcb61f870aabc61c165e3740c1a5 100644 (file)
@@ -470,13 +470,7 @@ pub fn list_metadata(sess: &Session, path: &Path,
 /// The diagnostic emitter yielded to the procedure should be used for reporting
 /// errors of the compiler.
 pub fn monitor(f: proc():Send) {
-    // FIXME: This is a hack for newsched since it doesn't support split stacks.
-    // rustc needs a lot of stack! When optimizations are disabled, it needs
-    // even *more* stack than usual as well.
-    #[cfg(rtopt)]
-    static STACK_SIZE: uint = 6000000;  // 6MB
-    #[cfg(not(rtopt))]
-    static STACK_SIZE: uint = 20000000; // 20MB
+    static STACK_SIZE: uint = 32000000; // 32MB
 
     let (tx, rx) = channel();
     let w = io::ChanWriter::new(tx);