summaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-08-03 17:40:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-08-03 17:40:26 -0300
commit8f25d08637749316fd30d96ad874f1400088abee (patch)
treeabca1f33e93eb36b70fd94e0d4cda88acc9e40ba /lvm.h
parent3b795541c488c7e633567897c9112312007a20a0 (diff)
downloadlua-github-8f25d08637749316fd30d96ad874f1400088abee.tar.gz
'invalidateTMcache' not needed in all 'settable' uses
Diffstat (limited to 'lvm.h')
-rw-r--r--lvm.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lvm.h b/lvm.h
index 50927c70..ccdacd4a 100644
--- a/lvm.h
+++ b/lvm.h
@@ -1,5 +1,5 @@
/*
-** $Id: lvm.h,v 2.36 2015/07/20 18:24:50 roberto Exp roberto $
+** $Id: lvm.h,v 2.37 2015/08/03 19:50:49 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -75,12 +75,11 @@
? (aux = NULL, 0) \
: (aux = f(hvalue(t), k), \
ttisnil(aux) ? 0 \
- : (invalidateTMcache(hvalue(t)), \
- luaC_barrierback(L, hvalue(t), v), 1)))
+ : (luaC_barrierback(L, hvalue(t), v), 1)))
#define luaV_settable(L,t,k,v) { const TValue *aux; \
if (luaV_fastset(L,t,k,aux,luaH_get,v)) \
- { setobj2t(L, cast(TValue *,aux), v); } \
+ { invalidateTMcache(hvalue(t)); setobj2t(L, cast(TValue *,aux), v); } \
else luaV_finishset(L,t,k,v,aux); }