lua-users home
lua-l archive

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


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...