From df429f163ada6581d921e7f51b016f1abfeefddd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 9 Dec 2003 14:56:11 -0200 Subject: First version of incremental GC --- ltable.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index ccd333f3..b0db3bce 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.136 2003/11/27 18:05:14 roberto Exp roberto $ +** $Id: ltable.c,v 1.137 2003/12/01 18:22:56 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -398,7 +398,8 @@ static TObject *newkey (lua_State *L, Table *t, const TObject *key) { mp = n; } } - setobj2t(gkey(mp), key); /* write barrier */ + setobj2t(gkey(mp), key); + luaC_barrier(L, t, key); lua_assert(ttisnil(gval(mp))); for (;;) { /* correct `firstfree' */ if (ttisnil(gkey(t->firstfree))) -- cgit v1.2.3-55-g6feb