[compiler-rt] [scudo] Display flags on secondary cache entries. (PR #185786)

Christopher Ferris via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 10 18:53:04 PDT 2026


https://github.com/cferris1000 created https://github.com/llvm/llvm-project/pull/185786

None

>From 2bbda1c37a0c2bc9fb415f54854e691e950ba0ff Mon Sep 17 00:00:00 2001
From: Christopher Ferris <cferris at google.com>
Date: Tue, 10 Mar 2026 18:50:34 -0700
Subject: [PATCH] [scudo] Display flags on secondary cache entries.

---
 compiler-rt/lib/scudo/standalone/secondary.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/lib/scudo/standalone/secondary.h b/compiler-rt/lib/scudo/standalone/secondary.h
index 9dfbd2061d918..a740836a144c5 100644
--- a/compiler-rt/lib/scudo/standalone/secondary.h
+++ b/compiler-rt/lib/scudo/standalone/secondary.h
@@ -233,9 +233,10 @@ class MapAllocatorCache {
 
     for (CachedBlock &Entry : LRUEntries) {
       Str->append("  StartBlockAddress: 0x%zx, EndBlockAddress: 0x%zx, "
-                  "BlockSize: %zu%s",
+                  "BlockSize: %zu%s, Flags: %s",
                   Entry.CommitBase, Entry.CommitBase + Entry.CommitSize,
-                  Entry.CommitSize, Entry.Time == 0 ? " [R]" : "");
+                  Entry.CommitSize, Entry.Time == 0 ? " [R]" : "",
+                  Entry.Flags & CachedBlock::NoAccess ? "NoAccess" : "None");
       const s64 ResidentPages =
           Entry.MemMap.getResidentPages(Entry.CommitBase, Entry.CommitSize);
 



More information about the llvm-commits mailing list