MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / correctgraylists

Function correctgraylists

lib/lua/src/lgc.c:1205–1213  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1203** Correct all gray lists, coalescing them into 'grayagain'.
1204*/
1205static void correctgraylists (global_State *g) {
1206 GCObject **list = correctgraylist(&g->grayagain);
1207 *list = g->weak; g->weak = NULL;
1208 list = correctgraylist(list);
1209 *list = g->allweak; g->allweak = NULL;
1210 list = correctgraylist(list);
1211 *list = g->ephemeron; g->ephemeron = NULL;
1212 correctgraylist(list);
1213}
1214
1215
1216/*

Callers 1

finishgencycleFunction · 0.85

Calls 1

correctgraylistFunction · 0.85

Tested by

no test coverage detected