Hi Ondrej, the actual termination is not carried out immediately but at the next stack guard check. If your doSomethingElse is trivial enough, it will not trigger a stack guard check. However, if it contains calls or loops it should hit the termination.
Have a look at test/cctest/test-thread-termination.cc for examples. Cheers, -- Mads On Thu, Sep 3, 2009 at 1:05 PM, ondras<[email protected]> wrote: > > Hi, > > how exactly is the new feature "execution termination" supposed to > work? I created a JS function "exit", which performs > "v8::V8::TerminateExecution()". However, the following code: > > doSomething(); > exit(); > doSomethingElse(); > > seems to ignore the termination command, because doSomethingElse gets > normally executed... > > > Thanks, > Ondrej > > > > --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
