Bug 14029 – dynamic arrays dont free memory when they are gone..
Status
RESOLVED
Resolution
INVALID
Severity
trivial
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2015-01-22T14:24:00Z
Last change time
2015-01-22T14:40:04Z
Assigned to
nobody
Creator
collerblade
Comments
Comment #0 by collerblade — 2015-01-22T14:24:24Z
Dead D users...
I have run into this problem, its very simple, but im wondering why it isnt working. Code snipet:
import core.sys.windows.windows;
void main() {
real[] a;
while(true) {
a.length=4096*4096; //alloc a big chunk of mem
a=null;
Sleep(1000); //just wait a bit
}
}
This code runs out of memory. GC never collects anything. Is that a bug?
Im using DMD 2.066.1
I've tried GC.collect(), GC.minimize() too, but the result is the same.
TY: collerblade