[compiler-rt] [scudo] Separated committed and decommitted entries. (PR #101409)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 14:55:16 PDT 2024
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 1a6d60e0162b3ef767c87c95512dd453bf4f4746 29ad38e861de8720e0d5a03a8c45b8e0c7bdc36f --extensions h -- compiler-rt/lib/scudo/standalone/secondary.h
``````````
</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 73c18a69e5..237c6199a0 100644
--- a/compiler-rt/lib/scudo/standalone/secondary.h
+++ b/compiler-rt/lib/scudo/standalone/secondary.h
@@ -797,7 +797,8 @@ void *MapAllocator<Config>::allocate(const Options &Options, uptr Size,
const uptr MinNeededSizeForCache = roundUp(Size + getHeadersSize(), PageSize);
if (Alignment < PageSize && Cache.canCache(MinNeededSizeForCache)) {
- void *Ptr = tryAllocateFromCache(Options, Size, Alignment, BlockEndPtr, FillContents);
+ void *Ptr = tryAllocateFromCache(Options, Size, Alignment, BlockEndPtr,
+ FillContents);
if (Ptr != nullptr)
return nullptr;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/101409
More information about the llvm-commits
mailing list