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

Function luaC_changemode

lib/lua/src/lgc.c:1360–1369  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1358** Change collector mode to 'newmode'.
1359*/
1360void luaC_changemode (lua_State *L, int newmode) {
1361 global_State *g = G(L);
1362 if (newmode != g->gckind) {
1363 if (newmode == KGC_GEN) /* entering generational mode? */
1364 entergen(L, g);
1365 else
1366 enterinc(g); /* entering incremental mode */
1367 }
1368 g->lastatomic = 0;
1369}
1370
1371
1372/*

Callers 2

lua_gcFunction · 0.85
luaC_freeallobjectsFunction · 0.85

Calls 3

entergenFunction · 0.85
enterincFunction · 0.85
GFunction · 0.50

Tested by

no test coverage detected