MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / markold

Function markold

extlibs/lua/src/lgc.c:1107–1118  ·  view source on GitHub ↗

** Mark '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

1105** in the atomic step.
1106*/
1107static void markold (global_State *g, GCObject *from, GCObject *to) {
1108 GCObject *p;
1109 for (p = from; p != to; p = p->next) {
1110 if (getage(p) == G_OLD1) {
1111 lua_assert(!iswhite(p));
1112 if (isblack(p)) {
1113 black2gray(p); /* should be '2white', but gray works too */
1114 reallymarkobject(g, p);
1115 }
1116 }
1117 }
1118}
1119
1120
1121/*

Callers 1

youngcollectionFunction · 0.85

Calls 1

reallymarkobjectFunction · 0.85

Tested by

no test coverage detected