Skip to content

Commit 5d19432

Browse files
committed
FIXME(#19497) -- Stop messing around and just give rustc 32MB of stack unconditionally. This is prompted by some sort of bug in trans that causes a stack overflow when the modules in trans are made private. (In particular, the overflow can also be avoided by making controlflow and callee public, but that seems strictly worse than just using more stack.)
1 parent 61edb0c commit 5d19432

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/librustc_driver/lib.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -470,13 +470,7 @@ pub fn list_metadata(sess: &Session, path: &Path,
470470
/// The diagnostic emitter yielded to the procedure should be used for reporting
471471
/// errors of the compiler.
472472
pub fn monitor(f: proc():Send) {
473-
// FIXME: This is a hack for newsched since it doesn't support split stacks.
474-
// rustc needs a lot of stack! When optimizations are disabled, it needs
475-
// even *more* stack than usual as well.
476-
#[cfg(rtopt)]
477-
static STACK_SIZE: uint = 6000000; // 6MB
478-
#[cfg(not(rtopt))]
479-
static STACK_SIZE: uint = 20000000; // 20MB
473+
static STACK_SIZE: uint = 32000000; // 32MB
480474

481475
let (tx, rx) = channel();
482476
let w = io::ChanWriter::new(tx);

0 commit comments

Comments
 (0)