Searched refs:debt (Results 1 - 8 of 8) sorted by relevance

/freebsd-13-stable/contrib/lua/src/
H A Dlstate.c89 void luaE_setdebt (global_State *g, l_mem debt) { argument
92 if (debt < tb - MAX_LMEM)
93 debt = tb - MAX_LMEM; /* will make 'totalbytes == MAX_LMEM' */
94 g->totalbytes = tb - debt;
95 g->GCdebt = debt;
H A Dlgc.c1345 ** Set debt for the next minor collection, which will happen when
1397 ** Usually, this means doing a minor collection and setting the debt to
1458 l_mem threshold, debt; local
1465 debt = gettotalbytes(g) - threshold;
1466 if (debt > 0) debt = 0;
1467 luaE_setdebt(g, debt);
1639 ** Performs a basic incremental step. The debt and step size are
1642 ** finishing a cycle (pause state). Finally, it sets the debt that
1647 l_mem debt local
[all...]
H A Dlstate.h353 LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
H A Dlapi.c1133 l_mem debt = 1; /* =1 to signal that it did an actual step */ local
1140 else { /* add 'data' to total debt */
1141 debt = cast(l_mem, data) * 1024 + g->GCdebt;
1142 luaE_setdebt(g, debt);
1146 if (debt > 0 && g->gcstate == GCSpause) /* end of cycle? */
/freebsd-13-stable/sys/contrib/openzfs/module/lua/
H A Dlgc.c913 l_mem debt, threshold; local
918 debt = -cast(l_mem, threshold - gettotalbytes(g));
919 luaE_setdebt(g, debt);
1140 l_mem debt = g->GCdebt; local
1143 /* convert debt from Kb to 'work units' (avoid zero debt and overflows) */
1144 debt = (debt / STEPMULADJ) + 1;
1145 debt = (debt < MAX_LME
[all...]
H A Dlstate.c103 void luaE_setdebt (global_State *g, l_mem debt) { argument
104 g->totalbytes -= (debt - g->GCdebt);
105 g->GCdebt = debt;
H A Dlstate.h223 LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
H A Dlapi.c1052 lu_mem debt = cast(lu_mem, data) * 1024 - GCSTEPSIZE; local
1054 debt += g->GCdebt; /* include current debt */
1055 luaE_setdebt(g, debt);

Completed in 155 milliseconds