diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-08 16:35:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-08 16:35:59 -0300 |
commit | 4a67e48611c1ffaa6d474e443c3c89849c8b6e5f (patch) | |
tree | 9eddf37f1a665067b4b88d588cc01b06077e705f /lgc.h | |
parent | 5cdec7d124e46c1409df8033f1b795a996dd00e4 (diff) | |
download | lua-4a67e48611c1ffaa6d474e443c3c89849c8b6e5f.tar.gz lua-4a67e48611c1ffaa6d474e443c3c89849c8b6e5f.tar.bz2 lua-4a67e48611c1ffaa6d474e443c3c89849c8b6e5f.zip |
new macro 'condmovestack' instead of 'condhardstacktests'
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 2.19 2008/06/26 19:42:45 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.20 2009/04/28 19:04:36 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 | */ |
@@ -78,10 +78,8 @@ | |||
78 | #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) | 78 | #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) |
79 | 79 | ||
80 | 80 | ||
81 | #define luaC_checkGC(L) { \ | 81 | #define luaC_checkGC(L) \ |
82 | condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK - 1)); \ | 82 | {condmovestack(L); if (G(L)->totalbytes >= G(L)->GCthreshold) luaC_step(L);} |
83 | if (G(L)->totalbytes >= G(L)->GCthreshold) \ | ||
84 | luaC_step(L); } | ||
85 | 83 | ||
86 | 84 | ||
87 | #define luaC_barrier(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \ | 85 | #define luaC_barrier(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \ |