Subject: Re: [boost] request for interest in a garbage collection library
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-04-21 12:54:06
> AFAICS, you can have an implementation of delete where "delete p" simply
> the destructor of the object pointed to by p and then passes p to an
> garbage collector that will reclaim the memory in due time. This way you
> determinstic resource liberation *and* GC speed.
Actually, that would be faster.
If you use mark & sweep, RAII gives you mark (which requires
reachability analysis in normal GC scenarios) for free.