From 892efd32af36f0e27a52a40bf7b77851dd613df5 Mon Sep 17 00:00:00 2001 From: "KISHIMOTO, Makoto" Date: Sun, 17 Jun 2012 09:02:28 +0900 Subject: [PATCH] To use thread local alloc in FreeBSD --- configure.in | 1 + pthread_support.c | 1 + 2 files changed, 2 insertions(+) diff --git a/configure.in b/configure.in index f4b43792..97d548f0 100644 --- a/configure.in +++ b/configure.in @@ -122,6 +122,7 @@ case "$THREADS" in else THREADDLLIBS="$PTHREAD_LIBS" fi + AC_DEFINE(THREAD_LOCAL_ALLOC) ;; *-*-solaris*) AC_DEFINE(GC_SOLARIS_THREADS) diff --git a/pthread_support.c b/pthread_support.c index d1f3b129..75c9009d 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -69,6 +69,7 @@ # if (defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) || \ defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)) || \ defined(GC_NETBSD_THREADS) && !defined(USE_PTHREAD_SPECIFIC) || \ + defined(GC_FREEBSD_THREADS) && !defined(USE_PTHREAD_SPECIFIC) || \ defined(GC_OPENBSD_THREADS) # define USE_PTHREAD_SPECIFIC # endif -- 2.40.0