Re:Does memory leak? (1995)
by LucaSas on Saturday February 22, 2020 @12:52PM
(#22392266)
This pops up again from time to time, I think what people should take away from this is that garbage collection is not just what you see in Java and other high level languages.
There are a lot of strategies to apply garbage collection and they are often used in low level systems too like per-frame temporary arenas in games or in short lived programs that just allocate and never free.
Re:Does memory leak? (1995)
by asveikau on Saturday February 22, 2020 @01:17PM
(#22392398)
Once you set a limit like this, though, it's brittle, and your code becomes less maintainable or flexible in the face of change. That is why a general purpose strategy is good to use.
There are a lot of strategies to apply garbage collection and they are often used in low level systems too like per-frame temporary arenas in games or in short lived programs that just allocate and never free.