Skip to main content

FUTEX_BUCKET_CAPACITY

Constant FUTEX_BUCKET_CAPACITY 

Source
const FUTEX_BUCKET_CAPACITY: usize = 32;
Expand description

Max distinct futex addresses per bucket.

With the Fibonacci hash below, collisions are rare; 32 slots handle workloads with hundreds of concurrent futex addresses without spilling.