MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / markold

Function markold

third-party/lua-5.4.6/src/lgc.c:1221–1231  ·  view source on GitHub ↗

** Mark black 'OLD1' objects when starting a new young collection. ** Gray objects are already in some gray list, and so will be visited ** in the atomic step. */

Source from the content-addressed store, hash-verified

1219** in the atomic step.
1220*/
1221static void markold (global_State *g, GCObject *from, GCObject *to) {
1222 GCObject *p;
1223 for (p = from; p != to; p = p->next) {
1224 if (getage(p) == G_OLD1) {
1225 lua_assert(!iswhite(p));
1226 changeage(p, G_OLD1, G_OLD); /* now they are old */
1227 if (isblack(p))
1228 reallymarkobject(g, p);
1229 }
1230 }
1231}
1232
1233
1234/*

Callers 1

youngcollectionFunction · 0.70

Calls 1

reallymarkobjectFunction · 0.70

Tested by

no test coverage detected