malloc does not return null when out of memory
Fred Gilham
gilham at csl.sri.com
Thu Jul 24 13:43:40 PDT 2003
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 at csl.sri.com
The spam folder --- you will never find a more wretched hive of scum
and villainy. We must be cautious.
More information about the freebsd-stable
mailing list