From: Ivan Maidanski Date: Sun, 22 Apr 2012 06:14:15 +0000 (+0400) Subject: Use pthread_key for thread-local storage on FreeBSD X-Git-Tag: gc7_3alpha2~6^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b16cd96d0797f2d4f084bae35fa6af597bec6bd0;p=gc Use pthread_key for thread-local storage on FreeBSD * include/private/thread_local_alloc.h (USE_PTHREAD_SPECIFIC): Define for FreeBSD by default (instead of USE_CUSTOM_SPECIFIC). --- diff --git a/include/private/thread_local_alloc.h b/include/private/thread_local_alloc.h index 3ebb922c..67dee3df 100644 --- a/include/private/thread_local_alloc.h +++ b/include/private/thread_local_alloc.h @@ -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__