Re: [RFC PATCH glibc 11/34] mach, hurd: Drop __libc_lock_self0

2023-04-02 Thread Samuel Thibault
Applied, thanks! Sergey Bugaev, le dim. 19 mars 2023 18:09:54 +0300, a ecrit: > This was used for the value of libc-lock's owner when TLS is not yet set > up, so THREAD_SELF can not be used. Since the value need not be anything > specific -- it just has to be non-NULL -- we can just use a plain >

[RFC PATCH glibc 11/34] mach, hurd: Drop __libc_lock_self0

2023-03-19 Thread Sergey Bugaev
This was used for the value of libc-lock's owner when TLS is not yet set up, so THREAD_SELF can not be used. Since the value need not be anything specific -- it just has to be non-NULL -- we can just use a plain constant, such as (void *) 1, for this. This avoids accessing the symbol through GOT, a