PITFALLS OF CONSERVATIVE GARBAGE COLLECTION

被引:11
作者
WENTWORTH, EP
机构
[1] Department of Computer Science, Rhodes University, Grahamstown, 6140
关键词
Garbage collection; Storage management;
D O I
10.1002/spe.4380200707
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Researchers have recently proposed conservative garbage collection as a technique which allows smooth integration of automatic memory management into existing high‐level languages. Conservative techniques carry the cost of some leakage‐they fail to reclaim all the available garbage. This paper reports on a conservative collector and measurements of its leakage. The results indicate that the loss depends critically on the application: a Lisp interpreter shows very small leakage (typically less than 5 per cent of the total heap space for classroom examples), whereas the garbage collector collapses completely when used with a KRC interpreter. Uncovering the reasons reveals that it is possible to write Lisp programs that also fail. Previous work has used very sparsely populated address spaces where the probability for leakage was minimized. This work considers small, densely populated address spaces, and probably represents a worst‐case scenario. Although the conservative technique appears to be a cost‐effective and clean way of integrating automatic memory management into an off‐the‐shelf host language, we are led to conclude that it is not reliable in all situations. Copyright © 1990 John Wiley & Sons, Ltd
引用
收藏
页码:719 / 727
页数:9
相关论文
共 17 条