From 348ba429c0da3d9b00d33a9588f4f8e5c366ac6b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 30 Sep 1996 20:14:08 +0000 Subject: changed stack size of posix initialization threads to double the minimum stack size so more of acvc would pass. --- c/src/exec/posix/src/pthread.c | 3 +++ cpukit/posix/src/pthread.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c index 2137e97b99..5864c22072 100644 --- a/c/src/exec/posix/src/pthread.c +++ b/c/src/exec/posix/src/pthread.c @@ -259,6 +259,9 @@ void _POSIX_Threads_Initialize_user_threads( void ) status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); assert( !status ); + status = pthread_attr_setstacksize( &attr, PTHREAD_MINIMUM_STACK_SIZE * 2 ); + assert( !status ); + status = pthread_create( &thread_id, &attr, diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 2137e97b99..5864c22072 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -259,6 +259,9 @@ void _POSIX_Threads_Initialize_user_threads( void ) status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); assert( !status ); + status = pthread_attr_setstacksize( &attr, PTHREAD_MINIMUM_STACK_SIZE * 2 ); + assert( !status ); + status = pthread_create( &thread_id, &attr, -- cgit v1.2.3