From 56059fdaaaa2822b20af528adc655193649cee7c Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Wed, 21 Aug 2019 21:13:38 +0200 Subject: [PATCH] Increase stack size for Windows and macOS (#29) Account for recent increase of stack usage. --- src/thread_win32_osx.h | 2 +- src/types.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: -- 1.7.0.4