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 some thread sanitizer warnings in C++ runtime #3309

Merged
merged 2 commits into from
Oct 31, 2021

Conversation

jcking
Copy link
Collaborator

@jcking jcking commented Oct 15, 2021

There are some shared global states in the C++ runtime, specifically in the ATN, that cause thread sanitizer warnings. This pull request switches those use std::atomic.

@jcking jcking force-pushed the cpp-runtime-thread-safety branch 2 times, most recently from edee543 to 5bc8e01 Compare October 18, 2021 14:16
@jcking
Copy link
Collaborator Author

jcking commented Oct 18, 2021

@mike-lischke

@mike-lischke
Copy link
Member

Thanks for the PR. Can you also add yourself to the contributors.txt file?

@jcking
Copy link
Collaborator Author

jcking commented Oct 19, 2021

Thanks for the PR. Can you also add yourself to the contributors.txt file?

Done.

@jcking
Copy link
Collaborator Author

jcking commented Oct 19, 2021

Thanks for the PR. Can you also add yourself to the contributors.txt file?

Done.

Actually, I added it to #3311 instead, but same outcome. Both are TSAN fixes.

@mike-lischke
Copy link
Member

Please add that to this PR (too). We may not accept both patches.

@jcking
Copy link
Collaborator Author

jcking commented Oct 22, 2021

Please add that to this PR (too). We may not accept both patches.

Done.

@mike-lischke
Copy link
Member

@parrt Another C++ only patch, ready to be merged.

@parrt parrt added this to the 4.9.3 milestone Oct 31, 2021
@parrt parrt merged commit 6ab9d0f into antlr:master Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants