[compiler-rt] [scudo] Add unmap and eviction stats to Secondary (PR #210465)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 21 08:52:52 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- compiler-rt/lib/scudo/standalone/secondary.h compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/scudo/standalone/secondary.h b/compiler-rt/lib/scudo/standalone/secondary.h
index 04bd00958..3a4677578 100644
--- a/compiler-rt/lib/scudo/standalone/secondary.h
+++ b/compiler-rt/lib/scudo/standalone/secondary.h
@@ -72,9 +72,7 @@ template <typename Config> Header *getHeader(const void *Ptr) {
 
 } // namespace LargeBlock
 
-static inline void unmap(MemMapT &MemMap) {
-  MemMap.unmap();
-}
+static inline void unmap(MemMapT &MemMap) { MemMap.unmap(); }
 
 namespace {
 
@@ -232,8 +230,7 @@ public:
                 LRUEntries.size(), atomic_load_relaxed(&MaxEntriesCount),
                 atomic_load_relaxed(&MaxEntrySize),
                 atomic_load_relaxed(&ReleaseToOsSkips),
-                Interval >= 0 ? Interval : -1,
-                EvictedCount);
+                Interval >= 0 ? Interval : -1, EvictedCount);
     Str->append("Stats: CacheRetrievalStats: SuccessRate: %u/%u "
                 "(%zu.%02zu%%)\n",
                 SuccessfulRetrieves, CallsToRetrieve, Integral, Fractional);

``````````

</details>


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


More information about the llvm-commits mailing list