From c47008da0a314daa97b775594c4f074ecc99eb28 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Nov 2010 19:14:35 +0000 Subject: 2010-11-16 Joel Sherrill PR 1718/cpukit * sapi/include/confdefs.h: POSIX threads are allocated twice the minimum stack space by default. confdefs.h only accounts for one minimum -- not the 2x factor. --- cpukit/ChangeLog | 7 +++++++ cpukit/sapi/include/confdefs.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 07c5ea785b..1c057b3769 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,10 @@ +2010-11-16 Joel Sherrill + + PR 1718/cpukit + * sapi/include/confdefs.h: POSIX threads are allocated twice the + minimum stack space by default. confdefs.h only accounts for one + minimum -- not the 2x factor. + 2010-11-16 Joel Sherrill PR 1717/cpukit diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 3644087ba9..4b00b1545f 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -654,7 +654,8 @@ posix_initialization_threads_table POSIX_Initialization_threads[] = { #define CONFIGURE_MEMORY_PER_TASK_FOR_POSIX_API \ ( \ sizeof (POSIX_API_Control) + \ - (sizeof (void *) * (CONFIGURE_GNAT_KEYS + CONFIGURE_MAXIMUM_POSIX_KEYS)) \ + CONFIGURE_MINIMUM_TASK_STACK_SIZE + \ + (sizeof (void *) * (CONFIGURE_GNAT_KEYS + CONFIGURE_MAXIMUM_POSIX_KEYS)) \ ) #define CONFIGURE_MEMORY_FOR_POSIX_MUTEXES(_mutexes) \ -- cgit v1.2.3