|
![](/i/fill.gif) |
On 3/14/2012 10:52, clipka wrote:
> But doesn't the "this-pointer tracking" in a reference-tracking GC approach
> incur approximately that very same penalty?
No, because it's not counting references. The efficiency of GC over RC is to
a large extent the elimination of updating something every time you assign a
pointer. The GC runs, sees a reference to B on the stack, and avoids
discarding B. C++ programs don't have access to the stack per se, so they
can't do that sort of thing.
--
Darren New, San Diego CA, USA (PST)
People tell me I am the counter-example.
Post a reply to this message
|
![](/i/fill.gif) |