aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-06 14:38:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-06 14:38:39 -0300
commita04e0ffdb9be42a77b5657f46cac8d7faa5a0f43 (patch)
treeeb96915b808cf929015452bd08ca1e5c571683ce /lstate.h
parent007b8c7a01eaa97d796561a19c7e9af1ec474495 (diff)
downloadlua-a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43.tar.gz
lua-a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43.tar.bz2
lua-a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43.zip
Rename of fields in global state that control GC
All fields in the global state that control the pace of the garbage collector prefixed with 'GC'.
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lstate.h b/lstate.h
index e12ca154..6aa02889 100644
--- a/lstate.h
+++ b/lstate.h
@@ -274,10 +274,10 @@ struct CallInfo {
274typedef struct global_State { 274typedef struct global_State {
275 lua_Alloc frealloc; /* function to reallocate memory */ 275 lua_Alloc frealloc; /* function to reallocate memory */
276 void *ud; /* auxiliary data to 'frealloc' */ 276 void *ud; /* auxiliary data to 'frealloc' */
277 lu_mem totalbytes; /* number of bytes currently allocated */ 277 lu_mem GCtotalbytes; /* number of bytes currently allocated */
278 l_obj totalobjs; /* total number of objects allocated + GCdebt */ 278 l_obj GCtotalobjs; /* total number of objects allocated + GCdebt */
279 l_obj GCdebt; /* objects counted but not yet allocated */ 279 l_obj GCdebt; /* objects counted but not yet allocated */
280 l_obj marked; /* number of objects marked in a GC cycle */ 280 l_obj GCmarked; /* number of objects marked in a GC cycle */
281 l_obj GCmajorminor; /* auxiliary counter to control major-minor shifts */ 281 l_obj GCmajorminor; /* auxiliary counter to control major-minor shifts */
282 stringtable strt; /* hash table for strings */ 282 stringtable strt; /* hash table for strings */
283 TValue l_registry; 283 TValue l_registry;
@@ -412,7 +412,7 @@ union GCUnion {
412 412
413 413
414/* actual number of total objects allocated */ 414/* actual number of total objects allocated */
415#define gettotalobjs(g) ((g)->totalobjs - (g)->GCdebt) 415#define gettotalobjs(g) ((g)->GCtotalobjs - (g)->GCdebt)
416 416
417 417
418LUAI_FUNC void luaE_setdebt (global_State *g, l_obj debt); 418LUAI_FUNC void luaE_setdebt (global_State *g, l_obj debt);