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

Add tsan annotation to static variable when checking if vlog is on. #890

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

pateldeev
Copy link
Contributor

@pateldeev pateldeev commented Feb 6, 2023

The vlocal__ static variable triggers tsan when multiple threads try and see if vlog is on.

@codecov-commenter
Copy link

codecov-commenter commented Feb 24, 2023

Codecov Report

Merging #890 (6757104) into master (f545ff5) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #890      +/-   ##
==========================================
- Coverage   73.62%   73.55%   -0.07%     
==========================================
  Files          17       17              
  Lines        3298     3298              
==========================================
- Hits         2428     2426       -2     
- Misses        870      872       +2     
Impacted Files Coverage Δ
src/logging.cc 74.90% <0.00%> (-0.15%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Avoid TSAN issues when multiple threads perform the check.
@sergiud
Copy link
Collaborator

sergiud commented Oct 7, 2023

Thanks!

@sergiud sergiud merged commit e17f932 into google:master Oct 7, 2023
134 of 135 checks passed
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