A Verified Generational Garbage Collector for CakeML

被引:0
|
作者
Adam Sandberg Ericsson
Magnus O. Myreen
Johannes Åman Pohjola
机构
[1] Chalmers University of Technology,
[2] Data61/CSIRO,undefined
来源
Journal of Automated Reasoning | 2019年 / 63卷
关键词
Interactive theorem proving; Formal methods; Garbage collection; Compiler verification;
D O I
暂无
中图分类号
学科分类号
摘要
This paper presents the verification of a generational copying garbage collector for the CakeML runtime system. The proof is split into an algorithm proof and an implementation proof. The algorithm proof follows the structure of the informal intuition for the generational collector’s correctness, namely, a partial collection cycle in a generational collector is the same as running a full collection on part of the heap, if one views pointers to old data as non-pointers. We present a pragmatic way of dealing with ML-style mutable state, such as references and arrays, in the proofs. The development has been fully integrated into the in-logic bootstrapped CakeML compiler, which now includes command-line arguments that allow configuration of the generational collector. All proofs were carried out in the HOL4 theorem prover.
引用
收藏
页码:463 / 488
页数:25
相关论文
共 50 条
  • [41] Generational garbage collection and the radioactive decay model
    Clinger, WD
    Hansen, LT
    ACM SIGPLAN NOTICES, 1997, 32 (05) : 97 - 108
  • [42] SIMPLE GENERATIONAL GARBAGE COLLECTION AND FAST ALLOCATION
    APPEL, AW
    SOFTWARE-PRACTICE & EXPERIENCE, 1989, 19 (02): : 171 - 183
  • [43] Concurrent remembered set refinement in generational garbage
    Detlefs, D
    Knippel, R
    Clinger, WD
    Jacob, M
    USENIX ASSOCIATION PROCEEDINGS OF THE 2ND JAVA(TM) VIRTUAL MACHINE RESEARCH AND TECHNOLOGY SYMPOSIUM, 2002, : 13 - 26
  • [44] Reducing garbage collector cache misses
    Boehm, HJ
    ACM SIGPLAN NOTICES, 2001, 36 (01) : 59 - 64
  • [45] Data Structure Aware Garbage Collector
    Cohen, Nachshon
    Petrank, Erez
    ACM SIGPLAN NOTICES, 2015, 50 (11) : 28 - 40
  • [46] LEARNING FROM A VISUALIZED GARBAGE COLLECTOR
    WEISER, M
    HAYES, B
    MACKINLAY, J
    FIFTH COMPUTER GRAPHICS WORKSHOP, 1989, : 93 - 98
  • [47] EFFICIENT, INCREMENTAL, AUTOMATIC GARBAGE COLLECTOR
    DEUTSCH, LP
    BOBROW, DG
    COMMUNICATIONS OF THE ACM, 1976, 19 (09) : 522 - 526
  • [48] A study on a garbage collector for embedded applications
    Krapf, RC
    de Mattos, JCB
    Spellmeier, G
    Carro, L
    15TH SYMPOSIUM ON INTEGRATED CIRCUITS AND SYSTEMS DESIGN, PROCEEDINGS, 2002, : 127 - 132
  • [49] Simple garbage-collector-safety
    Boehm, HJ
    ACM SIGPLAN NOTICES, 1996, 31 (05) : 89 - 98
  • [50] Formal verification of an incremental garbage collector
    Coupet-Grimal, S
    Nouvet, C
    JOURNAL OF LOGIC AND COMPUTATION, 2003, 13 (06) : 815 - 833