MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / markold

Function markold

3rd/lua-5.4.3/src/lgc.c:1194–1204  ·  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

1192** in the atomic step.
1193*/
1194static void markold (global_State *g, GCObject *from, GCObject *to) {
1195 GCObject *p;
1196 for (p = from; p != to; p = p->next) {
1197 if (getage(p) == G_OLD1) {
1198 lua_assert(!iswhite(p));
1199 changeage(p, G_OLD1, G_OLD); /* now they are old */
1200 if (isblack(p))
1201 reallymarkobject(g, p);
1202 }
1203 }
1204}
1205
1206
1207/*

Callers 1

youngcollectionFunction · 0.85

Calls 1

reallymarkobjectFunction · 0.85

Tested by

no test coverage detected