[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The memory usage in LUA intensive calling appz
- From: Eero Pajarre <epajarre@...>
- Date: Wed, 08 Jan 2003 09:25:16 +0200
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