This is an archive of the discontinued LLVM Phabricator instance.

[scudo][standalone] Introduce the SizeClassMap
ClosedPublic

Authored by cryptoad on Apr 24 2019, 1:17 PM.

Details

Summary

As with the sanitizer_common allocator, the SCM allows for efficient
mapping between sizes and size-classes, table-free.

It doesn't depart significantly from the original, except that we
allow the use of size-class 0 for other purposes (as opposed to
chunks of size 0). The Primary will use it to hold TransferBatches.

Event Timeline

cryptoad created this revision.Apr 24 2019, 1:17 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 24 2019, 1:17 PM
Herald added subscribers: Restricted Project, delcypher, mgorny, srhines. · View Herald Transcript
cryptoad updated this revision to Diff 196524.Apr 24 2019, 2:46 PM

Correct comment & a format string.

vitalybuka accepted this revision.Apr 24 2019, 3:13 PM
This revision is now accepted and ready to land.Apr 24 2019, 3:13 PM
This revision was automatically updated to reflect the committed changes.