aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-11-29 16:22:09 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-11-29 16:22:09 -0300
commit63d68bd657b7386c9c58b4439a100ea0ccbd633e (patch)
tree117ae53a7b1cbfd242370af0c5250fca85fd2a7d /lstate.c
parent011850a8f86f514d1ba2ebf7a9411c8036b917f4 (diff)
downloadlua-63d68bd657b7386c9c58b4439a100ea0ccbd633e.tar.gz
lua-63d68bd657b7386c9c58b4439a100ea0ccbd633e.tar.bz2
lua-63d68bd657b7386c9c58b4439a100ea0ccbd633e.zip
Comments detailing the ages for generational GC
Plus other comments and small details.
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index c01e53ed..1216db35 100644
--- a/lstate.c
+++ b/lstate.c
@@ -52,8 +52,9 @@ typedef struct LG {
52 52
53 53
54/* 54/*
55** set GCdebt to a new value keeping the value (totalobjs + GCdebt) 55** set GCdebt to a new value keeping the real number of allocated
56** invariant (and avoiding underflows in 'totalobjs') 56** objects (totalobjs - GCdebt) invariant and avoiding overflows in
57** 'totalobjs'.
57*/ 58*/
58void luaE_setdebt (global_State *g, l_obj debt) { 59void luaE_setdebt (global_State *g, l_obj debt) {
59 l_obj tb = gettotalobjs(g); 60 l_obj tb = gettotalobjs(g);