diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-09-19 19:02:14 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-09-19 19:02:14 -0300 |
| commit | ddfa1fbccfe4c1ec69f7396a4f5842abe70927ba (patch) | |
| tree | df467dc5dc5c64a21bb976ec661796d17d37f791 /lauxlib.c | |
| parent | b443145ff3415fcaee903a7d95fa7212df5a77db (diff) | |
| download | lua-ddfa1fbccfe4c1ec69f7396a4f5842abe70927ba.tar.gz lua-ddfa1fbccfe4c1ec69f7396a4f5842abe70927ba.tar.bz2 lua-ddfa1fbccfe4c1ec69f7396a4f5842abe70927ba.zip | |
GC back to controling pace counting bytes
Memory is the resource we want to save. Still to be reviewed again.
Diffstat (limited to 'lauxlib.c')
| -rw-r--r-- | lauxlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -618,6 +618,7 @@ LUALIB_API void luaL_pushresult (luaL_Buffer *B) { | |||
| 618 | box->bsize = 0; box->box = NULL; | 618 | box->bsize = 0; box->box = NULL; |
| 619 | lua_pushextlstring(L, s, len, allocf, ud); | 619 | lua_pushextlstring(L, s, len, allocf, ud); |
| 620 | lua_closeslot(L, -2); /* close the box */ | 620 | lua_closeslot(L, -2); /* close the box */ |
| 621 | lua_gc(L, LUA_GCSTEP, len); | ||
| 621 | } | 622 | } |
| 622 | lua_remove(L, -2); /* remove box or placeholder from the stack */ | 623 | lua_remove(L, -2); /* remove box or placeholder from the stack */ |
| 623 | } | 624 | } |
