lua-users home
lua-l archive

Re: [Sandboxed Lua] Limit execution time, loop iterations and memory usage

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Jun 8, 2010 at 10:30 AM, Kurt Nordstrom
<doseofvitamink@gmail.com> wrote:
> Also, look at the debugging hooks in the C API.
> http://www.lua.org/manual/5.1/manual.html#lua_Hook
>
> I'd be interested in seeing a good solution to limiting memory
> over-allocation.
There is a good solution, give Lua an allocator that has a limit on
the amount of memory [1].
[1] http://www.lua.org/manual/5.1/manual.html#lua_Alloc
-- 
- Patrick Donnelly

AltStyle によって変換されたページ (->オリジナル) /