Bugsplat bug #340124: increase the default thread stack size to 64K
authorwtc%netscape.com
Thu, 28 Jan 1999 03:20:29 +0000
changeset 411 504f587ea11204dd3a85b8b50dc8e13138c83ead
parent 410 463589a59804030155ba128bc1a9ac2af33e0048
child 412 b3370af381b7793132b39d1d84dce48dd83bb877
push idunknown
push userunknown
push dateunknown
bugs340124
Bugsplat bug #340124: increase the default thread stack size to 64K on IRIX, to be consistent with the other platforms.
pr/src/pthreads/ptthread.c
--- a/pr/src/pthreads/ptthread.c
+++ b/pr/src/pthreads/ptthread.c
@@ -280,20 +280,16 @@ static PRThread* _PR_CreateThread(
      */
 #if !defined(_PR_DCETHREADS)
     rv = pthread_attr_setdetachstate(&tattr,
         ((PR_JOINABLE_THREAD == state) ?
             PTHREAD_CREATE_JOINABLE : PTHREAD_CREATE_DETACHED));
     PR_ASSERT(0 == rv);
 #endif /* !defined(_PR_DCETHREADS) */
 
-#if defined(IRIX)
-    if ((32 * 1024) > stackSize) stackSize = (32 * 1024);  /* IRIX minimum */
-    else
-#endif
     if (0 == stackSize) stackSize = (64 * 1024);  /* default == 64K */
     /*
      * Linux doesn't have pthread_attr_setstacksize.
      */
 #ifndef LINUX
     rv = pthread_attr_setstacksize(&tattr, stackSize);
     PR_ASSERT(0 == rv);
 #endif