blob: 21714728ccd17b901b15e8d43f597f12cb9e633c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- cpp/src/Ice/Thread.cpp.orig 2018-04-20 15:02:08 UTC
+++ cpp/src/Ice/Thread.cpp
@@ -720,6 +720,12 @@ IceUtil::Thread::start(size_t stackSize,
stackSize = stackSize / 4096 * 4096 + 4096;
}
#endif
+#if defined(__FreeBSD__)
+ if(stackSize < 16384)
+ {
+ stackSize = 16384;
+ }
+#endif
rc = pthread_attr_setstacksize(&attr, stackSize);
if(rc != 0)
{
|