Quantcast
Channel: Why can I use up all the system's memory by repeatedly allocating and deallocating memory? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by David Schwartz for Why can I use up all the system's memory by...

Your platform's memory allocator doesn't handle this particular case the way you would like it to. Most likely, it only returns sufficiently large allocations to the operating system and these...

View Article



Why can I use up all the system's memory by repeatedly allocating and...

In the simple example C++ code below, I allocate a lot of memory (~4GB) on the heap with new and release it again with delete. In top (or some other memory monitor), I can see that the 4GBs are not...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images