Fixing the distribution problems with TLS and DTV_SURPLUS slots.

Carlos O'Donell carlos@redhat.com
Fri Oct 10 17:41:00 GMT 2014


On 10/10/2014 08:22 AM, Alexandre Oliva wrote:
>> (a) Immediately increase DTV surplus size.
>> (b) Implement static TLS support without needing a DTV increase.
>> (c) Remove faulty heursitics around not wanting to increase DTV size.
>> (d) Add __attribute__((tls_model("go-fast"))) to gcc that defaults to
>>     IE if TLS Desc is not present.
>> (e) Approach upstream projects with patches to convert to TLS descriptors
>>     using go-fast model.
> 
> Heh.  I guess my suggestion is that we go backwards in your list.  IE
> abuse is not our bug.

:-)
 
> (b) requires little more than dropping some incorrect asserts.  And once
> we get to that (remember, going backwards), (a) is completely
> unnecessary: why waste per-thread memory for everyone if it's not
> needed?
 
I've outlined a slightly different path in the other email to Rich.

See if you like that set of steps better.

Cheers,
Carlos.



More information about the Libc-alpha mailing list