[PATCH 4/6] nptl: Initialize tid earlier

Adhemerval Zanella adhemerval.zanella@linaro.org
Fri Dec 4 18:30:39 GMT 2020



On 04/12/2020 15:22, Florian Weimer wrote:
> * Adhemerval Zanella via Libc-alpha:
> 
>> It sets the PD tid value as once pthread is initialized, the idea is
>> to allow raise being implemented by pthread_kill and avoid a gettid
>> call.
> 
> I don't think this is possible.  I expect that some applications
> assume that raise works after vfork (certainly via abort), and the TID
> cache is wrong at that point.  Sorry.
> 

Sign, I would consider this undefined behavior but I don't see why break
it anyway.  I withdraw this patch.


More information about the Libc-alpha mailing list