[compiler-rt] 63d8bd2 - [scudo] Add thread-safety annotation on getMemoryGroupFragmentationIn… (#108277)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 14:22:50 PDT 2024
Author: ChiaHungDuan
Date: 2024-09-11T14:22:47-07:00
New Revision: 63d8bd27275458ccd5fd4010671ad781b0a3698c
URL: https://github.com/llvm/llvm-project/commit/63d8bd27275458ccd5fd4010671ad781b0a3698c
DIFF: https://github.com/llvm/llvm-project/commit/63d8bd27275458ccd5fd4010671ad781b0a3698c.diff
LOG: [scudo] Add thread-safety annotation on getMemoryGroupFragmentationIn… (#108277)
Add thread-safety annotation on getMemoryGroupFragmentationInfoInRegion
Added:
Modified:
compiler-rt/lib/scudo/standalone/primary64.h
Removed:
################################################################################
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;
More information about the llvm-commits
mailing list