interp: release execution heaps on allocation failure

This commit is contained in:
dev committed 2026-10-10 16:21:10 +03:00
1 parent 0387405d48
commit fb80413b37
4 files changed
+130 -3

No files matched your search

+2
View File
@@ -515,6 +515,8 @@ The [runtime value JSON increment](runtime-value-depth-audit.md#runtime-value-js
The [cache-free runtime increment](runtime-value-depth-audit.md#cache-free-runtime-size-query-path) removes the recursive accounted-size fallback available through public verification/runtime entry. All runtime size callers propagate temporary metadata OOM before authority charging, retaining quota, fuel and ownership behavior. The deep query-only failure is independently reproduced and repaired; verified library entry and cache equivalence are separately tested. Q-060 remains open for closing traversal checks and full per-step validation; no new normative limit, trap or diagnostic is introduced.
The [closing path/lifetime inspection](runtime-value-depth-audit.md#closing-runtime-paths-and-error-exit-cleanup) identifies and repairs a separate execution-arena leak on propagated host OOM. Failure tests across caller/result and execution/collection allocations verify complete release under ordinary/per-step collection; all 1,793 ordinary conformance cases and test-extended pass. The runtime traversal inventory is documented, with verified handle-shape preconditions for the remaining one-borrow selectors. Both full GC processes are now confirmed live by host-namespace inspection, correcting an earlier mistaken termination inference; an additional std run emits each completed record immediately. None has terminal full-pass evidence yet, so Q-060 remains open for full per-step validation.
## Q-061 — Source expression/statement nesting and native recursion
Inspection during Q-059's closing inventory finds native recursion through source expression parsing (`binary`/`unary`), expression queries (`peekType`/`useIn`) and generic expression transformation (`expression`/`walk`). The fixed generic type/instantiation guards do not establish a bound on arbitrary expression or statement nesting. **Unverified:** no expression/statement stack-exhaustion probe has been run in this audit; this entry records inspection risk, not an observed failure or a new acceptance rule.