diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-21 10:18:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-21 10:18:10 -0300 |
commit | 398811a3131cb025ca61d1a0839e3f99ba632ae9 (patch) | |
tree | d9643a0d86495befa7c498de2d9dbcd89fad4779 /lgc.h | |
parent | 2a66b34f720cdfb34e3455eb3dbc7fb8aa931981 (diff) | |
download | lua-398811a3131cb025ca61d1a0839e3f99ba632ae9.tar.gz lua-398811a3131cb025ca61d1a0839e3f99ba632ae9.tar.bz2 lua-398811a3131cb025ca61d1a0839e3f99ba632ae9.zip |
simpler macro 'luaC_condGC' + better 'step' in 'lua_gc' +
micro bug in 'luaC_checkfinalizer' (current sweep object could be
removed from 'allgc' list)
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 2.53 2012/01/23 20:29:12 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.54 2012/05/11 19:22:33 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 | */ |
@@ -104,7 +104,7 @@ | |||
104 | 104 | ||
105 | 105 | ||
106 | #define luaC_condGC(L,c) \ | 106 | #define luaC_condGC(L,c) \ |
107 | {if (G(L)->GCdebt > 0 && G(L)->gcrunning) {c;}; condchangemem(L);} | 107 | {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} |
108 | #define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) | 108 | #define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) |
109 | 109 | ||
110 | 110 | ||