Array constructor/destructor update

Christophe de Dinechin ddd at cup.hp.com
Tue Mar 7 21:30:57 UTC 2000


Jason Merrill wrote:
> 
> >>>>> Jim Dehnert <dehnert at baalbek.engr.sgi.com> writes:
> 
>  > Jason Merrill wrote:
>  >>
>  >> I think __cxa_vec_destructor should take a number of elements, and not the
>  >> padding size, so that it can be used for destroying non-heap arrays.
> 
>  > Fine with me.  It does mean that the cookie load has to happen at the
>  > caller.  Anyone have any objections?

The caller would be __cxa_vec_delete for dynamically allocated vectors, so there
would be a single instance of it. For static arrays, it will be a constant load
at call site.

Christophe




More information about the cxx-abi-dev mailing list