Hi,

I've been trying to implement a way to limit the execution time of a
script in V8. I've seen some previous posts that suggest using Locker
and Preemption (which effectively schedules the thread) and check for
timeout in the 'OnPreemtionReceived' method. If timeout exceeded,
invoke TerminateExecution().

However, invoking TerminateExecution() from within
'OnPreemptionReceived()' method is causing issues (I'm guessing it's
leaving the stack in an unbalanced state).

Is it wrong to invoke TerminateExecution() from within V8's code? Is
there a better way to implement the limiting of execution time?

Thank you,
Ravi

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

Reply via email to