[PATCH] nptl: Move pthread_getconcurrency, pthread_setconcurrency into libc
Florian Weimer
fweimer@redhat.com
Tue May 11 17:45:55 GMT 2021
* Adhemerval Zanella:
> On 11/05/2021 08:38, Florian Weimer via Libc-alpha wrote:
>> The symbols were moved using scripts/move-symbol-to-libc.py,
>> in one commit due to their dependency on the internal
>> __concurrency_level variable.
>>
>> Tested on i686-linux-gnu, x86_64-linux-gnu.
>
> LGTM, thanks.
>
> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Thanks!
This is awkward, we actually ran out of patches to review, and I don't
have anything else queued for posting today. 8-)
I looked at the libpthread events framework and how to split that from
the pthread_create move itself, but haven't found a clean way to do it.
For most of the remaining initialization, I plan to do it lazily in
pthread_create during the first call. Obtaining the stack size probably
should happen in __pthread_early_init. (We could defer it to the first
pthread_create or pthread_getattr_default_np call, but I doubt the
additional complexity is worth the saved getrlimit system call during
startup.)
Besides that, I think we are now down to moving individual functions
from libpthread.
Florian
More information about the Libc-alpha
mailing list