* wthreads.c (CreateThread): Avoid an assert if the stack size specified by the
caller is smaller than the system minimum.
svn path=/trunk/mono/; revision=160457
+2010-07-15 Zoltan Varga <vargaz@gmail.com>
+
+ * wthreads.c (CreateThread): Avoid an assert if the stack size specified by the
+ caller is smaller than the system minimum.
+
2010-06-29 Geoff Norton <gnorton@novell.com>
* atomics.h: Implement armv6+ variants of our atomics.
#endif
}
+#ifdef PTHREAD_STACK_MIN
+ if (stacksize < PTHREAD_STACK_MIN)
+ stacksize = PTHREAD_STACK_MIN;
+#endif
+
#ifdef HAVE_PTHREAD_ATTR_SETSTACKSIZE
thr_ret = pthread_attr_setstacksize(&attr, stacksize);
g_assert (thr_ret == 0);