aboutsummaryrefslogtreecommitdiff
path: root/lvm.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 /lvm.c
parentf87057690b3afa7812d0ef5251ce103902a37c96 (diff)
downloadlua-26ae992129d5566ee973c0ff78fd709cd5d91271.tar.gz
lua-26ae992129d5566ee973c0ff78fd709cd5d91271.tar.bz2
lua-26ae992129d5566ee973c0ff78fd709cd5d91271.zip
less conservative write barrier for tables
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lvm.c b/lvm.c
index 69aa740a..572012da 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 2.10 2004/06/29 17:05:00 roberto Exp roberto $ 2** $Id: lvm.c,v 2.11 2004/06/29 18:49:02 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -150,7 +150,7 @@ StkId luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val,
150 if (!ttisnil(oldval) || /* result is no nil? */ 150 if (!ttisnil(oldval) || /* result is no nil? */
151 (tm = fasttm(L, h->metatable, TM_NEWINDEX)) == NULL) { /* or no TM? */ 151 (tm = fasttm(L, h->metatable, TM_NEWINDEX)) == NULL) { /* or no TM? */
152 setobj2t(L, oldval, val); 152 setobj2t(L, oldval, val);
153 luaC_barrier(L, h, val); 153 luaC_barriert(L, h, val);
154 return L->base; 154 return L->base;
155 } 155 }
156 /* else will try the tag method */ 156 /* else will try the tag method */
@@ -729,7 +729,7 @@ StkId luaV_execute (lua_State *L, int nexeccalls) {
729 for (; n > 0; n--) { 729 for (; n > 0; n--) {
730 TValue *val = ra+n; 730 TValue *val = ra+n;
731 setobj2t(L, luaH_setnum(L, h, last--), val); 731 setobj2t(L, luaH_setnum(L, h, last--), val);
732 luaC_barrier(L, h, val); 732 luaC_barriert(L, h, val);
733 } 733 }
734 continue; 734 continue;
735 } 735 }