[PATCH v2 15/19] nptl: Use tidlock when accessing TID on pthread_getname_np

Florian Weimer fweimer@redhat.com
Mon Aug 30 09:37:35 GMT 2021


* Adhemerval Zanella:

>> I wonder if we should cache the thread name in the TCB.  That would be
>> nice for debugging coredumps, too.
>
> This does not make sense, although it would require some memory
> allocation.

Isn't the name limited to 16 bytes?  So it wouldn't need a separate
allocation.

Thanks,
Florian



More information about the Libc-alpha mailing list