This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] What to do on VM exhaustion


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]