Space efficient conservative garbage collection
Hans‐Juergen Boehm · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1993
We call a garbage collector conservative if it has only partial information about the location of pointers, and is thus forced to treat arbitrary bit patterns as though they might be pointers, in at least some cases. We show that some very inexpensive, but previously unused techniques can have dramatic impact on the effectiveness of conservative garbage collectors in reclaiming memory. Our most significant observation is that static data that appears to point to the heap should not result in misidentified references to the heap. The garbage collector has enough information to allocate around such references. We also observe that programming style has a significant impact on the amount of spuriously retained storage, typically even if the collector is not terribly conservative. Some fairly common C and C programming styles significantly decrease the effectiveness of any garbage collector. These observations suffice to explain some of the different assessments of conservative collection that have appeared in the literature.
Cited by 174 works. doi:10.1145/155090.155109
Authors
References
- Uniprocessor garbage collection techniques
- Generation Scavenging
- Garbage collection in an uncooperative environment
- Generation Scavenging
- The portable common runtime approach to interoperability
- The portable common runtime approach to interoperability
- Compacting garbage collection with ambiguous roots
- Experiences creating a portable cedar
- On Adding Garbage Collection and Runtime Types to a Strongly-Typed, Statically-Checked, Concurrent Language
- Experiences creating a portable cedar