You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Flow 2.0] Domain-bound allocation tracking for arenas and heap regions #690
Pointers returned from or currently lack domain bindings in the type checker. Storing a frame-arena pointer into an application static is not prevented statically.
This issue tracks tying memory returned by an arena or region allocator to the lifetime domain of that arena instance.
Deliverables
Associate allocator instances with their declared lifetime domain.
Propagate the domain to all pointers produced by the allocator.
Prevent arena-allocated references from escaping past arena reset boundaries.
Reference implementation against the retired Python compiler: tag archive/feat/690-arena-domains (c4fb09c). Useful as a design starting point for the Flow implementation.
Activity
typecheck: track arena_alloc pointer domain to its arena argument (#690)
typecheck: track arena_alloc pointer domain to its arena argument (#690)
typecheck: track arena_alloc pointer domain to its arena argument (#690)
typecheck: track arena_alloc pointer domain to its arena argument (#826)
godofecht commentedon Oct 1, 2026
Reference implementation against the retired Python compiler: tag archive/feat/690-arena-domains (c4fb09c). Useful as a design starting point for the Flow implementation.
fix: keep parameter-arena stores off the span-outlives fallback
fix: keep the #690 accepted language test off local-to-static escapes
fix: regenerate bootstrap C after arena instance domain tracking
Merge origin/main into cursor/arena-domain-tracking-690-bb9d and rege…
#690 Domain-bound allocation tracking for arenas and heap regions (#1351
Merge origin/main (7cd0ce3) into the #765 remaining-slice branch
fix(lifetime): preserve arena domain through casts and pointer offsets (
test(lifetime): arena domain survives cast/pointer-derived aliases (#690
test(lifetime): arena domain survives cast/pointer-derived aliases (#690
feat: add request and persistent lifetime domains (#679)
feat: add request and persistent lifetime domains (#679)
feat: add request and persistent lifetime domains (#679)