Add Lua gc call to keep Lua memory usage constant

This commit is contained in:
Paul Kulchenko 2021-08-12 22:34:09 -07:00
parent be0f03a23e
commit b7861d6a31

View file

@ -545,6 +545,9 @@ static void CollectGarbage(void) {
LOGIFNEG1(munmap(unmaplist.p[unmaplist.n].p, unmaplist.p[unmaplist.n].n));
LOGIFNEG1(close(unmaplist.p[unmaplist.n].f));
}
#ifndef STATIC
(void)lua_gc(L, LUA_GCCOLLECT);
#endif
}
static void UseOutput(void) {