diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-06 10:08:56 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-06 10:08:56 -0300 |
commit | 2331e1beec01babf78ca09fea8701b5bb3c78d4c (patch) | |
tree | d6d5a05daf5338b383e7c5681503272318a62958 /lgc.h | |
parent | e4287da3a6b0b167da465fd449e5191b9ac9ef46 (diff) | |
download | lua-2331e1beec01babf78ca09fea8701b5bb3c78d4c.tar.gz lua-2331e1beec01babf78ca09fea8701b5bb3c78d4c.tar.bz2 lua-2331e1beec01babf78ca09fea8701b5bb3c78d4c.zip |
small changes in 'luaC_upvalbarrier'
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -153,9 +153,9 @@ | |||
153 | (isblack(p) && iswhite(o)) ? \ | 153 | (isblack(p) && iswhite(o)) ? \ |
154 | luaC_barrier_(L,obj2gco(p),obj2gco(o)) : cast_void(0)) | 154 | luaC_barrier_(L,obj2gco(p),obj2gco(o)) : cast_void(0)) |
155 | 155 | ||
156 | #define luaC_upvalbarrier(L,uv) ( \ | 156 | #define luaC_upvalbarrier(L,uv,x) ( \ |
157 | (iscollectable((uv)->v) && !upisopen(uv)) ? \ | 157 | (iscollectable(x) && !upisopen(uv)) ? \ |
158 | luaC_upvalbarrier_(L,uv) : cast_void(0)) | 158 | luaC_upvalbarrier_(L,gcvalue(x)) : cast_void(0)) |
159 | 159 | ||
160 | LUAI_FUNC void luaC_fix (lua_State *L, GCObject *o); | 160 | LUAI_FUNC void luaC_fix (lua_State *L, GCObject *o); |
161 | LUAI_FUNC void luaC_freeallobjects (lua_State *L); | 161 | LUAI_FUNC void luaC_freeallobjects (lua_State *L); |
@@ -165,7 +165,7 @@ LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency); | |||
165 | LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz); | 165 | LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz); |
166 | LUAI_FUNC void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v); | 166 | LUAI_FUNC void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v); |
167 | LUAI_FUNC void luaC_barrierback_ (lua_State *L, Table *o); | 167 | LUAI_FUNC void luaC_barrierback_ (lua_State *L, Table *o); |
168 | LUAI_FUNC void luaC_upvalbarrier_ (lua_State *L, UpVal *uv); | 168 | LUAI_FUNC void luaC_upvalbarrier_ (lua_State *L, GCObject *o); |
169 | LUAI_FUNC void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt); | 169 | LUAI_FUNC void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt); |
170 | LUAI_FUNC void luaC_upvdeccount (lua_State *L, UpVal *uv); | 170 | LUAI_FUNC void luaC_upvdeccount (lua_State *L, UpVal *uv); |
171 | LUAI_FUNC void luaC_changemode (lua_State *L, int newmode); | 171 | LUAI_FUNC void luaC_changemode (lua_State *L, int newmode); |