aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/lstate.h b/lstate.h
index 49b5d24e..13b2108c 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.97 2013/09/17 15:40:06 roberto Exp roberto $ 2** $Id: lstate.h,v 2.98 2014/02/11 12:18:12 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*/
@@ -22,8 +22,7 @@
22** the 'CommonHeader' for the link: 22** the 'CommonHeader' for the link:
23** 23**
24** mainthread->next: all threads; 24** mainthread->next: all threads;
25** localgc: all local objects not marked for finalization; 25** allgc: all objects not marked for finalization;
26** allgc: all non local objects not marked for finalization;
27** finobj: all objects marked for finalization; 26** finobj: all objects marked for finalization;
28** tobefnz: all objects ready to be finalized; 27** tobefnz: all objects ready to be finalized;
29** fixedgc: all objects that are not to be collected (currently 28** fixedgc: all objects that are not to be collected (currently
@@ -108,7 +107,6 @@ typedef struct global_State {
108 l_mem GCdebt; /* bytes allocated not yet compensated by the collector */ 107 l_mem GCdebt; /* bytes allocated not yet compensated by the collector */
109 lu_mem GCmemtrav; /* memory traversed by the GC */ 108 lu_mem GCmemtrav; /* memory traversed by the GC */
110 lu_mem GCestimate; /* an estimate of the non-garbage memory in use */ 109 lu_mem GCestimate; /* an estimate of the non-garbage memory in use */
111 lu_mem GCthreshold; /* threshold to start a new GC cycle */
112 stringtable strt; /* hash table for strings */ 110 stringtable strt; /* hash table for strings */
113 TValue l_registry; 111 TValue l_registry;
114 unsigned int seed; /* randomized seed for hashes */ 112 unsigned int seed; /* randomized seed for hashes */
@@ -117,7 +115,6 @@ typedef struct global_State {
117 lu_byte gckind; /* kind of GC running */ 115 lu_byte gckind; /* kind of GC running */
118 lu_byte gcrunning; /* true if GC is running */ 116 lu_byte gcrunning; /* true if GC is running */
119 GCObject *allgc; /* list of all collectable objects */ 117 GCObject *allgc; /* list of all collectable objects */
120 GCObject *localgc; /* list of local objects */
121 GCObject **sweepgc; /* current position of sweep in list */ 118 GCObject **sweepgc; /* current position of sweep in list */
122 GCObject *finobj; /* list of collectable objects with finalizers */ 119 GCObject *finobj; /* list of collectable objects with finalizers */
123 GCObject *gray; /* list of gray objects */ 120 GCObject *gray; /* list of gray objects */
@@ -129,7 +126,6 @@ typedef struct global_State {
129 GCObject *fixedgc; /* list of objects not to be collected */ 126 GCObject *fixedgc; /* list of objects not to be collected */
130 Mbuffer buff; /* temporary buffer for string concatenation */ 127 Mbuffer buff; /* temporary buffer for string concatenation */
131 int gcpause; /* size of pause between successive GCs */ 128 int gcpause; /* size of pause between successive GCs */
132 int gclocalpause; /* size of pause between local collections */
133 int gcstepmul; /* GC `granularity' */ 129 int gcstepmul; /* GC `granularity' */
134 lua_CFunction panic; /* to be called in unprotected errors */ 130 lua_CFunction panic; /* to be called in unprotected errors */
135 struct lua_State *mainthread; 131 struct lua_State *mainthread;