Problems with GC, trees and array concatenation

Oskar Linde oskar.lindeREM at OVEgmail.com
Mon Jun 4 07:51:50 PDT 2007


Babele Dunnit skrev:

> and why the leak does not shows up under OsX??

Because the GDC version of the GC (gcx.d) contains:

version(GNU)
                     memset(p + size, 0, binsize[bin] - size);


where the DMD library contains the commented out:

//foreach(inout byte b; cast(byte[])(p + size)[0..binsize[bin] - size]) 
{ b = 0; }

(It seems)

/Oskar



More information about the Digitalmars-d mailing list