MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / markroot

Function markroot

Source/Misc/lua/src/lua.c:6503–6514  ·  view source on GitHub ↗

mark root set */

Source from the content-addressed store, hash-verified

6501
6502/* mark root set */
6503static void markroot (lua_State *L) {
6504global_State *g = G(L);
6505g->gray = NULL;
6506g->grayagain = NULL;
6507g->weak = NULL;
6508markobject(g, g->mainthread);
6509/* make global table be traversed before main stack */
6510markvalue(g, gt(g->mainthread));
6511markvalue(g, registry(L));
6512markmt(g);
6513g->gcstate = GCSpropagate;
6514}
6515
6516
6517static void remarkupvals (global_State *g) {

Callers 2

singlestepFunction · 0.85
luaC_fullgcFunction · 0.85

Calls 2

registryFunction · 0.85
markmtFunction · 0.85

Tested by

no test coverage detected