[PATCH] D39490: [scudo] Make getNumberOfCPUs Fuchsia compliant

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 11:13:46 PDT 2017


alekseyshl added inline comments.


================
Comment at: lib/scudo/scudo_tsd_shared.cpp:31
+// except on Fuchsia where it just invokes a syscall.
+static u32 getNumberOfCPUs() {
+  u32 n;
----------------
Seems like it's time to move  getNumberOfCPUs to common. We can start with adding it to sanitizer_{linux|fuchsia}.{h|cc} and generalize it further when we need it on other platforms.


Repository:
  rL LLVM

https://reviews.llvm.org/D39490





More information about the llvm-commits mailing list