[compiler-rt] [scudo] Add partial chunk heuristic to retrieval algorithm. (PR #105009)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 10:50:12 PDT 2024
================
@@ -659,8 +712,20 @@ MapAllocator<Config>::tryAllocateFromCache(const Options &Options, uptr Size,
FillContentsMode FillContents) {
CachedBlock Entry;
uptr EntryHeaderPos;
+ uptr MaxAllowedFragmentedBytes;
+ const uptr PageSize = getPageSizeCached();
+
+ if (LIKELY(!useMemoryTagging<Config>(Options))) {
----------------
ChiaHungDuan wrote:
How about let's change all the bytes to pages? It'll be `MaxAllowedFragmentedPages` and determine the bytes right before `releaseAndZeroPagesToOS()`.
https://github.com/llvm/llvm-project/pull/105009
More information about the llvm-commits
mailing list