Home
last modified time | relevance | path

Searched refs:stepmul (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/contrib/openzfs/module/lua/
H A Dlgc.c1140 int stepmul = g->gcstepmul; in incstep() local
1141 if (stepmul < 40) stepmul = 40; /* avoid ridiculous low values (and 0) */ in incstep()
1144 debt = (debt < MAX_LMEM / stepmul) ? debt * stepmul : MAX_LMEM; in incstep()
1152 debt = (debt / stepmul) * STEPMULADJ; /* convert 'work units' to Kb */ in incstep()
/freebsd/contrib/lua/src/
H A Dlbaselib.c243 int stepmul = (int)luaL_optinteger(L, 3, 0); in luaB_collectgarbage() local
245 return pushmode(L, lua_gc(L, o, pause, stepmul, stepsize)); in luaB_collectgarbage()
H A Dlgc.c1666 int stepmul = (getgcparam(g->gcstepmul) | 1); /* avoid division by 0 */ in incstep() local
1667 l_mem debt = (g->GCdebt / WORK2MEM) * stepmul; in incstep()
1669 ? ((cast(l_mem, 1) << g->gcstepsize) / WORK2MEM) * stepmul in incstep()
1678 debt = (debt / stepmul) * WORK2MEM; /* convert 'work units' to bytes */ in incstep()
H A Dlapi.c1212 int stepmul = va_arg(argp, int); in lua_gc() local
1217 if (stepmul != 0) in lua_gc()
1218 setgcparam(g->gcstepmul, stepmul); in lua_gc()