diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-08-10 16:17:23 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-08-10 16:17:23 -0300 |
commit | 26ae992129d5566ee973c0ff78fd709cd5d91271 (patch) | |
tree | 81082d5ee1abaf94175d7cc66ae2331853ce24ab /ltable.c | |
parent | f87057690b3afa7812d0ef5251ce103902a37c96 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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))) |