[compiler-rt] [scudo] Add thread-safety annotation on getMemoryGroupFragmentationIn… (PR #108277)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 12:10:01 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: None (ChiaHungDuan)
<details>
<summary>Changes</summary>
…foInRegion
---
Full diff: https://github.com/llvm/llvm-project/pull/108277.diff
1 Files Affected:
- (modified) compiler-rt/lib/scudo/standalone/primary64.h (+1-1)
``````````diff
diff --git a/compiler-rt/lib/scudo/standalone/primary64.h b/compiler-rt/lib/scudo/standalone/primary64.h
index 045070d0e34de9..a3b6e309ed3fce 100644
--- a/compiler-rt/lib/scudo/standalone/primary64.h
+++ b/compiler-rt/lib/scudo/standalone/primary64.h
@@ -1207,7 +1207,7 @@ template <typename Config> class SizeClassAllocator64 {
void getMemoryGroupFragmentationInfoInRegion(RegionInfo *Region, uptr ClassId,
ScopedString *Str)
- REQUIRES(Region->MMLock) {
+ REQUIRES(Region->MMLock) EXCLUDES(Region->FLLock) {
const uptr BlockSize = getSizeByClassId(ClassId);
const uptr AllocatedUserEnd =
Region->MemMapInfo.AllocatedUser + Region->RegionBeg;
``````````
</details>
https://github.com/llvm/llvm-project/pull/108277
More information about the llvm-commits
mailing list