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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Christopher Ferris (cferris1000)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/185786.diff


1 Files Affected:

- (modified) compiler-rt/lib/scudo/standalone/secondary.h (+3-2) 


``````````diff
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);
 

``````````

</details>


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


More information about the llvm-commits mailing list