]> granicus.if.org Git - gc/commitdiff
Test GC initialization from non-main thread on FreeBSD and NetBSD
authorIvan Maidanski <ivmai@mail.ru>
Thu, 12 Oct 2017 22:38:25 +0000 (01:38 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 25 Oct 2017 10:02:26 +0000 (13:02 +0300)
Issue #180 (bdwgc).

* tests/initsecondarythread.c [(FREEBSD || LINUX || NETBSD)
&& !NO_PTHREAD_GETATTR_NP && !NO_PTHREAD_ATTR_GET_NP] (main): Do not
call GC_INIT().

tests/initsecondarythread.c

index 3b2040db2023d972964df4027350d7ec09b1b4dc..9893fb5c12f3ce1aaa0992c72cca9dc53c3a6144 100644 (file)
@@ -71,7 +71,9 @@ int main(void)
 # if !(defined(BEOS) || defined(MSWIN32) || defined(MSWINCE) \
        || defined(CYGWIN32) || defined(GC_OPENBSD_UTHREADS) \
        || (defined(DARWIN) && !defined(NO_PTHREAD_GET_STACKADDR_NP)) \
-       || (defined(LINUX) && !defined(NACL)) \
+       || ((defined(FREEBSD) || defined(LINUX) || defined(NETBSD) \
+            || defined(PLATFORM_ANDROID)) && !defined(NO_PTHREAD_GETATTR_NP) \
+           && !defined(NO_PTHREAD_ATTR_GET_NP)) \
        || (defined(GC_SOLARIS_THREADS) && !defined(_STRICT_STDC)) \
        || (!defined(STACKBOTTOM) && (defined(HEURISTIC1) \
           || (!defined(LINUX_STACKBOTTOM) && !defined(FREEBSD_STACKBOTTOM)))))