]> granicus.if.org Git - gc/commitdiff
Use pthread_key for thread-local storage on FreeBSD
authorIvan Maidanski <ivmai@mail.ru>
Sun, 22 Apr 2012 06:14:15 +0000 (10:14 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 22 Apr 2012 06:14:15 +0000 (10:14 +0400)
* include/private/thread_local_alloc.h (USE_PTHREAD_SPECIFIC): Define
for FreeBSD by default (instead of USE_CUSTOM_SPECIFIC).

include/private/thread_local_alloc.h

index 3ebb922c8ac7c4318f816388d305dfec93ea20e2..67dee3df5545f705ac1c3812b3b1ebd2335f14f9 100644 (file)
@@ -46,8 +46,9 @@
        && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >=3))
 #   define USE_COMPILER_TLS
 # elif defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) \
-       || defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS) \
-       || defined(GC_NETBSD_THREADS) || defined(GC_RTEMS_PTHREADS)
+       || defined(GC_AIX_THREADS) || defined(GC_DARWIN_THREADS) \
+       || defined(GC_FREEBSD_THREADS) || defined(GC_NETBSD_THREADS) \
+       || defined(GC_RTEMS_PTHREADS)
 #   define USE_PTHREAD_SPECIFIC
 # elif defined(GC_HPUX_THREADS)
 #   ifdef __GNUC__