[cxx-abi-dev] thread_local CONstructors

Jason Merrill jason at redhat.com
Thu Sep 27 15:55:28 UTC 2012


On 09/27/2012 09:22 AM, Jakub Jelinek wrote:
> BTW, there is another problem with the initialization of whole TU TLS.
> If some of the TLS vars are exported from a shared library, they might be
> overriden by some other definition in another shared library.  At that point
> we could initialize one TLS var twice.

This doesn't seem unique to TLS variables; normal variables with static 
storage duration have the same issue.  We assume that this won't happen 
unless the variable is comdat, in which case it has its own guard.

Jason



More information about the cxx-abi-dev mailing list