From: Rodrigo Kumpera Date: Thu, 9 Jun 2016 20:39:11 +0000 (-0700) Subject: [sgen] Inform on configure and --version when the concurrent GC is the default. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=10fb3e1955f4865cf7a1cc003a6d83b9644fff20;p=mono.git [sgen] Inform on configure and --version when the concurrent GC is the default. --- diff --git a/configure.ac b/configure.ac index 4999b8f2b48..0cd24ea88df 100644 --- a/configure.ac +++ b/configure.ac @@ -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) diff --git a/mono/metadata/sgen-mono.c b/mono/metadata/sgen-mono.c index 4750b0b2dc3..bccc7d8aad5 100644 --- a/mono/metadata/sgen-mono.c +++ b/mono/metadata/sgen-mono.c @@ -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