From 02528757f439dfc5750e28fb3e5794303ccd21f9 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 17 Nov 2015 11:39:29 +0300 Subject: Allow specific TLS attributes for GC_thread_key * doc/README.macros (GC_ATTR_TLS_FAST): Document. * include/private/thread_local_alloc.h (GC_ATTR_TLS_FAST): New macro (empty by default). * include/private/thread_local_alloc.h (GC_thread_key): Use GC_ATTR_TLS_FAST. * thread_local_alloc.c (GC_thread_key): Likewise. --- thread_local_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thread_local_alloc.c') diff --git a/thread_local_alloc.c b/thread_local_alloc.c index 29a337b2..9db324eb 100644 --- a/thread_local_alloc.c +++ b/thread_local_alloc.c @@ -24,9 +24,9 @@ #include #if defined(USE_COMPILER_TLS) - __thread + __thread GC_ATTR_TLS_FAST #elif defined(USE_WIN32_COMPILER_TLS) - __declspec(thread) + __declspec(thread) GC_ATTR_TLS_FAST #endif GC_key_t GC_thread_key; -- cgit v1.2.1