Skip to content

Commit 82e44e0

Browse files
committed
stm32/mpthreadport: Increase minimum thread stack size to 2.5k.
2.25k Seems necessary so it doesn't crash `thread/thread_stacksize1.py`. But 2.5k gives a little extra headroom to make that test actually pass. Signed-off-by: Damien George <damien@micropython.org>
1 parent 134bf4d commit 82e44e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ports/stm32/mpthreadport.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ mp_uint_t mp_thread_get_id(void) {
6161
mp_uint_t mp_thread_create(void *(*entry)(void *), void *arg, size_t *stack_size) {
6262
if (*stack_size == 0) {
6363
*stack_size = 4096; // default stack size
64-
} else if (*stack_size < 2048) {
65-
*stack_size = 2048; // minimum stack size
64+
} else if (*stack_size < 2560) {
65+
*stack_size = 2560; // minimum stack size
6666
}
6767

6868
// round stack size to a multiple of the word size

0 commit comments

Comments
 (0)