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

Function setminordebt

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

** Set debt for the next minor collection, which will happen when ** memory grows 'genminormul'%. */

Source from the content-addressed store, hash-verified

1346** memory grows 'genminormul'%.
1347*/
1348static void setminordebt (global_State *g) {
1349 luaE_setdebt(g, -(cast(l_mem, (gettotalbytes(g) / 100)) * g->genminormul));
1350}
1351
1352
1353/*

Callers 2

stepgenfullFunction · 0.85
genstepFunction · 0.85

Calls 1

luaE_setdebtFunction · 0.85

Tested by

no test coverage detected