Towards a Model Checking Framework for a New Collector Framework
Open Access
- 14 September 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 128-139
Abstract
Garbage collectors provide memory safety, an important step toward program correctness. However, correctness of the collector itself can be challenging to establish, given both the style in which such systems are written and the weakly-ordered memory accesses of modern hardware. One way to maximize benefits is to use a framework in which effort can be focused on the correctness of small, modular critical components from which various collectors may be composed. Full proof of correctness is likely impractical, so we propose to gain a degree of confidence in collector correctness by applying model checking to critical kernels within a garbage collection framework. We further envisage a model framework, paralleling the framework nature of the collector, in hope that it will be easy to create new models for new collectors. We describe here a prototype model structure, and present results of model checking both stop-the-world and snapshot-at-the-beginning concurrent marking. We found useful regularities of model structure, and that models could be checked within possible time and space budgets on capable servers. This suggests that collectors built in a modular style might be model checked, and further that it may be worthwhile to develop a model checking framework with a domain-specific language from which to generate those models.Keywords
Funding Information
- National Science Foundation (2018372 and 1909731)
This publication has 15 references indexed in Scilit:
- The verified CakeML compiler backendJournal of Functional Programming, 2019
- Transactional SapphireACM Transactions on Programming Languages and Systems, 2018
- A Verified Generational Garbage Collector for CakeMLJournal of Automated Reasoning, 2018
- Verifying a Concurrent Garbage Collector Using a Rely-Guarantee Methodology2017
- A Verified Generational Garbage Collector for CakeML2017
- A new verified compiler backend for CakeML2016
- Relaxing safely: verified on-the-fly garbage collection for x86-TSO2015
- Oil and water? High performance garbage collection in Java with MMTk2004
- Real-time garbage collection on general-purpose machinesJournal of Systems and Software, 1990
- Communicating sequential processesCommunications of the ACM, 1978