Searched refs:l_mem (Results 1 – 9 of 9) sorted by relevance
/freebsd/contrib/lua/src/ |
H A D | llimits.h | 25 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 D | lstate.h | 257 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 D | lgc.c | 872 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 D | lstate.c | 89 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt() 90 l_mem tb = gettotalbytes(g); in luaE_setdebt()
|
H A D | lapi.c | 1166 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 D | llimits.h | 18 typedef LUAI_MEM l_mem; typedef 30 #define MAX_LMEM ((l_mem) ((MAX_LUMEM >> 1) - 2))
|
H A D | lstate.h | 116 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 D | lgc.c | 911 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 D | lstate.c | 102 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt()
|