[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: error in lua_pcall not garbage collecting
- From: John Dunn <John_Dunn@...>
- Date: Mon, 24 Sep 2012 23:38:55 +0000
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