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

[TSan] |ktf_worker_t::i| is unsynchronised #1056

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

Conversation

iiSeymour
Copy link
Contributor

TSan complains that this read of |ktf_worker_t::i| is unsynchronised wrt the stores on the other worker threads. Unlike the _atomic* family of functions the _sync* functions don't have a relaxed read without modification, so to emulate this behaviour I've used the existing __sync_fetch_and_add() with an increment of 0.

wrt the stores on the other worker threads. Unlike the __atomic_*
family of functions the __sync_* functions don't have a relaxed read
without modification, so to emulate this behaviour I've used the
existing __sync_fetch_and_add() with an increment of 0.
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