Type-preserving garbage collectors

Citation
Dc. Wang et Aw. Appel, Type-preserving garbage collectors, ACM SIGPL N, 36(3), 2001, pp. 166-178
Citations number
32
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
36
Issue
3
Year of publication
2001
Pages
166 - 178
Database
ISI
SICI code
1523-2867(200103)36:3<166:TGC>2.0.ZU;2-3
Abstract
By combining existing type systems with standard type-based compilation tec hniques, we describe how to write strongly typed programs that include a fu nction that acts as a tracing garbage collector for the program. Since the garbage collector is an explicit function, we do not need to provide a trus ted garbage collector as a runtime service to manage memory. Since our language is strongly typed, the standard type soundness guarantee "Well typed programs do not go wrong" is extended to include the collector . Our type safety guarantee is non-trivial since not only does it guarantee the type safety of the garbage collector, but it guarantees that the colle ctor preservers the type safety of the program being garbage collected. We describe the technique in detail and report performance measurements for a few microbenchmarks as well as sketch the proofs of type soundness for our system.