Lines Matching defs:global_State
251 typedef struct global_State { struct
252 lua_Alloc frealloc; /* function to reallocate memory */
253 void *ud; /* auxiliary data to 'frealloc' */
254 l_mem totalbytes; /* number of bytes currently allocated - GCdebt */
255 l_mem GCdebt; /* bytes allocated not yet compensated by the collector */
256 lu_mem GCestimate; /* an estimate of the non-garbage memory in use */
257 lu_mem lastatomic; /* see function 'genstep' in file 'lgc.c' */
258 stringtable strt; /* hash table for strings */
259 TValue l_registry;
260 TValue nilvalue; /* a nil value */
261 unsigned int seed; /* randomized seed for hashes */
262 lu_byte currentwhite;
263 lu_byte gcstate; /* state of garbage collector */
264 lu_byte gckind; /* kind of GC running */
265 lu_byte genminormul; /* control for minor generational collections */
266 lu_byte genmajormul; /* control for major generational collections */
267 lu_byte gcrunning; /* true if GC is running */
268 lu_byte gcemergency; /* true if this is an emergency collection */
269 lu_byte gcpause; /* size of pause between successive GCs */
270 lu_byte gcstepmul; /* GC "speed" */
271 lu_byte gcstepsize; /* (log2 of) GC granularity */
272 GCObject *allgc; /* list of all collectable objects */
273 GCObject **sweepgc; /* current position of sweep in list */
274 GCObject *finobj; /* list of collectable objects with finalizers */
275 GCObject *gray; /* list of gray objects */
276 GCObject *grayagain; /* list of objects to be traversed atomically */
300 } global_State; argument