diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-08-30 10:44:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-08-30 10:44:44 -0300 |
commit | 0b062414831e3794fcdb747e53e9662d112473cf (patch) | |
tree | 002d75be5a52689a232e44787b2964d8c8e29b9c /lstate.h | |
parent | 857253cdfcddf4f49c7cec15791f948d1d7612bb (diff) | |
download | lua-0b062414831e3794fcdb747e53e9662d112473cf.tar.gz lua-0b062414831e3794fcdb747e53e9662d112473cf.tar.bz2 lua-0b062414831e3794fcdb747e53e9662d112473cf.zip |
better control for GC cycles
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.5 2004/06/02 19:07:55 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.6 2004/08/24 20:12:06 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 | */ |
@@ -82,7 +82,9 @@ typedef struct global_State { | |||
82 | GCObject *tmudata; /* list of userdata to be GC */ | 82 | GCObject *tmudata; /* list of userdata to be GC */ |
83 | Mbuffer buff; /* temporary buffer for string concatentation */ | 83 | Mbuffer buff; /* temporary buffer for string concatentation */ |
84 | lu_mem GCthreshold; | 84 | lu_mem GCthreshold; |
85 | lu_mem nblocks; /* 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 */ | ||
87 | lu_mem prevestimate; /* previous estimate */ | ||
86 | lua_CFunction panic; /* to be called in unprotected errors */ | 88 | lua_CFunction panic; /* to be called in unprotected errors */ |
87 | TValue _registry; | 89 | TValue _registry; |
88 | struct lua_State *mainthread; | 90 | struct lua_State *mainthread; |