[compiler-rt] [scudo] Add partial chunk heuristic to retrieval algorithm. (PR #104807)

Joshua Baehring via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 15:56:45 PDT 2024


================
@@ -659,8 +711,18 @@ MapAllocator<Config>::tryAllocateFromCache(const Options &Options, uptr Size,
                                            FillContentsMode FillContents) {
   CachedBlock Entry;
   uptr EntryHeaderPos;
+  uptr MaxAllowedFragmentedBytes;
+  const uptr PageSize = getPageSizeCached();
+
+  if (UNLIKELY(useMemoryTagging<Config>(Options))) {
----------------
JoshuaMBa wrote:

Correct me if I'm wrong, but can't MTE be turned on and off dynamically? 

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


More information about the llvm-commits mailing list