From 39a8082f50c7321d75425f08a551a1d331dcea2d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 6 Dec 2004 15:53:42 -0200 Subject: more options for controling the GC --- lstate.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 836e3df5..612a785e 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.7 2004/08/30 13:44:44 roberto Exp roberto $ +** $Id: lstate.h,v 2.8 2004/09/15 20:39:42 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -85,6 +85,8 @@ typedef struct global_State { lu_mem totalbytes; /* number of bytes currently allocated */ lu_mem estimate; /* an estimate of number of bytes actually in use */ lu_mem prevestimate; /* previous estimate */ + int stepmul; /* relative `speed' of the GC */ + int incgc; /* 0 if GC is done non-incrementally */ lua_CFunction panic; /* to be called in unprotected errors */ TValue _registry; struct lua_State *mainthread; -- cgit v1.2.3-55-g6feb