"pause" garbage collection in parallel code

Sean Kelly via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 15 07:24:48 PST 2014


On Monday, 15 December 2014 at 14:39:50 UTC, Daniel Murphy wrote:
> "Stephan Schiffels"  wrote in message 
> news:mzlhbfypcihvyattaukr at forum.dlang.org...
>
>> This doesn't work for me, for some reason. I reserve via 
>> GC.reserve(4_000_000_000), ensured that it does return at 
>> least that amount, but the Garbage collector will still 
>> collect like crazy, long before that reserved memory is 
>> exhausted...
>
> That's strange, I must be missing something.  Hopefully one of 
> the GC experts can explain why this happens.

Perhaps the reserve pool is empty when the next collection runs 
and ends up being returned to the OS?


More information about the Digitalmars-d mailing list