Apparent problem with GC not collecting on Windows

1100110 0b1100110 at gmail.com
Wed Nov 28 11:11:31 PST 2012


On 11/28/2012 12:57 PM, Dmitry Olshansky wrote:
> 11/28/2012 10:51 PM, Ali Çehreli пишет:
>> A friend of mine reports that the memory usage of the following program
>> grows continuously when compiled with dmd 2.060 and run on Windows 7 sp1
>> home premium 64 bit (also on Microsoft Windows [Version 6.1.7600]).
>>
>> If you are on Windows, could you please say whether you have the same
>> problem. (I don't have Windows.) The following is how we reproduce:
>
> [snip]
>
>> The program gets terminated by a core.exception.OutOfMemoryError. (Same
>> problem with std.stream.BufferedFile.)
>
> Same here on more or less fresh 2.061. About 12 iterations. Win8 x64
> running 32-bit app.
>
>

Isn't this a known problem with a conservative GC on 32bit?  The GC sees 
something that *Could* be a reference, and refuses to collect that data.


More information about the Digitalmars-d-learn mailing list