Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/lua/src/
H A Dlgc.c1282 g->GCestimate = gettotalbytes(g); /* base for memory control */ in atomic2gen()
1349 luaE_setdebt(g, -(cast(l_mem, (gettotalbytes(g) / 100)) * g->genminormul)); in setminordebt()
1386 g->GCestimate = gettotalbytes(g); /* first estimate */; in stepgenfull()
1420 if (g->GCdebt > 0 && gettotalbytes(g) > majorbase + majorinc) { in genstep()
1422 if (gettotalbytes(g) < majorbase + (majorinc / 2)) { in genstep()
1465 debt = gettotalbytes(g) - threshold; in setpause()
1595 g->GCestimate = gettotalbytes(g); /* first estimate */; in singlestep()
1692 lua_assert(g->GCestimate == gettotalbytes(g)); in fullinc()
H A Dlstate.c90 l_mem tb = gettotalbytes(g); in luaE_setdebt()
280 lua_assert(gettotalbytes(g) == sizeof(LG)); in close_state()
H A Dlstate.h351 #define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt) macro
H A Dlapi.c1124 res = cast_int(gettotalbytes(g) >> 10); in lua_gc()
1128 res = cast_int(gettotalbytes(g) & 0x3ff); in lua_gc()
/freebsd-13.1/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.c1039 res = cast_int(gettotalbytes(g) >> 10); in lua_gc()
1043 res = cast_int(gettotalbytes(g) & 0x3ff); in lua_gc()