On Wed, 14 Apr 1999, Poul-Henning Kamp wrote: > In message <14100.61923.427423.153...@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 > p...@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 majord...@freebsd.org > with "unsubscribe freebsd-current" in the body of the message > Brian Feldman _ __ ___ ____ ___ ___ ___ gr...@unixhelp.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ __ \ |) | http://www.freebsd.org _ |___/___/___/ To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message