TLS_INIT_TP, secondcall vs. USE___THREAD (was: GNU C Library master sources branch, master, updated. glibc-2.14-297-g52d4fef)

Roland McGrath roland@hack.frob.com
Mon Oct 10 16:43:00 GMT 2011


> > In the olden times, when USE___THREAD was still being defined (before
> > commit d063d164335938d557460bebaa7cfe388157b627), in both the two cases
> > above, TLS_INIT_TP(tcbp, 1) has been invoked.
> 
> USE___THREAD was always 0 in rtld.

Not "always".  But that was the status quo before the deconditionalization.
We still had some conditionalization leaving the possibility of __thread
or no for rtld itself, though nobody has done that in quite some time since
it's just simpler and more efficient for rtld itself not to use __thread.



More information about the Libc-alpha mailing list