From 6828f6d42786de735d6696da8cccbb47c8bad347 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 3 Sep 2010 11:14:01 -0300 Subject: new parameter 'majorinc' to control frequency of major collections in generational mode --- lstate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 452046fb..0d834801 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.64 2010/04/29 17:31:31 roberto Exp roberto $ +** $Id: lstate.h,v 2.65 2010/05/03 17:39:48 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -136,6 +136,7 @@ typedef struct global_State { UpVal uvhead; /* head of double-linked list of all open upvalues */ Mbuffer buff; /* temporary buffer for string concatenation */ int gcpause; /* size of pause between successive GCs */ + int gcmajorinc; /* how much to wait for a major GC (only in gen. mode) */ int gcstepmul; /* GC `granularity' */ lua_CFunction panic; /* to be called in unprotected errors */ struct lua_State *mainthread; -- cgit v1.2.3-55-g6feb