[compiler-rt] [scudo] Avoid splitting aligned allocations on Trusty (PR #69281)

via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 20 21:56:00 PST 2023


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 a25da1a92120eb5cb74f1a3d28a4849178cfbdff 27afd294ce6fe2efa79f4af85020b368d218c1f3 -- 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 e478039b29..ac0d118a9b 100644
--- a/compiler-rt/lib/scudo/standalone/secondary.h
+++ b/compiler-rt/lib/scudo/standalone/secondary.h
@@ -141,8 +141,8 @@ bool mapSecondary(const Options &Options, uptr CommitBase, uptr CommitSize,
       /* We could not split, so fall through to the normal code path */
     } else {
       const uptr UntaggedPos = Max(AllocPos, CommitBase + MaxUnusedCacheBytes);
-      return MemMap.remap(CommitBase, UntaggedPos - CommitBase, "scudo:secondary",
-                          MAP_MEMTAG | Flags) &&
+      return MemMap.remap(CommitBase, UntaggedPos - CommitBase,
+                          "scudo:secondary", MAP_MEMTAG | Flags) &&
              MemMap.remap(UntaggedPos, CommitBase + CommitSize - UntaggedPos,
                           "scudo:secondary", Flags);
     }

``````````

</details>


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


More information about the llvm-commits mailing list