MCPcopy Create free account
hub / github.com/F-Stack/f-stack / udata2finalize

Function udata2finalize

freebsd/contrib/openzfs/module/lua/lgc.c:788–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786
787
788static GCObject *udata2finalize (global_State *g) {
789 GCObject *o = g->tobefnz; /* get first element */
790 lua_assert(isfinalized(o));
791 g->tobefnz = gch(o)->next; /* remove it from 'tobefnz' list */
792 gch(o)->next = g->allgc; /* return it to 'allgc' list */
793 g->allgc = o;
794 resetbit(gch(o)->marked, SEPARATED); /* mark that it is not in 'tobefnz' */
795 lua_assert(!isold(o)); /* see MOVE OLD rule */
796 if (!keepinvariantout(g)) /* not keeping invariant? */
797 makewhite(g, o); /* "sweep" object */
798 return o;
799}
800
801
802static void dothecall (lua_State *L, void *ud) {

Callers 1

GCTMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected