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 22:18:17 +0200

On Fri, Jun 15, 2007 at 01:21:20PM -0600, Eric Hughes wrote:
> At 12:24 PM 6/15/2007, strk wrote:
> >Exactly. Note that Function.prototype.constructor == Function
...
> For strk:  Since this case is so common, is it possible and feasible to 
> make the constructor reference to the function a weak reference, as an 
> optimization?  If so, might this not be a good, relatively isolated place 
> in the code to deploy and test weak references?

User can actually change Function.prototype.constructor to point to
something else, and removal of that something else should not really
release it.

var o = new Object;
o.hello = function() { trace("hello"); }
Function.prototype.constructor = o;
delete o;
Function.prototype.constructor.helo(); // expect a trace

--strk;




reply via email to

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