diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-12-13 11:55:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-12-13 11:55:14 -0300 |
commit | 40565b4a089f44fdcb16f4ed0080b0ca3755e4aa (patch) | |
tree | d3d692070a250e5756fad95388606736253da8c4 /ltests.c | |
parent | ff106c028ca944ee5e95b005628e2669b87bcaf2 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | } |