mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
Optimize __libc_tsd_* thread variable access
These variables are not exported, and libc.so TLS is initial-exec anyway. Declare these variables as hidden and use the initial-exec TLS model. Reviewed-by: Frédéric Bérat <fberat@redhat.com>
This commit is contained in:
@@ -45,7 +45,8 @@ extern void __rpc_thread_key_cleanup (void) attribute_hidden;
|
||||
|
||||
extern void __rpc_thread_destroy (void) attribute_hidden;
|
||||
|
||||
extern __thread struct rpc_thread_variables *__libc_tsd_RPC_VARS;
|
||||
extern __thread struct rpc_thread_variables *__libc_tsd_RPC_VARS
|
||||
attribute_hidden attribute_tls_model_ie;
|
||||
|
||||
#define RPC_THREAD_VARIABLE(x) (__rpc_thread_variables()->x)
|
||||
|
||||
|
Reference in New Issue
Block a user