OrcGC: automatic lock-free memory reclamation
Andreia Correia, Pedro Ramalhete, Pascal Felber
Abstract
Dynamic lock-free data structures require a memory reclamation scheme with a similar progress. Until today, lock-free schemes are applied to data structures on a case-by-case basis, often with algorithm modifications to the data structure.
In this paper we introduce two new lock-free reclamation schemes, one manual and the other automatic with user annotated types. The manual reclamation scheme, named pass-the-pointer (PTP), has lock-free progress and a bound on the number of unreclaimed objects that is linear with the number of threads.
The automatic lock-free memory reclamation scheme, which we named OrcGC, uses PTP and object reference counting to automatically detect when to protect and when to de-allocate an object. OrcGC has a linear bound on memory usage and supports the system allocator. We propose a new methodology that utilizes OrcGC to provide lock-free memory reclamation to a data structure.
We conducted a performance evaluation on two machines, an Intel and an AMD, applying PTP and OrcGC to several lock-free data structures, providing lock-free memory reclamation where before there was none. On the Intel machine we saw no significant performance impact, while on AMD we observed a worst-case performance drop below 50%.
• Theory of computation Concurrent algorithms.
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.
10 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
- 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 Concurrent deferred reference counting with constant-time overhead
- 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 Snapshot-free, transparent, and robust memory reclamation for lock-free data structures
- 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 Universal wait-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 Immediate Reference Counting cites Turning manual concurrent memory reclamation into automatic reference counting
- Concurrent Immediate Reference Counting cites Concurrent deferred reference counting with constant-time overhead
- Concurrent Immediate Reference Counting cites Snapshot-free, transparent, and robust memory reclamation for lock-free data structures
- Concurrent deferred reference counting with constant-time overhead cites A marriage of pointer- and epoch-based reclamation
- Concurrent deferred reference counting with constant-time overhead cites Universal wait-free memory reclamation
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structures cites A marriage of pointer- and epoch-based reclamation
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structures cites Universal wait-free memory reclamation
Cited by top-tier papers10
- Concurrent deferred reference counting with constant-time overheadDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2021 · 26 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
- 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
Builds on2
Related papers
- Are Your Epochs Too Epic? Batch Free Can Be HarmfulDaewoo Kim, Trevor Brown, Ajay SinghPPoPP 2024 · 5 citations
- Pointer life cycle types for lock-free data structures with memory reclamationRoland Meyer, Sebastian WolffPOPL 2020 · 7 citations
- RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data StructuresMd Amit Hasan Arovi, Ruslan NikolaevPLDI 2025 · 2 citations
- Leveraging Immutability to Validate Hazard Pointers for Optimistic TraversalsJanggun Lee, Jeonghyeon Kim, Jeehoon KangPLDI 2025 · 2 citations
- Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data StructuresAjay Singh, Trevor BrownPPoPP 2025 · 3 citations
