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

Function markold

third-party/lua-5.5.0/src/lgc.c:1276–1286  ·  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

1274** the atomic step.
1275*/
1276static void markold (global_State *g, GCObject *from, GCObject *to) {
1277 GCObject *p;
1278 for (p = from; p != to; p = p->next) {
1279 if (getage(p) == G_OLD1) {
1280 lua_assert(!iswhite(p));
1281 setage(p, G_OLD); /* now they are old */
1282 if (isblack(p))
1283 reallymarkobject(g, p);
1284 }
1285 }
1286}
1287
1288
1289/*

Callers 1

youngcollectionFunction · 0.70

Calls 1

reallymarkobjectFunction · 0.70

Tested by

no test coverage detected