Memory reclamation
Safe removal of memory in lock-free data structures without risk of use-after-free on other threads.
Lock-free structures are simple to read from but tricky to remove from, because a thread might be preparing to read an object the instant another thread deletes it. Memory reclamation solves this by deferring actual deallocation until all reads are provably complete. Two main strategies are hazard pointers (implicitly count references) and epoch-based reclamation (wait for a global "epoch transition"). Without correct reclamation, lock-free structures become unsafe—classic use-after-free bugs or forced fallback to garbage collection. Many modern languages (Rust, Java) handle this automatically; C/C++ lock-free code often relies on these strategies.