Re: [RFC] What to do on VM exhaustion

Michael Snyder
2006-01-06T01:35:22Z

Kip Macy wrote:
> Why not just pre-allocate a small arena at startup for an "emergency"
> malloc? Hardly ideal, but it would allow gdb to fail gracefully.

Wouldn't that require modifying malloc?
Or do you have in mind that, on detecting out-of-VM, we would
free our little reserved chunk, thus making it available for
libc (or whatever)?

Hmmm, I suppose that might work...