[PATCH] D58612: Use std::atomic<> for static counters.

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 25 05:26:50 PST 2019


alexfh created this revision.
alexfh added a reviewer: ilya-biryukov.
Herald added a subscriber: jfb.
Herald added a project: clang.

Fixes a data race and makes it possible to run clang-based tools in
multithreaded environment with TSan.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D58612

Files:
  clang/include/clang/AST/ASTContext.h
  clang/lib/AST/ASTContext.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58612.188145.patch
Type: text/x-patch
Size: 4861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190225/ede8d5a1/attachment.bin>


More information about the cfe-commits mailing list