We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0035f9 commit f4631d5Copy full SHA for f4631d5
kernel/thread.c
@@ -475,7 +475,9 @@ Z_SYSCALL_HANDLER(k_thread_create,
475
"stack size overflow (%u+%u)", stack_size,
476
K_THREAD_STACK_RESERVED));
477
478
- /* They really ought to be equal, make this more strict? */
+ /* Testing less-than-or-equal since additional room may have been
479
+ * allocated for alignment constraints
480
+ */
481
Z_OOPS(Z_SYSCALL_VERIFY_MSG(total_size <= stack_object->data,
482
"stack size %u is too big, max is %u",
483
total_size, stack_object->data));
0 commit comments