From 0b062414831e3794fcdb747e53e9662d112473cf Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 30 Aug 2004 10:44:44 -0300 Subject: better control for GC cycles --- lgc.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lgc.h') diff --git a/lgc.h b/lgc.h index c1d102f9..b4097b05 100644 --- a/lgc.h +++ b/lgc.h @@ -1,5 +1,5 @@ /* -** $Id: lgc.h,v 2.6 2004/08/10 19:17:23 roberto Exp roberto $ +** $Id: lgc.h,v 2.7 2004/08/24 20:12:06 roberto Exp roberto $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -14,10 +14,11 @@ /* ** Possible states of the Garbage Collector */ -#define GCSpropagate 0 -#define GCSsweepstring 1 -#define GCSsweep 2 -#define GCSfinalize 3 +#define GCSpause 0 +#define GCSpropagate 1 +#define GCSsweepstring 2 +#define GCSsweep 3 +#define GCSfinalize 4 /* @@ -71,7 +72,7 @@ #define luaC_white(g) cast(lu_byte, (g)->currentwhite) -#define luaC_checkGC(L) { if (G(L)->nblocks >= G(L)->GCthreshold) \ +#define luaC_checkGC(L) { if (G(L)->totalbytes >= G(L)->GCthreshold) \ luaC_step(L); } -- cgit v1.2.3-55-g6feb