From: Fabian Fichter Date: Tue, 9 Apr 2019 20:34:02 +0000 (+0200) Subject: Increase stack size to 4 MB X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=111979742a3b57a91824c8c4ec9e307340f970da;p=fairystockfish.git Increase stack size to 4 MB --- diff --git a/appveyor.yml b/appveyor.yml index 21f3bbe..ebf3c87 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,6 +4,7 @@ clone_depth: 50 branches: only: - master + - merge - appveyor # Operating system (build VM template) diff --git a/src/thread_win32_osx.h b/src/thread_win32_osx.h index 8890054..6c57fd9 100644 --- a/src/thread_win32_osx.h +++ b/src/thread_win32_osx.h @@ -77,7 +77,7 @@ typedef std::condition_variable ConditionVariable; #include -static const size_t TH_STACK_SIZE = 2 * 1024 * 1024; +static const size_t TH_STACK_SIZE = 4 * 1024 * 1024; template > void* start_routine(void* ptr) diff --git a/src/types.h b/src/types.h index cd7c2ca..41de7f6 100644 --- a/src/types.h +++ b/src/types.h @@ -49,7 +49,7 @@ #pragma warning(disable: 4127) // Conditional expression is constant #pragma warning(disable: 4146) // Unary minus operator applied to unsigned type #pragma warning(disable: 4800) // Forcing value to bool 'true' or 'false' -#pragma comment(linker, "/STACK:2000000") // Use 2MB stack size for MSVC +#pragma comment(linker, "/STACK:4000000") // Use 4 MB stack size for MSVC #endif /// Predefined macros hell: