
The thread id is copied to a local variable to avoid having __tls_get_addr from unnecessarily being called over and over again. Together that used to amount to some 1% of the execution time.
The thread id is copied to a local variable to avoid having __tls_get_addr from unnecessarily being called over and over again. Together that used to amount to some 1% of the execution time.