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

Function traverseclosure

Source/Misc/lua/src/lua.c:6226–6240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6224
6225
6226static void traverseclosure (global_State *g, Closure *cl) {
6227markobject(g, cl->c.env);
6228if (cl->c.isC) {
6229int i;
6230for (i=0; i<cl->c.nupvalues; i++) /* mark its upvalues */
6231markvalue(g, &cl->c.upvalue[i]);
6232}
6233else {
6234int i;
6235lua_assert(cl->l.nupvalues == cl->l.p->nups);
6236markobject(g, cl->l.p);
6237for (i=0; i<cl->l.nupvalues; i++) /* mark its upvalues */
6238markobject(g, cl->l.upvals[i]);
6239}
6240}
6241
6242
6243static void checkstacksizes (lua_State *L, StkId max) {

Callers 1

propagatemarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected