mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nptl: Move more stack management variables into _rtld_global
Permissions of the cached stacks may have to be updated if an object is loaded that requires executable stacks, so the dynamic loader needs to know about these cached stacks. The move of in_flight_stack and stack_cache_actsize is a requirement for merging __reclaim_stacks into the fork implementation in libc. Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@ -192,6 +192,9 @@ int (*_dl_make_stack_executable_hook) (void **) = _dl_make_stack_executable;
|
||||
#if THREAD_GSCOPE_IN_TCB
|
||||
list_t _dl_stack_used;
|
||||
list_t _dl_stack_user;
|
||||
list_t _dl_stack_cache;
|
||||
size_t _dl_stack_cache_actsize;
|
||||
uintptr_t _dl_in_flight_stack;
|
||||
int _dl_stack_cache_lock;
|
||||
#else
|
||||
int _dl_thread_gscope_count;
|
||||
|
Reference in New Issue
Block a user