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

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 12 07:36:36 PST 2014


On Wed, 12 Nov 2014 15:24:08 +0000
Kagamin via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> On Wednesday, 12 November 2014 at 12:30:15 UTC, ketmar via 
> Digitalmars-d wrote:
> > this shouldn't fail so soon, right? i'm freeing the memory, 
> > so... it
> > still dying on 1,887,436,800. 1.7GB and that's all? this can't 
> > be true,
> > i have 3GB of free RAM (with 1.2GB used) and 8GB of unused 
> > swap. and
> > yes, it consumed all of the process address space again.
> 
> Maybe you fragmented the heap and don't have 1.7GB of contiguous 
> memory?
i gave two example programs, which demonstrates the effect, and they
aren't excerpts. the only allocating `writef` can be removed too, but
the effect stays. so heap fragmentation from other allocations can't be
the issue.
-------------- 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/e034b216/attachment.sig>


More information about the Digitalmars-d mailing list