summaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-11-18 11:13:47 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-11-18 11:13:47 -0200
commitce444bff336b333251ac3745f311bd9033be8f6a (patch)
tree92a3de426c0e4b66420dd3b6a911d45b3f5fd03d /lstate.h
parent2d5931ebc8c3136bae92b5c502f3de0f06c31364 (diff)
downloadlua-ce444bff336b333251ac3745f311bd9033be8f6a.tar.gz
lua-ce444bff336b333251ac3745f311bd9033be8f6a.tar.bz2
lua-ce444bff336b333251ac3745f311bd9033be8f6a.zip
(huge) simplification of GC management
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lstate.h b/lstate.h
index dcceefe1..84847eae 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.46 2009/07/15 17:26:14 roberto Exp roberto $ 2** $Id: lstate.h,v 2.47 2009/10/23 19:12:19 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*/
@@ -132,10 +132,8 @@ typedef struct global_State {
132 GCObject *allweak; /* list of all-weak tables */ 132 GCObject *allweak; /* list of all-weak tables */
133 GCObject *tobefnz; /* list of userdata to be GC */ 133 GCObject *tobefnz; /* list of userdata to be GC */
134 Mbuffer buff; /* temporary buffer for string concatentation */ 134 Mbuffer buff; /* temporary buffer for string concatentation */
135 lu_mem GCthreshold; 135 lu_mem GCthreshold; /* when totalbytes > GCthreshold, run GC step */
136 lu_mem totalbytes; /* number of bytes currently allocated */ 136 lu_mem totalbytes; /* number of bytes currently allocated */
137 lu_mem estimate; /* an estimate of number of bytes actually in use */
138 lu_mem gcdept; /* how much GC is `behind schedule' */
139 int gcpause; /* size of pause between successive GCs */ 137 int gcpause; /* size of pause between successive GCs */
140 int gcstepmul; /* GC `granularity' */ 138 int gcstepmul; /* GC `granularity' */
141 lua_CFunction panic; /* to be called in unprotected errors */ 139 lua_CFunction panic; /* to be called in unprotected errors */