$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] request for interest in a garbage collection library
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-04-24 12:04:27
Sebastian Redl wrote:
>>> 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).
The cost is fairly negligible.
It can be quite lower than that of boost::shared_ptr, for example.
Also, it's not like operations on gc pointers are performance critical.