Set the default stack size to 8MB

This was the value used before we originally started raising the stack
size to infinity.
This commit is contained in:
Simonas Kazlauskas 2020-02-23 22:23:45 +02:00 committed by Mateusz Mikuła
parent 96c5012b57
commit 968f442c7c

View file

@ -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