aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-11-24 16:55:56 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-11-24 16:55:56 -0200
commit2f82bf6fe940557fb5258c65c03e18f097ff831f (patch)
treea58f6ae8734e2f4a298b79dc6704a1e735334afc /lgc.c
parent087df82a61ddcf1f86e9cffe5550a1ce0174f6e2 (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index da93007d..9ad6b037 100644
--- a/lgc.c
+++ b/lgc.c
@@ -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 */