Re: Memory overcommitting (was Re: http://www.redhat.com/redhat/)

Tuukka Toivonen (tuukkat@stekt.oulu.fi)
Thu, 20 Feb 1997 11:26:42 +0200 (EET)


As I have understand, Linux returns ALWAYS success when using malloc(),
because only reason why malloc() would fail, is memory overrun, and this
will never happen in malloc().

So my question is: is there any point in checking whether malloc() returned
NULL (failure) or success? Should i just start using the memory without
checking if the pointer is NULL?

| Tuukka Toivonen <tuukkat@stekt.oulu.fi>
| Homepage: http://stekt.oulu.fi/~tuukkat/
| Try also finger -l tuukkat@stekt.oulu.fi
| Studying information engineering at the University of Oulu
+-----------------------------------------------------------