VM is virtual memory, which every process has, not a virtual machine. If you have lots of swap, then an error return from malloc() or new is unlikely! Often the swap is not very big by default, like 2x RAM.