MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / luaC_barrierf

Function luaC_barrierf

other_src/lua/src/lgc.cpp:663–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661
662
663void luaC_barrierf (lua_State *L, GCObject *o, GCObject *v) {
664 global_State *g = G(L);
665 lua_assert(isblack(o) && iswhite(v) && !isdead(g, v) && !isdead(g, o));
666 lua_assert(g->gcstate != GCSfinalize && g->gcstate != GCSpause);
667 lua_assert(ttype(&o->gch) != LUA_TTABLE);
668 /* must keep invariant? */
669 if (g->gcstate == GCSpropagate)
670 reallymarkobject(g, v); /* restore invariant */
671 else /* don't mind */
672 makewhite(g, o); /* mark as white just to avoid other barriers */
673}
674
675
676void luaC_barrierback (lua_State *L, Table *t) {

Callers

nothing calls this directly

Calls 1

reallymarkobjectFunction · 0.70

Tested by

no test coverage detected