[compiler-rt] [scudo] Update secondary cache time-based release logic (PR #107507)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 16 14:50:33 PDT 2024


================
@@ -552,6 +554,9 @@ class MapAllocatorCache {
 
     Entries[I].invalidate();
 
+    if (I == LastUnreleasedEntry)
+      LastUnreleasedEntry = Entries[LastUnreleasedEntry].Prev;
+
----------------
ChiaHungDuan wrote:

What if we insert an entry which has been released? Now it only happens when MTE is enabled if I remember correctly

A solution for this is that we update `LastUnreleasedEntry` in store()

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


More information about the llvm-commits mailing list