Manually freeing up memory
bearophile
bearophileHUGS at lycos.com
Wed Nov 7 09:12:52 PST 2012
Joseph Rushton Wakeling:
> ... but despite the GC.free(), memory usage stays at peak level
> for the rest of the runtime of the function.
GC.free() usually works. Some memory allocators don't give back
the memory to the OS, no matter what, until the process is over,
despite that memory is free for the process to use in other ways
(this is what often happens in Python on Windows).
If I am right, then if you try to allocate memory from the same
program after GC.free() the total memory used by that process
will not increase.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list