[Top][All Lists]

[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:24:30 +0200

On Fri, Jun 15, 2007 at 09:57:22AM -0600, Eric Hughes wrote:
> At 09:52 AM 6/15/2007, Udo Giacomozzi wrote:
> >Sorry for this question, but what is the problem with the RC model?
> >Can you show me some code that creates an "unreachable" object?
> I can't off the top of my head, but this is a generic problem with 
> languages that have the possibility of creating circular references.  A 
> disconnected reference cycle won't be freed in the RC model, but will 
> generally be found in a GC model.  The relevant code would be some SWF 
> whose execution creates objects in a reference cycle.  Put that code in a 
> loop and you have eventual memory exhaustion with RC, but not with GC.

Exactly. Not that Function.prototype.constructor == Function, so it does
not even take user intervention for creating circular dependencies.
It's builtin  for ActionScript.


reply via email to

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