From de3b1c9b53d74de4f22fe75b801cc57e1ba2840e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 13 Feb 2014 12:46:38 -0200 Subject: better control for number of finalizers called at each GC cycle (increases progressively) --- lstate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 13b2108c..4acdee84 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.98 2014/02/11 12:18:12 roberto Exp roberto $ +** $Id: lstate.h,v 2.99 2014/02/13 12:11:34 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -125,6 +125,7 @@ typedef struct global_State { GCObject *tobefnz; /* list of userdata to be GC */ GCObject *fixedgc; /* list of objects not to be collected */ Mbuffer buff; /* temporary buffer for string concatenation */ + unsigned int gcfinnum; /* number of finalizers to call in each GC step */ int gcpause; /* size of pause between successive GCs */ int gcstepmul; /* GC `granularity' */ lua_CFunction panic; /* to be called in unprotected errors */ -- cgit v1.2.3-55-g6feb