Skip to content

[Flow 2.0] Domain-bound allocation tracking for arenas and heap regions #690

Closed

Description

@godofecht

ROADMAP-SYNC: domain-bound-allocation-tracking-for-arenas-and-heap-regions

Part of epic #679.

Problem & Goal

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.

Activity

  1. added
    enhancement
    roadmap
    on Aug 21, 2026
  2. godofecht commented on Oct 1, 2026

    @godofecht
    ContributorAuthor

    Reference implementation against the retired Python compiler: tag archive/feat/690-arena-domains (c4fb09c). Useful as a design starting point for the Flow implementation.

  3. added 2 commits that reference this issue on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerenhancementroadmapstdlib

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions