Proposal new out of memory handler function.
Dhruv Matani
dhruvbird@gmx.net
Fri Feb 6 17:52:00 GMT 2004
Does anyone think that the allocators may in any way be responsible for
giving back the memory to the OS in cases where new is about to throw
bad_alloc()? This may be done by making the new handler function aware
of the fact that the pool allocators are hoarding up a lot of memory
which they are possibly not using? I have a very rough sketch in mind.
If it is feasible for it to be considered, I will try and come up with a
working version.
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
More information about the Libstdc++
mailing list