[Issue 1804] New: Severe GC leaks with repetitive array allocations
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 24 13:18:31 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1804
Summary: Severe GC leaks with repetitive array allocations
Product: D
Version: 1.026
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: webmaster at villagersonline.com
Linux (Fedora 6), 64 bit
The following program will run out of memory when the allocations reach about 8
MB. The problem happens on *both* 1.026 and 2.010
FYI: I tried running fullCollect() periodically, just in case...no luck.
import std.stdio;
void main()
{
for(int i=1; ; i++)
{
auto tmp = new char[i*1024];
if(i % 1_000 == 0)
writefln("%d iterations, roughly %.1f MB", i,
tmp.length/(1024*1024.0));
}
}
--
More information about the Digitalmars-d-bugs
mailing list