Increase stack size to 4 MB
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 9 Apr 2019 20:34:02 +0000 (22:34 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 9 Apr 2019 20:34:02 +0000 (22:34 +0200)
appveyor.yml
src/thread_win32_osx.h
src/types.h

index 21f3bbe..ebf3c87 100644 (file)
@@ -4,6 +4,7 @@ clone_depth: 50
 branches:
   only:
     - master
+    - merge
     - appveyor
 
 # Operating system (build VM template)
index 8890054..6c57fd9 100644 (file)
@@ -77,7 +77,7 @@ typedef std::condition_variable ConditionVariable;
 
 #include <pthread.h>
 
-static const size_t TH_STACK_SIZE = 2 * 1024 * 1024;
+static const size_t TH_STACK_SIZE = 4 * 1024 * 1024;
 
 template <class T, class P = std::pair<T*, void(T::*)()>>
 void* start_routine(void* ptr)
index cd7c2ca..41de7f6 100644 (file)
@@ -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: