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 committed Mar 17, 2020
1 parent 6c25307 commit 410cdd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_interface/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,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 410cdd7

Please sign in to comment.