Reusing contexts across scripts

44 views
Skip to first unread message

Rethish Kumar P.S

unread,
Sep 29, 2015, 6:03:42 AM9/29/15
to v8-users
Hi,
I have an application which has multiple contexts in an Isolate. The context pool is preallocated during application init. Each of these contexts run independent scripts. 
 
Once a script is done with the execution, is there some means to clear/reset the current context? I would like to reuse the same context for another script.

Also is it worthwhile to use a context pool or create them on the fly? I have snapshots enabled in the v8 build.

Thanks & regards
Rethish 

 
 

Jakob Kummerow

unread,
Sep 29, 2015, 6:32:56 AM9/29/15
to v8-users
There is no way to reset a context. It's probably best to just create a fresh one. Search the archives of this list, this has been asked and answered several times.

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

Rethish Kumar P.S

unread,
Sep 29, 2015, 7:46:10 AM9/29/15
to v8-users
Thanks Jakob for the definitive clarification.
Reply all
Reply to author
Forward
0 new messages