Is there a method to freeze the execution of Neko bytecode if it tooks too long (probably measured in number of VM instructions executed)? Some kind of debug mode maybe?

It's quite useful when the code you run is not trusted...

No, there's not such a thing.

However, the possibility is to start a thread in parallel, and if the initial call to the VM has not returned after a given time, you can kill the VM thread. There is currently no simple way to abort the VM execution from another thread, but this is something I'll think about adding.

Nicolas

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to