X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/6a3232d8f1c52377e792b4f4e18fd75f2a3b0f60..0cc16f584aa0cf5f588e01dc4234809022f9bd22:/rt/gc/cdgc/gc.d diff --git a/rt/gc/cdgc/gc.d b/rt/gc/cdgc/gc.d index 1cec21d..83a96b2 100644 --- a/rt/gc/cdgc/gc.d +++ b/rt/gc/cdgc/gc.d @@ -138,19 +138,10 @@ alias GC gc_t; class GCLock { } // just a dummy so we can get a global lock -const uint GCVERSION = 1; // increment every time we change interface - // to GC. - Stats stats; class GC { - // For passing to debug code - static size_t line; - static char* file; - - uint gcversion = GCVERSION; - Gcx *gcx; // implementation static ClassInfo gcLock; // global lock @@ -1443,7 +1434,6 @@ struct Gcx size_t size_cache; uint noStack; // !=0 means don't scan stack - uint log; // turn on logging uint anychanges; void *stackBottom; uint inited; @@ -2183,13 +2173,11 @@ struct Gcx // Scan ranges debug(COLLECT_PRINTF) printf("scan ranges[]\n"); - //log++; for (n = 0; n < ranges.length; n++) { debug(COLLECT_PRINTF) printf("\t%x .. %x\n", ranges[n].pbot, ranges[n].ptop); mark_conservative(ranges[n].pbot, ranges[n].ptop); } - //log--; debug(COLLECT_PRINTF) printf("\tscan heap\n"); while (anychanges)