MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / setpause

Function setpause

third-party/lua-5.5.0/src/lgc.c:1122–1127  ·  view source on GitHub ↗

** Set the "time" to wait before starting a new incremental cycle; ** cycle will start when number of bytes in use hits the threshold of ** approximately (marked * pause / 100). */

Source from the content-addressed store, hash-verified

1120** approximately (marked * pause / 100).
1121*/
1122static void setpause (global_State *g) {
1123 l_mem threshold = applygcparam(g, PAUSE, g->GCmarked);
1124 l_mem debt = threshold - gettotalbytes(g);
1125 if (debt < 0) debt = 0;
1126 luaE_setdebt(g, debt);
1127}
1128
1129
1130/*

Callers 2

incstepFunction · 0.70
fullincFunction · 0.70

Calls 1

luaE_setdebtFunction · 0.70

Tested by

no test coverage detected