Title
Low memory and exceptions
Status
nad
Section
[new.delete.single]
Submitter
P.J. Plauger

Created on 2007-01-23.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

[ Bellevue: NAD. 1.4p2 specifies a program must behave correctly "within its resource limits", so no further escape hatch is necessary. ]

Date: 2007-01-23.00:00:00

I recognize the need for nothrow guarantees in the exception reporting mechanism, but I strongly believe that implementors also need an escape hatch when memory gets really low. (Like, there's not enough heap to construct and copy exception objects, or not enough stack to process the throw.) I'd like to think we can put this escape hatch in [new.delete.single], operator new, but I'm not sure how to do it. We need more than a footnote, but the wording has to be a bit vague. The idea is that if new can't allocate something sufficiently small, it has the right to abort/call terminate/call unexpected.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg3261
2007-01-23 00:00:00admincreate