mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00:00
a107c89a8e
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. |
||
---|---|---|
.. | ||
base | ||
core | ||
lib | ||
platform | ||
test | ||
README |
This directory contains all source codes.