]> granicus.if.org Git - gc/commitdiff
Define GC_FREEBSD_THREADS and GC_ADD_CALLER macros for kFreeBSD
authorIvan Maidanski <ivmai@mail.ru>
Fri, 6 Apr 2018 05:59:22 +0000 (08:59 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 16 Apr 2018 07:06:27 +0000 (10:06 +0300)
(back-port of commit 5700d205 from 'master')

* include/gc_config_macros.h [__FreeBSD_kernel__] (GC_FREEBSD_THREADS):
Define macro.
* include/gc_config_macros.h [__FreeBSD_kernel__
&& !GC_CAN_SAVE_CALL_STACKS] (GC_ADD_CALLER): Likewise.

include/gc_config_macros.h

index e8748f5da64194047a454ccccb4609ea9827f1cb..8c8991292178f69d01e28509f6f5c1d66c6232e3 100644 (file)
        && !defined(GC_OSF1_THREADS) && !defined(GC_IRIX_THREADS)
     /* FIXME: Should we really need for FreeBSD and NetBSD to check     */
     /* that no other GC_xxx_THREADS macro is set?                       */
-#   if defined(__FreeBSD__) || defined(__DragonFly__)
+#   if defined(__FreeBSD__) || defined(__DragonFly__) \
+       || defined(__FreeBSD_kernel__)
 #     define GC_FREEBSD_THREADS
 #   elif defined(__NetBSD__)
 #     define GC_NETBSD_THREADS
 /* retrieve the call chain.                                             */
 #if (defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) \
      || defined(__FreeBSD__) || defined(__DragonFly__) \
+     || defined(__FreeBSD_kernel__) \
      || defined(PLATFORM_ANDROID) || defined(__ANDROID__)) \
     && !defined(GC_CAN_SAVE_CALL_STACKS)
 # define GC_ADD_CALLER