genode/base/src/base/cxx
Norman Feske a107c89a8e Exceptions at construction time of dynamic objects
This patch implements the support needed to handle exceptions that occur
during the construction of objects dynamically allocated via the
'Allocator' interface. In this case, the compiler automatically invokes
a special delete operator that takes the allocator type (as supplied to
'new') as second argument. The implementation of this delete operator
has been added to the 'cxx' library. Because the operator delete is
called without the size of the object, we can use only those allocators
that ignore the size argument of the free function and print a warning
otherwise. The added 'Allocator::need_size_for_free()' function is used
to distinguish safe and unsafe allocators.
2012-01-26 21:19:30 +01:00
..
exception.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
guard.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
malloc_free.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
misc.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
new_delete.cc Exceptions at construction time of dynamic objects 2012-01-26 21:19:30 +01:00
unwind.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00