[PATCH 4/6] nptl: Initialize tid earlier

Florian Weimer fw@deneb.enyo.de
Fri Dec 4 18:22:22 GMT 2020


* 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.


More information about the Libc-alpha mailing list