aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-12-09 14:56:11 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-12-09 14:56:11 -0200
commitdf429f163ada6581d921e7f51b016f1abfeefddd (patch)
treea1af3ce961377e6548074f706f65e2b34181918f /ltable.c
parentfe595a45c246faf2cf12084e7aac4b772f8f72da (diff)
downloadlua-df429f163ada6581d921e7f51b016f1abfeefddd.tar.gz
lua-df429f163ada6581d921e7f51b016f1abfeefddd.tar.bz2
lua-df429f163ada6581d921e7f51b016f1abfeefddd.zip
First version of incremental GC
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index ccd333f3..b0db3bce 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 1.136 2003/11/27 18:05:14 roberto Exp roberto $ 2** $Id: ltable.c,v 1.137 2003/12/01 18:22:56 roberto Exp roberto $
3** Lua tables (hash) 3** Lua tables (hash)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -398,7 +398,8 @@ static TObject *newkey (lua_State *L, Table *t, const TObject *key) {
398 mp = n; 398 mp = n;
399 } 399 }
400 } 400 }
401 setobj2t(gkey(mp), key); /* write barrier */ 401 setobj2t(gkey(mp), key);
402 luaC_barrier(L, t, key);
402 lua_assert(ttisnil(gval(mp))); 403 lua_assert(ttisnil(gval(mp)));
403 for (;;) { /* correct `firstfree' */ 404 for (;;) { /* correct `firstfree' */
404 if (ttisnil(gkey(t->firstfree))) 405 if (ttisnil(gkey(t->firstfree)))