Lines Matching refs:debt
941 l_mem threshold, debt; in setpause() local
947 debt = gettotalbytes(g) - threshold; in setpause()
948 luaE_setdebt(g, debt); in setpause()
1116 l_mem debt = g->GCdebt; in getdebt() local
1118 if (debt <= 0) return 0; /* minimal debt */ in getdebt()
1120 debt = (debt / STEPMULADJ) + 1; in getdebt()
1121 debt = (debt < MAX_LMEM / stepmul) ? debt * stepmul : MAX_LMEM; in getdebt()
1122 return debt; in getdebt()
1131 l_mem debt = getdebt(g); /* GC deficit (be paid now) */ in luaC_step() local
1138 debt -= work; in luaC_step()
1139 } while (debt > -GCSTEPSIZE && g->gcstate != GCSpause); in luaC_step()
1143 debt = (debt / g->gcstepmul) * STEPMULADJ; /* convert 'work units' to Kb */ in luaC_step()
1144 luaE_setdebt(g, debt); in luaC_step()