diff options
author | lateralusX <lateralusx.github@gmail.com> | 2019-06-03 12:43:16 +0300 |
---|---|---|
committer | lateralusX <lateralusx.github@gmail.com> | 2019-06-04 10:37:39 +0300 |
commit | 29a2383333fdd4d49101d37ea61571747454aae9 (patch) | |
tree | 1d121f2942544d8a887ad5e044feb2e9eabc65be /msvc | |
parent | 472465d6ba26d5cb9f98b2cad4b929e23adf2239 (diff) |
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).
Diffstat (limited to 'msvc')
-rw-r--r-- | msvc/mono.vcxproj | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ <SubSystem>Console</SubSystem> <DataExecutionPrevention> </DataExecutionPrevention> + <StackReserveSize>0x800000</StackReserveSize> </Link> <ProjectReference> <LinkLibraryDependencies>false</LinkLibraryDependencies> @@ -141,6 +142,7 @@ xcopy "$(SolutionDir)setup-vs-msvcbuild-env.bat" "$(OutDir)" /q /y >nul 2> <SubSystem>Console</SubSystem> <ShowProgress> </ShowProgress> + <StackReserveSize>0x800000</StackReserveSize> </Link> <PostBuildEvent> <Command>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> <SubSystem>Console</SubSystem> <DataExecutionPrevention> </DataExecutionPrevention> + <StackReserveSize>0x180000</StackReserveSize> </Link> <PostBuildEvent> <Command>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> <Link> <AdditionalDependencies>$(MONO_LIBMONO_LIB);%(AdditionalDependencies)</AdditionalDependencies> <SubSystem>Console</SubSystem> + <StackReserveSize>0x180000</StackReserveSize> </Link> <PostBuildEvent> <Command>xcopy "$(SolutionDir)mono-sgen-msvc.sh" "$(OutDir)" /q /y >nul 2>&1 |