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