[PATCH] D44444: [scudo] Add Chunk::getSize, rework Chunk::getUsableSize

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 13 13:39:16 PDT 2018


alekseyshl accepted this revision.
alekseyshl added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/scudo/scudo_allocator.cpp:95
+      return PrimaryAllocator::ClassIdToSize(ClassId) - getHeaderSize() -
+        (Header->Offset << MinAlignmentLog);
+    return SecondaryAllocator::GetActuallyAllocatedSize(
----------------
Two more spaces indent


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D44444





More information about the llvm-commits mailing list