Home
last modified time | relevance | path

Searched refs:l_mem (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/lua/src/
H A Dllimits.h25 typedef LUAI_MEM l_mem; typedef
28 typedef ptrdiff_t l_mem; typedef
31 typedef long l_mem; typedef
50 #define MAX_LMEM ((l_mem)(MAX_LUMEM >> 1))
H A Dlstate.h257 l_mem totalbytes; /* number of bytes currently allocated - GCdebt */
258 l_mem GCdebt; /* bytes allocated not yet compensated by the collector */
396 LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
H A Dlgc.c872 l_mem olddebt = g->GCdebt; in checkSizes()
1058 l_mem threshold, debt; in setpause()
1060 l_mem estimate = g->GCestimate / PAUSEADJ; /* adjust 'estimate' */ in setpause()
1317 luaE_setdebt(g, -(cast(l_mem, (gettotalbytes(g) / 100)) * g->genminormul)); in setminordebt()
1569 l_mem olddebt = g->GCdebt; in sweepstep()
1667 l_mem debt = (g->GCdebt / WORK2MEM) * stepmul; in incstep()
1668 l_mem stepsize = (g->gcstepsize <= log2maxs(l_mem)) in incstep()
1669 ? ((cast(l_mem, 1) << g->gcstepsize) / WORK2MEM) * stepmul in incstep()
H A Dlstate.c89 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt()
90 l_mem tb = gettotalbytes(g); in luaE_setdebt()
H A Dlapi.c1166 l_mem debt = 1; /* =1 to signal that it did an actual step */ in lua_gc()
1174 debt = cast(l_mem, data) * 1024 + g->GCdebt; in lua_gc()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dllimits.h18 typedef LUAI_MEM l_mem; typedef
30 #define MAX_LMEM ((l_mem) ((MAX_LUMEM >> 1) - 2))
H A Dlstate.h116 l_mem GCdebt; /* bytes allocated not yet compensated by the collector */
222 LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
H A Dlgc.c911 static void setpause (global_State *g, l_mem estimate) { in setpause()
912 l_mem debt, threshold; in setpause()
917 debt = -cast(l_mem, threshold - gettotalbytes(g)); in setpause()
997 static l_mem atomic (lua_State *L) { in atomic()
999 l_mem work = -cast(l_mem, g->GCmemtrav); /* start counting work */ in atomic()
1139 l_mem debt = g->GCdebt; in incstep()
H A Dlstate.c102 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt()