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

Function luaC_changemode

extlibs/lua/src/lgc.c:1223–1232  ·  view source on GitHub ↗

** Change collector mode to 'newmode'. */

Source from the content-addressed store, hash-verified

1221** Change collector mode to 'newmode'.
1222*/
1223void luaC_changemode (lua_State *L, int newmode) {
1224 global_State *g = G(L);
1225 if (newmode != g->gckind) {
1226 if (newmode == KGC_GEN) /* entering generational mode? */
1227 entergen(L, g);
1228 else
1229 enterinc(g); /* entering incremental mode */
1230 }
1231 g->lastatomic = 0;
1232}
1233
1234
1235/*

Callers 2

lua_gcFunction · 0.85
luaC_freeallobjectsFunction · 0.85

Calls 2

entergenFunction · 0.85
enterincFunction · 0.85

Tested by

no test coverage detected