[PATCH] D111256: [NFC][sanitizer] Remove global PersistentAllocator

Vitaly Buka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 6 15:46:19 PDT 2021


vitalybuka marked an inline comment as done.
vitalybuka added inline comments.


================
Comment at: compiler-rt/lib/sanitizer_common/sanitizer_persistent_allocator.h:61
     uptr mem = (uptr)MmapOrDie(allocsz, "stack depot");
+    atomic_fetch_add(&allocated_size, allocsz, memory_order_relaxed);
     atomic_store(&region_end, mem + allocsz, memory_order_release);
----------------
morehouse wrote:
> This changes the meaning of `stats.allocated` to "mmapped memory" instead of "returned memory"
Probably not important but easy to fix.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111256



More information about the cfe-commits mailing list