[sgen] Inform on configure and --version when the concurrent GC is the default.
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 9 Jun 2016 20:39:11 +0000 (13:39 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 9 Jun 2016 20:39:53 +0000 (13:39 -0700)
configure.ac
mono/metadata/sgen-mono.c

index 4999b8f2b48121fe7b9b357f7c5f702edd9c3177..0cd24ea88df8c4c419f2092bc028b6a33c6bb3a8 100644 (file)
@@ -3267,14 +3267,17 @@ AC_ARG_WITH(sgen-default-concurrent, [  --with-sgen-default-concurrent=yes,no
 if test x$buildsgen = xyes; then
    AC_DEFINE(HAVE_MOVING_COLLECTOR, 1, [Moving collector])
    SGEN_DEFINES="-DHAVE_SGEN_GC"
-   if test "x$gc_msg" = "x"; then
-      gc_msg="sgen"
-   else
-      gc_msg="sgen and $gc_msg"
-   fi
 
+       conc_gc_msg=""
    if test x$with_sgen_default_concurrent != xno; then
        AC_DEFINE(HAVE_CONC_GC_AS_DEFAULT, 1, [Defaults to concurrent GC])
+          conc_gc_msg=" (concurrent by default)"
+   fi
+
+   if test "x$gc_msg" = "x"; then
+      gc_msg="sgen$conc_gc_msg"
+   else
+      gc_msg="sgen$conc_gc_msg and $gc_msg"
    fi
 fi
 AC_SUBST(SGEN_DEFINES)
index 4750b0b2dc3462bae62d80a61a5de05e53bf3d9c..bccc7d8aad53fa1b91dfb139a10df911b6132c13 100644 (file)
@@ -2534,7 +2534,11 @@ mono_gc_get_gc_name (void)
 char*
 mono_gc_get_description (void)
 {
+#ifdef HAVE_CONC_GC_AS_DEFAULT
+       return g_strdup ("sgen (concurrent by default)");
+#else
        return g_strdup ("sgen");
+#endif
 }
 
 void