A Reference-Counting Garbage Collection Algorithm for Cyclical Functional Programming

被引:0
|
作者
Trancon y Widemann, Baltasar [1 ]
机构
[1] Univ Bayreuth, D-95440 Bayreuth, Germany
来源
ISMM'08: PROCEEDINGS OF THE 2008 INTERNATIONAL SYMPOSIUM ON MEMORY MANAGEMENT | 2008年
关键词
memory management; garbage collection; reference counting; cycles; functional programming;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Reference-counting garbage collection is known to have problems with the collection of cyclically connected data. There are two historically significant styles of cycle-aware algorithms: The style of Brownbridge that maintains a subset of marked edges and the invariant that every cycle contains at least one marked edge, and the style of Martinez-Lins-Wachenchauzer (MLW) that involves local mark-and-scan procedures to detect cycles. The former is known to be difficult to design and implement correctly, and the latter to have pathological efficiency for a number of very typical Situations. We present a novel algorithm that combines both approaches to obtain reasonably efficient local mark-and-scan phases with a marking invariant that is rather cheap to maintain. We demonstrate that the assumptions of this algorithm about mutator activity patterns make it well-suited, but not limited, to a functional programming technique for cyclic data. We evaluate the approach in comparison with simple and more sophisticated MLW algorithms using a simple benchmark based oil that functional paradigm.
引用
收藏
页码:71 / 80
页数:10
相关论文
共 42 条
  • [1] A Principled Approach to Nondeferred Reference-Counting Garbage Collection
    Joisha, Pramod G.
    VEE'08: PROCEEDINGS OF THE FOURTH INTERNATIONAL CONFERENCE ON VIRTUAL EXECUTION ENVIRONMENTS, 2008, : 131 - 140
  • [2] An on-the-fly reference-counting garbage collector for Java']Java
    Levanoni, Y
    Petrank, E
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2006, 28 (01): : 1 - 69
  • [3] Overlooking Roots: A Framework for Making Nondeferred Reference-Counting Garbage Collection Fast
    Joisha, Pramod G.
    ISMM'07: PROCEEDINGS OF THE 2007 INTERNATIONAL SYMPOSIUM ON MEMORY MANAGEMENT, 2007, : 141 - 157
  • [5] 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
  • [6] Biased Reference Counting: Minimizing Atomic Operations in Garbage Collection
    Choi, Jiho
    Shull, Thomas
    Torrellas, Josep
    27TH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES (PACT 2018), 2018,
  • [7] Flexible Reference-Counting-Based Hardware Acceleration for Garbage Collection
    Joao, Jose A.
    Mutlu, Onur
    Patt, Yale N.
    ISCA 2009: 36TH ANNUAL INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE, 2009, : 418 - 428
  • [8] Remote reference counting: Distributed garbage collection with low communication and computation overhead
    Kogan, D
    Schuster, A
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2000, 60 (10) : 1260 - 1292
  • [9] Garbage collection in object-oriented databases using transactional cyclic reference counting
    Roy, P
    Seshadri, S
    Silberschatz, A
    Sudarshan, S
    Ashwin, S
    VLDB JOURNAL, 1998, 7 (03): : 179 - 193
  • [10] Garbage collection in object-oriented databases using transactional cyclic reference counting
    P. Roy
    S. Seshadri
    A. Silberschatz
    S. Sudarshan
    S. Ashwin
    The VLDB Journal, 1998, 7 : 179 - 193