LUA_GCSTOP

garbage-collection function and options

Values

ValueMeaning
LUA_GCSTOP0

stops the garbage collector

LUA_GCRESTART1

restarts the garbage collector

LUA_GCCOLLECT2

performs a full garbage-collection cycle

LUA_GCCOUNT3

returns the current amount of memory (in Kbytes) in use by Lua

LUA_GCCOUNTB4

returns the remainder of dividing the current amount of bytes of memory in use by Lua by 1024

LUA_GCSTEP5

performs an incremental step of garbage collection. The step "size" is controlled by data (larger values mean more steps) in a non-specified way. If you want to control the step size you must experimentally tune the value of data. The function returns 1 if the step finished a garbage-collection cycle

LUA_GCSETPAUSE6

sets data as the new value for the pause of the collector. The function returns the previous value of the pause

LUA_GCSETSTEPMUL7

sets data as the new value for the step multiplier of the collector. The function returns the previous value of the step multiplier.

LUA_GCISRUNNING9

stfu

LUA_GCGEN10
LUA_GCINC11

Meta