Explicit disable hybrid suspend when cooperative suspend is enabled. (mono/mono#16798)
authorJohan Lorensson <lateralusx.github@gmail.com>
Thu, 19 Sep 2019 06:45:00 +0000 (08:45 +0200)
committerGitHub <noreply@github.com>
Thu, 19 Sep 2019 06:45:00 +0000 (08:45 +0200)
hybrid suspend won't get disabled when using --enable-cooperative-suspend
triggering configure error:

Hybrid suspend and Cooperative suspend cannot be both enabled.

Fix explicit set hybrid suspend default behavior to no if cooperative
suspend has been configured.

Commit migrated from https://github.com/mono/mono/commit/077e76c47088348c6c4b5d16d821dfea67367683

src/mono/configure.ac

index facf852..9be936b 100644 (file)
@@ -5642,6 +5642,7 @@ fi
 
 if test x$enable_cooperative_suspend != xno; then
        AC_DEFINE(ENABLE_COOP_SUSPEND,1,[Enable cooperative stop-the-world garbage collection.])
+       enable_hybrid_suspend_default=no
 fi
 
 AM_CONDITIONAL([ENABLE_COOP_SUSPEND], [test x$enable_cooperative_suspend != xno])