[compiler-rt] [scudo] Add flags to secondary cache entries. (PR #177506)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 23 11:05:43 PST 2026


================
@@ -754,9 +760,12 @@ MapAllocator<Config>::tryAllocateFromCache(const Options &Options, uptr Size,
   LargeBlock::Header *H = reinterpret_cast<LargeBlock::Header *>(
       LargeBlock::addHeaderTag<Config>(EntryHeaderPos));
   bool Zeroed = Entry.Time == 0;
+
+  if (UNLIKELY(Entry.Flags & CachedBlock::NoAccess))
----------------
ChiaHungDuan wrote:

Can we add a comment to say something like setMemoryPermission(..., 0) resets the page to default access? I was under the impression that 0 means NoAccess while having a quick glance.

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


More information about the llvm-commits mailing list