Garbage Collection for Mostly Serialized Heaps

Chaitanya S. Koparkar, Vidush Singhal, Aditya Gupta, Mike Rainey, Michael Vollmer, Artem Pelenitsyn, Sam Tobin-Hochstadt, Milind Kulkarni, and Ryan R. Newton

ISMM 2024 · International Symposium on Memory Management · June 2024 · pp. 1-14

Acceptance rate 47%

Abstract

Over the years, traditional tracing garbage collectors have accumulated assumptions that may not hold in new language designs. For instance, we usually assume that run-time objects do not hold addressable sub-parts and have a size of at least one pointer. These fail in systems striving to eliminate pointers and represent data in a dense, serialized form, such as the Gibbon compiler. We propose a new memory management strategy for language runtimes with mostly serialized heaps. It uses a hybrid, generational collector, where regions are bump-allocated into the young generation and objects are bump-allocated within those regions. Minor collections copy data into larger regions in the old generation, compacting it further. The old generation uses region-level reference counting. The resulting system maintains high performance for data traversal programs, while significantly improving performance on other kinds of allocation patterns.

BibTeX

@inproceedings{koparkar24ismm,
  author    = {Chaitanya S. Koparkar and Vidush Singhal and Aditya Gupta and Mike Rainey and Michael Vollmer and Artem Pelenitsyn and Sam Tobin-Hochstadt and Milind Kulkarni and Ryan R. Newton},
  title     = {Garbage Collection for Mostly Serialized Heaps},
  booktitle = {Proceedings of the International Symposium on Memory Management (ISMM)},
  pages     = {1--14},
  year      = {2024},
  month     = jun,
  doi       = {10.1145/3652024.3665512}
}

Group members