[all-commits] [llvm/llvm-project] d04824: [mlir] ThreadLocalCache: make TSAN happy about des...
Jeff Niu via All-commits
all-commits at lists.llvm.org
Mon Aug 26 19:07:35 PDT 2024
Branch: refs/heads/users/mogball/race
Home: https://github.com/llvm/llvm-project
Commit: d0482487d2d74bbc0d11386ec5f3d00a63ea7ff4
https://github.com/llvm/llvm-project/commit/d0482487d2d74bbc0d11386ec5f3d00a63ea7ff4
Author: Mogball <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
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