From: Fabian Fichter Date: Wed, 21 Aug 2019 19:13:38 +0000 (+0200) Subject: Increase stack size for Windows and macOS (#29) X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=56059fdaaaa2822b20af528adc655193649cee7c;p=fairystockfish.git Increase stack size for Windows and macOS (#29) Account for recent increase of stack usage. --- diff --git a/src/thread_win32_osx.h b/src/thread_win32_osx.h index 6c57fd9..e267118 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 = 4 * 1024 * 1024; +static const size_t TH_STACK_SIZE = 8 * 1024 * 1024; template > void* start_routine(void* ptr) diff --git a/src/types.h b/src/types.h index 7600312..7628626 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:4000000") // Use 4 MB stack size for MSVC +#pragma comment(linker, "/STACK:8000000") // Use 8 MB stack size for MSVC #endif /// Predefined macros hell: