]> granicus.if.org Git - gc/commitdiff
Use pthread API to operate thread-local data on Linux if no compiler TLS
authorIvan Maidanski <ivmai@mail.ru>
Sun, 9 Jun 2013 14:47:44 +0000 (18:47 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 9 Jun 2013 14:47:44 +0000 (18:47 +0400)
* 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

index ce089edfc05eaa822ec184aec74222aad9469c64..b454c8ebb9e0ea88461264cc349da027ea9c0030 100644 (file)
@@ -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__