Skip to content

Commit 92d11df

Browse files
committed
Increase stack size in malloc test for Cortex-A
Increase the stack size used in the malloc test to prevent stack overflows on Cortex-A devices.
1 parent 1fd2402 commit 92d11df

File tree

1 file changed

+4
-0
lines changed
  • TESTS/mbedmicro-rtos-mbed/malloc

1 file changed

+4
-0
lines changed

TESTS/mbedmicro-rtos-mbed/malloc/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
#endif
88

99
#define NUM_THREADS 5
10+
#if defined(__CORTEX_A9)
11+
#define THREAD_STACK_SIZE DEFAULT_STACK_SIZE
12+
#else
1013
#define THREAD_STACK_SIZE 256
14+
#endif
1115

1216
DigitalOut led1(LED1);
1317
volatile bool should_exit = false;

0 commit comments

Comments
 (0)