gustavonihei edited a comment on pull request #3871:
URL: https://github.com/apache/incubator-nuttx/pull/3871#issuecomment-856933479


   > If the user wants a 4096 stack they will not get the value they set. That 
seam wrong and confusing.
   > 
   > The TLS size should be added the the allocation So that USER+TLS == 
stack(USER's STACK) + (tls size) (rounded up for alignment)
   
   I think the developer should not create this expectation that the defined 
stack size will be entirely available for usage.
   
   The Linux Kernel seems to do the same thing:
   https://elixir.bootlin.com/linux/v5.12.9/source/include/linux/sched.h#L1742


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to