Changeset: fb28538232fe for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fb28538232fe
Modified Files:
        MonetDB5/src/optimizer/opt_garbageCollector.mx
Branch: Oct2010
Log Message:

You should only free span after the debug function, i.e., after its last 
utilization.


diffs (19 lines):

diff -r b963076e05bd -r fb28538232fe 
MonetDB5/src/optimizer/opt_garbageCollector.mx
--- a/MonetDB5/src/optimizer/opt_garbageCollector.mx    Thu Sep 16 15:54:27 
2010 +0200
+++ b/MonetDB5/src/optimizer/opt_garbageCollector.mx    Thu Sep 16 16:27:03 
2010 +0200
@@ -224,7 +224,6 @@
                pushInstruction(mb, old[i]);
        getInstrPtr(mb,0)->gc |= GARBAGECONTROL;
        GDKfree(old);
-       GDKfree(span);
        OPTDEBUGgarbageCollector{ 
                int k;
                mnstr_printf(cntxt->fdout, "#Garbage collected BAT variables 
\n");
@@ -234,6 +233,7 @@
                        getBeginLifespan(span,k), getLastUpdate(span,k), 
getEndLifespan(span,k));
                mnstr_printf(cntxt->fdout, "End of GCoptimizer\n");
        }
+       GDKfree(span);
 
        DEBUGoptimizers
                mnstr_printf(cntxt->fdout,"#opt_garbagecollector: %d variables 
reset\n",actions);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to