lua-users home
lua-l archive

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


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?

John