diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-11 17:15:31 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-11 17:15:31 -0300 |
| commit | 06156e7575dee21026595a30dcf76f400c447a33 (patch) | |
| tree | beb9c0d833d3d742a37c72bce50a1a5f9fc5b85a /lgc.h | |
| parent | 2e2c109daf6c18943984cf9d4cfbc2311186b87d (diff) | |
| download | lua-06156e7575dee21026595a30dcf76f400c447a33.tar.gz lua-06156e7575dee21026595a30dcf76f400c447a33.tar.bz2 lua-06156e7575dee21026595a30dcf76f400c447a33.zip | |
detail (setmetatable do not need to use a back GC barrier)
Diffstat (limited to 'lgc.h')
| -rw-r--r-- | lgc.h | 6 |
1 files changed, 1 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lgc.h,v 2.74 2013/09/11 14:09:55 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.75 2013/09/11 14:47:08 roberto Exp roberto $ |
| 3 | ** Garbage Collector | 3 | ** Garbage Collector |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -128,10 +128,6 @@ | |||
| 128 | if (nolocal(obj2gco(o)), isblack(obj2gco(p)) && iswhite(obj2gco(o))) \ | 128 | if (nolocal(obj2gco(o)), isblack(obj2gco(p)) && iswhite(obj2gco(o))) \ |
| 129 | luaC_barrier_(L,obj2gco(p),obj2gco(o)); } | 129 | luaC_barrier_(L,obj2gco(p),obj2gco(o)); } |
| 130 | 130 | ||
| 131 | #define luaC_objbarrierback(L,p,o) \ | ||
| 132 | { if (nolocal(obj2gco(o)), isblack(obj2gco(p)) && iswhite(obj2gco(o))) \ | ||
| 133 | luaC_barrierback_(L,obj2gco(p)); } | ||
| 134 | |||
| 135 | #define luaC_upvalbarrier(L,uv) \ | 131 | #define luaC_upvalbarrier(L,uv) \ |
| 136 | { if (iscollectable((uv)->v) && !upisopen(uv)) \ | 132 | { if (iscollectable((uv)->v) && !upisopen(uv)) \ |
| 137 | luaC_upvalbarrier_(L,uv); } | 133 | luaC_upvalbarrier_(L,uv); } |
