Lines Matching refs:debt
913 l_mem debt, threshold;
918 debt = -cast(l_mem, threshold - gettotalbytes(g));
919 luaE_setdebt(g, debt);
1140 l_mem debt = g->GCdebt;
1143 /* convert debt from Kb to 'work units' (avoid zero debt and overflows) */
1144 debt = (debt / STEPMULADJ) + 1;
1145 debt = (debt < MAX_LMEM / stepmul) ? debt * stepmul : MAX_LMEM;
1148 debt -= work;
1149 } while (debt > -GCSTEPSIZE && g->gcstate != GCSpause);
1153 debt = (debt / stepmul) * STEPMULADJ; /* convert 'work units' to Kb */
1154 luaE_setdebt(g, debt);