$OpenBSD: patch-configure_ac,v 1.9 2019/09/19 12:02:59 thfr Exp $

enable cooperative suspend by default

Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -1137,7 +1137,7 @@ with_unreal_default=no
 with_wasm_default=no
 
 with_bitcode_default=no
-enable_cooperative_suspend_default=no
+enable_cooperative_suspend_default=yes
 enable_hybrid_suspend_default=no
 
 INVARIANT_AOT_OPTIONS=nimt-trampolines=2000,ntrampolines=10000,nrgctx-fetch-trampolines=256,ngsharedvt-trampolines=4000
@@ -5035,7 +5035,7 @@ fi
 dnl Now check if there were flags overriding the defaults
 
 AC_ARG_WITH(cooperative_gc,        [  --with-cooperative-gc=yes|no        Enable cooperative stop-the-world garbage collection (sgen only) (defaults to no)], [AC_MSG_WARN([--with-cooperative-gc is deprecated, use --enable-cooperative-suspend instead])], [with_cooperative_gc=default])
-AC_ARG_ENABLE(cooperative_suspend, [  --enable-cooperative-suspend      Enable cooperative stop-the-world garbage collection (sgen only) (defaults to no)], [], [enable_cooperative_suspend=default])
+AC_ARG_ENABLE(cooperative_suspend, [  --enable-cooperative-suspend      Enable cooperative stop-the-world garbage collection (sgen only) (defaults to yes)], [], [enable_cooperative_suspend=yes])
 
 if test x$enable_cooperative_suspend = xdefault -a x$with_cooperative_gc != xdefault; then
 	enable_cooperative_suspend=$with_cooperative_gc
@@ -5049,7 +5049,7 @@ if test x$enable_cooperative_suspend != xno; then
 	AC_DEFINE(ENABLE_COOP_SUSPEND,1,[Enable cooperative stop-the-world garbage collection.])
 fi
 
-AM_CONDITIONAL([ENABLE_COOP_SUSPEND], [test x$enable_cooperative_suspend != xno])
+AM_CONDITIONAL([DISABLE_COOP_SUSPEND], [test x$enable_cooperative_suspend == xno])
 
 AC_ARG_ENABLE(hybrid_suspend, [ --enable-hybrid-suspend     Enable hybrid stop-the-world garbage collection (sgen only) - cooperative suspend for threads running managed and runtime code, and preemptive suspend for threads running native and P/Invoke code (defaults to no)], [], [enable_hybrid_suspend=default])
 
