gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] Garbage collector


From: strk
Subject: Re: [Gnash-dev] Garbage collector
Date: Fri, 15 Jun 2007 20:23:33 +0200

On Fri, Jun 15, 2007 at 05:52:14PM +0200, Udo Giacomozzi wrote:
> Hello strk,
> 
> Friday, June 15, 2007, 5:14:51 PM, you wrote:
> s> First of all, the current implementation allows a compile-time selection
> s> between the old ref-counted model (RC) and the new garbage-collected model 
> (GC).
> s> The default is the RC one, as the GC one is still bogus.
> 
> 
> Sorry for this question, but what is the problem with the RC model?
> Can you show me some code that creates an "unreachable" object?

First case:

        frame1: function f() {}
        frame2: <empty>

Second case (easier to understand):

        a = new object; b = new object;
        a.p = b; b.p = a;
        delete a; delete b;
        // Both 'a' and 'b' are lost with a refcount of 1

--strk;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]