[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 22:22:07 +0200 |
Btw, a relatively isolated place in the code to deploy and test
weak references would be "active" and "topmost" mouse entities
in the mouse_button_state class.
That class stores the character currently under the mouse,
which is looked for on mouse move.
If you do not move your mouse, but the character disappears,
we want that pointer to become NULL.
--strk;
On Fri, Jun 15, 2007 at 10:18:17PM +0200, strk wrote:
> 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;
--
() ASCII Ribbon Campaign
/\ Keep it simple!
- [Gnash-dev] Garbage collector, strk, 2007/06/15
- Re: [Gnash-dev] Garbage collector, Hubert Figuiere, 2007/06/15
- Re: [Gnash-dev] Garbage collector, Udo Giacomozzi, 2007/06/15
- Re: [Gnash-dev] Garbage collector, Eric Hughes, 2007/06/15
- Re: [Gnash-dev] Garbage collector, strk, 2007/06/15
- Re: [Gnash-dev] Garbage collector, Eric Hughes, 2007/06/15
- Re: [Gnash-dev] Garbage collector, strk, 2007/06/15
- Re: [Gnash-dev] Garbage collector,
strk <=
- Re: [Gnash-dev] Garbage collector, Eric Hughes, 2007/06/15
- Re: [Gnash-dev] Garbage collector, strk, 2007/06/15
- Re: [Gnash-dev] Garbage collector, Eric Hughes, 2007/06/15
- Re: [Gnash-dev] Garbage collector, strk, 2007/06/16
Re: [Gnash-dev] Garbage collector, strk, 2007/06/15