[compiler-rt] dbfc037 - [scudo] Set name for reserved regions in SizeClassAllocator64

Chia-hung Duan via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 19:21:08 PST 2023


Author: Chia-hung Duan
Date: 2023-02-28T03:20:39Z
New Revision: dbfc037e5017d5784063a666f31dadc5cbc66723

URL: https://github.com/llvm/llvm-project/commit/dbfc037e5017d5784063a666f31dadc5cbc66723
DIFF: https://github.com/llvm/llvm-project/commit/dbfc037e5017d5784063a666f31dadc5cbc66723.diff

LOG: [scudo] Set name for reserved regions in SizeClassAllocator64

This improves the readability of address space

Reviewed By: enh

Differential Revision: https://reviews.llvm.org/D144898

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 ee8532f0967a4..c0e50218fb1d9 100644
--- a/compiler-rt/lib/scudo/standalone/primary64.h
+++ b/compiler-rt/lib/scudo/standalone/primary64.h
@@ -65,8 +65,8 @@ template <typename Config> class SizeClassAllocator64 {
     DCHECK(isAligned(reinterpret_cast<uptr>(this), alignof(ThisT)));
     DCHECK_EQ(PrimaryBase, 0U);
     // Reserve the space required for the Primary.
-    PrimaryBase = reinterpret_cast<uptr>(
-        map(nullptr, PrimarySize, nullptr, MAP_NOACCESS, &Data));
+    PrimaryBase = reinterpret_cast<uptr>(map(
+        nullptr, PrimarySize, "scudo:primary_reserve", MAP_NOACCESS, &Data));
 
     u32 Seed;
     const u64 Time = getMonotonicTime();


        


More information about the llvm-commits mailing list