Garbage collection
James Gray
test at test.com
Sat Jun 27 12:53:01 UTC 2020
On Saturday, 27 June 2020 at 12:07:19 UTC, Stanislav Blinov wrote:
> On Saturday, 27 June 2020 at 11:35:12 UTC, Arafel wrote:
>
>> If you are using linux, have in mind that the memory is often
>> not returned to the OS even after a (libc) free.
>
> That's a good observation. Although a GC implementation is not
> required to actually use malloc, so depending on that falls
> into "know what you're doing" territory :)
Thanks for the help, but unfortunately it isn't stopping memory
usage growing in the original app. I will try and build a minimal
example. In the meantime perhaps someone can suggest how I might
figure out what is going on. Repeating the same action is giving
memory usage growth as follows. 1.7GB first time (which now drops
to about 1GB), then 2.7GB dropping to about 2GB and so on.
More information about the Digitalmars-d-learn
mailing list