This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fixing the distribution problems with TLS and DTV_SURPLUS slots.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]