[Gc] Using gc as leak detector?

Ondřej Bílka neleai at seznam.cz
Mon Nov 4 05:41:39 PST 2013

Hi, what I ask now is probably not new so could you point me to prior

Well a garbage collector decides which memory is unreferenced and which
is referenced. A leak detector does almost same thing but must respect

So my question is what if we added extra byte set to zero before each allocation 
and free would set this to 1. Now when we find garbage we look if it was
freed and print a leak otherwise.


More information about the Gc mailing list