aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-12-06 15:53:42 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-12-06 15:53:42 -0200
commit39a8082f50c7321d75425f08a551a1d331dcea2d (patch)
tree2a942d2647897371dc104b0271783f78cd0415f8 /lstate.h
parent531874f6ce9f47f81294beeeba6cd0c15402411c (diff)
downloadlua-39a8082f50c7321d75425f08a551a1d331dcea2d.tar.gz
lua-39a8082f50c7321d75425f08a551a1d331dcea2d.tar.bz2
lua-39a8082f50c7321d75425f08a551a1d331dcea2d.zip
more options for controling the GC
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index 836e3df5..612a785e 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.7 2004/08/30 13:44:44 roberto Exp roberto $ 2** $Id: lstate.h,v 2.8 2004/09/15 20:39:42 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -85,6 +85,8 @@ typedef struct global_State {
85 lu_mem totalbytes; /* number of bytes currently allocated */ 85 lu_mem totalbytes; /* number of bytes currently allocated */
86 lu_mem estimate; /* an estimate of number of bytes actually in use */ 86 lu_mem estimate; /* an estimate of number of bytes actually in use */
87 lu_mem prevestimate; /* previous estimate */ 87 lu_mem prevestimate; /* previous estimate */
88 int stepmul; /* relative `speed' of the GC */
89 int incgc; /* 0 if GC is done non-incrementally */
88 lua_CFunction panic; /* to be called in unprotected errors */ 90 lua_CFunction panic; /* to be called in unprotected errors */
89 TValue _registry; 91 TValue _registry;
90 struct lua_State *mainthread; 92 struct lua_State *mainthread;