mark
function · lua · orchestration
- Address
0x6f73e0· 143 bytes, up to0x6f746e- Signature
void __fastcall (lua_State *L)- Meaning
- Marks what the roots reach, clears weak tables, separates and marks the userdata to finalize
- Confidence
- verified, proof one
- Finding
- lua/gc#clearing-weak-keys
Finding: Clearing weak keys in lua: marking
cleartablekeys(list) walks a list of tables through +0x18, each one's nodes from the last; a
node whose key valismarked refuses is removed by removekey: its value made nil with the current
context word, a collectable key's tag set to −1 (LUA_TNONE), the node kept. valismarked(o)
first marks a string, so every string key of a weak-keyed table survives, its value nil or not;
then it answers 1 for a tag below 4, else the mark bit. mark clears the values of the both-weak
and value-weak lists, then, after the second propagation, the keys of the first both-weak list and
of the key-weak list, the values of the value-weak list, and both of the second both-weak list.
The derivation is in the doc.
Callers 1
Callees 6
- luaC_separateudata lua
- 0x6f7470 lua
- 0x6f7510 lua
- cleartablekeys lua
- 0x6f7a20 lua
- 0x6f7ab0 lua
Calls and jumps by a bare address, from tables/calls.tsv.