From owner-freebsd-current Wed Apr 14 18:29:42 1999 Delivered-To: freebsd-current@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 1749F14BEF for ; Wed, 14 Apr 1999 18:29:38 -0700 (PDT) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id VAA83861; Wed, 14 Apr 1999 21:23:39 -0400 (EDT) Date: Wed, 14 Apr 1999 21:23:39 -0400 (EDT) From: Brian Feldman X-Sender: green@janus.syracuse.net To: Poul-Henning Kamp Cc: alk@pobox.com, dcs@newsguy.com, current@FreeBSD.ORG Subject: Re: swap-related problems In-Reply-To: <1892.924120059@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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