Commit fd3128a
committed
tests: arch: arm_thread_swap: increase stack for no_optimizations
Under CONFIG_NO_OPTIMIZATIONS=y (-O0), the stack consumption for the
test threads in arm_thread_swap exceeds the default 1024-byte allocation
due to larger stack frames in unoptimized core kernel paths (such as
k_thread_priority_set, verify_callee_saved, and reschedule chains).
Because alt_thread_stack and user_thread_stack are sized with
1024 + CONFIG_TEST_EXTRA_STACK_SIZE, adjusting CONFIG_MAIN_STACK_SIZE
alone does not allocate extra space for these test threads.
Add CONFIG_TEST_EXTRA_STACK_SIZE=1024 to extra_configs in both
arch.arm.swap.common.no_optimizations and
arch.arm.swap.common.fpu_sharing.no_optimizations test scenarios to
provide sufficient stack budget under -O0.
Fixes #111477
Signed-off-by: harshit kudhial <harshitkudhial@gmail.com>1 parent e64f6be commit fd3128a
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
0 commit comments