Skip to content

Commit

Permalink
Set the default stack size to 8MB
Browse files Browse the repository at this point in the history
This was the value used before we originally started raising the stack
size to infinity.
  • Loading branch information
nagisa authored and mati865 committed May 2, 2020
1 parent 96c5012 commit 968f442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_interface/util.rs
Expand Up @@ -80,7 +80,7 @@ pub fn create_session(
(Lrc::new(sess), Lrc::new(codegen_backend), source_map)
}

const STACK_SIZE: usize = 2 * 1024 * 1024;
const STACK_SIZE: usize = 8 * 1024 * 1024;

fn get_stack_size() -> Option<usize> {
// FIXME: Hacks on hacks. If the env is trying to override the stack size
Expand Down

0 comments on commit 968f442

Please sign in to comment.