• Home
  • Raw
  • Download

Lines Matching refs:gch

60  (gch(x)->marked = cast_byte((gch(x)->marked & maskcolors) | luaC_white(g)))
62 #define white2gray(x) resetbits(gch(x)->marked, WHITEBITS)
63 #define black2gray(x) resetbit(gch(x)->marked, BLACKBIT)
66 #define isfinalized(x) testbit(gch(x)->marked, FINALIZEDBIT)
139 lua_assert(gch(o)->tt != LUA_TTABLE); in luaC_barrier_()
157 lua_assert(isblack(o) && !isdead(g, o) && gch(o)->tt == LUA_TTABLE); in luaC_barrierback_()
219 gch(o)->marked = luaC_white(g); in luaC_newobj()
220 gch(o)->tt = tt; in luaC_newobj()
221 gch(o)->next = *list; in luaC_newobj()
246 switch (gch(o)->tt) { in reallymarkobject()
313 for (o = g->tobefnz; o != NULL; o = gch(o)->next) { in markbeingfnz()
526 switch (gch(o)->tt) { in propagatemark()
664 switch (gch(o)->tt) { in freeobj()
736 int marked = gch(curr)->marked; in sweeplist()
738 *p = gch(curr)->next; /* remove 'curr' from list */ in sweeplist()
744 if (gch(curr)->tt == LUA_TTHREAD) in sweeplist()
747 gch(curr)->marked = cast_byte((marked & toclear) | toset); in sweeplist()
748 p = &gch(curr)->next; /* go to next element */ in sweeplist()
792 g->tobefnz = gch(o)->next; /* remove it from 'tobefnz' list */ in udata2finalize()
793 gch(o)->next = g->allgc; /* return it to 'allgc' list */ in udata2finalize()
795 resetbit(gch(o)->marked, SEPARATED); /* mark that it is not in 'tobefnz' */ in udata2finalize()
852 lastnext = &gch(*lastnext)->next; in separatetobefnz()
855 lua_assert(testbit(gch(curr)->marked, SEPARATED)); in separatetobefnz()
857 p = &gch(curr)->next; /* don't bother with it */ in separatetobefnz()
859 l_setbit(gch(curr)->marked, FINALIZEDBIT); /* won't be finalized again */ in separatetobefnz()
860 *p = gch(curr)->next; /* remove 'curr' from 'finobj' list */ in separatetobefnz()
861 gch(curr)->next = *lastnext; /* link at the end of 'tobefnz' list */ in separatetobefnz()
863 lastnext = &gch(curr)->next; in separatetobefnz()
875 if (testbit(gch(o)->marked, SEPARATED) || /* obj. is already separated... */ in luaC_checkfinalizer()
881 GCheader *ho = gch(o); in luaC_checkfinalizer()
887 for (p = &g->allgc; *p != o; p = &gch(*p)->next) { /* empty */ } in luaC_checkfinalizer()