summaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-08-30 10:44:44 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-08-30 10:44:44 -0300
commit0b062414831e3794fcdb747e53e9662d112473cf (patch)
tree002d75be5a52689a232e44787b2964d8c8e29b9c /lstate.h
parent857253cdfcddf4f49c7cec15791f948d1d7612bb (diff)
downloadlua-0b062414831e3794fcdb747e53e9662d112473cf.tar.gz
lua-0b062414831e3794fcdb747e53e9662d112473cf.tar.bz2
lua-0b062414831e3794fcdb747e53e9662d112473cf.zip
better control for GC cycles
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lstate.h b/lstate.h
index 8c85b6f6..d8bda576 100644
--- a/lstate.h
+++ b/lstate.h
@@ -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;