either me or GC sux badly (GC don't reuse free memory)

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 12 08:23:40 PST 2014


On Wed, 12 Nov 2014 16:13:39 +0000
via Digitalmars-d <digitalmars-d at puremagic.com> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141112/c03ef908/attachment.sig>


More information about the Digitalmars-d mailing list