A Separation Logic for Heap Space under Garbage Collection

被引:7
|
作者
Madiot, Jean-Marie [1 ]
Pottier, Francois [1 ]
机构
[1] INRIA, Paris, France
关键词
separation logic; tracing garbage collection; live data; program verification; VERIFICATION; FRAMEWORK; CHECKING;
D O I
10.1145/3498672
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present SL lozenge, a Separation Logic that allows controlling the heap space consumption of a program in the presence of dynamic memory allocation and garbage collection. A user of the logic works with space credits, a resource that is consumed when an object is allocated and produced when a group of objects is logically deallocated, that is, when the user is able to prove that it has become unreachable and therefore can be collected. To prove such a fact, the user maintains pointed-by assertions that record the immediate predecessors of every object. Our calculus, SpaceLang, has mutable state, shared-memory concurrency, and code pointers. We prove that SL lozenge is sound and present several simple examples of its use.
引用
收藏
页数:28
相关论文
共 50 条
  • [1] A High-Level Separation Logic for Heap Space under Garbage Collection
    Moine, Alexandre
    Chargueraud, Arthur
    Pottier, Francois
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (POPL): : 718 - 747
  • [2] Live Heap Space Analysis for Languages with Garbage Collection
    Albert, Elvira
    Genaim, Samir
    Gomez-Zamalloa, Miguel
    ISMM'09: PROCEEDINGS OF THE 2009 ACM SIGPLAN INTERNATIONAL SYMPOSIUM ON MEMORY MANAGEMENT, 2009, : 129 - 138
  • [3] Separation Logic in the Presence of Garbage Collection
    Hur, Chung-Kil
    Dreyer, Derek
    Vafeiadis, Viktor
    26TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS 2011), 2011, : 247 - 256
  • [4] HEAP GARBAGE COLLECTION WITH REFERENCE COUNTING
    Yang, Wuu
    Tseng, Huei-Ru
    Jan, Rong-Hong
    ICSOFT 2010: PROCEEDINGS OF THE FIFTH INTERNATIONAL CONFERENCE ON SOFTWARE AND DATA TECHNOLOGIES, VOL 2, 2010, : 267 - 270
  • [5] Partitioned garbage collection of a large stable heap
    Liskov, B
    Maheshwari, U
    Ng, T
    PROCEEDINGS OF THE FIFTH INTERNATIONAL WORKSHOP ON OBJECT-ORIENTATION IN OPERATING SYSTEMS, 1996, : 117 - 121
  • [6] Heap garbage collection in XSB: Practice and experience
    Demoen, B
    Sagonas, K
    PRACTICAL ASPECTS OF DECLARATIVE LANGUAGES, 2000, 1753 : 93 - 108
  • [7] ATOMIC GARBAGE COLLECTION - MANAGING A STABLE HEAP
    KOLODNER, E
    LISKOV, B
    WEIHL, W
    PROCEEDINGS OF THE 1989 ACM SIGMOD INTERNATIONAL CONFERENCE ON THE MANAGEMENT OF DATA, 1989, 18 : 15 - 25
  • [8] A study of page replacement performance in garbage collection heap
    Lo, CTD
    Srisa-An, W
    Chang, JM
    JOURNAL OF SYSTEMS AND SOFTWARE, 2001, 58 (03) : 235 - 245
  • [9] Heap space analysis for garbage collected languages
    Albert, Elvira
    Genaim, Samir
    Gomez-Zamalloa, Miguel
    SCIENCE OF COMPUTER PROGRAMMING, 2013, 78 (09) : 1427 - 1448
  • [10] Atomic incremental garbage collection and recovery for a large stable heap
    Kolodner, Elliot K.
    Weihl, William E.
    SIGMOD Record, 1993, 22 (02) : 177 - 186