Space efficient conservative garbage collection
Space efficient conservative garbage collection
复制标题
节省空间的保守垃圾收集
DOI:
--
复制
发表时间:
1993
期刊:
影响因子:
--
通讯作者:
H. Boehm
中科院分区:
文献类型:
--
作者:
H. Boehm
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 style 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.