Searched refs:debt (Results 1 – 4 of 4) sorted by relevance
914 l_mem debt, threshold; in setpause() local919 debt = -cast(l_mem, threshold - gettotalbytes(g)); in setpause()920 luaE_setdebt(g, debt); in setpause()1141 l_mem debt = g->GCdebt; in incstep() local1145 debt = (debt / STEPMULADJ) + 1; in incstep()1146 debt = (debt < MAX_LMEM / stepmul) ? debt * stepmul : MAX_LMEM; in incstep()1149 debt -= work; in incstep()1150 } while (debt > -GCSTEPSIZE && g->gcstate != GCSpause); in incstep()1154 debt = (debt / stepmul) * STEPMULADJ; /* convert 'work units' to Kb */ in incstep()1155 luaE_setdebt(g, debt); in incstep()
106 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt() argument107 g->totalbytes -= (debt - g->GCdebt); in luaE_setdebt()108 g->GCdebt = debt; in luaE_setdebt()
221 LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
1055 lu_mem debt = cast(lu_mem, data) * 1024 - GCSTEPSIZE; in lua_gc() local1057 debt += g->GCdebt; /* include current debt */ in lua_gc()1058 luaE_setdebt(g, debt); in lua_gc()