[Issue 11021] New: Huge GC leak leads to crash; GC uses 7x more memory
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 13 07:09:23 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11021
Summary: Huge GC leak leads to crash; GC uses 7x more memory
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: blocker
Priority: P2
Component: druntime
AssignedTo: nobody at puremagic.com
ReportedBy: temtaime at gmail.com
--- Comment #0 from Temtaime <temtaime at gmail.com> 2013-09-13 07:09:22 PDT ---
import core.memory;
import std.traits;
void main() {
while(true) {
GC.collect();
new ubyte[40 * 1024 * 1024];
}
}
Application's memory usage grows and it crashes with message:
core.exception.OutOfMemoryError
If i comment import std.traits; everything goes OK, but now application uses
300 MM of memory.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list