[PATCH] D43772: [scudo] Introduce Chunk::getHeaderSize
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 11:38:54 PST 2018
cryptoad created this revision.
cryptoad added a reviewer: alekseyshl.
Herald added subscribers: Sanitizers, delcypher.
Instead of using `AlignedChunkHeaderSize`, introduce a `constexpr` function
`getHeaderSize` in the `Chunk` namespace. Switch `RoundUpTo` to a `constexpr`
as well (so we can use it in `constexpr` declarations). Mark a few variables
in the areas touched as `const`.
Overall this has no functional change, and is mostly to make things a bit more
consistent.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D43772
Files:
lib/scudo/scudo_allocator.cpp
lib/scudo/scudo_allocator.h
lib/scudo/scudo_allocator_secondary.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43772.135934.patch
Type: text/x-patch
Size: 6370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180226/0d0e6975/attachment.bin>
More information about the llvm-commits
mailing list