Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 1999 21:23:39 -0400 (EDT)
From:      Brian Feldman <green@unixhelp.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        alk@pobox.com, dcs@newsguy.com, current@FreeBSD.ORG
Subject:   Re: swap-related problems 
Message-ID:  <Pine.BSF.4.10.9904142122480.83269-100000@janus.syracuse.net>
In-Reply-To: <1892.924120059@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 14 Apr 1999, Poul-Henning Kamp wrote:

> In message <14100.61923.427423.153188@avalon.east>, Anthony Kimball writes:
> >
> >: > 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
> >
> >Not so hard.
> 
> 1. Demonstrate the need.

I'm not doing this, damnit ;)

> 
> 2. Implement it

Add another character to the malloc options there already. When something is
allocated, touch the first char to be '\0'. Implementation done.

> 
> 3. Send patches.

Part of 2.

> 
> --
> Poul-Henning Kamp             FreeBSD coreteam member
> phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
> FreeBSD -- It will take a long time before progress goes too far!
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 

 Brian Feldman                _ __ ___ ____  ___ ___ ___  
 green@unixhelp.org                _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!      _ __ | _ __ \ |) |
         http://www.freebsd.org           _ |___/___/___/ 



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9904142122480.83269-100000>