diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-21 13:02:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-21 13:02:10 -0300 |
commit | 17ee57f8e022be330d4c9de3754d7455f46a851d (patch) | |
tree | c18cbd9403686ec6cb26dc080b01ba38df7a1bcf /lvm.c | |
parent | 3c6d0aaa7d07de2cf24d09195b6678abbfee2268 (diff) | |
download | lua-17ee57f8e022be330d4c9de3754d7455f46a851d.tar.gz lua-17ee57f8e022be330d4c9de3754d7455f46a851d.tar.bz2 lua-17ee57f8e022be330d4c9de3754d7455f46a851d.zip |
'iswhite' and related macros now can work directly on any object
(no need to convert to 'GCObject')
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.218 2014/07/17 12:30:53 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.219 2014/07/18 13:36:14 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 | */ |
@@ -549,7 +549,7 @@ static void pushclosure (lua_State *L, Proto *p, UpVal **encup, StkId base, | |||
549 | ncl->upvals[i]->refcount++; | 549 | ncl->upvals[i]->refcount++; |
550 | /* new closure is white, so we do not need a barrier here */ | 550 | /* new closure is white, so we do not need a barrier here */ |
551 | } | 551 | } |
552 | if (!isblack(obj2gco(p))) /* cache will not break GC invariant? */ | 552 | if (!isblack(p)) /* cache will not break GC invariant? */ |
553 | p->cache = ncl; /* save it on cache for reuse */ | 553 | p->cache = ncl; /* save it on cache for reuse */ |
554 | } | 554 | } |
555 | 555 | ||