[all-commits] [llvm/llvm-project] 36ada3: [BOLT][NFC] Fix data race in ShrinkWrapping stats
Amir Ayupov via All-commits
all-commits at lists.llvm.org
Sun Feb 20 17:22:10 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 36ada32727d8c9f075ea8943212d489fdbcf637e
https://github.com/llvm/llvm-project/commit/36ada32727d8c9f075ea8943212d489fdbcf637e
Author: Amir Ayupov <aaupov at fb.com>
Date: 2022-02-20 (Sun, 20 Feb 2022)
Changed paths:
M bolt/include/bolt/Passes/ShrinkWrapping.h
M bolt/lib/Passes/ShrinkWrapping.cpp
Log Message:
-----------
[BOLT][NFC] Fix data race in ShrinkWrapping stats
Fix data race reported by ThreadSanitizer in clang.test:
```
ThreadSanitizer: data race /data/llvm-project/bolt/lib/Passes/ShrinkWrapping.cpp:1359:28
in llvm::bolt::ShrinkWrapping::moveSaveRestores()
```
The issue is with incrementing global counters from multiple threads.
Reviewed By: yota9
Differential Revision: https://reviews.llvm.org/D120218
More information about the All-commits
mailing list