-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel/userspace: Fix dynamic thread stack allocation at userspace #69540
kernel/userspace: Fix dynamic thread stack allocation at userspace #69540
Conversation
LGTM - just one minor suggestion |
@cfriedt looks like you may have forgotten to add it to your review |
- CONFIG_DYNAMIC_THREAD_POOL_SIZE=0 | ||
- CONFIG_DYNAMIC_THREAD_ALLOC=y | ||
- CONFIG_USERSPACE=y | ||
- CONFIG_DYNAMIC_OBJECTS=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CONFIG_DYNAMIC_OBJECTS
might be better off in prj.conf
, in which case this 011 case should be the same as the other.
It should be activated whenever userspace is active in these tests in any case.
It wasn't saving adjusted stack size at either the private stack or the k_object, thus failing subsequent checks. Test added to check for this case and prevent regressions. Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
50a0b4d
8604f2f
to
50a0b4d
Compare
v2:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix @edersondisouza 👍
Any comments, @andyross? |
It wasn't saving adjusted stack size at either the private stack or the k_object, thus failing subsequent checks.
Test added to check for this case and prevent regressions.