diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-11-24 16:55:56 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-11-24 16:55:56 -0200 |
commit | 2f82bf6fe940557fb5258c65c03e18f097ff831f (patch) | |
tree | a58f6ae8734e2f4a298b79dc6704a1e735334afc /lgc.c | |
parent | 087df82a61ddcf1f86e9cffe5550a1ce0174f6e2 (diff) | |
download | lua-2f82bf6fe940557fb5258c65c03e18f097ff831f.tar.gz lua-2f82bf6fe940557fb5258c65c03e18f097ff831f.tar.bz2 lua-2f82bf6fe940557fb5258c65c03e18f097ff831f.zip |
better support for 64-bit machines
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.14 2004/10/08 16:00:34 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.15 2004/11/19 15:52:40 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 | */ |
@@ -555,7 +555,7 @@ static void atomic (lua_State *L) { | |||
555 | g->sweepgc = &g->rootgc; | 555 | g->sweepgc = &g->rootgc; |
556 | g->gcstate = GCSsweepstring; | 556 | g->gcstate = GCSsweepstring; |
557 | aux = g->gcgenerational; | 557 | aux = g->gcgenerational; |
558 | g->gcgenerational = (g->estimate <= 4*g->prevestimate/2); | 558 | g->gcgenerational = (g->estimate/2 <= g->prevestimate); |
559 | if (!aux) /* last collection was full? */ | 559 | if (!aux) /* last collection was full? */ |
560 | g->prevestimate = g->estimate; /* keep estimate of last full collection */ | 560 | g->prevestimate = g->estimate; /* keep estimate of last full collection */ |
561 | g->estimate = g->totalbytes - udsize; /* first estimate */ | 561 | g->estimate = g->totalbytes - udsize; /* first estimate */ |