[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: error in lua_pcall not garbage collecting
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 25 Sep 2012 16:47:06 -0300
> It appears as though if there is a lua error when calling lua_pcall
> the garbage collector never gets a chance to run. Watching the
> LUA_CGCOUNT it grows without bound every errored out lua_pcall. Once I
> sprinkle in a few successful lua_pcalls I see the GC memory grow and
> then shrink as expected.
>
> Is this behavior expected? If so, is the only solution to force a gc
> when an error occurs?
Usually, the garbage collector does not depend on lua_pcall to run. Can
you be more specific about your problem?
-- Roberto