[compiler-rt] [scudo] Added LRU eviction policy to secondary cache. (PR #99409)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 16:04:14 PDT 2024
================
@@ -249,11 +273,17 @@ template <typename Config> class MapAllocatorCache {
}
do {
ScopedLock L(Mutex);
+
+ Time = getMonotonicTimeFast();
+ if (Entry.Time != 0)
+ Entry.Time = Time;
+
----------------
ChiaHungDuan wrote:
I know we will remove the `Entry.Time` but it's still better to have some comment on why we move the `getMonotonicTimeFast()` here.
https://github.com/llvm/llvm-project/pull/99409
More information about the llvm-commits
mailing list