Skip to content

Commit

Permalink
ignore thread sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
liuneng1994 committed Apr 10, 2024
1 parent 87452a0 commit 3919224
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Common/DateLUT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ DateLUT::DateLUT()
}


const DateLUTImpl & DateLUT::getImplementation(const std::string & time_zone) const
/// skip thread sanitizer, because the initialization of each time zone data will only happen once.
/// There should be no serious data race here.
const DateLUTImpl & DateLUT::getImplementation(const std::string & time_zone) const __attribute__((no_sanitize("thread")))
{
// First check without acquiring the lock
auto it = impls.find(time_zone);
Expand Down

0 comments on commit 3919224

Please sign in to comment.