[all-commits] [llvm/llvm-project] ce2b48: [mlir] ThreadLocalCache: make TSAN happy about des...

Jeff Niu via All-commits all-commits at lists.llvm.org
Mon Aug 26 20:00:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce2b488e90d6d5a5c8fe495ede8238938827da39
      https://github.com/llvm/llvm-project/commit/ce2b488e90d6d5a5c8fe495ede8238938827da39
  Author: Jeff Niu <jeff at modular.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M mlir/include/mlir/Support/ThreadLocalCache.h

  Log Message:
  -----------
  [mlir] ThreadLocalCache: make TSAN happy about destructors (#106170)

TSAN warns that `ptr` is read and write without protection in
`clearExpiredEntries` and in the destructor of `Owner`. Add an atomic
bool to synchronize these without incurring a cost when calling `get`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list