Reference escape analysis
Young Gil Park, Benjamin Goldberg · 1991
In reference counting schemes for automatically reclaiming storage, each time a reference to an object is created or destroyed, the reference count of the object needs to be updated.This may involve expensive inter-processor message exchanges in distributed environments.This overhead can be reduced by analyzing the lifetimes of references to avoid unnecessary updatings.This paper describes a technique for reducing the runtime reference counting overhead through compile-time optimization.We present a compile-time analysis called re~erence escape analysis for higher-order functional languages that determines whether the lifetime of a reference ezceeds the lifetime of the environment in which the reference was created.Using this statically inferred information, a method for optimizing reference counting schemes is described.Our method can be applied to reference counting schemes in both uniprocessor and multiprocessor environments.
Cited by 22 works. doi:10.1145/115865.115883 Open-access PDF
Authors
References
- An efficient, incremental, automatic garbage collector
- A semantic model of reference counting and its abstraction (detailed summary)
- Abstract interpretation and optimising transformations for applicative programs
- Abstract interpretation of declarative languages
- On determining lifetime and aliasing of dynamically allocated data in higher-order functional specifications
- Distributed garbage collection using reference counting
- Shifting garbage collection overhead to compile time
- Higher-order strictness analysis in untyped lambda calculus
- The theory of strictness analysis for higher order functions
- Strictness analysis and polymorphic invariance