From: Ivan Maidanski Date: Thu, 19 Apr 2018 22:15:53 +0000 (+0300) Subject: Workaround gctest hang on kFreeBSD if thread-local allocations are on X-Git-Tag: v8.0.0~226 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=228e9b246b64464a51e08a9ad1295018ddd0aff9;p=gc Workaround gctest hang on kFreeBSD if thread-local allocations are on Issue #185 (bdwgc). * configure.ac [enable_gcj_support && enable_thread_local_alloc] (GC_ENABLE_SUSPEND_THREAD): Do not AC_DEFINE if host is kfreebsd; add FIXME item. --- diff --git a/configure.ac b/configure.ac index 35d5a45a..5dc812d6 100644 --- a/configure.ac +++ b/configure.ac @@ -684,8 +684,19 @@ AC_ARG_ENABLE(gcj-support, [Disable support for gcj.])]) if test x"$enable_gcj_support" != xno; then AC_DEFINE(GC_GCJ_SUPPORT, 1, [Define to include support for gcj.]) - AC_DEFINE([GC_ENABLE_SUSPEND_THREAD], 1, + case "$host" in + *-*-kfreebsd*-gnu) + # FIXME: For a reason, gctest hangs up on kFreeBSD if both of + # THREAD_LOCAL_ALLOC and GC_ENABLE_SUSPEND_THREAD are defined. + if test "${enable_thread_local_alloc}" = no; then + AC_DEFINE(GC_ENABLE_SUSPEND_THREAD) + fi + ;; + *) + AC_DEFINE([GC_ENABLE_SUSPEND_THREAD], 1, [Define to turn on GC_suspend_thread support.]) + ;; + esac fi dnl Interaction with other programs that might use signals.