Hello.

I'm trying to port my code base from V8 3.14 to 3.27.
There are some api changes, but porting is rather straightforward.

Current version lacks TerminateExecution(int threadId), it has only 
TerminateExecution(Isolate*).
And I have no idea how to port following case:

Lets imagine there are 2 threads sharing one isolate(with different 
execution contexts). I'm using Locker preemption to switch V8 isolate 
utilization between threads.
Also there are additional thread to protect me against infinity-running 
scripts. It kills long-running scripts with TerminateExecution(int 
threadId).
Let thread 1 executing some long-running script and thread 2 some ordinary 
scripts.
What happens If guard thread decides to kill long-running script with 
TerminateExecution(Isolate*)?
Will it kill execution in both threads? Or there is potential race 
condition causing killing *any* of execution threads?

Previously I could kill particular thread with TermianteExecution(int 
threadId).
Are there any ways to solve problem with new api?

Or maybe I'm doing something wrong and just have bad design?

Thanks.

-- 
-- 
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/d/optout.

Reply via email to