summaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-08-10 16:17:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-08-10 16:17:23 -0300
commit26ae992129d5566ee973c0ff78fd709cd5d91271 (patch)
tree81082d5ee1abaf94175d7cc66ae2331853ce24ab /ltable.c
parentf87057690b3afa7812d0ef5251ce103902a37c96 (diff)
downloadlua-26ae992129d5566ee973c0ff78fd709cd5d91271.tar.gz
lua-26ae992129d5566ee973c0ff78fd709cd5d91271.tar.bz2
lua-26ae992129d5566ee973c0ff78fd709cd5d91271.zip
less conservative write barrier for tables
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index 0d149e9f..67194a8e 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.2 2004/03/26 14:02:41 roberto Exp roberto $ 2** $Id: ltable.c,v 2.3 2004/04/30 20:13:38 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*/
@@ -375,7 +375,7 @@ static TValue *newkey (lua_State *L, Table *t, const TValue *key) {
375 } 375 }
376 } 376 }
377 setobj2t(L, gkey(mp), key); 377 setobj2t(L, gkey(mp), key);
378 luaC_barrier(L, t, key); 378 luaC_barriert(L, t, key);
379 lua_assert(ttisnil(gval(mp))); 379 lua_assert(ttisnil(gval(mp)));
380 for (;;) { /* correct `firstfree' */ 380 for (;;) { /* correct `firstfree' */
381 if (ttisnil(gkey(t->firstfree))) 381 if (ttisnil(gkey(t->firstfree)))