Re: GC.collect inflating memory usage?

2019-12-09 Thread cc via Digitalmars-d-learn
On Sunday, 8 December 2019 at 17:49:09 UTC, Rainer Schuetze wrote: Seems like a bug introduced in dmd 2.086, I've created a bugzilla issue: https://issues.dlang.org/show_bug.cgi?id=20438 I suspect there is something broken with respect to the free-lists inside the GC when manually freeing

Re: GC.collect inflating memory usage?

2019-12-08 Thread Rainer Schuetze via Digitalmars-d-learn
On 07/12/2019 21:05, Rainer Schuetze wrote: > > On 07/12/2019 12:20, cc wrote: >> Given the following program: > [...] >> >> Using DMD32 D Compiler v2.089.0-dirty >> > > Seems like a bug introduced in dmd 2.086, I've created a bugzilla issue: > https://issues.dlang.org/show_bug.cgi?id=20438 >

Re: GC.collect inflating memory usage?

2019-12-07 Thread Rainer Schuetze via Digitalmars-d-learn
On 07/12/2019 12:20, cc wrote: > Given the following program: [...] > But when both FREE and COLLECT are enabled, things seem to spiral out of > control: > // FREE, COLLECT > Stats(16, 1048560, 16) >     848 4096 > 40960832  40964096 > 81920832  81924096 > 122880832 

GC.collect inflating memory usage?

2019-12-07 Thread cc via Digitalmars-d-learn
Given the following program: //version=FREE; //version=COLLECT; import std.stdio; import std.datetime.stopwatch; import core.memory; immutable int[] intZ =