Garbage collection safety for region-based memory management

被引:4
|
作者
Elsman, M [1 ]
机构
[1] IT Univ Copenhaven, DK-2400 Copenhagen NV, Denmark
关键词
performance; languages; theory; garbage collection; region inference; standard ML;
D O I
10.1145/640136.604190
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper, we prove the safety of integrating region-based memory management and Cheney-style copying garbage collection. The safety property relies on a refinement of the region typing rules that forbids dangling pointers during evaluation. To accommodate the triggering of garbage collection at any step in the evaluation process, we base our type-safety result for the region-based system on a small-step contextual semantics and show that whenever a well-typed expression reduces to another expression, possibly by deallocating a region, then no dangling pointer is introduced. Because there are no dangling pointers in the initial heap, no dangling pointers appear during evaluation. Although in principle, the refinement of the region typing rules leads to less flexibility and can cause worse memory behavior than when dangling pointers are permitted, experiments show that, for a range of benchmark programs, the refinement has little effect on overall memory behavior.
引用
收藏
页码:123 / 134
页数:12
相关论文
共 50 条
  • [21] Quantifying the performance of garbage collection vs. explicit memory management
    Hertz, M
    Berger, ED
    [J]. ACM SIGPLAN NOTICES, 2005, 40 (10) : 313 - 326
  • [22] An Efficient Garbage Collection for Flash Memory-Based Virtual Memory Systems
    Ji, Seunggu
    Shin, Dongkun
    [J]. IEEE TRANSACTIONS ON CONSUMER ELECTRONICS, 2010, 56 (04) : 2355 - 2363
  • [23] Dynamic memory allocation and garbage collection
    Boehm, Hans-J.
    [J]. Computers in physics, 1995, 9 (03): : 297 - 303
  • [24] The transactional memory/garbage collection analogy
    Grossman, Dan
    [J]. ACM SIGPLAN NOTICES, 2007, 42 (10) : 695 - 706
  • [25] The Transactional Memory/Garbage Collection Analogy
    Grossman, Dan
    [J]. OOPSLA: 22ND INTERNATIONAL CONFERENCE ON OBJECT-ORIENTED PROGRAMMING, SYSTEMS, LANGUAGES, AND APPLICATIONS, PROCEEDINGS, 2007, : 695 - 706
  • [26] Combining region inference and garbage collection
    Hallenberg, N
    Elsman, M
    Tofte, M
    [J]. ACM SIGPLAN NOTICES, 2002, 37 (05) : 141 - 152
  • [27] Garbage collection for safety critical Java
    Institute of Computer Engineering, Vienna University of Technology
    不详
    [J]. (85-93):
  • [28] A Formal Soundness Proof of Region-Based Memory Management for Object-Oriented Paradigm
    Craciun, Florin
    Qin, Shengchao
    Chin, Wei-Ngan
    [J]. FORMAL METHODS AND SOFTWARE ENGINEERING, PROCEEDINGS, 2008, 5256 : 126 - +
  • [29] Abstract Interpretation of LLVM with a Region-Based Memory Model
    Gurfinkel, Arie
    Navas, Jorge A.
    [J]. SOFTWARE VERIFICATION, 2022, 13124 : 122 - 144
  • [30] Optimal garbage collection policy for a memory-management system with job swapping
    Satow, T
    Yasui, K
    Nakagawa, T
    [J]. ELECTRONICS AND COMMUNICATIONS IN JAPAN PART III-FUNDAMENTAL ELECTRONIC SCIENCE, 1998, 81 (10): : 9 - 15