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

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 9 11:57:41 PDT 2024


================
@@ -633,6 +643,9 @@ class MapAllocatorCache {
   u16 LRUTail GUARDED_BY(Mutex) = 0;
   // The AvailableHead is the top of the stack of available entries
   u16 AvailableHead GUARDED_BY(Mutex) = 0;
+  // The DecommitBase is the least recently used entry that has not
+  // been released
+  u16 DecommitBase GUARDED_BY(Mutex) = 0;
----------------
ChiaHungDuan wrote:

`DecommitBase` gives me the idea of entry being released (decommitted). Can we change it to something like `LastUnreleasedEntry` or making it point to the first released entry?

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


More information about the llvm-commits mailing list