aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-12-13 11:55:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-12-13 11:55:14 -0300
commit40565b4a089f44fdcb16f4ed0080b0ca3755e4aa (patch)
treed3d692070a250e5756fad95388606736253da8c4 /ltests.c
parentff106c028ca944ee5e95b005628e2669b87bcaf2 (diff)
downloadlua-40565b4a089f44fdcb16f4ed0080b0ca3755e4aa.tar.gz
lua-40565b4a089f44fdcb16f4ed0080b0ca3755e4aa.tar.bz2
lua-40565b4a089f44fdcb16f4ed0080b0ca3755e4aa.zip
Revamp of GC parameters
More uniformity when handling GC parameters + avoid divisions by 100 when applying them.
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c4
1 files changed, 2 insertions, 2 deletions
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) {
1031 global_State *g = G(L); 1031 global_State *g = G(L);
1032 lua_pushinteger(L, gettotalobjs(g)); 1032 lua_pushinteger(L, gettotalobjs(g));
1033 lua_pushinteger(L, g->GCdebt); 1033 lua_pushinteger(L, g->GCdebt);
1034 lua_pushinteger(L, getgcparam(g->gcpause)); 1034 lua_pushinteger(L, applygcparam(g, gcpause, 100));
1035 lua_pushinteger(L, getgcparam(g->gcstepmul)); 1035 lua_pushinteger(L, applygcparam(g, gcstepmul, 100));
1036 lua_pushinteger(L, cast(l_obj, 1) << g->gcstepsize); 1036 lua_pushinteger(L, cast(l_obj, 1) << g->gcstepsize);
1037 return 5; 1037 return 5;
1038} 1038}