|
From: <sv...@va...> - 2009-01-13 08:19:07
|
Author: bart Date: 2009-01-13 08:18:59 +0000 (Tue, 13 Jan 2009) New Revision: 8946 Log: Runs now fine on systems for which PTHREAD_STACK_MIN > 32768. Modified: trunk/drd/tests/matinv.c Modified: trunk/drd/tests/matinv.c =================================================================== --- trunk/drd/tests/matinv.c 2009-01-13 07:49:14 UTC (rev 8945) +++ trunk/drd/tests/matinv.c 2009-01-13 08:18:59 UTC (rev 8946) @@ -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++) |