Compiler support for garbage collection in a statically typed language
- 1 July 1992
- journal article
- conference paper
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 27 (7) , 273-282
- https://doi.org/10.1145/143103.143140
Abstract
We consider the problem of supporting compacting garbage collection in the presence of modern compiler optimizations. Since our collector may move any heap object, it must accurately locate, follow, and update all pointers and values derived from pointers. To assist the collector, we extend the compiler to emit tables describing live pointers, and values derived from pointers, at each program location where collection may occur. Significant results include identification of a number of problems posed by optimizations, solutions to those problems, a working compiler, and experimental data concerning table sizes, table compression, and time overhead of decoding tables during collection. While gc support can affect the code produced, our sample programs show no significant changes, the table sizes are a modest fraction of the size of the optimized code, and stack tracing is a small fraction of total gc time. Since the compiler enhancements are also modest, we conclude that the approach is practical.Keywords
This publication has 7 references indexed in Scilit:
- A comparative performance evaluation of write barrier implementationPublished by Association for Computing Machinery (ACM) ,1992
- Making pure object-oriented languages practicalACM SIGPLAN Notices, 1991
- Tag-free garbage collection for strongly typed programming languagesACM SIGPLAN Notices, 1991
- Garbage collection in an uncooperative environmentSoftware: Practice and Experience, 1988
- Performance and Evaluation of LISP SystemsPublished by MIT Press ,1985
- Generation ScavengingPublished by Association for Computing Machinery (ACM) ,1984
- PS-algolACM SIGPLAN Notices, 1982