This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Introduce Chunk::getHeaderSize
ClosedPublic

Authored by cryptoad on Feb 26 2018, 11:36 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

cryptoad created this revision.Feb 26 2018, 11:36 AM
Herald added subscribers: Restricted Project, delcypher. · View Herald TranscriptFeb 26 2018, 11:36 AM
alekseyshl accepted this revision.Feb 26 2018, 3:05 PM
This revision is now accepted and ready to land.Feb 26 2018, 3:05 PM
This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.