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