Searched refs:totalbytes (Results 1 – 8 of 8) sorted by relevance
83 g->totalbytes = (g->totalbytes - osize) + nsize; in luaM_realloc_()
463 g->GCthreshold = 2*g->totalbytes; /* avoid GC steps */ in GCTM()552 g->estimate = g->totalbytes - udsize; /* first estimate */ in atomic()573 lu_mem old = g->totalbytes; in singlestep()577 lua_assert(old >= g->totalbytes); in singlestep()578 g->estimate -= old - g->totalbytes; in singlestep()582 lu_mem old = g->totalbytes; in singlestep()588 lua_assert(old >= g->totalbytes); in singlestep()589 g->estimate -= old - g->totalbytes; in singlestep()615 g->gcdept += g->totalbytes - g->GCthreshold; in luaC_step()623 g->GCthreshold = g->totalbytes + GCSTEPSIZE; /* - lim/g->gcstepmul;*/ in luaC_step()[all …]
80 g->GCthreshold = 4*g->totalbytes; in f_luaopen()114 lua_assert(g->totalbytes == sizeof(LG)); in close_state()177 g->totalbytes = sizeof(LG); in lua_newstate()
910 g->GCthreshold = g->totalbytes; in lua_gc()919 res = cast_int(g->totalbytes >> 10); in lua_gc()923 res = cast_int(g->totalbytes & 0x3ff); in lua_gc()928 if (a <= g->totalbytes) in lua_gc()929 g->GCthreshold = g->totalbytes - a; in lua_gc()932 while (g->GCthreshold <= g->totalbytes) { in lua_gc()
83 lu_mem totalbytes; /* number of bytes currently allocated */ member
82 if (G(L)->totalbytes >= G(L)->GCthreshold) \
116 lu_mem totalbytes; /* number of bytes currently allocated - GCdebt */ member221 #define gettotalbytes(g) ((g)->totalbytes + (g)->GCdebt)
104 g->totalbytes -= (debt - g->GCdebt); in luaE_setdebt()300 g->totalbytes = sizeof(LG); in lua_newstate()