summaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-27 17:08:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-27 17:08:02 -0300
commit102a1be6159b34190813bfd7a7ed6c04633c6200 (patch)
treeb03054b4832fefea3c9f114d3b367f2fa0dbac88 /lgc.c
parent4c031966976a0ae5d24b709fe94e90dc3fbac9ef (diff)
downloadlua-github-102a1be6159b34190813bfd7a7ed6c04633c6200.tar.gz
no more support for gc TM for tables
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/lgc.c b/lgc.c
index 87aa7d25..b4832188 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
/*
-** $Id: lgc.c,v 1.41 2000/01/28 16:53:00 roberto Exp roberto $
+** $Id: lgc.c,v 1.42 2000/03/10 18:37:44 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -216,24 +216,6 @@ static void collectstring (lua_State *L, int limit) {
}
-#ifdef LUA_COMPAT_GC
-static void tableTM (lua_State *L) {
- Hash *p;
- TObject o;
- ttype(&o) = TAG_ARRAY;
- for (p = L->roottable; p; p = p->next) {
- if (!p->marked) {
- avalue(&o) = p;
- luaD_gcIM(L, &o);
- }
- }
-}
-#else
-#define tableTM(L) /* do nothing */
-#endif
-
-
-
static void markall (lua_State *L) {
travstack(L); /* mark stack objects */
travglobal(L); /* mark global variable values and names */
@@ -246,7 +228,6 @@ void luaC_collect (lua_State *L, int all) {
int oldah = L->allowhooks;
L->allowhooks = 0; /* stop debug hooks during GC */
L->GCthreshold *= 4; /* to avoid GC during GC */
- tableTM(L); /* call TM for tables (if LUA_COMPAT_GC) */
collecttable(L);
collectstring(L, all?MAX_INT:1);
collectproto(L);