Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/msvc
diff options
context:
space:
mode:
authorlateralusX <lateralusx.github@gmail.com>2019-06-03 12:43:16 +0300
committerlateralusX <lateralusx.github@gmail.com>2019-06-04 10:37:39 +0300
commit29a2383333fdd4d49101d37ea61571747454aae9 (patch)
tree1d121f2942544d8a887ad5e044feb2e9eabc65be /msvc
parent472465d6ba26d5cb9f98b2cad4b929e23adf2239 (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.vcxproj4
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 &gt;nul 2&gt;
<SubSystem>Console</SubSystem>
<ShowProgress>
</ShowProgress>
+ <StackReserveSize>0x800000</StackReserveSize>
</Link>
<PostBuildEvent>
<Command>xcopy "$(SolutionDir)mono-sgen-msvc.sh" "$(OutDir)" /q /y &gt;nul 2&gt;&amp;1
@@ -168,6 +170,7 @@ xcopy "$(SolutionDir)setup-vs-msvcbuild-env.bat" "$(OutDir)" /q /y &gt;nul 2&gt;
<SubSystem>Console</SubSystem>
<DataExecutionPrevention>
</DataExecutionPrevention>
+ <StackReserveSize>0x180000</StackReserveSize>
</Link>
<PostBuildEvent>
<Command>xcopy "$(SolutionDir)mono-sgen-msvc.sh" "$(OutDir)" /q /y &gt;nul 2&gt;&amp;1
@@ -196,6 +199,7 @@ xcopy "$(SolutionDir)setup-vs-msvcbuild-env.bat" "$(OutDir)" /q /y &gt;nul 2&gt;
<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 &gt;nul 2&gt;&amp;1