Lines Matching refs:g
901 global_State *g; in lua_gc() local
903 g = G(L); in lua_gc()
906 g->GCthreshold = MAX_LUMEM; in lua_gc()
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()
931 g->GCthreshold = 0; in lua_gc()
932 while (g->GCthreshold <= g->totalbytes) { in lua_gc()
934 if (g->gcstate == GCSpause) { /* end of cycle? */ in lua_gc()
942 res = g->gcpause; in lua_gc()
943 g->gcpause = data; in lua_gc()
947 res = g->gcstepmul; in lua_gc()
948 g->gcstepmul = data; in lua_gc()