Is there a known size limit of the thread local storage in a prevalent modern OS?
问题 When I use thread_local , _Thread_local , __thread , or __declspec(thread) , the compiler seems to allocate a thread local storage upon thread creation and store the address in the fs or gs register in an x86 derived system. In this context, is there something like 'thread local storage overflow'? 回答1: There are limits. Each system will be different, but on Windows, there is a limited data section which is mapped thread specifically. The size of this section is limited. Older versions of