Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2003 13:43:38 -0700
From:      Fred Gilham <gilham@csl.sri.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: malloc does not return null when out of memory 
Message-ID:  <200307242043.h6OKhcdW006094@quarter.csl.sri.com>
In-Reply-To: Message from Gabor <gabor@vmunix.com>  of "Thu, 24 Jul 2003 15:09:27 EDT." <20030724190927.GA87428@vmunix.com> 

next in thread | previous in thread | raw e-mail | index | archive | help


Gabor,

Did you try the following?

 ln -s 'J' /etc/malloc.conf

This will make malloc touch the bytes as it allocates them, and should
cause it to realize it can't get the memory sooner.

It will cause a slowdown for every program on the system that uses
malloc, but perhaps it could at least solve the problem you are
having.

-- 
Fred Gilham                                        gilham@csl.sri.com
The spam folder --- you will never find a more wretched hive of scum
and villainy.  We must be cautious.



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