Tue Feb 8 18:28:11 CET 2005 Paolo Molaro <lupus@ximian.com>
authorPaolo Molaro <lupus@oddwiz.org>
Tue, 8 Feb 2005 17:13:42 +0000 (17:13 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Tue, 8 Feb 2005 17:13:42 +0000 (17:13 -0000)
* threads.c: make people test with 1 MB stack per thread.

svn path=/trunk/mono/; revision=40308

mono/io-layer/ChangeLog
mono/io-layer/threads.c

index 8a771b28263def16e4d9b4cf8aa3b58b0d3de8e4..9d17d39e5501af4c3dfe9fdf2afb70375174c02e 100644 (file)
@@ -1,3 +1,8 @@
+
+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
index f464f0b94230e4f83d2dcb43c2636bb23e2aa0d9..119500f55ac16a1c33fb67d2c76ab61f39eb2875 100644 (file)
@@ -270,14 +270,18 @@ gpointer CreateThread(WapiSecurityAttributes *security G_GNUC_UNUSED, guint32 st
        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
                
        }