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

Carlos O'Donell carlos@redhat.com
Tue Oct 17 22:10:00 GMT 2017


On 10/17/2017 03:10 PM, Mathieu Desnoyers wrote:
>> Please also read Florian's recommendation very carefully, you must us
>> IE model TLS vars to ensure pre-allocation and avoid potential OOM
>> during first variable touch, and to avoid first variable touch in a
>> signal handler resulting in the same problem as above (though we are
>> looking to fix this).
> 
> Hopefully touching the TLS variable from a library constructor sides-steps
> this issue. This has worked well in practice so far.

It does. Thank you for the clarification.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list