diff options
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.174 2002/05/07 17:36:56 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.175 2002/05/15 18:57:44 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -424,7 +424,7 @@ int luaD_protectedparser (lua_State *L, ZIO *z, int bin) { | |||
424 | lua_lock(L); | 424 | lua_lock(L); |
425 | p.z = z; p.bin = bin; | 425 | p.z = z; p.bin = bin; |
426 | /* before parsing, give a (good) chance to GC */ | 426 | /* before parsing, give a (good) chance to GC */ |
427 | if (G(L)->nblocks/8 >= G(L)->GCthreshold/10) | 427 | if (G(L)->nblocks + G(L)->nblocks/4 >= G(L)->GCthreshold) |
428 | luaC_collectgarbage(L); | 428 | luaC_collectgarbage(L); |
429 | old_blocks = G(L)->nblocks; | 429 | old_blocks = G(L)->nblocks; |
430 | setnilvalue(&p.err); | 430 | setnilvalue(&p.err); |