benilla-re systems structs docs

mark

function · lua · orchestration

Address
0x6f73e0 · 143 bytes, up to 0x6f746e
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

Calls and jumps by a bare address, from tables/calls.tsv.