Skip to content

ConcurrentLinkedStack

Ben Manes edited this page Oct 26, 2024 · 4 revisions

Removed in 2.1 (was documented as @Beta) in favor of JCTools.

A lock-free stack that employs an elimination and combining backoff arena to reduce contention. Elimination cancels opposite operations (pushes and pops) while combining batches similar operations (pushes). Both techniques reduce the contention on the top of the stack and together offer high performance in symmetric and asymmetric workloads. The benefit of using an arena is demonstrated by adapting this benchmark where the backoff strategy was manually disabled.

This class is marked as @Beta.

Clone this wiki locally