On Wed, 12 Nov 2014 16:13:39 +0000 via Digitalmars-d <[email protected]> wrote:
> On Wednesday, 12 November 2014 at 16:06:32 UTC, ketmar via > Digitalmars-d wrote: > > if i'll use libc malloc() for allocating, everything works as i > > expected: address space consumtion is on par with allocation > > size. > > The gc uses C's calloc rather implementing memory handling itself > using the OS so you get fragmentation: > > https://github.com/D-Programming-Language/druntime/blob/master/src/gc/gc.d#L2223 hm. my bad, i was checking malloc() with C program and it happens to use custom allocator. i just carefully re-checked it and it really works the same as D GC. sorry. so this seems to be libc memory manager fault after all. sorry for the noise.
signature.asc
Description: PGP signature
