From 29a2383333fdd4d49101d37ea61571747454aae9 Mon Sep 17 00:00:00 2001 From: lateralusX Date: Mon, 3 Jun 2019 11:43:16 +0200 Subject: Increase main thread stack size on Windows. On Windows default thread stack size has been 1MB for a long time (both 32/64-bit). When starting to use interpreter some of the tests include deep recursions that will hit stackoverflow on Windows (ackermann.exe as one example). This commit adjust the default reserved stack size to 8MB for debug builds and 1.5MB (same as coreclr), for main thread only. All other threads will still default to 1MB stack size (both debug/release). --- msvc/mono.vcxproj | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'msvc') diff --git a/msvc/mono.vcxproj b/msvc/mono.vcxproj index 4602e6c91f5..28d7a720215 100644 --- a/msvc/mono.vcxproj +++ b/msvc/mono.vcxproj @@ -107,6 +107,7 @@ Console + 0x800000 false @@ -141,6 +142,7 @@ xcopy "$(SolutionDir)setup-vs-msvcbuild-env.bat" "$(OutDir)" /q /y >nul 2> Console + 0x800000 xcopy "$(SolutionDir)mono-sgen-msvc.sh" "$(OutDir)" /q /y >nul 2>&1 @@ -168,6 +170,7 @@ xcopy "$(SolutionDir)setup-vs-msvcbuild-env.bat" "$(OutDir)" /q /y >nul 2> Console + 0x180000 xcopy "$(SolutionDir)mono-sgen-msvc.sh" "$(OutDir)" /q /y >nul 2>&1 @@ -196,6 +199,7 @@ xcopy "$(SolutionDir)setup-vs-msvcbuild-env.bat" "$(OutDir)" /q /y >nul 2> $(MONO_LIBMONO_LIB);%(AdditionalDependencies) Console + 0x180000 xcopy "$(SolutionDir)mono-sgen-msvc.sh" "$(OutDir)" /q /y >nul 2>&1 -- cgit v1.2.3