This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: throwing exception when new fails


>>>>> Nathan Sidwell <nathan@acm.org> writes:

 > and eh_free can use, should malloc fail. I've assumed that __eh_alloc
 > and eh_free are called in a stack-like manner (I had to alter
 > __cp_pop_exception, to do this).

This is an invalid assumption; it is very possible for exceptions to be
freed in other than reverse order, because of the ability to rethrow.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]