[Bf-committers] Some words about a strange thing named

Jorrit Tyberghein jorrit.tyberghein at gmail.com
Fri Nov 25 11:47:10 CET 2005

On 11/25/05, Jean-Luc Peurière <jlp at nerim.net> wrote:

> hmm. on all current systems, when malloc fails, it means you have run out of
> *BOTH* physical and swap memory.

This is NOT true. I can do a malloc(1000000000) (1000 megs) which will
fail on a system that has NOT run out of any kind of memory. Having
malloc fail does not mean the system is out of memory. It just means
that there is not sufficient memory to handle the allocation request.
If the allocation request is large the system may still be able to
handle smaller allocation requests.


Project Manager of Crystal Space (http://www.crystalspace3d.org)
and CEL (http://cel.crystalspace3d.org)
Support Crystal Space. Donate at

More information about the Bf-committers mailing list