luaC_collectgarbage
function · lua · primitive
- Address
0x6f7340· 41 bytes, up to0x6f7368- Meaning
- Collects garbage when the state word +0x60 is nonzero, else returns
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- ui/luastate#the-collector-switch
Finding: The collector switch in ui: the Lua state, its library and C functions
The client adds a switch to the garbage collector: the automatic collection returns at once while
the state's word +0x60 is 0. A new state sets it to 1. 0x703bc0(keep) sets it, forces a full
collection by setting the threshold to 0, and clears it unless keep is nonzero; both callers pass
1, so the switch stays on.
The derivation is in the doc.
Callers 13
- lua_newthread lua
- lua_tostring lua
- lua_pushlstring lua
- lua_pushvfstring lua
- lua_pushfstring lua
- lua_pushcclosure lua
- lua_newtable lua
- lua_setgcthreshold lua
- lua_concat lua
- lua_newuserdata lua
- luaD_call lua
- f_parser lua
- luaV_execute lua
Callees 4
- luaC_callGCTM lua
- luaC_sweep lua
- checkSizes lua
- mark lua
Calls and jumps by a bare address, from tables/calls.tsv.