core/thread: always use THREAD_CREATE_STACKTEST when DEVELHELP is enabled#20450
Conversation
|
I think @nmeum had a similar PR open. Maybe it makes sense to revisit that and why that has not been merged? |
seems like something about short lived threads -- i am not sure how common they are |
ff8eaec to
8f974b8
Compare
|
For that special case I could add a new |
👍 But please keep the old flag to explicitly create the stack test defined as (I could see myself explicitly adding the no-op create stack test flag if for some reason the code would rely on that as alternative to lamenting in a comment why the code can safely rely on the stack test being created.) |
992dfe5 to
b23d3f5
Compare
mguetschow
left a comment
There was a problem hiding this comment.
Looks good, thanks! What's the reason not to deprecate the flag and removing it in, e.g., a year from now?
b23d3f5 to
0fbc10f
Compare
Contribution description
We already create every thread with
THREAD_CREATE_STACKTEST.If someone creates a thread without it,
psoutput is weird (all stack is marked as used) and the overhead is only at thread creation and only whenDEVELHELPis set.Remove the flag (but keep the define to not break apps) since in all those years, not a single use-case has been found for creating a thread without
THREAD_CREATE_STACKTEST.Testing procedure
psstill uses the stack usage withDEVELHELP=1, even whenTHREAD_CREATE_STACKTESTis not set:Issues/PRs references