diff options
author | Steve MacLean <Steve.MacLean@Microsoft.com> | 2020-05-21 13:34:26 -0400 |
---|---|---|
committer | Steve MacLean <Steve.MacLean@Microsoft.com> | 2020-05-21 17:59:52 -0400 |
commit | d627f4aea024f7d1bfaa7ce7293379316c7713ea (patch) | |
tree | 071e0b29d8ab3198d09c0b6b7d664a7d1786c05a /src/aarch64 | |
parent | 8321b7820096c44750cf5360654dcaae99827439 (diff) | |
download | libunwind-d627f4aea024f7d1bfaa7ce7293379316c7713ea.tar.gz |
Use C11 _Thread_local
Diffstat (limited to 'src/aarch64')
-rw-r--r-- | src/aarch64/Gtrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aarch64/Gtrace.c b/src/aarch64/Gtrace.c index 2f8c3f8d..bcdf1929 100644 --- a/src/aarch64/Gtrace.c +++ b/src/aarch64/Gtrace.c @@ -52,8 +52,8 @@ static pthread_once_t trace_cache_once = PTHREAD_ONCE_INIT; static sig_atomic_t trace_cache_once_happen; static pthread_key_t trace_cache_key; static struct mempool trace_cache_pool; -static THREAD_LOCAL unw_trace_cache_t *tls_cache; -static THREAD_LOCAL int tls_cache_destroyed; +static _Thread_local unw_trace_cache_t *tls_cache; +static _Thread_local int tls_cache_destroyed; /* Free memory for a thread's trace cache. */ static void |