[PATCH] D87120: [HeapProf] Heap profiling runtime support

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 4 16:33:03 PDT 2020


MaskRay added inline comments.


================
Comment at: compiler-rt/lib/heapprof/heapprof_allocator.h:45
+#if SANITIZER_CAN_USE_ALLOCATOR64
+const uptr kAllocatorSpace = 0x600000000000ULL;
+const uptr kAllocatorSize = 0x40000000000ULL; // 4T.
----------------
Prefer `constexpr` for (namespace scoped) constants.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87120/new/

https://reviews.llvm.org/D87120



More information about the llvm-commits mailing list