[RFC PATCH glibc] pthread_setspecific: Provide signal-safety across keys

Carlos O'Donell carlos@redhat.com
Wed Oct 18 17:40:00 GMT 2017


On 10/18/2017 09:21 AM, Mathieu Desnoyers wrote:
> So let's assume dlopen failure is acceptable if there are too many
> initial-exec TLS. Would it work today to fix signal handler tracing
> by changing lttng-ust to use TLS_IE, or would it require changes to
> glibc ?

No changes to glibc are required. We already use TLS IE in glibc
specifically to fix this issue. Also libGL also uses TLS IE in
the distro for performance reasons, so we get testing there.

How much TLS data do you have? With libGL it's just a few words,
and there is lots of spare space in the static TLS space for
that.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list