nx_arena_reset_probe.nx
buildroot/runtime/nx_arena_reset_probe.nx
about
nx_arena_reset_probe.nx -- bite-proof that sys_arena_mark/sys_arena_reset ACTUALLY RECLAIM memory
(not merely run). MEASURED, not asserted: read this process's own VmRSS from /proc/self/status at
three points -- after warmup+mark, after allocating many small chunks (RSS must RISE), and after
reset+re-churn (RSS must NOT double). A reset that returns 1 but frees nothing is the exact failure
this catches. license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 8 | const K_MAGIC_8192: i64 = 8192 |
| 9 | const K_MAGIC_8191: i64 = 8191 |
| 10 | const K_MAGIC_1024: i64 = 1024 |
| 11 | const K_MAGIC_16000: i64 = 16000 |
| 12 | const K_MAGIC_48000: i64 = 48000 |
functions
| 14 | func ap_vmrss() -> i64 |
| 41 | func ap_churn(nbytes_total: i64) -> i64 |
| 56 | func main() -> i64 |