From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <448B4FD3.8080801@lanl.gov> Date: Sat, 10 Jun 2006 17:03:47 -0600 From: Ronald G Minnich User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] quantity vs. quality References: <4ef97ffa3f0bbb8004fb870726536e2c@collyer.net> <50097123-1D9F-400C-BABA-3F9A4B352733@orthanc.ca> <20060608030512.GE13116@augusta.math.psu.edu> <20060609220308.GA2291@submarine> <3e1162e60606091544p5be17e81k201735720c8c1a1@mail.gmail.com> <448A0375.5030207@lanl.gov> <3e1162e60606091638s24d2031j5e03987991206eef@mail.gmail.com> <53FDF23F-5686-44BA-94AC-696F514149BC@telus.net> In-Reply-To: <53FDF23F-5686-44BA-94AC-696F514149BC@telus.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 6772714e-ead1-11e9-9d60-3106f5b1d025 Paul Lalonde wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Isn't the traditional solution to pre-allocate an emergency pad, and > when malloc fails the emergency "I need more memory" handler gets to > use that pad, and then propagates the condition upwards until some > caller can handle the case? it's very common, and you can probably patent it anyway. ron