Concurrent deferred reference counting with constant-time overhead
Abstract
We present a safe automatic memory reclamation approach for concurrent programs, and show that it is both theoretically and practically efficient. Our approach combines ideas from referencing counting and hazard pointers in a novel way to implement concurrent reference counting with waitfree, constant-time overhead. It overcomes the limitations of previous approaches by significantly reducing modifications to, and hence contention on, the reference counts. Furthermore, it is safer and easier to use than manual approaches. Our technique involves using a novel generalization of hazard pointers to defer reference-count decrements until no other process can be incrementing them, and to defer or elide reference-count increments for short-lived references.
We have implemented the approach as a C++ library and compared it experimentally to several methods including existing atomic reference-counting libraries and state-of-theart manual techniques. Our results indicate that our technique is faster than existing reference-counting implementations, and competitive with manual memory reclamation techniques. More importantly, it is significantly safer than manual techniques since objects are reclaimed automatically.
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.
13 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
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic cites A marriage of pointer- and epoch-based reclamation
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic cites Universal wait-free memory reclamation
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation cites A marriage of pointer- and epoch-based reclamation
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation cites Turning manual concurrent memory reclamation into automatic reference counting
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation cites Universal wait-free memory reclamation
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation cites OrcGC: automatic lock-free memory reclamation
- Turning manual concurrent memory reclamation into automatic reference counting cites NVTraverse: in NVRAM data structures, the destination is more important than the journey
- Turning manual concurrent memory reclamation into automatic reference counting cites Universal wait-free memory reclamation
- Turning manual concurrent memory reclamation into automatic reference counting cites OrcGC: automatic lock-free memory reclamation
- Concurrent Immediate Reference Counting cites Turning manual concurrent memory reclamation into automatic reference counting
- Concurrent Immediate Reference Counting cites OrcGC: automatic lock-free memory reclamation
- OrcGC: automatic lock-free memory reclamation cites A marriage of pointer- and epoch-based reclamation
- OrcGC: automatic lock-free memory reclamation cites Universal wait-free memory reclamation
- Are Your Epochs Too Epic? Batch Free Can Be Harmful cites A marriage of pointer- and epoch-based reclamation
- Are Your Epochs Too Epic? Batch Free Can Be Harmful cites Turning manual concurrent memory reclamation into automatic reference counting
- Are Your Epochs Too Epic? Batch Free Can Be Harmful cites Universal wait-free memory reclamation
- Are Your Epochs Too Epic? Batch Free Can Be Harmful cites OrcGC: automatic lock-free memory reclamation
Cited by top-tier papers13
- Turning manual concurrent memory reclamation into automatic reference countingDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2022 · 14 citations
- Modular Verification of Safe Memory Reclamation in Concurrent Separation LogicJaehwang Jung, Janggun Lee, Jaemin Choi, Jaewoo Kim et al.OOPSLA 2023 · 10 citations
- A Family of Fast and Memory Efficient Lock- and Wait-Free ReclamationRuslan Nikolaev, Binoy RavindranPLDI 2024 · 7 citations
- Concurrent Immediate Reference CountingJaehwang Jung, Jeonghyeon Kim, Matthew J. Parkinson, Jeehoon KangPLDI 2024 · 6 citations
- Are Your Epochs Too Epic? Batch Free Can Be HarmfulDaewoo Kim, Trevor Brown, Ajay SinghPPoPP 2024 · 5 citations
Builds on4
- NVTraverse: in NVRAM data structures, the destination is more important than the journeyMichal Friedman, Naama Ben-David, Yuanhao Wei, Guy E. Blelloch et al.PLDI 2020 · 52 citations
- A marriage of pointer- and epoch-based reclamationJeehoon Kang, Jaehwang JungPLDI 2020 · 25 citations
- Universal wait-free memory reclamationRuslan Nikolaev, Binoy RavindranPPoPP 2020 · 23 citations
- OrcGC: automatic lock-free memory reclamationAndreia Correia, Pedro Ramalhete, Pascal FelberPPoPP 2021 · 19 citations
Related papers
- Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data StructuresAjay Singh, Trevor BrownPPoPP 2025 · 3 citations
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structuresRuslan Nikolaev, Binoy RavindranPLDI 2021 · 18 citations
- Revisiting Partial Tracing for Safe, Efficient, and Concurrent Garbage Collection in Unmanaged LanguagesJeonghyeon Kim, Jongse Park, Youngjin Kwon, Jeehoon KangPLDI 2026
- RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data StructuresMd Amit Hasan Arovi, Ruslan NikolaevPLDI 2025 · 2 citations
- NBR: neutralization based reclamationAjay Singh, Trevor Brown, Ali José MashtizadehPPoPP 2021 · 23 citations
