Ok, so I probably have to stick with Persistent then. What I was wondering was is the value itself stored differently (stack vs heap) depending on whether the handle is Persistent or not? Is the only difference that Persistent is not collected?
Luke On Tuesday, August 20, 2013 3:43:57 PM UTC-7, Clemens Cap wrote: > > > My concern with this is every value, like a String, is a Persistent >> handle. I was wondering if there was some kind of way to port a HandleScope >> to my language so I can construct the object. In this case is Handle/Local >> vs Persistent even matter? Do I get some sort of gain by avoiding >> Persistent in this situation? >> > > The HandleScope is connected on a low level way with the garbage collector > in V8. I doubt that this is very easy to connect to a different language. > You might have cases where your language copies and keeps a pointer which > V8 garbage collects. One way to escape that is the Persistent handle... > > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
