* threads.c: make people test with 1 MB stack per thread.
svn path=/trunk/mono/; revision=40308
+
+Tue Feb 8 18:28:11 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+ * threads.c: make people test with 1 MB stack per thread.
+
2005-01-17 Dick Porter <dick@ximian.com>
* timefuncs.h: Make WapiFileTime endian-aware, as it's often
g_assert (thr_ret == 0);
/* defaults of 2Mb for 32bits and 4Mb for 64bits */
+ /* temporarily changed to use 1 MB: this allows more threads to be used,
+ * as well as using less virtual memory and so more is available for
+ * the GC heap.
+ */
if (stacksize == 0){
#if HAVE_VALGRIND_MEMCHECK_H
if (RUNNING_ON_VALGRIND)
stacksize = 1 << 20;
else
- stacksize = (SIZEOF_VOID_P / 2) * 1024 * 1024;
+ stacksize = (SIZEOF_VOID_P / 4) * 1024 * 1024;
#else
- stacksize = (SIZEOF_VOID_P / 2) * 1024 * 1024;
+ stacksize = (SIZEOF_VOID_P / 4) * 1024 * 1024;
#endif
}