std::bad_alloc in low memory conditions

S

sndive

Do linux kernels 2.4 and 2.6 have some stash of memory set aside to
handle paging in std::bad_alloc
or ... exception handling code when new or new[] throws that exception?
How is that handled? Does gcc generate some report to the elf loader
that the largest exception
handling section is x kb long or what?
 
V

Victor Bazarov

Do linux kernels 2.4 and 2.6 have some stash of memory set aside to
handle paging in std::bad_alloc
or ... exception handling code when new or new[] throws that
exception? How is that handled? Does gcc generate some report to the
elf loader that the largest exception
handling section is x kb long or what?

This is OT in comp.lang.c++ since your question is platform-specific.
Just thought you might want to know...
 
S

sndive

Victor said:
Do linux kernels 2.4 and 2.6 have some stash of memory set aside to
handle paging in std::bad_alloc
or ... exception handling code when new or new[] throws that
exception? How is that handled? Does gcc generate some report to the
elf loader that the largest exception
handling section is x kb long or what?

This is OT in comp.lang.c++ since your question is platform-specific.
Just thought you might want to know...

I think this is a very comp.lang.c++ answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top