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

Remove TSAN_ONLY_ATOMIC_* macros and configuration option #310

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

adayton1
Copy link
Member

The vendors all state that if there are multiple threads accessing the same memory location and at least one access is a write, that is a data race. It doesn't matter if all threads are writing the same value. There are two dangers: (1) torn reads/writes, and (2) the compiler can reorder instructions.

@adayton1 adayton1 requested review from liu15 and dtaller December 13, 2024 17:56
@adayton1 adayton1 merged commit b79bf2b into develop Dec 13, 2024
7 checks passed
@adayton1 adayton1 deleted the feature/dayton8/rm_tsan_only branch December 13, 2024 19:18
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.

3 participants