Leaky regions: linking reclamation hints to program structure

This paper presents a new mechanism for automatic storage reclamation based on exploiting information about the relationship between object lifetimes and points in a program's execution. In our system method calls are annotated to indicate that most of the objects allocated during the call are expected to be unreachable by the time it returns. A write barrier detects if objects escape from one of these calls, causing them to be retained and subsequently managed by an ordinary generational collector. We describe a tool that helps select suitable annotation sites and we outline how this process can be fully automated. We show that if these annotations are placed judiciously then the additional costs of the write barrier can be outweighed by savings in collection time.

tr-2006-84.pdf
PDF file

Details

TypeTechReport
NumberMSR-TR-2006-84
Pages10
InstitutionMicrosoft Research Cambridge
> Publications > Leaky regions: linking reclamation hints to program structure