Concurrent Immediate Reference Counting
Jaehwang Jung, Jeonghyeon Kim, Matthew J. Parkinson, Jeehoon Kang
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Turning manual concurrent memory reclamation into automatic reference counting 引用了 Concurrent deferred reference counting with constant-time overhead
- Turning manual concurrent memory reclamation into automatic reference counting 引用了 OrcGC: automatic lock-free memory reclamation
- Turning manual concurrent memory reclamation into automatic reference counting 引用了 Snapshot-free, transparent, and robust memory reclamation for lock-free data structures
- Concurrent deferred reference counting with constant-time overhead 引用了 OrcGC: automatic lock-free memory reclamation
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structures 引用了 OrcGC: automatic lock-free memory reclamation
- Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals 引用了 Turning manual concurrent memory reclamation into automatic reference counting
- Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals 引用了 Concurrent deferred reference counting with constant-time overhead
- Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals 引用了 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 引用了 Turning manual concurrent memory reclamation into automatic reference counting
- RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures 引用了 Concurrent deferred reference counting with constant-time overhead
- RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures 引用了 OrcGC: automatic lock-free memory reclamation
- RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures 引用了 Snapshot-free, transparent, and robust memory reclamation for lock-free data structures
引用它的顶会 Paper2
它引用的 Paper5
- Concurrent deferred reference counting with constant-time overheadDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2021 · 26 次引用
- Low-latency, high-throughput garbage collectionWenyu Zhao, Stephen M. Blackburn, Kathryn S. McKinleyPLDI 2022 · 24 次引用
- OrcGC: automatic lock-free memory reclamationAndreia Correia, Pedro Ramalhete, Pascal FelberPPoPP 2021 · 19 次引用
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structuresRuslan Nikolaev, Binoy RavindranPLDI 2021 · 18 次引用
- Turning manual concurrent memory reclamation into automatic reference countingDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2022 · 14 次引用
相关 Paper
- 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 次引用
- Pointer life cycle types for lock-free data structures with memory reclamationRoland Meyer, Sebastian WolffPOPL 2020 · 7 次引用
- Perceus: garbage free reference counting with reuseAlex Reinking, Ningning Xie, Leonardo de Moura, Daan LeijenPLDI 2021 · 31 次引用
- NBR: neutralization based reclamationAjay Singh, Trevor Brown, Ali José MashtizadehPPoPP 2021 · 23 次引用
