diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-24 13:15:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-24 13:15:49 -0300 |
commit | 98296f6b45208e32a83dcb582b3a37b406289d85 (patch) | |
tree | 777b65e4a8a6da1d5f907ec5d4d2e6df5a3e9ae6 /lgc.h | |
parent | 23b79c5945023a661754e45c58595f89c84d4800 (diff) | |
download | lua-98296f6b45208e32a83dcb582b3a37b406289d85.tar.gz lua-98296f6b45208e32a83dcb582b3a37b406289d85.tar.bz2 lua-98296f6b45208e32a83dcb582b3a37b406289d85.zip |
some bugs related to stack reallocation
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 2.13 2005/04/25 19:24:10 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.14 2005/06/07 18:53:45 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 | */ |
@@ -77,7 +77,9 @@ | |||
77 | #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) | 77 | #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) |
78 | 78 | ||
79 | 79 | ||
80 | #define luaC_checkGC(L) { if (G(L)->totalbytes >= G(L)->GCthreshold) \ | 80 | #define luaC_checkGC(L) { \ |
81 | condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK - 1)); \ | ||
82 | if (G(L)->totalbytes >= G(L)->GCthreshold) \ | ||
81 | luaC_step(L); } | 83 | luaC_step(L); } |
82 | 84 | ||
83 | 85 | ||