Re: luajit state CPU time limit

  • From: Александр Киранов <xhaskx@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx, mike-1411@xxxxxxxxxx
  • Date: Tue, 11 Nov 2014 22:50:36 +0300

Thanks, Mike!

I found other info about this:
http://lua-users.org/lists/lua-l/2011-02/msg01106.html
It contains that warning:
> E.g. string.find, string.rep and other C functions can be
> abused and will either run forever or allocate unlimited amounts
> of memory. This is true for both Lua and LuaJIT.

Is it actual now? Does my hook function can be called inside string.find
and other C functions and may cause unexpected problems as it written above?
If so, does lua_State closing by lua_close() will fix these unexpected
problems?


---
С уважением,
Киранов Александр

2014-11-11 21:36 GMT+03:00 Mike Pall <mike-1411@xxxxxxxxxx>:

> Александр Киранов wrote:
> > Is there a way to set some killswitch boolean variable or some flag in
> > lua_State before making JIT-ed code to abort it execution from outside
> > executing script (other OS thread)?
>
> https://www.freelists.org/post/luajit/Efficient-query-timeouts-in-LuaJIT,1
>
> --Mike
>
>

Other related posts: