aba-problem · research · also ABA

ABA problem

The ABA problem occurs when a value changes from A to B and back to A, making equality with an earlier observation insufficient to detect the intervening changes.

Mechanism: A successful value comparison does not prove that a location stayed unchanged. ABA matters when an algorithm relies on that stronger assumption. [1]

Lifetime: ABA can arise without freeing memory, for example when live nodes move between lists. Safe reclamation and logical history validation are separate obligations. Hazard pointers do not by themselves repair an algorithm already subject to ABA under garbage collection. [1]

Relative pointers: A native atomic_pptr example restores the same offset after A-B-A and then accepts a stale expected pointer. It checks 16 prescribed histories with live targets, not concurrent executions or allocator recovery. [3]

Scope: This result concerns the ordinary pointer header. The Ralloc paper separately describes 34-bit counters in internal partial-list and superblock-free-list heads. It is not evidence that the allocator omits ABA protection. [2]

Relations

related
Compare-and-swap, Self-relative pointer, Region ID in Value (RIV), Ralloc, Linearizability

Citations

  1. Michael. Hazard Pointers: Safe Memory Reclamation for Lock-Free Objects. IEEE TPDS 15(6), 2004, section 2.3, p. 493. (accessed 2026-12-05)
  2. Cai et al. Understanding and Optimizing Persistent Memory Allocation. ISMM 2020, section 4.2, p. 65. (accessed 2026-12-05)
  3. Hesela. Relative-pointer checks: prescribed native ABA histories, controls, source hashes and limitations. (accessed 2026-12-05)
Sources & caveats
  • Michael section 2.3 reviewed for logical ABA without reclamation; no hazard-pointer implementation or performance result is reproduced.
  • The native example executes a prescribed single-thread history using pinned Ralloc headers, not its counted list heads or an allocator correctness test.

JSON: /data/terms/aba-problem.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. ABA problem. Hesela. 2026-12-05. https://hesela.dev/terms/aba-problem/