diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-11-29 16:22:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-11-29 16:22:09 -0300 |
commit | 63d68bd657b7386c9c58b4439a100ea0ccbd633e (patch) | |
tree | 117ae53a7b1cbfd242370af0c5250fca85fd2a7d /lstate.c | |
parent | 011850a8f86f514d1ba2ebf7a9411c8036b917f4 (diff) | |
download | lua-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 | */ |
58 | void luaE_setdebt (global_State *g, l_obj debt) { | 59 | void luaE_setdebt (global_State *g, l_obj debt) { |
59 | l_obj tb = gettotalobjs(g); | 60 | l_obj tb = gettotalobjs(g); |