From 40565b4a089f44fdcb16f4ed0080b0ca3755e4aa Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 13 Dec 2022 11:55:14 -0300 Subject: Revamp of GC parameters More uniformity when handling GC parameters + avoid divisions by 100 when applying them. --- ltests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index d5d2ae68..e2e0d983 100644 --- a/ltests.c +++ b/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; } -- cgit v1.2.3-55-g6feb