Page MenuHomePhabricator

[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.

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
Closed by commit rCRT326206: [scudo] Introduce Chunk::getHeaderSize (authored by cryptoad, committed by ). · Explain Why
This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.