On Thu, Aug 22, 2013 at 8:51 AM, Dodji Seketeli <[email protected]> wrote:
> Richard Biener <[email protected]> a écrit:
>
>> Support for constructing and destructing GC objects will be another
>> story of course.
>
> Just curious.  Does supporting this take more than just defining new and 
> delete
> operators that call ggc_alloc_*/ggc_free in there?
>
> (OK, that and defining the object walking routines that the GC needs)

A little it more.  Ideally, we would want placement-new forms
for these, e.g.

    new (ggc) T(args);

and then audit all the places we use ggc_alloc, etc.

-- Gaby

Reply via email to