mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nptl: Move stack list variables into _rtld_global
Now __thread_gscope_wait (the function behind THREAD_GSCOPE_WAIT, formerly __wait_lookup_done) can be implemented directly in ld.so, eliminating the unprotected GL (dl_wait_lookup_done) function pointer. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -213,9 +213,9 @@ __find_in_stack_list (struct pthread *pd)
|
||||
list_t *entry;
|
||||
struct pthread *result = NULL;
|
||||
|
||||
lll_lock (stack_cache_lock, LLL_PRIVATE);
|
||||
lll_lock (GL (dl_stack_cache_lock), LLL_PRIVATE);
|
||||
|
||||
list_for_each (entry, &stack_used)
|
||||
list_for_each (entry, &GL (dl_stack_used))
|
||||
{
|
||||
struct pthread *curp;
|
||||
|
||||
@ -228,7 +228,7 @@ __find_in_stack_list (struct pthread *pd)
|
||||
}
|
||||
|
||||
if (result == NULL)
|
||||
list_for_each (entry, &__stack_user)
|
||||
list_for_each (entry, &GL (dl_stack_user))
|
||||
{
|
||||
struct pthread *curp;
|
||||
|
||||
@ -240,7 +240,7 @@ __find_in_stack_list (struct pthread *pd)
|
||||
}
|
||||
}
|
||||
|
||||
lll_unlock (stack_cache_lock, LLL_PRIVATE);
|
||||
lll_unlock (GL (dl_stack_cache_lock), LLL_PRIVATE);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user