atomic_wait
atomic_wait copied to clipboard
No hashing used in __contention?
I am curious why you only grab the lowest 8 bits of the pointer without any hashing in __contention. The vast majority of pointers passed in will be aligned on an 8-byte or 16-byte boundary which surely means that you are only ever using 16 to 32 of the 256 available slots in the optimistic case?