Lune

PLDI2021Top-tier venue

Snapshot-free, transparent, and robust memory reclamation for lock-free data structures

Ruslan Nikolaev, Binoy Ravindran

Abstract

We present a family of safe memory reclamation schemes, Hyaline, which are fast, scalable, and transparent to the underlying lock-free data structures. Hyaline is based on reference counting -considered impractical for memory reclamation in the past due to high overheads. Hyaline uses reference counters only during reclamation, but not while accessing individual objects, which reduces overheads for object accesses. Since with reference counters, an arbitrary thread ends up freeing memory, Hyaline's reclamation workload is (almost) balanced across all threads, unlike most prior reclamation schemes such as epoch-based reclamation (EBR) or hazard pointers (HP). Hyaline often yields (excellent) EBRgrade performance with (good) HP-grade memory efficiency, which is a challenging trade-off with all existing schemes.

Hyaline schemes offer: (i) high performance; (ii) good memory efficiency; (iii) robustness: bounding memory usage even in the presence of stalled threads, a well-known problem with EBR; (iv) transparency: supporting virtually unbounded number of threads (or concurrent entities) that can be created and deleted dynamically, and effortlessly join existent workload; (v) autonomy: avoiding special OS mechanisms and being non-intrusive to runtime or compiler environments; (vi) simplicity: enabling easy integration into unmanaged C/C++ code; and (vii) generality: supporting many data structures. All existing schemes lack one or more properties.

We have implemented and tested Hyaline on x86(-64), ARM32/64, PowerPC, and MIPS. The general approach requires LL/SC or double-width CAS, while a specialized version also works with single-width CAS. Our evaluation reveals that Hyaline's throughput is very high -it steadily outperforms EBR by 10% in one test and yields 2x gains in oversubscribed scenarios. Hyaline's superior memory efficiency is especially evident in read-dominated workloads.

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.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

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 NBR: neutralization 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
  • NBR: neutralization based reclamation cites Universal wait-free memory reclamation
  • 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
  • Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation
  • Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites A marriage of pointer- and epoch-based reclamation
  • Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites NBR: neutralization based 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 Immediate Reference Counting
  • Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites Universal wait-free memory reclamation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Adelie: continuous address space layout re-randomization for Linux driversRuslan Nikolaev, Hassan Nadeem, Cathlyn Stone, Binoy RavindranASPLOS 2022 · 20 citations
  2. Turning manual concurrent memory reclamation into automatic reference countingDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2022 · 14 citations
  3. A Family of Fast and Memory Efficient Lock- and Wait-Free ReclamationRuslan Nikolaev, Binoy RavindranPLDI 2024 · 7 citations
  4. Concurrent Immediate Reference CountingJaehwang Jung, Jeonghyeon Kim, Matthew J. Parkinson, Jeehoon KangPLDI 2024 · 6 citations
  5. Leveraging Immutability to Validate Hazard Pointers for Optimistic TraversalsJanggun Lee, Jeonghyeon Kim, Jeehoon KangPLDI 2025 · 2 citations

Builds on4

  1. A marriage of pointer- and epoch-based reclamationJeehoon Kang, Jaehwang JungPLDI 2020 · 25 citations
  2. NBR: neutralization based reclamationAjay Singh, Trevor Brown, Ali José MashtizadehPPoPP 2021 · 23 citations
  3. Universal wait-free memory reclamationRuslan Nikolaev, Binoy RavindranPPoPP 2020 · 23 citations
  4. OrcGC: automatic lock-free memory reclamationAndreia Correia, Pedro Ramalhete, Pascal FelberPPoPP 2021 · 19 citations

Related papers

  1. Fixing Non-blocking Data Structures for Better Compatibility with Memory Reclamation SchemesMd Amit Hasan Arovi, Ruslan NikolaevPPoPP 2026 · 1 citation
  2. Concurrent deferred reference counting with constant-time overheadDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2021 · 26 citations
  3. Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data StructuresAjay Singh, Trevor BrownPPoPP 2025 · 3 citations
  4. Are Your Epochs Too Epic? Batch Free Can Be HarmfulDaewoo Kim, Trevor Brown, Ajay SinghPPoPP 2024 · 5 citations
  5. RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data StructuresMd Amit Hasan Arovi, Ruslan NikolaevPLDI 2025 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines