Re: Using gc as leak detector?
Brian Beuning <bbeuning-gQiW9Mwg1h1Wk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.programming.garbage-collection.boehmgc |
|---|---|
| Message-ID | <[email protected]> |
http://www.hpl.hp.com/personal/Hans_Boehm/gc/leak.html ----- Original Message ----- From: "Ondřej Bílka" <[email protected]> To: gc-V9/[email protected] Sent: Monday, November 4, 2013 8:41:39 AM Subject: [Gc] Using gc as leak detector? Hi, what I ask now is probably not new so could you point me to prior art? Well a garbage collector decides which memory is unreferenced and which is referenced. A leak detector does almost same thing but must respect frees. 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. Comments? _______________________________________________ Gc mailing list Gc-V9/[email protected] http://www.hpl.hp.com/hosted/linux/mail-archives/gc/