lua_getgcthreshold
function · lua · boundary
- Address
0x6f43e0· 10 bytes, up to0x6f43e9- Meaning
- Returns the collector threshold in kilobytes
- Confidence
- verified, proof two
- Finding
- lua/api#state-and-upvalues
Finding: State and upvalues in lua: the C API
lua_atpanic swaps the panic function of the global state, lua_getgcthreshold and
lua_getgccount answer the collector threshold and the allocated bytes in kilobytes, and
lua_version answers the text Lua 5.0. lua_getupvalue and lua_setupvalue read and write
the nth upvalue of a function through aux_upvalue, which answers its name: the empty string
for a C function, the debug name for a Lua one, null past the count.
| function | name | decided by |
|---|---|---|
0x6f3020 | lua_atpanic | swaps [G+0x2c] with edx (0x6f3023, 0x6f3026) |
0x6f43e0 | lua_getgcthreshold | [G+0x24] >> 10 (0x6f43e6) |
0x6f43f0 | lua_getgccount | [G+0x28] >> 10 (0x6f43f6) |
0x6f4430 | lua_version | returns the string Lua 5.0 (0x6f4430) |
0x6f4660 | lua_getupvalue | calls aux_upvalue (0x6f4671), copies the value to the top (0x6f46b3) |
0x6f46e0 | aux_upvalue | tag 6 (0x6f4745), C byte; a C function answers the empty string and closure+n*16, a Lua one the debug name |
0x6f47b0 | lua_setupvalue | calls aux_upvalue (0x6f47c0), copies the top into the slot |
The derivation is in the doc.
Callers 1
- ScriptGcInfo ui
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.