Boost logo

Boost :

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


joaquin_at_[hidden] wrote:

> AFAICS, you can have an implementation of delete where "delete p" simply
> calls
> the destructor of the object pointed to by p and then passes p to an
> internal
> garbage collector that will reclaim the memory in due time. This way you
> have
> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk