atomic_wait icon indicating copy to clipboard operation
atomic_wait copied to clipboard

No hashing used in __contention?

Open rdb opened this issue 3 years ago • 0 comments

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?

rdb avatar Feb 23 '22 09:02 rdb