Hi,

  You can keep the isolate pointer inside an internal field. Depending on the 
handles template type:

Object::SetInternalField
Script::setData
Context::setData

Cheers,
  Jedrek

On Tuesday 14. June 2011 22.50.08 ext Charles Lowell wrote:
> Given a persistent handle, is it possible to find out the Isolate with
> which it is associated. The reason I say is that I've change
> therubyracer to queue up handles to be released in a single spot where
> it is safe to lock V8 (not the Ruby GC thread). When ruby GC sees a
> disposable handle, I'd like to add it to a queue associated with that
> handle's Isolate so that the queue can later be emptied in the scope
> of that Isolate.
> 
> We don't support multiple Isolates yet, so I can get away with having
> a single queue per Ruby process, but to add support in the future, it
> would make things a easier. Ideas?
> 
> cheers,
> Charles

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to