Better static memory management
Alex Aiken, Manuel A. Fähndrich, Raph Levien · ACM SIGPLAN Notices · 1995
Static memory management replaces runtime garbage collection with compile-time annotations that make all memory allocation and deallocation explicit in a program. We improve upon the Tofte/Talpin region-based scheme for compile-time memory management[TT94]. In the Tofte/Talpin approach, all values, including closures, are stored in regions. Region lifetimes coincide with lexical scope, thus forming a runtime stack of regions and eliminating the need for garbage collection. We relax the requirement that region lifetimes be lexical. Rather, regions are allocated late and deallocated as early as possible by explicit memory operations. The placement of allocation and deallocation annotations is determined by solving a system of constraints that expresses all possible annotations. Experiments show that our approach reduces memory requirements significantly, in some cases asymptotically.
Cited by 5 works. doi:10.1145/223428.207137
Authors
References
- Department of Computer Science
- On-the-fly garbage collection
- Cambridge University Press, 1696-1712
- Implementation of the typed call-by-value λ-calculus using a stack of regions
- Lifetime analysis of dynamically allocated objects
- On determining lifetime and aliasing of dynamically allocated data in higher-order functional specifications
- Control flow analysis in scheme
- Global tagging optimization by type inference
- Real-time replication garbage collection
- Safety analysis versus type inference for partial types