Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No hashing used in __contention? #5

Open
rdb opened this issue Feb 23, 2022 · 0 comments
Open

No hashing used in __contention? #5

rdb opened this issue Feb 23, 2022 · 0 comments

Comments

@rdb
Copy link

rdb commented Feb 23, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant