FdClose is a subjet to the same atomicity problem as MemoryRangeFreed
(memory state is not "monotoic" wrt race detection).
So we need to lock the thread slot in FdClose the same way we do
in MemoryRangeFreed.
This fixes the modified stress.cpp test.
Details
Details
- Reviewers
vitalybuka melver - Commits
- rGf831d6fc800c: tsan: fix false positive during fd close
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
There doesn't appear to be an actual comment change here - clang-format changed this?