Skip site navigation (1)Skip section navigation (2)
Date:      24 Feb 2001 16:40:33 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        seebs@plethora.net (Peter Seebach)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Setting memory allocators for library functions.
Message-ID:  <xzpu25km6mm.fsf@flood.ping.uio.no>
In-Reply-To: seebs@plethora.net's message of "Fri, 23 Feb 2001 00:27:46 -0600"
References:  <200102230627.f1N6Rk618467@guild.plethora.net>

next in thread | previous in thread | raw e-mail | index | archive | help
seebs@plethora.net (Peter Seebach) writes:
> In message <3A95FF54.5D48E0A1@sm.socccd.cc.ca.us>, Farooq Mela writes:
> > How do you guys feel about this?
> It is a mistake to believe that you "don't have to worry about running
> out of memory".  You should always check, every time, and exit as gracefully
> as you can.

This is all academic since FreeBSD does memory overcommit, so unless
you run out of address space for your process before you run out of
actual memory and/or swap (not likely, but quite possible) malloc()
will never return NULL and you won't know a thing until you dirty one
page too many and segfault.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpu25km6mm.fsf>