Is Phobos's Garbage Collector utterly broken? (Phobos vs Tango)

Vladimir Panteleev thecybershadow at gmail.com
Wed Aug 1 02:03:44 PDT 2007


On Wed, 01 Aug 2007 09:08:16 +0300, Vladimir Panteleev <thecybershadow at gmail.com> wrote:

> I initially wrote it to try to find a memory leak in Tango's GC (which was actually fixed at some point).

Turns out it's still there, and it's the old "binary data" issue with pointer-searching GCs, which was fixed in D/Phobos 1.001 by making the GC type-aware. Check out the attached sample programs for a simple example - the Tango version can't know there are no pointers in its GrowBuffer's data, and thus leaks like crazy, while the Phobos version stays at 13MB.

-- 
Best regards,
  Vladimir                          mailto:thecybershadow at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TangoLeakTest.d
Type: text/x-dsrc
Size: 488 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20070801/40dde6fb/attachment.d>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PhobosLeakTest.d
Type: text/x-dsrc
Size: 356 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20070801/40dde6fb/attachment-0001.d>


More information about the Digitalmars-d mailing list