Concurrent Immediate Reference Counting
Jaehwang Jung, Jeonghyeon Kim, Matthew J. Parkinson, Jeehoon Kang
Abstract
Memory management for optimistic concurrency in unmanaged programming languages is challenging. Safe memory reclamation (SMR) algorithms help address this, but they are difficult to use correctly. Automatic reference counting provides a simpler interface, but it has been less efficient than SMR algorithms. Recently, there has been a push to apply the optimizations used in garbage collectors for managed languages to elide reference count updates from local references. Notably, Fast Reference Counter, OrcGC, and Concurrent Deferred Reference Counting use SMR algorithms to protect local references by deferring decrements or reclamation. While they show a significant performance improvement, their use of deferral may result in growing memory usage due to slow reclamation of linked structures, and suboptimal performance in update-heavy workloads. We present Concurrent Immediate Reference Counting (CIRC), a new combination of SMR algorithms with reference counting. CIRC employs deferral like other modern methods, but it avoids their problems with novel algorithms for (1) immediately reclaiming linked structures recursively by tracking the reachability of each object, and (2) applying decrements immediately and deferring only the reclamation. Our experiments show that CIRC’s memory usage does not grow over time and is only slightly higher than the underlying SMR. Moreover, CIRC further narrows the performance gap between the underlying SMR, positioning it as a promising solution to safe automatic memory management for highly concurrent data structures in unmanaged languages.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Turning manual concurrent memory reclamation into automatic reference counting cites Concurrent deferred reference counting with constant-time overhead
- Turning manual concurrent memory reclamation into automatic reference counting cites OrcGC: automatic lock-free memory reclamation
- Turning manual concurrent memory reclamation into automatic reference counting cites Snapshot-free, transparent, and robust memory reclamation for lock-free data structures
- Concurrent deferred reference counting with constant-time overhead cites OrcGC: automatic lock-free memory reclamation
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structures cites OrcGC: automatic lock-free memory reclamation
- Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites Turning manual concurrent memory reclamation into automatic reference counting
- Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites Concurrent deferred reference counting with constant-time overhead
- Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites Snapshot-free, transparent, and robust memory reclamation for lock-free data structures
- RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures cites Turning manual concurrent memory reclamation into automatic reference counting
- RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures cites Concurrent deferred reference counting with constant-time overhead
- RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures cites OrcGC: automatic lock-free memory reclamation
- RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures cites Snapshot-free, transparent, and robust memory reclamation for lock-free data structures
Cited by top-tier papers2
Builds on5
- Concurrent deferred reference counting with constant-time overheadDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2021 · 26 citations
- Low-latency, high-throughput garbage collectionWenyu Zhao, Stephen M. Blackburn, Kathryn S. McKinleyPLDI 2022 · 24 citations
- OrcGC: automatic lock-free memory reclamationAndreia Correia, Pedro Ramalhete, Pascal FelberPPoPP 2021 · 19 citations
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structuresRuslan Nikolaev, Binoy RavindranPLDI 2021 · 18 citations
- Turning manual concurrent memory reclamation into automatic reference countingDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2022 · 14 citations
Related papers
- Revisiting Partial Tracing for Safe, Efficient, and Concurrent Garbage Collection in Unmanaged LanguagesJeonghyeon Kim, Jongse Park, Youngjin Kwon, Jeehoon KangPLDI 2026
- A marriage of pointer- and epoch-based reclamationJeehoon Kang, Jaehwang JungPLDI 2020 · 25 citations
- Pointer life cycle types for lock-free data structures with memory reclamationRoland Meyer, Sebastian WolffPOPL 2020 · 7 citations
- Perceus: garbage free reference counting with reuseAlex Reinking, Ningning Xie, Leonardo de Moura, Daan LeijenPLDI 2021 · 31 citations
- NBR: neutralization based reclamationAjay Singh, Trevor Brown, Ali José MashtizadehPPoPP 2021 · 23 citations
