summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-11-16 19:14:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-11-16 19:14:35 +0000
commitc47008da0a314daa97b775594c4f074ecc99eb28 (patch)
tree76eac5d3e9ddbc86f8cdefc8d73559c9ab76a30a
parentca4fb8f12d5b5074d5e4d5cf7d15f4f9457caf19 (diff)
2010-11-16 Joel Sherrill <joel.sherrilL@OARcorp.com>
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.
-rw-r--r--cpukit/ChangeLog7
-rw-r--r--cpukit/sapi/include/confdefs.h3
2 files changed, 9 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 07c5ea785b..1c057b3769 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,12 @@
2010-11-16 Joel Sherrill <joel.sherrilL@OARcorp.com>
+ 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 <joel.sherrilL@OARcorp.com>
+
PR 1717/cpukit
* libcsupport/src/gxx_wrappers.c: Free memory on error.
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) \