Skip to content

Commit

Permalink
Rollup merge of #36505 - nagisa:temp-stack-size, r=eddyb
Browse files Browse the repository at this point in the history
Default RUST_MIN_STACK to 16MiB for now

Temporary(?) workaround to #35408.

cc @nikomatsakis if you want to veto the idea.

r? @eddyb
  • Loading branch information
Jonathan Turner committed Sep 15, 2016
2 parents 3c03288 + ffaebad commit 51c6e53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_driver/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,8 @@ fn parse_crate_attrs<'a>(sess: &'a Session, input: &Input) -> PResult<'a, Vec<as
/// The diagnostic emitter yielded to the procedure should be used for reporting
/// errors of the compiler.
pub fn monitor<F: FnOnce() + Send + 'static>(f: F) {
const STACK_SIZE: usize = 8 * 1024 * 1024; // 8MB
// Temporarily have stack size set to 16MB to deal with nom-using crates failing
const STACK_SIZE: usize = 16 * 1024 * 1024; // 16MB

struct Sink(Arc<Mutex<Vec<u8>>>);
impl Write for Sink {
Expand Down

0 comments on commit 51c6e53

Please sign in to comment.