Integrating region memory management and tag-free generational garbage collection

Publikation: Bidrag til tidsskriftReviewForskningfagfællebedømt

We present a region-based memory management scheme with support for generational garbage collection. The scheme features a compile-time region inference algorithm, which associates values with logical regions, and builds on a region type system that deploys region types at runtime to avoid the overhead of write barriers and to support partly tag-free garbage collection. The scheme is implemented in the MLKit Standard ML compiler, which generates native x64 machine code. Besides demonstrating a number of important formal properties of the scheme, we measure the scheme’s characteristics, for a number of benchmarks, and compare the performance of the generated executables with the performance of executables generated with the MLton state-of-the-art Standard ML compiler and configurations of the MLKit with and without region inference and generational garbage collection enabled. Although region inference often serves the purpose of generations, combining region inference with generational garbage collection is shown often to be superior to combining region inference with non-generational collection despite the overhead introduced by a larger amount of memory waste, due to region fragmentation.

OriginalsprogEngelsk
Artikelnummere4
TidsskriftJournal of Functional Programming
Vol/bind31
Antal sider31
ISSN0956-7968
DOI
StatusUdgivet - 2021

Bibliografisk note

Publisher Copyright:
© The Author(s), 2021.

ID: 306674401