[RFC] What to do on VM exhaustion

Michael Snyder michsnyd@cisco.com
Fri Jan 6 01:35:00 GMT 2006


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...



More information about the Gdb mailing list