]> git.llucax.com Git - software/dgc/cdgc.git/commitdiff
Adapt conservative default to the compiler support
authorLeandro Lucarella <llucax@gmail.com>
Thu, 21 Oct 2010 00:36:25 +0000 (21:36 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 21 Oct 2010 00:36:25 +0000 (21:36 -0300)
When compiling the GC with a compiler that doesn't provide PointerMap
information, the conservative option defaults to true, as most likely the
GC will be used with programs compiled with the same compiler and all data
will be scanned conservatively anyway.

rt/gc/cdgc/opts.d

index 1ec5d974c6c95394a28b0163f942b89da3c88973..01ac964692623d2cee4bcb48f4bc8ac9f90d77de 100644 (file)
@@ -55,7 +55,10 @@ struct Options
     char[MAX_OPT_LEN] collect_stats_file = "";
     bool sentinel = false;
     bool mem_stomp = false;
-    bool conservative = false;
+    version (D_HavePointerMap)
+        bool conservative = false;
+    else
+        bool conservative = true;
     bool fork = true;
     bool eager_alloc = true;
     bool early_collect = false;