From: Leandro Lucarella Date: Thu, 21 Oct 2010 00:36:25 +0000 (-0300) Subject: Adapt conservative default to the compiler support X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/commitdiff_plain/c8b9c37decb76b4667358e4d95ff928eb9f8fc8c Adapt conservative default to the compiler support 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. --- diff --git a/rt/gc/cdgc/opts.d b/rt/gc/cdgc/opts.d index 1ec5d97..01ac964 100644 --- a/rt/gc/cdgc/opts.d +++ b/rt/gc/cdgc/opts.d @@ -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;