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

Function atomic2gen

extlibs/lua/src/lgc.c:1169–1185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1167
1168
1169static void atomic2gen (lua_State *L, global_State *g) {
1170 /* sweep all elements making them old */
1171 sweep2old(L, &g->allgc);
1172 /* everything alive now is old */
1173 g->reallyold = g->old = g->survival = g->allgc;
1174
1175 /* repeat for 'finobj' lists */
1176 sweep2old(L, &g->finobj);
1177 g->finobjrold = g->finobjold = g->finobjsur = g->finobj;
1178
1179 sweep2old(L, &g->tobefnz);
1180
1181 g->gckind = KGC_GEN;
1182 g->lastatomic = 0;
1183 g->GCestimate = gettotalbytes(g); /* base for memory control */
1184 finishgencycle(L, g);
1185}
1186
1187
1188/*

Callers 2

entergenFunction · 0.85
stepgenfullFunction · 0.85

Calls 2

sweep2oldFunction · 0.85
finishgencycleFunction · 0.85

Tested by

no test coverage detected