[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Forcing a GC collection from within the allocator?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 23 Aug 2008 22:28:10 -0300
> If it were to come to the point where all of the
> memory in its pool has been allocated to Lua, and it is called to
> allocate a new piece of memory, can it invoke a GC collection to try
> and free up some of its pool, or will causing a GC collection from
> within the allocator cause all sorts of trouble?
Lua 5.2 will have this feature. As it stands, Lua 5.1 does not really
support this. See http://lua-users.org/lists/lua-l/2008-05/msg00023.html