|
From: | Eric Hughes |
Subject: | Re: [Gnash-dev] Garbage collector |
Date: | Fri, 15 Jun 2007 13:21:20 -0600 |
At 12:24 PM 6/15/2007, strk wrote:
Exactly. Not that Function.prototype.constructor == Function, so it does not even take user intervention for creating circular dependencies. It's builtin for ActionScript.
For everyone else: It took me a minute to understand the significance of this, but what it says is that every function declaration generates a perimeter=2 closed cycle which is impervious to ordinary RC methods.
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?
Eric
[Prev in Thread] | Current Thread | [Next in Thread] |