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

Function markroot

other_src/lua/src/lgc.cpp:501–513  ·  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 markvalue(g, callins(L));
511 markmt(g);
512 g->gcstate = GCSpropagate;
513}
514
515
516static void remarkupvals (global_State *g) {

Callers 2

singlestepFunction · 0.70
luaC_fullgcFunction · 0.70

Calls 1

markmtFunction · 0.70

Tested by

no test coverage detected