xiaoxiang781216 commented on pull request #3170: URL: https://github.com/apache/incubator-nuttx/pull/3170#issuecomment-807146165
> > Then, the space for task wide variables never consume other background/work thread's space. > > Yes, but the biggest part of the job would be to modify every up_create_stack() and up_use_stack() and stack coloration implementation to distinguish between the size of the TLS data on the main thread vs. the size of the TLS data on the pthread. Life is a lot nicer if things are symmetric. You are right, details are the devil. Maybe, we can add a size field as the first member of tls_info_s, to reduce the code need to check whether the caller come from the main task or the background/work thread. -- 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]
