aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
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 2c89aad6..9c0434b9 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.87 2013/08/21 20:09:51 roberto Exp roberto $ 2** $Id: lstate.h,v 2.88 2013/08/22 15:21:48 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*/
@@ -118,6 +118,7 @@ typedef struct global_State {
118 l_mem GCdebt; /* bytes allocated not yet compensated by the collector */ 118 l_mem GCdebt; /* bytes allocated not yet compensated by the collector */
119 lu_mem GCmemtrav; /* memory traversed by the GC */ 119 lu_mem GCmemtrav; /* memory traversed by the GC */
120 lu_mem GCestimate; /* an estimate of the non-garbage memory in use */ 120 lu_mem GCestimate; /* an estimate of the non-garbage memory in use */
121 lu_mem GCthreshold; /* threshold to start a new GC cycle */
121 stringtable strt; /* hash table for strings */ 122 stringtable strt; /* hash table for strings */
122 TValue l_registry; 123 TValue l_registry;
123 unsigned int seed; /* randomized seed for hashes */ 124 unsigned int seed; /* randomized seed for hashes */
@@ -126,6 +127,7 @@ typedef struct global_State {
126 lu_byte gckind; /* kind of GC running */ 127 lu_byte gckind; /* kind of GC running */
127 lu_byte gcrunning; /* true if GC is running */ 128 lu_byte gcrunning; /* true if GC is running */
128 GCObject *allgc; /* list of all collectable objects */ 129 GCObject *allgc; /* list of all collectable objects */
130 GCObject *localgc; /* list of local objects */
129 GCObject *finobj; /* list of collectable objects with finalizers */ 131 GCObject *finobj; /* list of collectable objects with finalizers */
130 GCObject **sweepgc; /* current position of sweep in list 'allgc' */ 132 GCObject **sweepgc; /* current position of sweep in list 'allgc' */
131 GCObject **sweepfin; /* current position of sweep in list 'finobj' */ 133 GCObject **sweepfin; /* current position of sweep in list 'finobj' */