From 63d68bd657b7386c9c58b4439a100ea0ccbd633e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 29 Nov 2023 16:22:09 -0300 Subject: Comments detailing the ages for generational GC Plus other comments and small details. --- lstate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lstate.c') 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 { /* -** set GCdebt to a new value keeping the value (totalobjs + GCdebt) -** invariant (and avoiding underflows in 'totalobjs') +** set GCdebt to a new value keeping the real number of allocated +** objects (totalobjs - GCdebt) invariant and avoiding overflows in +** 'totalobjs'. */ void luaE_setdebt (global_State *g, l_obj debt) { l_obj tb = gettotalobjs(g); -- cgit v1.2.3-55-g6feb