This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libpthread removal project


* Szabolcs Nagy:

> hm i missed the large .bss for pthread_keys
>
>    815: 000000000002b2f0 16384 OBJECT  LOCAL  DEFAULT   26 __GI___pthread_keys
>
> i guess that's non-shareable, so it is committed
> memory, but can be unallocated if it's unused.
>
> if it's a concern it can be changed to use malloc.

Or at least mmap.  We may have to support a malloc which uses
pthread_key create.

There's also __libc_pthread_functions in libc today, which will go away
completely and offset some of the cost related to the other global
variables.

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]