]> granicus.if.org Git - gc/commitdiff
To use thread local alloc in FreeBSD
authorKISHIMOTO, Makoto <ksmakoto@dd.iij4u.or.jp>
Sun, 17 Jun 2012 00:02:28 +0000 (09:02 +0900)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 15 Sep 2013 08:57:45 +0000 (12:57 +0400)
configure.in
pthread_support.c

index f4b4379291205bd80393853e64262fec647a0845..97d548f03a4bb16bde439ff8f694d42106084c49 100644 (file)
@@ -122,6 +122,7 @@ case "$THREADS" in
        else
                THREADDLLIBS="$PTHREAD_LIBS"
        fi
+       AC_DEFINE(THREAD_LOCAL_ALLOC)
        ;;
      *-*-solaris*)
        AC_DEFINE(GC_SOLARIS_THREADS)
index d1f3b129ea8b8540bd64717304340e5a668a308f..75c9009d0f16e5238c4cdeda1d9447168286f7ec 100644 (file)
@@ -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