[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua 5.2 garbage collector
- From: Shawn Fox <shawnkfox@...>
- Date: Sat, 14 Aug 2010 20:31:38 -0500
Any chance of adding a way to set a memory cap? This would be very useful for me and I'd think others who are building sandbox type environments would find it useful as well. I'm using a custom memory allocator right now to cap memory usage, but it really ought to be part of the standard API, like lua_gc(L, LUA_GCMAXMEMORY, 67108864) or some such...