V8's serializer simply does not support serializing handles. You can't have 
any open handle scopes when you serialize. You can store these handles 
somewhere on the context before serializing, and retrieve it after 
deserializing.

On Friday, September 8, 2017 at 12:29:33 AM UTC+2, Zac Hansen wrote:
>
> can you make a special code path just for making the snapshot that 
> releases the persistent/globals then makes the snapshots and then exits?   
> Then you start up the "normal" code pay with the new snapshots that can 
> create the persistent a/globals all it wants.  
>
> On Thu, Sep 7, 2017 at 1:33 PM Francisco Moraes <francisc...@gmail.com 
> <javascript:>> wrote:
>
>> Thanks. I am finding that my main hurdle is that there are several 
>> v8::Persistent objects which block creation of the snapshot. Is there any 
>> suggested work around for those other than rewriting the code ?
>>
>>
>> On Thursday, September 7, 2017 at 11:16:24 AM UTC-4, Jakob Gruber wrote:
>>>
>>> You can use the `job` gdb macro (see gdbinit 
>>> <https://cs.chromium.org/chromium/src/v8/tools/gdbinit?l=6&rcl=5cd6565d5ad06a8cb5a1d9d502d15a54e4fa5bbe>)
>>>  
>>> to print heap objects. E.g. 'job 0x367b6c023fa9'.
>>>
>>>
>>> -- 
>> -- 
>> v8-users mailing list
>> v8-u...@googlegroups.com <javascript:>
>> http://groups.google.com/group/v8-users
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "v8-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/v8-users/kxtnaSSQL9c/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> v8-users+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to