From 323c802df0d12d887ffa92bc65299ce374a3a672 Mon Sep 17 00:00:00 2001 From: Robert Tivy Date: Fri, 3 Oct 2014 18:00:32 -0700 Subject: [PATCH 1/1] SDOCM00113338 fix: reduce number of Tasks for messageq_multi.c Also reduce the maximum number of threads supported in MessageQMulti.c The need for this fix arose when the BIOS heap size was reduced in some .cfg files in packages/ti/ipc/tests. The new, smaller heap was not sufficient for allocating 55 Tasks (it failed at about the 30th Task). --- linux/src/tests/MessageQMulti.c | 2 +- packages/ti/ipc/tests/messageq_multi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/src/tests/MessageQMulti.c b/linux/src/tests/MessageQMulti.c index 3790ceb..a2c41d4 100644 --- a/linux/src/tests/MessageQMulti.c +++ b/linux/src/tests/MessageQMulti.c @@ -62,7 +62,7 @@ #define NUM_LOOPS_DFLT 1000 #define NUM_THREADS_DFLT 10 -#define MAX_NUM_THREADS 55 +#define MAX_NUM_THREADS 25 #define ONE_PROCESS_ONLY (-1) /** ============================================================================ diff --git a/packages/ti/ipc/tests/messageq_multi.c b/packages/ti/ipc/tests/messageq_multi.c index 17ab5fe..5263d92 100644 --- a/packages/ti/ipc/tests/messageq_multi.c +++ b/packages/ti/ipc/tests/messageq_multi.c @@ -50,7 +50,7 @@ #define SLAVE_MESSAGEQNAME "SLAVE" #define HOST_MESSAGEQNAME "HOST" -#define NUMTHREADS 55 +#define NUMTHREADS 25 #define NUMLOOPS 1000 static int numTests = 0; -- 2.39.2