lua-users home
lua-l archive

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


On Mon, 06 Sep 2010 12:22:40 +0300, Juris Kalnins <juris@mt.lv> wrote:

collectgarbage( 'step', x ) will run step x times, but not
beyond the end of current cycle. If it was near the end, it will
do just a little, and enter pause.

Oh, and another thing. Unless you reach the end of cycle
(collectgarbage returns true), running collectgarbage( 'step', x )
will increase your debt by x kilobytes. So you have not tricked
GC to do any additional work, just made it do it a bit earlier.