Revamp of GC parameters
More uniformity when handling GC parameters + avoid divisions by 100 when applying them.
This commit is contained in:
4
ltests.c
4
ltests.c
@@ -1031,8 +1031,8 @@ static int query_inc (lua_State *L) {
|
||||
global_State *g = G(L);
|
||||
lua_pushinteger(L, gettotalobjs(g));
|
||||
lua_pushinteger(L, g->GCdebt);
|
||||
lua_pushinteger(L, getgcparam(g->gcpause));
|
||||
lua_pushinteger(L, getgcparam(g->gcstepmul));
|
||||
lua_pushinteger(L, applygcparam(g, gcpause, 100));
|
||||
lua_pushinteger(L, applygcparam(g, gcstepmul, 100));
|
||||
lua_pushinteger(L, cast(l_obj, 1) << g->gcstepsize);
|
||||
return 5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user