Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

collectgarbage

Philipp Janda edited this page Mar 11, 2015 · 2 revisions

collectgarbage

Lua 5.1 restarts a stopped garbage collector if the user manually runs collectgarbage("collect"). Lua 5.2 does not. The compatibility implementation keeps track of the previous state of the garbage collector to simulate the 5.2 behavior, but it cannot monitor calls to the lua_gc C API.

Clone this wiki locally