This is an archive of the discontinued LLVM Phabricator instance.

[SanitizerCommon] Reduce wasting memory in LowLevelAllocator.
ClosedPublic

Authored by ikudrin on Dec 10 2019, 7:44 AM.

Details

Summary

MmapOrDie allocates memory multiple to page size. LowLevelAllocator should use all that memory for the internal buffer because there are chances that subsequent allocations may be small enough to be placed in that space.

Diff Detail

Event Timeline

ikudrin created this revision.Dec 10 2019, 7:44 AM
ikudrin retitled this revision from [SanitizerCommon] Avoid wasting memory in LowLevelAllocator to [SanitizerCommon] Reduce wasting memory in LowLevelAllocator..Dec 10 2019, 7:54 AM
eugenis accepted this revision.Dec 10 2019, 10:33 AM

LGTM, thank you!

This revision is now accepted and ready to land.Dec 10 2019, 10:33 AM
vitalybuka accepted this revision.Dec 10 2019, 12:29 PM
This revision was automatically updated to reflect the committed changes.