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

Function correctgraylists

3rd/lua-5.4.3/src/lgc.c:1178–1186  ·  view source on GitHub ↗

** Correct all gray lists, coalescing them into 'grayagain'. */

Source from the content-addressed store, hash-verified

1176** Correct all gray lists, coalescing them into 'grayagain'.
1177*/
1178static void correctgraylists (global_State *g) {
1179 GCObject **list = correctgraylist(&g->grayagain);
1180 *list = g->weak; g->weak = NULL;
1181 list = correctgraylist(list);
1182 *list = g->allweak; g->allweak = NULL;
1183 list = correctgraylist(list);
1184 *list = g->ephemeron; g->ephemeron = NULL;
1185 correctgraylist(list);
1186}
1187
1188
1189/*

Callers 1

finishgencycleFunction · 0.85

Calls 1

correctgraylistFunction · 0.85

Tested by

no test coverage detected