From ddfa1fbccfe4c1ec69f7396a4f5842abe70927ba Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 19 Sep 2024 19:02:14 -0300 Subject: GC back to controling pace counting bytes Memory is the resource we want to save. Still to be reviewed again. --- lauxlib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lauxlib.c') diff --git a/lauxlib.c b/lauxlib.c index b70b7ae6..defd4d57 100644 --- a/lauxlib.c +++ b/lauxlib.c @@ -618,6 +618,7 @@ LUALIB_API void luaL_pushresult (luaL_Buffer *B) { box->bsize = 0; box->box = NULL; lua_pushextlstring(L, s, len, allocf, ud); lua_closeslot(L, -2); /* close the box */ + lua_gc(L, LUA_GCSTEP, len); } lua_remove(L, -2); /* remove box or placeholder from the stack */ } -- cgit v1.2.3-55-g6feb