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

Function correctgraylists

extlibs/lua/src/lgc.c:1091–1099  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1089** Correct all gray lists, coalescing them into 'grayagain'.
1090*/
1091static void correctgraylists (global_State *g) {
1092 GCObject **list = correctgraylist(&g->grayagain);
1093 *list = g->weak; g->weak = NULL;
1094 list = correctgraylist(list);
1095 *list = g->allweak; g->allweak = NULL;
1096 list = correctgraylist(list);
1097 *list = g->ephemeron; g->ephemeron = NULL;
1098 correctgraylist(list);
1099}
1100
1101
1102/*

Callers 1

finishgencycleFunction · 0.85

Calls 1

correctgraylistFunction · 0.85

Tested by

no test coverage detected