[Webkit-unassigned] [Bug 88451] Extra HandleScope in V8Proxy

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 6 15:18:21 PDT 2012


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





--- Comment #10 from jochen at chromium.org  2012-06-06 15:18:16 PST ---
(In reply to comment #9)
> > You can return a single handle from a handle scope. The v8::Array in turn would reference all the handles to the results, and so everything stays alive
> 
> Woah, crazy.  How is the lifetime of that handle managed?  Maybe that only works if there's a HandleScope above you to manage the lifetime of the handle?

Yes, it requires an outer handle scope.

> I guess it depends on whether this HandleScope is redundant.  If someone higher up on the stack is always holding a HandleScope, then probably should just delete this one.

It seems less brittle to have a handlescope close to where you create handles, so it's clear what is supposed to survive and what is local only

-- 
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