[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: C++ exceptions
From:       Dan Kegel <dank () kegel ! com>
Date:       2005-12-07 15:26:15
Message-ID: a71bd89a0512070726s482cad92g28d8935168e8e816 () mail ! gmail ! com
[Download RAW message or body]

On 12/7/05, Thiago Macieira <thiago@kde.org> 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 <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic