diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-12-06 15:53:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-12-06 15:53:42 -0200 |
commit | 39a8082f50c7321d75425f08a551a1d331dcea2d (patch) | |
tree | 2a942d2647897371dc104b0271783f78cd0415f8 /lstate.h | |
parent | 531874f6ce9f47f81294beeeba6cd0c15402411c (diff) | |
download | lua-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |