[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Sandboxed Lua] Limit execution time, loop iterations and memory usage
- From: Patrick Donnelly <batrick@...>
- Date: Tue, 8 Jun 2010 10:33:41 -0400
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