Anthony Kimball wrote:
> 
> : > All I want is that a program gets NULL from malloc if there is no memory
> : > available. I find that to be a very fundamental thing about malloc.
> 
> : Do you have a solution? We don't.
> 
> Make an sbrk variant which will pre-allocate backing store.
> setenv MALLOC_PREALLOCATE

As soon as this application grabs all the memory, the next thing to
request more memory (not a malloc!) will cause the application to be
killed (largest application criteria). Change the criteria, and
*another* application gets killed. Any application getting killed is
a problem, you'll find very fast.

--
Daniel C. Sobral                        (8-DCS)
d...@newsguy.com
d...@freebsd.org

        "nothing better than the ability to perform cunning linguistics"


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to