]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
merge r8946:
authorJulian Seward <jseward@acm.org>
Wed, 18 Feb 2009 09:15:38 +0000 (09:15 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 18 Feb 2009 09:15:38 +0000 (09:15 +0000)
   drd/tests/matinv.c:
   Runs now fine on systems for which PTHREAD_STACK_MIN > 32768.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@9198

drd/tests/matinv.c

index 7153beb09277310807b1c1bf383299f1ca2ff189..7ef4cb761601c170393a1a0898b7c6795b9f4bba 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <assert.h>
 #include <math.h>
+#include <limits.h>  // PTHREAD_STACK_MIN
 #include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -236,8 +237,7 @@ static void gj(elem_t* const a, const int rows, const int cols)
   pthread_barrier_init(&b, 0, s_nthread);
 
   pthread_attr_init(&attr);
-  /* To do: replace the stack size argument by PTHREAD_STACK_MIN + 4096. */
-  err = pthread_attr_setstacksize(&attr, 32768);
+  err = pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + 4096);
   assert(err == 0);
 
   for (i = 0; i < s_nthread; i++)