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

fix TSAN warnings about on clearing empty hashtables #560

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

virt00l
Copy link
Contributor

@virt00l virt00l commented Feb 4, 2025

Different empty instances of hashtable (hast_map, hash_set...) are all pointing to the same global memory region gpEmptyBucketArray. Rewrite hashtable<>::DoFreeNodes in such way to avoid writing into said memory.

Caught by ThreadSanitizer on clear'ing different (but empty) hashtable instances

Different empty instances of hashtable (hast_map, hash_set...) are all
pointing to the same global memory region `gpEmptyBucketArray`.
Rewrite `hashtable<>::DoFreeNodes` in such way to avoid writing into
said memory.

Caught by ThreadSanitizer on clear'ing different (but empty) hashtable
instances
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

Successfully merging this pull request may close these issues.

1 participant