Exploring the barrier to entry: incremental generational garbage collection for Haskell

  • Authors:
  • A. M. Cheadle;A. J. Field;S. Marlow;S. L. Peyton Jones;R. L. While

  • Affiliations:
  • Imperial College London;Imperial College London;Microsoft Research, Cambridge;Microsoft Research, Cambridge;The University of Western Australia, Perth

  • Venue:
  • Proceedings of the 4th international symposium on Memory management
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

We document the desi n and implementation of a "production" incremental garbage collector for GHC 6.2.It builds on our earlier work (Non-stop Haskell)that exploited GHC's dynamic dispatch mechanism to hijack object code pointers so that objects in to-space automatically scavenge themselves when the mutator attempts to "enter" them. This paper details various optimisations based on code specialisation that remove the dynamic space,and associated time, overheads that accompanied our earlier scheme.We detail important implementation issues and provide a detailed evaluation of a range of design alternatives in comparison with Non-stop Haskell and GHC's current generational collector.We also show how the same code specialisation techniques can be used to eliminate the write barrier in a enerational collector.