Searched refs:debt (Results 1 – 8 of 8) sorted by relevance
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/ |
D | lgc.c | 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() [all …]
|
D | lstate.c | 98 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt() argument 101 if (debt < tb - MAX_LMEM) in luaE_setdebt() 102 debt = tb - MAX_LMEM; /* will make 'totalbytes == MAX_LMEM' */ in luaE_setdebt() 103 g->totalbytes = tb - debt; in luaE_setdebt() 104 g->GCdebt = debt; in luaE_setdebt()
|
D | lapi.c | 1069 l_mem debt = 1; /* =1 to signal that it did an actual step */ in lua_gc() local 1077 debt = cast(l_mem, data) * 1024 + g->GCdebt; in lua_gc() 1078 luaE_setdebt(g, debt); in lua_gc() 1082 if (debt > 0 && g->gcstate == GCSpause) /* end of cycle? */ in lua_gc()
|
D | lstate.h | 245 LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
|
/civetweb-2.7.6/src/third_party/lua-5.2.4/src/ |
D | lgc.c | 914 l_mem debt, threshold; in setpause() local 919 debt = -cast(l_mem, threshold - gettotalbytes(g)); in setpause() 920 luaE_setdebt(g, debt); in setpause() 1141 l_mem debt = g->GCdebt; in incstep() local 1145 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()
|
D | lstate.c | 106 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt() argument 107 g->totalbytes -= (debt - g->GCdebt); in luaE_setdebt() 108 g->GCdebt = debt; in luaE_setdebt()
|
D | lstate.h | 221 LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
|
D | lapi.c | 1055 lu_mem debt = cast(lu_mem, data) * 1024 - GCSTEPSIZE; in lua_gc() local 1057 debt += g->GCdebt; /* include current debt */ in lua_gc() 1058 luaE_setdebt(g, debt); in lua_gc()
|