Home
last modified time | relevance | path

Searched refs:gettotalbytes (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/lua/src/
H A Dlgc.c1065 debt = gettotalbytes(g) - threshold; in setpause()
1307 g->GCestimate = gettotalbytes(g); /* base for memory control */ in atomic2gen()
1317 luaE_setdebt(g, -(cast(l_mem, (gettotalbytes(g) / 100)) * g->genminormul)); in setminordebt()
1412 g->GCestimate = gettotalbytes(g); /* first estimate */; in stepgenfull()
1446 if (g->GCdebt > 0 && gettotalbytes(g) > majorbase + majorinc) { in genstep()
1448 if (gettotalbytes(g) < majorbase + (majorinc / 2)) { in genstep()
1607 g->GCestimate = gettotalbytes(g); /* first estimate */; in singlestep()
1715 lua_assert(g->GCestimate == gettotalbytes(g)); in fullinc()
H A Dlstate.c90 l_mem tb = gettotalbytes(g); in luaE_setdebt()
281 lua_assert(gettotalbytes(g) == sizeof(LG)); in close_state()
H A Dlstate.h394 #define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt) macro
H A Dlapi.c1157 res = cast_int(gettotalbytes(g) >> 10); in lua_gc()
1161 res = cast_int(gettotalbytes(g) & 0x3ff); in lua_gc()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlgc.c918 debt = -cast(l_mem, threshold - gettotalbytes(g)); in setpause()
957 g->GCestimate = gettotalbytes(g); in luaC_changemode()
1121 g->GCestimate = gettotalbytes(g); /* update control */ in generationalcollection()
1127 if (gettotalbytes(g) > (estimate / 100) * g->gcmajorinc) in generationalcollection()
1133 setpause(g, gettotalbytes(g)); in generationalcollection()
1212 setpause(g, gettotalbytes(g)); in luaC_fullgc()
H A Dlstate.h221 #define gettotalbytes(g) ((g)->totalbytes + (g)->GCdebt) macro
H A Dlstate.c230 lua_assert(gettotalbytes(g) == sizeof(LG)); in close_state()
H A Dlapi.c1041 res = cast_int(gettotalbytes(g) >> 10); in lua_gc()
1045 res = cast_int(gettotalbytes(g) & 0x3ff); in lua_gc()