Concurrent deferred reference counting with constant-time overhead
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 13 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic 引用了 A marriage of pointer- and epoch-based reclamation
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic 引用了 Universal wait-free memory reclamation
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation 引用了 A marriage of pointer- and epoch-based reclamation
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation 引用了 Turning manual concurrent memory reclamation into automatic reference counting
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation 引用了 Universal wait-free memory reclamation
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation 引用了 OrcGC: automatic lock-free memory reclamation
- Turning manual concurrent memory reclamation into automatic reference counting 引用了 NVTraverse: in NVRAM data structures, the destination is more important than the journey
- Turning manual concurrent memory reclamation into automatic reference counting 引用了 Universal wait-free memory reclamation
- Turning manual concurrent memory reclamation into automatic reference counting 引用了 OrcGC: automatic lock-free memory reclamation
- Concurrent Immediate Reference Counting 引用了 Turning manual concurrent memory reclamation into automatic reference counting
- Concurrent Immediate Reference Counting 引用了 OrcGC: automatic lock-free memory reclamation
- OrcGC: automatic lock-free memory reclamation 引用了 A marriage of pointer- and epoch-based reclamation
- OrcGC: automatic lock-free memory reclamation 引用了 Universal wait-free memory reclamation
- Are Your Epochs Too Epic? Batch Free Can Be Harmful 引用了 A marriage of pointer- and epoch-based reclamation
- Are Your Epochs Too Epic? Batch Free Can Be Harmful 引用了 Turning manual concurrent memory reclamation into automatic reference counting
- Are Your Epochs Too Epic? Batch Free Can Be Harmful 引用了 Universal wait-free memory reclamation
- Are Your Epochs Too Epic? Batch Free Can Be Harmful 引用了 OrcGC: automatic lock-free memory reclamation
引用它的顶会 Paper13
- Turning manual concurrent memory reclamation into automatic reference countingDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2022 · 14 次引用
- Modular Verification of Safe Memory Reclamation in Concurrent Separation LogicJaehwang Jung, Janggun Lee, Jaemin Choi, Jaewoo Kim 等OOPSLA 2023 · 10 次引用
- A Family of Fast and Memory Efficient Lock- and Wait-Free ReclamationRuslan Nikolaev, Binoy RavindranPLDI 2024 · 7 次引用
- Concurrent Immediate Reference CountingJaehwang Jung, Jeonghyeon Kim, Matthew J. Parkinson, Jeehoon KangPLDI 2024 · 6 次引用
- Are Your Epochs Too Epic? Batch Free Can Be HarmfulDaewoo Kim, Trevor Brown, Ajay SinghPPoPP 2024 · 5 次引用
它引用的 Paper4
- NVTraverse: in NVRAM data structures, the destination is more important than the journeyMichal Friedman, Naama Ben-David, Yuanhao Wei, Guy E. Blelloch 等PLDI 2020 · 52 次引用
- A marriage of pointer- and epoch-based reclamationJeehoon Kang, Jaehwang JungPLDI 2020 · 25 次引用
- Universal wait-free memory reclamationRuslan Nikolaev, Binoy RavindranPPoPP 2020 · 23 次引用
- OrcGC: automatic lock-free memory reclamationAndreia Correia, Pedro Ramalhete, Pascal FelberPPoPP 2021 · 19 次引用
相关 Paper
- Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data StructuresAjay Singh, Trevor BrownPPoPP 2025 · 3 次引用
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structuresRuslan Nikolaev, Binoy RavindranPLDI 2021 · 18 次引用
- 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 次引用
- NBR: neutralization based reclamationAjay Singh, Trevor Brown, Ali José MashtizadehPPoPP 2021 · 23 次引用
