Boost logo

Boost :

Subject: Re: [boost] request for interest in a garbage collection library
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2009-04-24 10:03:54


Mathias Gaunard wrote:
> Sebastian Redl wrote:
>
>> Compacting (or otherwise moving) garbage collectors require detailed
>> knowledge. They must know where the pointers to the moved objects are
>> and modify them. Conservative GCs do not know this.
>
> But precise ones do.
> And precise garbage collection can be implemented in C++ just fine.
Yes, but only if you use special self-registering smart pointers (GC
handles) for all GC pointers. This registering happens at runtime, so
it's a performance hit compared to systems where this information is
generated at compile time (or JIT time).

Sebastian


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