From 77f4e5fb482b20342f3e766412926460a5514629 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 9 Jun 2013 18:47:44 +0400 Subject: [PATCH] Use pthread API to operate thread-local data on Linux if no compiler TLS * include/private/thread_local_alloc.h (USE_PTHREAD_SPECIFIC): Define for GC_LINUX_THREADS (instead of default USE_CUSTOM_SPECIFIC) if compiler TLS is unavailable (e.g., for linux/arm). --- include/private/thread_local_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/private/thread_local_alloc.h b/include/private/thread_local_alloc.h index ce089edf..b454c8eb 100644 --- a/include/private/thread_local_alloc.h +++ b/include/private/thread_local_alloc.h @@ -49,7 +49,7 @@ # elif defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) \ || defined(GC_AIX_THREADS) || defined(GC_DARWIN_THREADS) \ || defined(GC_FREEBSD_THREADS) || defined(GC_NETBSD_THREADS) \ - || defined(GC_RTEMS_PTHREADS) + || defined(GC_LINUX_THREADS) || defined(GC_RTEMS_PTHREADS) # define USE_PTHREAD_SPECIFIC # elif defined(GC_HPUX_THREADS) # ifdef __GNUC__ -- 2.40.0