diff options
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/allocatestack.c | 35 | ||||
-rw-r--r-- | nptl/nptl-init.c | 2 | ||||
-rw-r--r-- | nptl/pthreadP.h | 2 |
3 files changed, 0 insertions, 39 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index f1270c3109..8aaba088b1 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -951,38 +951,3 @@ __reclaim_stacks (void) GL (dl_stack_cache_lock) = LLL_LOCK_INITIALIZER; __default_pthread_attr_lock = LLL_LOCK_INITIALIZER; } - - -static inline void __attribute__((always_inline)) -init_one_static_tls (struct pthread *curp, struct link_map *map) -{ -# if TLS_TCB_AT_TP - void *dest = (char *) curp - map->l_tls_offset; -# elif TLS_DTV_AT_TP - void *dest = (char *) curp + map->l_tls_offset + TLS_PRE_TCB_SIZE; -# else -# error "Either TLS_TCB_AT_TP or TLS_DTV_AT_TP must be defined" -# endif - - /* Initialize the memory. */ - memset (__mempcpy (dest, map->l_tls_initimage, map->l_tls_initimage_size), - '\0', map->l_tls_blocksize - map->l_tls_initimage_size); -} - -void -attribute_hidden -__pthread_init_static_tls (struct link_map *map) -{ - lll_lock (GL (dl_stack_cache_lock), LLL_PRIVATE); - - /* Iterate over the list with system-allocated threads first. */ - list_t *runp; - list_for_each (runp, &GL (dl_stack_used)) - init_one_static_tls (list_entry (runp, struct pthread, list), map); - - /* Now the list with threads using user-allocated stacks. */ - list_for_each (runp, &GL (dl_stack_user)) - init_one_static_tls (list_entry (runp, struct pthread, list), map); - - lll_unlock (GL (dl_stack_cache_lock), LLL_PRIVATE); -} diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index b0879bd87e..fcab5a0904 100644 --- a/nptl/nptl-init.c +++ b/nptl/nptl-init.c @@ -191,8 +191,6 @@ __pthread_initialize_minimal_internal (void) GL(dl_make_stack_executable_hook) = &__make_stacks_executable; #endif - GL(dl_init_static_tls) = &__pthread_init_static_tls; - /* Register the fork generation counter with the libc. */ #ifndef TLS_MULTIPLE_THREADS_IN_TCB __libc_multiple_threads_ptr = diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h index 00d2cfe764..0ce63672c4 100644 --- a/nptl/pthreadP.h +++ b/nptl/pthreadP.h @@ -381,8 +381,6 @@ extern int __pthread_multiple_threads attribute_hidden; extern int *__libc_multiple_threads_ptr attribute_hidden; #endif -extern void __pthread_init_static_tls (struct link_map *) attribute_hidden; - extern size_t __pthread_get_minstack (const pthread_attr_t *attr); /* Namespace save aliases. */ |