|
From: <sv...@va...> - 2009-02-18 09:15:51
|
Author: sewardj Date: 2009-02-18 09:15:38 +0000 (Wed, 18 Feb 2009) New Revision: 9198 Log: merge r8946: drd/tests/matinv.c: Runs now fine on systems for which PTHREAD_STACK_MIN > 32768. Modified: branches/VALGRIND_3_4_BRANCH/drd/tests/matinv.c Modified: branches/VALGRIND_3_4_BRANCH/drd/tests/matinv.c =================================================================== --- branches/VALGRIND_3_4_BRANCH/drd/tests/matinv.c 2009-02-18 05:14:44 UTC (rev 9197) +++ branches/VALGRIND_3_4_BRANCH/drd/tests/matinv.c 2009-02-18 09:15:38 UTC (rev 9198) @@ -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 @@ 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++) |