lua-users home
lua-l archive

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


Bilyk, Alex wrote:
Hey, We had an unlimited memory growth in ldo.cpp under certain circumstances
> in lua 4.x. The problematic code was increasing the GC threshold in calls
> to lua parser: L->GCThreshold += (L->nblocks - old_blocks);. This line of
> code had caused the GC being never performed under certain circumstances.
> Needless to say we had to remove this line.

I avoid the similar problem by forcing the GC to run by setting
its threshold to 0 at certain strategic points. This can be done
in Lua or C code.


		Eero