Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vector new and delete


  • To: cxx-abi@xxxxxxxxxxxx, Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
  • Subject: Re: vector new and delete
  • From: dehnert@xxxxxxxxxxxxxxxxxxxx (Jim Dehnert)
  • Date: Wed, 28 Jun 2000 18:17:34 -0700 (PDT)

> From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
> 
>   __cxa_vec_new and __cxa_vec_delete would be a lot more useful if
> they accepted pointers to the allocation and deallocation functions as
> well.  As it is, they are hard-wired to use the `::operator new[]' and
> `::operator delete[]'.  Since the whole purpose of these functions is
> to provide compilers a convenient way to manage construction and
> destruction, I think we should either add allocation/deallocation
> routine pointers to these functions, or add additional entry points.
> This additional flexibility would also be useful for C++-compatible
> allocations from other languages, etc.
> 
>   Jim, would you add this to the open issues list?

Done, as issue C-15.

On looking at the current routines, it strikes me that, since they
only do construction and destruction, it makes no sense for the
__cxx_vec_ctor to have a NULL constructor, nor for __cxx_vec_dtor to
have a NULL destructor, as suggested by the comments.  Am I missing
something?

Jim

-	    Jim Dehnert		dehnert@xxxxxxx
				(650)933-4272