News for hackers. Stuff that matters.
Re:Popular Myths about C++, Part 1 by mikeash on Tuesday December 09, 2014 @11:17AM (#8723561)
Swap has nothing to do with it. Getting malloc to fail is easy:

    malloc(-1);
With address space fragmentation, the requested size can be a lot smaller and still fail. With overcommit, you can allocate a ton of memory without using up any RAM.

There are no comments on this comment yet.