MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / markroot

Function markroot

deps/lua/src/lgc.c:501–512  ·  view source on GitHub ↗

mark root set */

Source from the content-addressed store, hash-verified

499
500/* mark root set */
501static void markroot (lua_State *L) {
502 global_State *g = G(L);
503 g->gray = NULL;
504 g->grayagain = NULL;
505 g->weak = NULL;
506 markobject(g, g->mainthread);
507 /* make global table be traversed before main stack */
508 markvalue(g, gt(g->mainthread));
509 markvalue(g, registry(L));
510 markmt(g);
511 g->gcstate = GCSpropagate;
512}
513
514
515static void remarkupvals (global_State *g) {

Callers 2

singlestepFunction · 0.85
luaC_fullgcFunction · 0.85

Calls 1

markmtFunction · 0.85

Tested by

no test coverage detected