** 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). */
| 1120 | ** approximately (marked * pause / 100). |
| 1121 | */ |
| 1122 | static 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 | /* |
no test coverage detected