[Webkit-unassigned] [Bug 33696] let's cache nodelists instead of dynamicnodelist::cache

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 26 10:18:22 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=33696





--- Comment #39 from anton muhin <antonm at chromium.org>  2010-03-26 10:18:20 PST ---
(In reply to comment #38)
> (In reply to comment #37)
> > I am more concerned why after GC it disappears, but suspect that JSC bindings
> > just discard cached nodelist due to some kind of weak references.
> > 
> > Does that make sense?
> 
> Yes that's excellent analysis, and it points out a needed code change.
> 
> Since we are going to extend the lifetime of the the node lists we need to
> extend the lifetime of their JavaScript wrappers too. The right place to do
> that is the JSNode::markChildren file in JSNodeCustom.cpp, near the top. The
> code should get at the NodeListsNodeData structure, walk the hash tables, and
> call markDOMObjectWrapper on each NodeList*.

Sure, I'd give it a try.  I am only concerned if we'd like to keep this
reference forever---it might be fine to GC it if it's not referenced anymore. 
But up to you.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list