]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
memcheck/tests/err_disable4: Reduce memory footprint further.
authorBart Van Assche <bvanassche@acm.org>
Fri, 7 Oct 2011 09:41:58 +0000 (09:41 +0000)
committerBart Van Assche <bvanassche@acm.org>
Fri, 7 Oct 2011 09:41:58 +0000 (09:41 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12112

memcheck/tests/err_disable4.c

index 603a670340be800e035e9d2041fa86a2f3a8ff2f..4fb912b3f0f3438d56a5c200cf018f0b4db66af1 100644 (file)
@@ -22,7 +22,7 @@
 #include <assert.h>
 #include <pthread.h>
 #include <semaphore.h>
-
+#include <limits.h>    /* PTHREAD_STACK_MIN */
 #include "../include/valgrind.h"
 
 char* block = NULL;
@@ -77,7 +77,7 @@ int main ( void )
 
   pthread_attr_t attr;
   r = pthread_attr_init(&attr); assert(!r);
-  r = pthread_attr_setstacksize(&attr, 64 * 4096); // 256k
+  r = pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN);
 
   // create N threads to do child_fn_1 ...
   for (i = 0; i < NTHREADS; i++) {