Increase main thread stack size on Windows.
commit29a2383333fdd4d49101d37ea61571747454aae9
authorlateralusX <lateralusx.github@gmail.com>
Mon, 3 Jun 2019 09:43:16 +0000 (3 11:43 +0200)
committerlateralusX <lateralusx.github@gmail.com>
Tue, 4 Jun 2019 07:37:39 +0000 (4 09:37 +0200)
tree1d121f2942544d8a887ad5e044feb2e9eabc65be
parent472465d6ba26d5cb9f98b2cad4b929e23adf2239
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).
mono/utils/mono-threads-windows.c
msvc/mono.vcxproj