]> 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>
Tue, 17 Apr 2018 20:25:37 +0000 (23:25 +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 a776a1b97b306e2db31667080a5e7e800575cc9e..e0c1269d280074277a62e4e3f40dca63834927ca 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