HomePhabricator

[scudo][standalone] Skip irrelevant regions during release

Authored by cryptoad on Aug 24 2020, 2:13 PM.

Description

[scudo][standalone] Skip irrelevant regions during release

With the 'new' way of releasing on 32-bit, we iterate through all the
regions in between First and Last, which covers regions that do not
belong to the class size we are working with. This is effectively wasted
cycles.

With this change, we add a SkipRegion lambda to releaseFreeMemoryToOS
that will allow the release function to know when to skip a region.
For the 64-bit primary, since we are only working with 1 region, we never
skip.

Reviewed By: hctim

Differential Revision: https://reviews.llvm.org/D86399

Details

Committed
cryptoadAug 25 2020, 7:41 AM
Reviewer
hctim
Differential Revision
D86399: [scudo][standalone] Skip irrelevant regions during release
Parents
rG1dc57ada0c79: [DWARFYAML] Make the 'Attributes' field optional.
Branches
Unknown
Tags
Unknown