[compiler-rt] [compiler-rt] fix BSD procmaps stack size limit on build due to the k… (PR #82887)

via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 24 07:41:37 PST 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 1901f442ca6374787e6810adb573d138f80893dd 3acc8e2e4c8d4db7a24b20a4e7a3c3d22e2a6ffe -- compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp
index 3649bfd1b2..72b753b841 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp
@@ -35,13 +35,15 @@ void GetMemoryProfile(fill_profile_f cb, uptr *stats) {
     KERN_PROC,
     KERN_PROC_PID,
     getpid()
-  }; 
+  };
 
   struct kinfo_proc *InfoProc;
   uptr Len = sizeof(*InfoProc);
   uptr Size = Len;
   InfoProc = (struct kinfo_proc *)MmapOrDie(Size, "GetMemoryProfile()");
-  CHECK_EQ(internal_sysctl(Mib, ARRAY_SIZE(Mib), nullptr, (uptr *)InfoProc, &Len, 0), 0);
+  CHECK_EQ(
+      internal_sysctl(Mib, ARRAY_SIZE(Mib), nullptr, (uptr *)InfoProc, &Len, 0),
+      0);
   cb(0, InfoProc->ki_rssize * GetPageSizeCached(), false, stats);
   UnmapOrDie(InfoProc, Size, true);
 }

``````````

</details>


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


More information about the llvm-commits mailing list