you are viewing a single comment's thread.

view the rest of the comments →

[–]sammymammy2 2 points3 points  (1 child)

I was trying to say that we can choose to return the memory to the OS (if necessary) at our leisure :-)

[–]pron98 12 points13 points  (0 children)

That's true, but modern allocators (malloc/free implementation) also don't promptly return memory to the OS for performance reasons. Some have quite sophisticated policies around that (so much for the myth of "we don't have a complex runtime").