From kde-devel Wed Dec 07 15:26:15 2005 From: Dan Kegel Date: Wed, 07 Dec 2005 15:26:15 +0000 To: kde-devel Subject: Re: C++ exceptions Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=113396922318967 On 12/7/05, Thiago Macieira wrote: > Does anyone know if the stack unwinder requires memory to be allocated in > order to run? http://www.codesourcery.com/cxx-abi/abi-eh.html#cxx-allocate says that exception handling requires memory allocation: --- snip --- 2.4.2 Allocating the Exception Object Storage is needed for exceptions being thrown. This storage must persist while stack is being unwound, since it will be used by the handler, and must be thread-safe. Exception object storage will therefore normally be allocated in the heap, although implementations may provide an emergency buffer to support throwing bad_alloc exceptions under low memory conditions (see Section 3.3.1). --- snip --- Hope that helps, Dan -- Why won't Johnny run Linux? See http://kegel.com/linux/comfort >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<