Luajit::LuaGC
Controls the Lua Garbage Collector
Instance methods
Returns the current amount of memory (in KBs) in use by Lua
Raises LuaError if operation fails
Returns the remainder of dividing the current amount of bytes of memory in use by Lua by 1024
Raises LuaError if operation fails
Sets data as the new value for the pause of the collector
Returns the previous value of the pause.
Raises LuaError if operation fails
Sets data as the new value for the step multiplier of the collector
Returns the previous value of the step multiplier.
Raises LuaError if operation fails
Performs an incremental step of garbage collection
To control the step size, you must experimentally tune the value of size.
Returns 1 if the step finished a garbage-collection cycle.
Raises LuaError if operation fails