This commit is contained in:
Roberto Ierusalimschy
2001-06-05 16:41:24 -03:00
parent 762d059a13
commit 943b8f5b18
6 changed files with 44 additions and 32 deletions

8
lgc.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lgc.c,v 1.97 2001/04/17 17:35:54 roberto Exp roberto $
** $Id: lgc.c,v 1.98 2001/06/05 18:17:01 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -389,9 +389,3 @@ void luaC_collectgarbage (lua_State *L) {
callgcTM(L, &luaO_nilobject);
}
void luaC_checkGC (lua_State *L) {
if (G(L)->nblocks >= G(L)->GCthreshold)
luaC_collectgarbage(L);
}