From 968f442c7ce591e9cb03b57bb0dac30df4909b50 Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Sun, 23 Feb 2020 22:23:45 +0200 Subject: [PATCH] Set the default stack size to 8MB This was the value used before we originally started raising the stack size to infinity. --- src/librustc_interface/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_interface/util.rs b/src/librustc_interface/util.rs index 01d92f3d8699d..ecc336337f80c 100644 --- a/src/librustc_interface/util.rs +++ b/src/librustc_interface/util.rs @@ -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 { // FIXME: Hacks on hacks. If the env is trying to override the stack size