GC.calloc(), then what?

safety0ff via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 27 02:20:52 PDT 2014


On Friday, 27 June 2014 at 08:17:07 UTC, Ali Çehreli wrote:
>
> So, the GC's default behavior is to scan the memory, 
> necessitating clearing the contents? That seems to make 
> GC.malloc() behave the same as GC.calloc() by default, doesn't 
> it?

Yes.
compare:
https://github.com/D-Programming-Language/druntime/blob/master/src/gc/gc.d#L543
to:
https://github.com/D-Programming-Language/druntime/blob/master/src/gc/gc.d#L419


More information about the Digitalmars-d-learn mailing list