aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-05 16:41:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-05 16:41:24 -0300
commit943b8f5b1801c72fee8bf1050919cf1acb600555 (patch)
tree6bef02079082422a78a933230619867bbb2e00e7 /lgc.c
parent762d059a13d83eb367238a6115bbb4f5f13fcb49 (diff)
downloadlua-943b8f5b1801c72fee8bf1050919cf1acb600555.tar.gz
lua-943b8f5b1801c72fee8bf1050919cf1acb600555.tar.bz2
lua-943b8f5b1801c72fee8bf1050919cf1acb600555.zip
details
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lgc.c b/lgc.c
index 6eba56d9..a82039dd 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.97 2001/04/17 17:35:54 roberto Exp roberto $ 2** $Id: lgc.c,v 1.98 2001/06/05 18:17:01 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -389,9 +389,3 @@ void luaC_collectgarbage (lua_State *L) {
389 callgcTM(L, &luaO_nilobject); 389 callgcTM(L, &luaO_nilobject);
390} 390}
391 391
392
393void luaC_checkGC (lua_State *L) {
394 if (G(L)->nblocks >= G(L)->GCthreshold)
395 luaC_collectgarbage(L);
396}
397